/* ============================================
   SUMMIT ELECTRICAL — HOMEPAGE STYLES
   ============================================ */

/* ============================================
   HERO — Two column: copy left, photo right
   ============================================ */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex; align-items: center;
  /* Push down below: demo bar (36px) + emergency strip (44px) + header (68px) = 148px */
  padding-top: 148px;
  padding-bottom: 60px;
  overflow: hidden;
  background: var(--navy-deeper);
}

/* Full bleed background — tinted dark on left, more visible right */
.hero-bg-image {
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1621905251189-08b45d6a269e?w=1600&q=80')
              right center / cover no-repeat;
  z-index: 0;
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.0); }
  to   { transform: scale(1.07); }
}

/* Gradient: opaque navy left → transparent right to reveal electrician */
.hero-bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    95deg,
    rgba(0,26,56,0.97) 0%,
    rgba(0,26,56,0.93) 35%,
    rgba(0,26,56,0.72) 55%,
    rgba(0,26,56,0.25) 75%,
    rgba(0,26,56,0.05) 100%
  );
  z-index: 1;
}

/* Diagonal bottom cut */
.hero::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0;
  height: 72px; background: var(--white);
  clip-path: polygon(0 100%,100% 100%,100% 0);
  z-index: 2;
}

/* Two-column layout: copy left (55%), photo bleeds right */
.hero-inner {
  position: relative; z-index: 3;
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}

.hero-content { /* left column — copy */ }

/* Staggered entrance */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold); font-size: 13px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 18px;
  opacity: 0; animation: heroItem 0.6s ease 0.1s forwards;
}
.hero-eyebrow::before { content: ''; display: block; width: 24px; height: 2px; background: var(--gold); border-radius: 2px; }

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(34px,4.5vw,58px);
  font-weight: 900; line-height: 1.05;
  color: var(--white); letter-spacing: 0.01em;
  margin-bottom: 20px;
  opacity: 0; animation: heroItem 0.6s ease 0.22s forwards;
}
.hero-headline .accent { color: var(--gold); }

.hero-sub {
  font-size: clamp(15px,1.6vw,18px);
  line-height: 1.7; color: rgba(255,255,255,0.82);
  margin-bottom: 28px; max-width: 520px;
  opacity: 0; animation: heroItem 0.6s ease 0.36s forwards;
}

@keyframes heroItem {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* TRUST BAR inside hero */
.hero-trust {
  display: flex; flex-wrap: wrap;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-md);
  margin-bottom: 28px; overflow: hidden;
  opacity: 0; animation: heroItem 0.6s ease 0.5s forwards;
}
.trust-item {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px; flex: 1; min-width: 130px;
  position: relative;
}
.trust-item+.trust-item::before {
  content: ''; position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 1px; background: rgba(255,255,255,0.2);
}
.trust-item .t-icon  { font-size: 16px; }
.trust-item .t-text  { font-size: 12px; font-weight: 600; color: var(--white); line-height: 1.3; }

/* HERO BUTTONS */
.hero-buttons {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  opacity: 0; animation: heroItem 0.6s ease 0.62s forwards;
}

/* Right column spacer — photo visible through gradient */
.hero-photo-col {
  /* Intentionally empty — photo shows through gradient overlay */
  min-height: 420px;
}

/* ============================================
   EMERGENCIES SECTION
   ============================================ */
.emergencies { padding: 96px 0; background: var(--gray-100); }

