/*
Theme Name: AZ Dave's Electric
Theme URI: https://azdaveselectric.com
Author: AZ Dave's Electric
Description: Custom theme for AZ Dave's Electric, licensed electrical contractors serving the Greater Phoenix Valley.
Version: 1.0
Text Domain: daves-electric
*/

:root {
  --black: #0a0a0a;
  --black-soft: #151515;
  --charcoal: #1e1e1e;
  --gold: #c9a227;
  --gold-light: #e6c65c;
  --gold-dark: #9c7d1a;
  --white: #ffffff;
  --off-white: #f6f4ef;
  --gray: #8a8a8a;
  --gray-light: #d8d5cd;
  --red-accent: #a8272c;
  --radius: 6px;
  --max-width: 1180px;
  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--off-white);
  background: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--white);
  margin: 0 0 0.5em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--gray-light); }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
  font-weight: 500;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--black); box-shadow: 0 0 0 rgba(201,162,39,0); }
.btn-gold:hover { background: var(--gold-light); box-shadow: 0 8px 22px rgba(201,162,39,0.35); }
.btn-outline { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn-outline:hover { background: var(--gold); color: var(--black); box-shadow: 0 8px 22px rgba(201,162,39,0.25); }

/* ===== Header ===== */
/* The top-strip banner and the header must stick together as one unit —
   real mobile browsers (unlike desktop devtools emulation) dynamically
   resize the viewport as their address bar collapses on scroll, which can
   make two separately-sticky siblings visually decouple and overlap. */
.site-header-sticky {
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header {
  background: rgba(10,10,10,0.96);
  border-bottom: 1px solid rgba(201,162,39,0.25);
  backdrop-filter: blur(6px);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  border-bottom-color: rgba(201,162,39,0.45);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 20px;
  transition: padding 0.25s ease;
}
.is-scrolled .header-inner { padding: 9px 24px; }
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-branding img { height: 58px; width: auto; transition: height 0.25s ease; }
.is-scrolled .site-branding img { height: 44px; }
.site-branding .brand-text { font-family: var(--font-head); text-transform: uppercase; }
.site-branding .brand-text .name { color: var(--white); font-size: 1.15rem; display: block; letter-spacing: 0.04em; }
.site-branding .brand-text .tag { color: var(--gold); font-size: 0.68rem; letter-spacing: 0.14em; }

.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--gray-light);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.primary-nav a { position: relative; transition: color 0.2s ease; }
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.primary-nav a:hover, .primary-nav .current-menu-item a { color: var(--gold); border-color: transparent; }
.primary-nav a:hover::after, .primary-nav .current-menu-item a::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; gap: 16px; }
.header-phone { text-align: right; }
.header-phone .label { display: block; font-size: 0.68rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.1em; }
.header-phone a { font-family: var(--font-head); font-size: 1.1rem; color: var(--gold); }

.header-call-icon {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  flex-shrink: 0;
}
.header-call-icon svg { width: 17px; height: 17px; }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--gold);
  border-radius: 50%;
  padding: 0;
}
.menu-toggle-bars { display: flex; flex-direction: column; gap: 4px; width: 16px; }
.menu-toggle-bars span { display: block; height: 2px; width: 100%; background: var(--gold); transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 940px) {
  /* backdrop-filter on .site-header makes it a new containing block for any
     position:fixed descendant (like .primary-nav), which traps the "fixed"
     nav inside the header's own box instead of the viewport. Disable it here
     and drive the nav's top offset from a JS-measured custom property
     instead of a guessed pixel value, since header height varies (top-strip
     can wrap to 2 lines on narrow screens, and the header itself shrinks
     once scrolled). */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(10,10,10,0.98); }
  .primary-nav { position: fixed; inset: var(--header-h, 90px) 0 0 0; background: var(--black); padding: 20px 24px; transform: translateY(-150%); transition: transform .25s ease; overflow-y: auto; z-index: 150; }
  .primary-nav.open { transform: translateY(0); }
  .primary-nav ul { flex-direction: column; gap: 4px; }
  .primary-nav a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .menu-toggle { display: flex; }
  .header-phone { display: none; }
  .header-cta .btn { display: none; }
  .header-call-icon { display: flex; }
  .header-cta { gap: 10px; }
}

