/* Scott Boyd Electric - Static Site Styles */

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #301014;
  background-color: #FFFFFF;
}

a {
  text-decoration: none;
  color: #485665;
}

a:hover {
  color: #EC9A29;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Contact styles */
.contact {
  background-color: #f9f9f9;
  padding: 60px 0;
}

.contact-page {
  margin-top: 90px;
}

.services-title {
  margin-top: 30px;
}

.services-list {
  list-style-type: none;
  padding-left: 0;
}

/* Header styles */
header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: fixed;
  width: 100%;
  z-index: 1000;
  top: 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  max-height: 60px;
}

.site-description {
  margin-left: 15px;
  font-weight: bold;
  color: #EC9A29;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 16px;
  transition: color 0.3s ease;
}

/* Hero section */
.hero {
  color: #fff;
  text-align: center;
  padding: 150px 0;
  margin-top: 90px;
  position: relative;
  overflow: hidden;
  background-color: #333; /* Fallback color if video doesn't load */
  min-height: 500px;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: 700;
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  background-color: #301014;
  color: #FFFFFF;
  padding: 12px 30px;
  border-radius: 6px;
  text-transform: uppercase;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #485665;
  color: #FFFFFF;
}

/* Services section */
.services {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 36px;
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #EC9A29;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-box {
  text-align: center;
  padding: 30px;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.service-box:hover {
  transform: translateY(-10px);
}

.service-box img {
  max-width: 160px;
  margin-bottom: 25px;
  transition: transform 0.3s ease;
}

.service-box img:hover {
  transform: scale(1.05);
}

.service-box h3 {
  margin-bottom: 15px;
  font-size: 22px;
}

.service-box p {
  color: #485665;
}

/* Call to action */
.cta {
  background-color: #485665;
  color: #FFFFFF;
  padding: 60px 0;
  text-align: center;
}

.cta h3 {
  font-size: 28px;
  margin-bottom: 20px;
}

.cta p {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Portfolio section */
.portfolio {
  padding: 80px 0;
  background-color: #9D9171;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  height: 250px;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(72, 86, 101, 0.8);
  color: #FFFFFF;
  padding: 15px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-caption {
  transform: translateY(0);
}

/* Contact section */
.contact {
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.contact-info h3 {
  margin-bottom: 20px;
  font-size: 24px;
}

.contact-info p {
  margin-bottom: 15px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.contact-info-item i {
  width: 40px;
  height: 40px;
  background-color: #EC9A29;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.contact-form textarea {
  height: 150px;
}

/* Footer */
footer {
  background-color: #301014;
  color: #FFFFFF;
  padding: 60px 0 30px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo img {
  max-height: 60px;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background-color: #FFFFFF;
  color: #301014;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background-color: #9D9171;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  cursor: pointer;
  z-index: 1001;
  padding: 10px;
}

.hamburger {
  width: 30px;
  height: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #301014;
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) {
  top: 0px;
}

.hamburger span:nth-child(2) {
  top: 9px;
}

.hamburger span:nth-child(3) {
  top: 18px;
}

.mobile-menu-toggle.open .hamburger span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.open .hamburger span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.open .hamburger span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Menu open body style */
body.menu-open {
  overflow: hidden;
}

/* Responsive styles */
@media (max-width: 768px) {
  .header-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
  }
  
  .mobile-menu-toggle {
    display: block;
    position: relative;
    z-index: 1002;
    margin-right: 15px;
  }
  
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: #FFFFFF;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    padding-top: 80px;
    overflow-y: auto;
  }
  
  nav.open {
    right: 0;
  }
  
  nav ul {
    flex-direction: column;
    text-align: left;
    padding: 0 30px;
  }
  
  nav ul li {
    margin: 15px 0;
  }
  
  .hero h1 {
    font-size: 36px;
  }
  
  .hero p {
    font-size: 18px;
  }
}

/* Font Awesome Icons (simplified version) */
.fa {
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
}

.fa-phone:before {
  content: "📞";
}

.fa-envelope:before {
  content: "✉️";
}

.fa-map-marker-alt:before {
  content: "📍";
}

.fa-facebook:before {
  content: "f";
}

.fa-google:before {
  content: "G";
}

.fa-linkedin:before {
  content: "in";
}