.emergency-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-bottom: 48px;
}
.emergency-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 26px 22px;
  border: 1px solid rgba(0,0,0,0.05); box-shadow: var(--shadow-sm);
  transition: all var(--transition); display: flex; flex-direction: column; gap: 10px;
}
.emergency-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); border-color: rgba(0,61,130,0.15); }
.card-icon    { width: 46px; height: 46px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 21px; flex-shrink: 0; }
.icon-red    { background: #FFF0F0; }
.icon-yellow { background: #FFFBEB; }
.icon-blue   { background: #EBF2FF; }
.icon-green  { background: #F0FFF4; }
.card-title  { font-size: 15px; font-weight: 700; color: var(--gray-900); line-height: 1.3; }
.card-body   { font-size: 13px; line-height: 1.65; color: var(--gray-500); flex: 1; }
.card-tag    { display: inline-flex; align-items: center; gap: 4px; padding: 4px 11px; border-radius: var(--radius-full); font-size: 11px; font-weight: 700; align-self: flex-start; margin-top: 4px; }
.tag-green   { background: #E8F5E9; color: var(--green); }
.tag-red     { background: #FFF0F0; color: var(--red); }
.tag-blue    { background: #EBF2FF; color: var(--navy); }

.emergencies-close {
  text-align: center; font-size: 16px; font-weight: 600; color: var(--navy);
  font-style: italic; padding: 20px; background: var(--white);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  max-width: 600px; margin: 0 auto;
}

/* ============================================
   WORK PHOTOS STRIP
   ============================================ */
.work-photos { padding: 72px 0; background: var(--white); }

.work-photos .section-header { margin-bottom: 40px; }

.photos-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 16px;
  height: 320px;
}
.photo-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.photo-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.photo-item:hover img { transform: scale(1.05); }

.photo-item .photo-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,26,56,0.85), transparent);
  padding: 20px 16px 14px;
  font-size: 13px; font-weight: 600; color: var(--white);
  opacity: 0; transition: opacity var(--transition);
}
.photo-item:hover .photo-label { opacity: 1; }

.photos-cta {
  text-align: center; margin-top: 32px;
  font-size: 15px; color: var(--gray-500);
}
.photos-cta a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.photos-cta a:hover { color: var(--red); }

/* ============================================
   BENEFITS SECTION
   ============================================ */
.benefits { padding: 96px 0; background: var(--gray-100); }

.benefits-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 36px 44px; margin-bottom: 52px; }
.benefit-item  { padding-left: 18px; border-left: 3px solid var(--gold); }
.benefit-icon  { font-size: 30px; margin-bottom: 10px; }
.benefit-title { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.benefit-body  { font-size: 15px; line-height: 1.7; color: var(--gray-700); }

.benefits-close {
  background: var(--white); border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 26px; max-width: 640px; margin: 0 auto;
  font-size: 17px; font-style: italic; font-weight: 500; color: var(--gray-900);
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works { padding: 96px 0; background: var(--navy); position: relative; overflow: hidden; }
.how-it-works::before { content:''; position:absolute; top:-72px; left:0; right:0; height:72px; background:var(--gray-100); clip-path:polygon(0 0,100% 0,100% 100%); }
.how-it-works::after  { content:''; position:absolute; bottom:-72px; left:0; right:0; height:72px; background:var(--white); clip-path:polygon(0 0,100% 0,0 100%); z-index:1; }
.how-it-works-inner { position:relative; z-index:2; }
.how-it-works .section-tag::before,.how-it-works .section-tag::after { background:var(--gold); }
.how-it-works .section-tag    { color:var(--gold); }
.how-it-works .section-headline { color:var(--white); }
.how-it-works .section-sub    { color:rgba(255,255,255,0.7); }

.steps-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 40px;
  position: relative; margin-bottom: 52px;
}
.steps-grid::before {
  content:''; position:absolute; top:27px;
  left:calc(16.66% + 27px); right:calc(16.66% + 27px);
  height:2px; background:linear-gradient(90deg,rgba(255,184,28,0.2),var(--gold),rgba(255,184,28,0.2)); z-index:0;
}
.step-item   { position:relative; z-index:1; text-align:center; }
.step-number { width:54px; height:54px; background:var(--gold); color:var(--navy); font-family:var(--font-display); font-size:24px; font-weight:900; border-radius:50%; display:flex; align-items:center; justify-content:center; margin:0 auto 18px; box-shadow:0 4px 20px rgba(255,184,28,0.4); position:relative; z-index:1; }
.step-icon   { font-size:20px; margin-bottom:12px; }
.step-title  { font-size:19px; font-weight:700; color:var(--white); margin-bottom:10px; }
.step-body   { font-size:14px; line-height:1.7; color:rgba(255,255,255,0.75); }

.step-quote  { background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.12); border-left:4px solid var(--gold); border-radius:0 var(--radius-md) var(--radius-md) 0; padding:22px 26px; max-width:640px; margin:0 auto 26px; }
.step-quote q { font-size:16px; font-style:italic; color:rgba(255,255,255,0.88); line-height:1.7; display:block; margin-bottom:8px; }
.step-quote cite { font-size:13px; font-weight:600; color:var(--gold); }
.how-close { text-align:center; font-size:15px; font-style:italic; color:rgba(255,255,255,0.6); }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials { padding: 108px 0 96px; background: var(--white); }

.testimonials-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-bottom:44px; }
.testi-card {
  background:var(--white); border-radius:var(--radius-lg); padding:30px;
  border:1px solid rgba(0,0,0,0.06); box-shadow:var(--shadow-sm);
  position:relative; transition:all var(--transition); overflow:hidden;
}
.testi-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-md); border-color:rgba(0,61,130,0.15); }
.testi-card::before { content:'\201C'; position:absolute; top:-10px; left:18px; font-size:76px; font-family:Georgia,serif; color:var(--gold); opacity:0.2; line-height:1; pointer-events:none; }
.testi-stars { color:var(--gold); font-size:15px; margin-bottom:14px; letter-spacing:2px; }
.testi-text  { font-size:14px; line-height:1.75; color:var(--gray-700); font-style:italic; margin-bottom:18px; }
.testi-name  { font-size:14px; font-weight:700; color:var(--navy); margin-bottom:3px; }
.testi-meta  { font-size:12px; color:var(--gray-500); }

