/* =============================
   MIDSON ELECTRICAL - AGENCY BUILD
   ============================= */

:root{
  --primary:#8E8C74;
  --primary-dark:#6f6d58;
  --dark:#111111;
  --light:#f4f4f2;
  --grey:#6b6b6b;
  --white:#ffffff;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html, body{
  height:100%;
}

body, button {
	font-family:'Montserrat',sans-serif;
}

body {
  background:var(--white);
  color:var(--dark);
  line-height:1.6;
  display:flex;
  flex-direction:column;
  min-height:100vh;
}

main{
  flex:1;
}

.container{
  width:90%;
  max-width:1180px;
  margin:auto;
}

.section{
  padding:110px 0;
}

a:focus{
  outline:2px solid var(--primary);
  outline-offset:2px;
}

/* ================= NAV ================= */

.navbar{
  background:var(--white);
  border-bottom:1px solid #eee;
  position:sticky;
  top:0;
  z-index:1000;
  box-shadow:0 1px 6px rgba(0,0,0,0.03);
}

.nav-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px 0;
}

.logo img{
  height:50px;
}

.nav-links{
  display:flex;
  align-items:center;
}

.nav-links a{
  margin-left:35px;
  text-decoration:none;
  color:var(--dark);
  font-weight:500;
  transition:.2s ease;
}

.nav-links a:hover{
  color:var(--primary);
}

.call-btn{
  background:var(--primary);
  color:var(--white) !important;
  padding:12px 22px;
  border-radius:6px;
}

.call-btn:hover{
  background:var(--primary-dark);
}

.logo-text{
  font-weight:600;
  letter-spacing:3px;
  font-size:18px;
}

/* ================= HERO ================= */

.hero{
  position:relative;
  padding:180px 0 160px;
  text-align:center;
  color:white;
  overflow:hidden;
}

/* Background image */
.hero-bg{
  position:absolute;
  inset:0;
  background:url("images/hero.jpeg") center/cover no-repeat;
  z-index:0;
}

/* Dark overlay */
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.55);
  z-index:1;
}

.hero-center{
  position:relative;
  z-index:2;
  max-width:850px;
  margin:auto;
}

.hero-logo{
  width:320px;
  max-width:80%;
  margin-bottom:40px;
}

.hero h1{
  font-size:clamp(34px,4vw,54px);
  font-weight:600;
  margin-bottom:20px;
  color:white;
}

.hero p{
  font-size:18px;
  margin-bottom:35px;
  color:#e5e5e5;
}

.hero .btn-outline{
  background:white;
  color:var(--primary);
  border:2px solid white;
  backdrop-filter: blur(3px);
}

.hero .btn-outline:hover{
  background:var(--primary);
  color:white;
  border-color:var(--primary);
}

/* ================= BUTTONS ================= */

.btn{
  display:inline-block;
  background:var(--primary);
  color:var(--white);
  padding:14px 28px;
  border-radius:6px;
  text-decoration:none;
  font-weight:500;
  transition:.2s ease;
}

.btn:hover{
  background:var(--primary-dark);
}

.btn-outline{
  border:1px solid var(--primary);
  color:var(--primary);
  padding:14px 28px;
  border-radius:6px;
  text-decoration:none;
  margin-left:15px;
}

.btn-outline:hover{
  background:var(--primary);
  color:var(--white);
}

.btn-white {
  display:inline-block;
  background:var(--white);
  color:var(--primary);
  padding:14px 28px;
  border-radius:6px;
  text-decoration:none;
  font-weight:500;
  transition:.2s ease;
}

.btn-white:hover{
  background:var(--primary-dark);
  color:var(--white);
}

/* ================= SERVICES ================= */

.section-title{
  font-size:30px;
  margin-bottom:40px;
}

.services-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:40px;
}

.service-tile img{
  width:100%;
  height:260px;
  object-fit:cover;
  border-radius:8px;
  margin-bottom:20px;
}

.service-tile h3{
  margin-bottom:10px;
  font-size:20px;
}

.service-tile p{
  color:var(--grey);
}

.service-tile{
  transition:.25s ease;
}

.service-tile:hover{
  transform:translateY(-6px);
}

/* ===== PAGE HERO ===== */

.page-hero{
  background:var(--light);
  padding:70px 0 60px;
  border-bottom:1px solid #eee;
}

.page-hero h1{
  font-size:38px;
  margin-bottom:10px;
}

.page-hero p{
  color:var(--grey);
  font-size:18px;
  max-width:600px;
}

/* ===== CONTACT PAGE ===== */

.contact-grid{
  display:grid;
  grid-template-columns:1fr 1.2fr;
  gap:80px;
  align-items:start;
}

.contact-info h2{
  margin-bottom:15px;
}

.contact-info p{
  margin-bottom:20px;
}

.contact-details a{
  color:var(--primary);
  text-decoration:none;
}