/* Services dropdown (desktop: hover, mobile/touch: tap-to-toggle via JS) */
.menu-item-has-children { position: relative; }
.menu-item-has-children > a { display: inline-flex; align-items: center; gap: 4px; }
.menu-item-has-children > a::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease;
  margin-top: -3px;
}
.menu-item-has-children.is-open > a::before,
.menu-item-has-children:hover > a::before { transform: rotate(-135deg); margin-top: 3px; }

.primary-nav .sub-menu {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  display: none;
}
.menu-item-has-children.is-open > .sub-menu,
.menu-item-has-children:hover > .sub-menu { display: block; }

@media (min-width: 941px) {
  .primary-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: rgba(10,10,10,0.98);
    border: 1px solid rgba(201,162,39,0.25);
    border-radius: var(--radius);
    box-shadow: 0 12px 28px rgba(0,0,0,0.4);
    margin-top: 8px;
    z-index: 200;
  }
  .sub-menu li { width: 100%; }
  .sub-menu a {
    display: block;
    padding: 11px 20px;
    white-space: nowrap;
    font-size: 0.8rem;
    border-bottom: none !important;
  }
  .sub-menu a::after { display: none; }
  .sub-menu a:hover { background: rgba(201,162,39,0.08); }
}
@media (max-width: 940px) {
  .sub-menu { padding-left: 16px; }
  .sub-menu a { font-size: 0.8rem; padding: 10px 0; }
}