.rating-bar {
  background:var(--gray-100); border-radius:var(--radius-lg); padding:22px 30px;
  max-width:560px; margin:0 auto 28px;
  display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap;
  box-shadow:var(--shadow-sm); border:1px solid rgba(0,0,0,0.06);
}
.rating-left   { display:flex; align-items:center; gap:12px; }
.rating-stars  { font-size:18px; color:var(--gold); }
.rating-score  { font-family:var(--font-display); font-size:30px; font-weight:900; color:var(--navy); }
.rating-label  { font-size:13px; color:var(--gray-500); }
.rating-links  { display:flex; gap:14px; flex-wrap:wrap; }
.rating-links a {
  font-size:13px; font-weight:600; color:var(--navy);
  text-decoration:underline; text-underline-offset:2px;
  /* =====================================================
     TO UPDATE: Replace # with the client's review URL
     Google: https://g.page/r/GOOGLE_PLACE_ID/review
     Yelp:   https://www.yelp.com/biz/CLIENT_YEP_ID
     ===================================================== */
}
.rating-links a:hover { color:var(--red); }
.testi-close { text-align:center; font-size:15px; font-style:italic; color:var(--gray-500); }

/* ============================================
   FAQ
   ============================================ */
.faq { padding: 96px 0; background: var(--gray-100); }