.contact-details{
  margin:30px 0;
}

.contact-trust p{
  margin-bottom:10px;
  color:var(--grey);
}

/* Mobile */
@media(max-width:900px){
  .contact-grid{
    grid-template-columns:1fr;
    gap:40px;
  }
}

/* ===== SERVICES PAGE ===== */

.services-intro{
  max-width:700px;
  margin-bottom:50px;
  color:var(--grey);
  font-size:18px;
}

.services-grid-2{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:30px;
}

.service-card{
  padding:35px;
  border:1px solid #e8e8e8;
  border-radius:10px;
  background:white;
  transition:all .25s ease;
}

.service-card:hover{
  border-color:var(--primary);
  transform:translateY(-6px);
  box-shadow:0 10px 25px rgba(0,0,0,0.05);
}

.service-card h3{
  margin-bottom:12px;
  font-size:20px;
}

.service-title {
  margin-bottom:20px;
}

.service-card p{
  color:var(--grey);
  font-size:16px;
}

/* ================= CTA ================= */

.cta{
  background:var(--primary);
  color:white;
  text-align:center;
  padding:100px 0;
}

.cta h2{
  font-size:32px;
  margin-bottom:20px;
}

.cta p{
  margin-bottom:30px;
  color:#f3f3f3;
}

/* ================= CONTACT FORM ================= */

.contact-form{
  max-width:600px;
  margin-top:50px;
  display:grid;
  gap:18px;
}

input, textarea{
  padding:16px;
  border:1px solid #ddd;
  border-radius:6px;
  font-family:inherit;
}

input:focus, textarea:focus{
  outline:none;
  border-color:var(--primary);
}

textarea{
  min-height:150px;
}

/* ================= FOOTER ================= */

.footer{
  background:var(--dark);
  color:#ccc;
  text-align:center;
  padding:50px 0;
  margin-top:120px;
}

.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:20px;
}

.footer-left p{
  margin:4px 0;
}

.footer-socials{
  display:flex;
  gap:18px;
}

.social-icon{
  width:35px;
  height:35px;
  fill:#ccc;
  transition:.2s ease;
}

.social-icon:hover{
  fill:var(--primary);
}

/* ===== ABOUT PAGE UPGRADE ===== */

.about-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr;
  gap:80px;
  align-items:start;
}

.about-text{
  font-size:17px;
  line-height:1.75;
}

.about-text p{
  margin-bottom:18px;
  font-size:17px;
}

.about-panel{
  background:var(--light);
  padding:40px;
  border-radius:10px;
  border:1px solid #eee;
  position: relative;
}

.about-panel:before{
  content:"";
  position:absolute;
  top:-20px;
  left:0;
  width:60px;
  height:3px;
  background:var(--primary);
}

.about-panel h3{
  margin-bottom:15px;
  font-size:20px;
}

.service-list{
  list-style:none;
  padding:0;
  margin-bottom:30px;
}

.service-list li{
  padding:8px 0;
  border-bottom:1px solid #e5e5e5;
  color:var(--grey);
}

.why-box ul{
  list-style:none;
  padding:0;
}

.why-box li{
  padding:8px 0;
  color:var(--grey);
}

/* ================= MOBILE ================= */

/* ===== MOBILE NAV ===== */

.menu-toggle{
  display:none;
  font-size:28px;
  cursor:pointer;
}

/* Mobile */
@media(max-width:900px){

  .menu-toggle{
    display:block;
  }

  .nav-links{
    position:absolute;
    top:70px;
    right:0;
    background:white;
    width:100%;
    flex-direction:column;
    align-items:center;
    display:none;
    padding:25px 0;
    box-shadow:0 10px 20px rgba(0,0,0,0.05);
  }

  .nav-links a{
    margin:12px 0;
    font-size:18px;
  }

  .nav-links.show{
    display:flex;
  }
}

/* ===== MOBILE ABOUT ===== */

@media(max-width:900px){

  .about-grid{
    grid-template-columns:1fr;
    gap:40px;
  }
}

/* Sticky mobile call button */

.mobile-call{
  display:none;
}

@media(max-width:768px){
  .footer{
    padding-bottom:calc(90px + 20px);
  }
  
  .footer-inner{
    flex-direction:column;
    text-align:center;
  }
	
  .mobile-call{
    display:block;
    position:fixed;
    bottom:20px;
    left:20px;
    right:20px;
    background:var(--primary);
    color:white;
    text-align:center;
    padding:14px;
    border-radius:8px;
    font-weight:600;
    font-size: 15px;
    text-decoration:none;
    z-index:999;
  }
}

@media(max-width:600px){

  .hero-buttons{
    display:flex;
    flex-direction:column !important;
    align-items:center;
    gap:15px;
  }

  .hero-buttons .btn,
  .hero-buttons .btn-outline{
    width:100%;
    max-width:320px;
    margin-left:0;
    text-align:center;
  }

}