/* ===== Top strip ===== */
.top-strip {
  background: var(--gold);
  color: var(--black);
  font-size: 0.78rem;
  text-align: center;
  padding: 7px 16px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 90px 0 70px;
  background:
    radial-gradient(circle at 20% 20%, rgba(201,162,39,0.14), transparent 45%),
    linear-gradient(100deg, rgba(10,10,10,0.94) 45%, rgba(10,10,10,0.65) 100%),
    url("assets/img/hero-electrician.jpg") right center / cover no-repeat;
  border-bottom: 1px solid rgba(201,162,39,0.15);
}
.hero .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 14px; font-size: 1rem; }
.hero .eyebrow { color: var(--gold); font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.85rem; margin-bottom: 10px; }
.hero p.lede { max-width: 640px; font-size: 1.05rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 30px; }
.hero-badges span {
  border: 1px solid rgba(201,162,39,0.4);
  color: var(--gray-light);
  font-size: 0.8rem;
  padding: 8px 14px;
  border-radius: 999px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.no-call-out {
  background: var(--black-soft);
  border-top: 1px solid rgba(201,162,39,0.15);
  border-bottom: 1px solid rgba(201,162,39,0.15);
  color: var(--gray);
  text-align: center;
  padding: 12px 20px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.no-call-out strong { color: var(--gold); }

/* Responsive two-column split layouts (hero+form, content+form, text+image) */
.two-col-split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 50px;
  align-items: start;
}
.two-col-split.is-centered { align-items: center; }
.two-col-split.is-narrow { grid-template-columns: 1.1fr 0.9fr; }
@media (max-width: 860px) {
  .two-col-split { grid-template-columns: 1fr; }
}

/* ===== Sections ===== */
section { padding: 76px 0; }
.section-light { background: var(--off-white); color: #4a4a45; }
.section-light h2, .section-light h1 { color: var(--black); }
.section-light p, .section-light li { color: #4a4a45; }
.section-light strong { color: var(--black); }
.section-dark { background: var(--black); }
.section-soft { background: var(--black-soft); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head .kicker { color: var(--gold-dark); font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; }
.section-dark .section-head .kicker { color: var(--gold); }

/* Light section overrides for readability */
.section-light h3 { color: var(--black); }
.section-light .card { background: #fff; border-color: rgba(0,0,0,0.08); box-shadow: 0 2px 14px rgba(0,0,0,0.05); }
.section-light .card:hover { border-color: var(--gold); box-shadow: 0 10px 24px rgba(0,0,0,0.08); }
.section-light .card .icon { color: var(--gold-dark); }
.section-light .offer-card { background: #fff; border-color: rgba(0,0,0,0.1); }
.section-light .offer-card .amount { color: var(--gold-dark); }
.section-light .contact-card { background: #fff; border-color: rgba(0,0,0,0.08); }
.section-light .contact-card .icon { color: var(--gold-dark); }
.section-light .contact-card a, .section-light .contact-card address { color: var(--gold-dark); }
.section-light .financing-box { background: #fff; border-color: rgba(0,0,0,0.08); }
.section-light .financing-box li { color: #4a4a45; }
.section-light .area-list span { background: #fff; border-color: rgba(0,0,0,0.1); color: #4a4a45; }
.section-light .why-item .icon { color: var(--gold-dark); }

/* ===== Grids & Cards ===== */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--charcoal);
  border: 1px solid rgba(201,162,39,0.18);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--gold); transform: translateY(-4px); }
.icon svg { width: 34px; height: 34px; }
.card .icon { color: var(--gold); margin-bottom: 16px; }
.card .icon svg { width: 34px; height: 34px; }
.card h3 { margin-bottom: 10px; }
.card a.learn-more { color: var(--gold); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; display: inline-block; margin-top: 10px; }

/* Photo service cards */
.photo-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: flex-end;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.photo-card:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(0,0,0,0.3); }
.photo-card .photo-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
.photo-card:hover .photo-card-bg { transform: scale(1.08); }
.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0) 35%, rgba(10,10,10,0.88) 100%);
  transition: background 0.3s ease;
}
.photo-card:hover::after { background: linear-gradient(180deg, rgba(10,10,10,0.05) 25%, rgba(10,10,10,0.92) 100%); }
.photo-card .photo-card-body {
  position: relative;
  z-index: 2;
  padding: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.photo-card h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.25;
}
.photo-card .learn-more-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 9px 14px;
  border-radius: 5px;
  white-space: nowrap;
}
.photo-card .learn-more-btn { transition: background 0.2s ease, transform 0.2s ease; }
.photo-card:hover .learn-more-btn { transform: translateX(2px); }
.photo-card .learn-more-btn:hover { background: var(--gold-light); }

/* Scroll-reveal (only hides content once JS confirms it can reveal it again) */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger .reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger .reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger .reveal:nth-child(6) { transition-delay: 0.4s; }
.reveal-stagger .reveal:nth-child(n+7) { transition-delay: 0.46s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Testimonials */
.testimonial-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
  padding: 30px 28px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(0,0,0,0.08); }
.testimonial-card .quote-mark {
  font-family: Georgia, serif;
  font-size: 3.2rem;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}
.testimonial-card .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 12px; font-size: 0.9rem; }
.testimonial-card p.quote { color: #4a4a45; font-style: italic; }
.testimonial-card .author { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.testimonial-card .avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--black);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 0.95rem;
  flex-shrink: 0;
}
.testimonial-card .author-name { font-family: var(--font-head); text-transform: uppercase; font-size: 0.85rem; color: var(--black); letter-spacing: 0.02em; }
.testimonial-card .author-loc { font-size: 0.78rem; color: var(--gray); }

/* Why-choose photo split */
.why-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--black-soft);
  border: 1px solid rgba(201,162,39,0.2);
}
.why-split .why-photo { position: relative; min-height: 420px; background-size: cover; background-position: center; }
.why-split .why-photo::after { content:""; position:absolute; inset:0; background: linear-gradient(0deg, rgba(10,10,10,0.5), transparent 40%); }
.why-split .why-content { padding: 48px 44px; }
.why-checklist { list-style: none; padding: 0; margin: 26px 0 34px; }
.why-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: var(--gray-light);
}
.why-checklist li:last-child { border-bottom: none; }
.why-checklist .check {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(201,162,39,0.15);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
}
.why-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-stats .stat-num { font-family: var(--font-head); color: var(--gold); font-size: 2.1rem; }
.why-stats .stat-label { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray); }
@media (max-width: 860px) {
  .why-split { grid-template-columns: 1fr; }
  .why-split .why-photo { min-height: 260px; }
  .why-split .why-content { padding: 36px 26px; }
}