.faq-list { max-width:800px; margin:0 auto 44px; display:flex; flex-direction:column; gap:10px; }
.faq-item  { background:var(--white); border:1px solid rgba(0,0,0,0.08); border-radius:var(--radius-md); overflow:hidden; box-shadow:var(--shadow-sm); transition:border-color var(--transition); }
.faq-item.open { border-color:rgba(0,61,130,0.2); }
.faq-question  { width:100%; display:flex; align-items:center; justify-content:space-between; padding:18px 22px; background:none; text-align:left; font-size:16px; font-weight:600; color:var(--gray-900); cursor:pointer; gap:14px; transition:background var(--transition); }
.faq-question:hover,.faq-item.open .faq-question { background:var(--gray-100); }
.faq-icon { width:26px; height:26px; flex-shrink:0; background:var(--gray-100); border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:17px; font-weight:700; color:var(--gold); transition:transform var(--transition),background var(--transition); line-height:1; }
.faq-item.open .faq-icon { transform:rotate(45deg); background:var(--gold); color:var(--white); }
.faq-answer { max-height:0; overflow:hidden; transition:max-height 350ms ease,opacity 250ms ease; opacity:0; }
.faq-item.open .faq-answer { max-height:600px; opacity:1; }
.faq-answer-inner { padding:14px 22px 22px; font-size:14px; line-height:1.75; color:var(--gray-700); border-top:1px solid rgba(0,0,0,0.06); }
.faq-close { max-width:640px; margin:0 auto; background:var(--white); border:1px solid rgba(0,0,0,0.06); border-left:4px solid var(--red); border-radius:0 var(--radius-md) var(--radius-md) 0; padding:20px 26px; box-shadow:var(--shadow-sm); font-size:16px; font-weight:600; font-style:italic; color:var(--gray-900); }

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta { padding:108px 0; background:var(--navy-deeper); position:relative; overflow:hidden; text-align:center; }
.final-cta::before { content:''; position:absolute; inset:0; background-image:repeating-linear-gradient(-45deg,transparent,transparent 40px,rgba(255,255,255,0.015) 40px,rgba(255,255,255,0.015) 41px); pointer-events:none; }
.final-cta-inner { position:relative; z-index:1; }
.cta-eyebrow { display:inline-flex; align-items:center; gap:8px; color:var(--gold); font-size:12px; font-weight:700; letter-spacing:0.15em; text-transform:uppercase; margin-bottom:18px; }
.cta-headline { font-family:var(--font-display); font-size:clamp(30px,5vw,58px); font-weight:900; color:var(--white); line-height:1.1; letter-spacing:0.01em; margin:0 auto 18px; max-width:680px; }
.cta-sub      { font-size:clamp(15px,2vw,19px); line-height:1.7; color:rgba(255,255,255,0.75); max-width:500px; margin:0 auto 36px; }
.cta-offer-box { background:rgba(255,255,255,0.07); border:1px solid rgba(255,255,255,0.12); border-radius:var(--radius-lg); padding:28px 36px; max-width:480px; margin:0 auto 36px; transition:border-color var(--transition); }
.cta-offer-box:hover { border-color:rgba(255,184,28,0.35); }
.cta-offer-icon  { font-size:30px; margin-bottom:10px; }
.cta-offer-title { font-size:21px; font-weight:700; color:var(--white); margin-bottom:8px; }
.cta-offer-body  { font-size:14px; line-height:1.7; color:rgba(255,255,255,0.7); }
.cta-buttons     { display:flex; flex-wrap:wrap; gap:12px; justify-content:center; margin-bottom:18px; }
.cta-urgency     { font-size:13px; color:rgba(255,255,255,0.4); margin-bottom:28px; }
.cta-trust-row   { display:flex; flex-wrap:wrap; gap:18px; justify-content:center; align-items:center; }
.cta-trust-item  { display:flex; align-items:center; gap:6px; font-size:12px; font-weight:500; color:rgba(255,255,255,0.6); }
.cta-trust-item .ti { color:var(--gold); font-size:13px; }

/* ============================================
   RESPONSIVE — HOMEPAGE
   ============================================ */
@media (max-width: 1024px) {
  .hero-inner            { grid-template-columns: 1fr; }
  .hero-photo-col        { display: none; }
  .hero-bg-overlay       { background: linear-gradient(105deg,rgba(0,26,56,0.96) 0%,rgba(0,26,56,0.88) 50%,rgba(0,26,56,0.6) 100%); }
  .emergency-grid        { grid-template-columns: repeat(2,1fr); }
  .benefits-grid         { grid-template-columns: 1fr 1fr; }
  .testimonials-grid     { grid-template-columns: 1fr 1fr; }
  .steps-grid            { grid-template-columns: 1fr; gap: 44px; }
  .steps-grid::before    { display: none; }
  .photos-grid           { grid-template-columns: 1fr 1fr; height: auto; }
  .photo-item            { height: 200px; }
}

@media (max-width: 768px) {
  .hero                  { padding-top: 130px; padding-bottom: 48px; }
  .hero::after           { height: 40px; }
  .how-it-works::before,
  .how-it-works::after   { height: 40px; }
  .hero-trust            { display: grid; grid-template-columns: 1fr 1fr; }
  .trust-item+.trust-item::before { display: none; }
  .emergency-grid        { grid-template-columns: 1fr; }
  .benefits-grid         { grid-template-columns: 1fr; }
  .testimonials-grid     { grid-template-columns: 1fr; }
  .photos-grid           { grid-template-columns: 1fr; }
  .photo-item            { height: 220px; }
  .cta-offer-box         { padding: 22px 18px; }
  .hero-buttons .btn-lg  { padding: 15px 24px; font-size: 16px; }
}