/* Offer cards */
.offer-card {
  background: var(--black-soft);
  border: 1px solid rgba(201,162,39,0.25);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
}
.offer-card .amount { font-family: var(--font-head); color: var(--gold); font-size: 2.2rem; margin: 10px 0; }

/* Why choose */
.why-item { text-align: center; padding: 10px; }
.why-item .icon { color: var(--gold); margin-bottom: 14px; }
.why-item .icon svg { width: 40px; height: 40px; margin: 0 auto; }

/* Service areas */
.area-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.area-list span {
  background: var(--charcoal);
  border: 1px solid rgba(201,162,39,0.2);
  color: var(--gray-light);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
}

/* CTA banner */
.cta-banner {
  background:
    linear-gradient(120deg, rgba(10,10,10,0.92), rgba(10,10,10,0.82)),
    url("assets/img/cta-electrician.jpg") center 30% / cover no-repeat;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  text-align: center;
  padding: 60px 24px;
}
.cta-banner .phone-link { font-family: var(--font-head); font-size: 2rem; color: var(--gold); }

/* FAQ accordion */
.faq-item { border-bottom: 1px solid rgba(201,162,39,0.2); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  color: var(--white);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1rem;
  padding: 20px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.faq-q .plus { color: var(--gold); font-size: 1.4rem; transition: transform .2s ease; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a-inner { padding: 0 4px 20px; color: var(--gray-light); }
.section-light .faq-q { color: var(--black); }
.section-light .faq-item { border-color: rgba(0,0,0,0.12); }
.section-light .faq-a-inner { color: #4a4a45; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--charcoal); border: 1px solid rgba(201,162,39,0.2); border-radius: var(--radius); padding: 30px; text-align: center; }
.contact-card .icon { color: var(--gold); margin-bottom: 14px; }
.contact-card .icon svg { width: 32px; height: 32px; margin: 0 auto; }
.contact-card a, .contact-card address { color: var(--gold); font-style: normal; }

/* Lead form */
.lead-form { background: var(--black-soft); border: 1px solid rgba(201,162,39,0.25); border-radius: var(--radius); padding: 30px; max-width: 460px; }
.lead-form label { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray); margin: 14px 0 6px; }
.lead-form select, .lead-form input, .lead-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.15);
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
}
.lead-form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.75rem; color: var(--gray); margin-top: 16px; }
.lead-form .consent input { width: auto; margin-top: 3px; }
.lead-form button { width: 100%; margin-top: 18px; justify-content: center; }

/* Footer */
.site-footer { background: var(--black-soft); border-top: 1px solid rgba(201,162,39,0.2); padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--gold); font-size: 0.85rem; letter-spacing: 0.08em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--gray-light); font-size: 0.9rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; text-align: center; color: var(--gray); font-size: 0.78rem; }
.footer-license { color: var(--gray); font-size: 0.78rem; margin-top: 6px; }

/* Page/default content */
.page-hero {
  position: relative;
  background:
    linear-gradient(100deg, rgba(10,10,10,0.92) 40%, rgba(10,10,10,0.72) 100%),
    url("assets/img/hero-electrician.jpg") center 30% / cover no-repeat;
  padding: 70px 0;
  border-bottom: 1px solid rgba(201,162,39,0.25);
  text-align: center;
}
.page-hero .breadcrumb { color: var(--gold); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }

/* Lead form keeps its own dark-card text colors regardless of surrounding section */
.lead-form h3, .section-light .lead-form h3 { color: var(--white); }
.lead-form > p, .section-light .lead-form > p { color: var(--gray-light); }
.lead-form .consent span, .section-light .lead-form .consent span { color: var(--gray); }
.entry-content { max-width: 820px; margin: 0 auto; padding: 60px 24px; }
.entry-content h2 { margin-top: 1.4em; }

/* Our Work showcase gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .gallery-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(10,10,10,0) 0%, rgba(10,10,10,0.85) 100%);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.gallery-item:hover .gallery-cap { opacity: 1; transform: translateY(0); }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }

/* Financing box */
.financing-box { background: var(--charcoal); border: 1px solid rgba(201,162,39,0.25); border-radius: var(--radius); padding: 34px; }
.financing-box ul { padding-left: 20px; }
.financing-box li { margin-bottom: 8px; color: var(--gray-light); }
