/* Site components: header, nav, hero, buttons, cards, CTA bars, footer, forms, FAQ */

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: var(--fs-400);
  line-height: 1;
  padding: 1rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease-glass), box-shadow .2s var(--ease-glass), background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--cta);
  color: var(--cta-text);
  box-shadow: 0 10px 26px rgba(31, 88, 114, .35);
}
.btn--primary:hover { background: var(--cta-hover); color: #fff; }

.btn--ghost {
  background: var(--pane-strong);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--deep-800);
  border-color: var(--pane-border-soft);
  box-shadow: var(--shadow-pane);
}
.btn--ghost:hover { color: var(--deep-900); }

.btn--lg { padding: 1.15rem 2.1rem; font-size: var(--fs-500); }

/* --- Header -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--pane-strong);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--pane-border-soft);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; flex: none; }
.brand img { height: 40px; width: auto; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 1.4rem; list-style: none; padding: 0; align-items: center; }
.main-nav a {
  font-weight: 700;
  font-size: var(--fs-300);
  color: var(--deep-800);
  text-decoration: none;
  padding: .4rem 0;
}
.main-nav a:hover { color: var(--glass-600); }

.nav-item { position: relative; }
.nav-item > .submenu {
  display: none;
  position: absolute;
  top: 100%; left: -1rem;
  min-width: 280px;
  background: var(--pane-strong);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--pane-border-soft);
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-float);
  padding: .6rem;
  list-style: none;
  flex-direction: column;
  gap: 0;
}
@media (min-width: 921px) {
  /* Desktop only: hover/focus opens the dropdown. On mobile the .open class
     (tap accordion) controls it — otherwise focus-within would keep it open. */
  .nav-item:hover > .submenu, .nav-item:focus-within > .submenu { display: flex; }
}
.submenu a { display: block; padding: .55rem .8rem; border-radius: 8px; }
.submenu a:hover { background: var(--ice-100); }

.header-cta { white-space: nowrap; padding: .7rem 1.2rem; font-size: var(--fs-300); }
.header-call { white-space: nowrap; font-weight: 800; font-size: var(--fs-300); color: var(--deep-800); text-decoration: none; }
.header-call::before { content: "\260E"; margin-right: .35rem; color: var(--glass-600); }
.header-call:hover { color: var(--glass-600); }

/* Mobile nav */
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { width: 22px; height: 2.5px; background: var(--deep-900); border-radius: 2px; transition: transform .3s, opacity .3s; }

@media (max-width: 920px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h); left: 0; right: 0;
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(18px) saturate(1.5);
    backdrop-filter: blur(18px) saturate(1.5);
    border-bottom: 1px solid var(--pane-border-soft);
    box-shadow: var(--shadow-float);
    padding: var(--space-2) var(--space-3) var(--space-3);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { display: block; padding: .8rem 0; font-size: var(--fs-400); border-bottom: 1px solid var(--ice-100); }
  /* Submenus collapsed; tap a parent to expand (accordion) */
  .nav-item > .submenu { display: none; position: static; box-shadow: none; border: 0; background: none; padding: 0 0 .4rem 1rem; }
  .nav-item.open > .submenu { display: block; }
  .nav-item:has(> .submenu) > a { display: flex; justify-content: space-between; align-items: center; }
  .nav-item:has(> .submenu) > a::after { content: "⌄"; font-size: 1.15em; line-height: 1; transition: transform .2s ease; opacity: .6; }
  .nav-item.open > a::after { transform: rotate(180deg); }
  .header-cta { display: none; }
  .header-call { display: none; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* --- Mobile sticky CTA bar ------------------------------------------------ */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  background: var(--pane-strong);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--pane-border-soft);
  padding: .6rem var(--space-2) calc(.6rem + env(safe-area-inset-bottom));
  gap: .6rem;
}
.sticky-cta .btn { flex: 1; padding: .85rem 1rem; font-size: var(--fs-300); }
@media (max-width: 920px) {
  .sticky-cta { display: flex; }
  body { padding-bottom: 70px; }
}

/* --- Hero ----------------------------------------------------------------- */
.hero { padding-block: var(--space-5) var(--space-6); }
.hero-grid {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}
@media (min-width: 920px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; }
}
.hero h1 { margin-bottom: var(--space-2); }
.hero .lede { margin-bottom: var(--space-3); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; margin-bottom: var(--space-3); }
.hero-proof {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  font-size: var(--fs-300); color: var(--deep-700); font-weight: 600;
}
.hero-proof span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-proof svg { flex: none; }

.hero-pane-wrap { position: relative; }
.hero-pane-wrap .glass-pane { aspect-ratio: 4 / 3; }
.hero-pane-wrap .glass-switch {
  position: absolute;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

/* --- Full-bleed background hero ------------------------------------------- */
.hero--bg {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;                         /* full-bleed, edge to edge */
  height: clamp(420px, 78vh, 760px);   /* fits the screen, no scrolling */
  display: flex;
  align-items: center;
  padding-block: var(--space-4);
}
.hero--bg .hero-bg {
  position: absolute; inset: 0;
  border: 0; border-radius: 0; box-shadow: none;
  z-index: -2;
}
.hero--bg .hero-bg::after { content: none; }
/* both layers must fill the pane identically so clear & frosted crop the SAME */
.hero--bg .hero-bg > picture,
.hero--bg .hero-bg .pair-top { position: absolute; inset: 0; }
.hero--bg .hero-bg > img,
.hero--bg .hero-bg > picture img,
.hero--bg .hero-bg .pair-top img { width: 100%; height: 100%; object-fit: cover; }
/* light, even wash — keeps the photo bright and uniform across */
.hero--bg::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(8,15,26,.10);
  z-index: -1;
}
.hero-bg-inner { position: relative; width: 100%; }
/* copy sits directly on the photo, pushed toward the left edge — no card */
.hero--bg .hero-bg-inner { max-width: none; padding-inline: clamp(20px, 5vw, 80px); }
.hero-copy {
  max-width: 480px;
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.hero-copy .lede { font-size: var(--fs-300); margin-bottom: var(--space-2); }
.hero-copy h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); }
.hero-copy .hero-proof { font-size: var(--fs-200); }
/* white text + soft shadow for legibility over the image */
.hero--bg .eyebrow,
.hero--bg .hero-copy h1,
.hero--bg .hero-copy .lede,
.hero--bg .hero-copy .hero-proof {
  color: #fff;
  text-shadow: 0 1px 12px rgba(8,14,24,.6), 0 1px 3px rgba(8,14,24,.55);
}
.hero--bg .btn--ghost { color: #fff; border-color: rgba(255,255,255,.65); }
.hero--bg .btn--ghost:hover { background: rgba(255,255,255,.14); }
.hero--bg .glass-switch { position: absolute; right: 0; bottom: 0; z-index: 3; }
@media (max-width: 760px) {
  .hero--bg .glass-switch { position: static; margin-top: var(--space-3); }
}

/* --- Step cards ------------------------------------------------------------ */
.step-num {
  font-family: var(--font-display);
  font-size: var(--fs-700);
  font-weight: 700;
  color: var(--glass-500);
  line-height: 1;
  margin-bottom: var(--space-1);
}

/* --- Use-case / feature cards ---------------------------------------------- */
.card-img { border-radius: var(--radius-s); overflow: hidden; margin-bottom: var(--space-2); aspect-ratio: 16 / 10; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.glass-card h3 { margin-bottom: .4rem; }
.glass-card .more { font-weight: 700; font-size: var(--fs-300); }

/* --- Dark band (factory/spec section) --------------------------------------- */
.dark-band {
  background:
    radial-gradient(800px 400px at 80% 0%, rgba(71, 150, 189, .25) 0%, transparent 60%),
    var(--deep-900);
  color: var(--ice-100);
}
.dark-band h2, .dark-band h3 { color: #fff; }
.dark-band .lede, .dark-band p { color: var(--ice-200); }
.dark-band .glass-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.dark-band .glass-card h3 { color: var(--ice-100); }
.dark-band a { color: var(--ice-300); }

/* --- Badges / cert chips ------------------------------------------------------ */
.badge-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--fs-300); font-weight: 700;
  background: var(--pane-strong);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--pane-border-soft);
  border-radius: 999px;
  padding: .5rem 1rem;
  color: var(--deep-800);
}

/* --- City chips ------------------------------------------------------------------ */
.city-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
  max-width: 60rem;
  margin-inline: auto;
}
.city-chips .badge { text-decoration: none; transition: box-shadow .2s var(--ease-glass), transform .2s; }
.city-chips .badge:hover { box-shadow: var(--shadow-float); transform: translateY(-2px); color: var(--glass-700); }
.badge--cta { border-color: var(--glass-500); color: var(--glass-700); }

/* --- Contact band --------------------------------------------------------------- */
.contact-band { padding-block: var(--space-6); }
.contact-band .glass-card { padding: var(--space-4); }
.contact-split { display: grid; gap: var(--space-4); }
@media (min-width: 860px) { .contact-split { grid-template-columns: 1fr 1.1fr; } }
.contact-list { list-style: none; padding: 0; display: grid; gap: var(--space-2); font-weight: 600; }
.contact-list a { text-decoration: none; font-weight: 800; color: var(--deep-900); font-size: var(--fs-500); }
.contact-list .sub { display: block; font-size: var(--fs-300); color: var(--deep-700); font-weight: 500; }

.form-frame {
  width: 100%;
  border: 0;
  border-radius: var(--radius-m);
  background: var(--frost-0);
  /* Heights tuned to fit the whole GHL form (incl. reCAPTCHA on the live
     domain) so it never shows an internal scrollbar. Narrow phones stack the
     fields to 1 column (taller); wider screens use 2 columns (shorter). */
  min-height: 1000px;
}
@media (min-width: 530px) {
  .form-frame { min-height: 780px; }
}

/* --- Quote popup modal ---------------------------------------------------- */
.quote-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-start; justify-content: center; padding: var(--space-3); }
.quote-modal[hidden] { display: none; }
.quote-modal-overlay { position: absolute; inset: 0; background: rgba(12, 22, 32, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.quote-modal-box {
  position: relative; z-index: 1; width: 100%; max-width: 540px;
  max-height: 92vh; overflow: auto; margin: auto;
  background: #fff; border-radius: var(--radius-l, 20px);
  box-shadow: var(--shadow-float); padding: var(--space-3) var(--space-3) var(--space-2);
}
.quote-modal-title { margin: .15rem 0 var(--space-2); }
.quote-modal-close {
  position: absolute; top: .4rem; right: .55rem; z-index: 2;
  width: 2.2rem; height: 2.2rem; display: grid; place-items: center;
  background: none; border: 0; font-size: 1.9rem; line-height: 1; cursor: pointer;
  color: var(--deep-700); border-radius: 50%;
}
.quote-modal-close:hover { background: var(--ice-100); }
.quote-modal-frame { border-radius: var(--radius-s); }
body.modal-open { overflow: hidden; }

/* Reviews widget: full-width row under the contact form, height-contained so a
   long review list doesn't run down the whole page. */
.contact-reviews { margin-top: var(--space-3); }
.contact-reviews .reviews-widget { border-radius: var(--radius-s); }
.contact-reviews .lc_reviews_widget { display: block; }
@media (max-width: 920px) {
  /* On phones the cards stack taller — keep it contained + scrollable. */
  .contact-reviews .reviews-widget { max-height: 440px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
}

/* --- Hide selected sections on mobile only -------------------------------- */
@media (max-width: 920px) {
  #what-we-do, #how-it-works, #specs { display: none; }
  /* Home only: drop the inline contact FORM on phones (the popup quote form,
     sticky "Get a Free Quote", and tap-to-call cover conversion) — but keep the
     address, map, and reviews widget for social proof. */
  body.is-home .contact-split > div:last-child { display: none; }
}

/* Google Business map + reviews under the contact details */
.contact-map { margin-top: var(--space-3); }
.contact-map iframe {
  width: 100%;
  height: 200px;
  border: 0;
  border-radius: var(--radius-m);
  display: block;
}
.map-cta {
  display: inline-block;
  margin-top: var(--space-1);
  font-weight: 600;
  font-size: var(--fs-300);
}

/* Home two-column: content (left) + sticky projects rail (right) */
.home-body { max-width: 1300px; margin-inline: auto; }
@media (min-width: 1040px) {
  .home-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: var(--space-4);
    align-items: start;
    padding-inline: var(--space-3);
  }
  .home-body-main { min-width: 0; }
  .home-body-main > section { border-radius: var(--radius-l, 20px); overflow: hidden; }
  /* Rail scrolls with the page (a long list of installs), not pinned. */
  .home-rail { align-self: start; }
}
.home-rail-inner { display: grid; gap: var(--space-2); }
.home-rail .eyebrow { margin-bottom: .1rem; }
.rail-card {
  display: block; text-decoration: none; color: inherit;
  border-radius: var(--radius-m); overflow: hidden;
  background: var(--frost-0); border: 1px solid rgba(0, 0, 0, .08);
  transition: border-color .15s ease, transform .15s ease;
}
.rail-card:hover { border-color: rgba(0, 0, 0, .22); transform: translateY(-2px); }
.rail-card-img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.rail-card-title { display: block; padding: .5rem .7rem; font-weight: 700; font-size: var(--fs-300); color: var(--deep-900); }
.rail-card--news .rail-card-title { font-size: var(--fs-200); line-height: 1.35; }
.rail-news-src { display: block; font-size: 0.66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--glass-600); margin-bottom: .2rem; }
@media (max-width: 1039px) {
  .home-rail { margin: var(--space-4) auto 0; max-width: 1100px; padding-inline: var(--space-3); }
  .home-rail-inner { grid-template-columns: 1fr 1fr 1fr; }
  .home-rail .eyebrow, .home-rail .btn { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .home-rail-inner { grid-template-columns: 1fr 1fr; } }

/* Let the interactive PDLC animation break out of prose to full width */
.prose .pdlc-anim-section { margin-inline: calc(50% - 50vw); }

/* Custom PDLC liquid-crystal animation (how-smart-glass-works only) */
.crystal-demo { max-width: 760px; margin: var(--space-4) auto 0; }
.cd-stage {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-l, 20px);
  overflow: hidden; border: 1px solid rgba(0, 0, 0, .12);
  box-shadow: 0 22px 55px -22px rgba(0, 0, 0, .45);
}
.cd-scene { position: absolute; inset: 0;
  background: linear-gradient(180deg, #ffcaa0 0%, #f3a06a 22%, #8fa9c8 52%, #4a6178 78%, #2b3a4d 100%); }
.cd-scene::after { content: ""; position: absolute; inset: auto 0 0 0; height: 42%;
  background: repeating-linear-gradient(90deg, #1d2738 0 22px, #25324a 22px 30px, #1a2333 30px 58px, #2b3a55 58px 64px);
  clip-path: polygon(0 42%,6% 42%,6% 18%,12% 18%,12% 46%,20% 46%,20% 10%,27% 10%,27% 52%,36% 52%,36% 26%,44% 26%,44% 8%,52% 8%,52% 50%,61% 50%,61% 22%,69% 22%,69% 40%,78% 40%,78% 14%,86% 14%,86% 48%,94% 48%,94% 28%,100% 28%,100% 100%,0 100%); }
.cd-stage::before { content: ""; position: absolute; inset: 0; z-index: 3;
  background: rgba(244, 248, 251, .8); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  transition: opacity .7s ease, backdrop-filter .7s ease; pointer-events: none; }
.crystal-demo.is-on .cd-stage::before { opacity: 0; backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); }
.cd-crystals { position: absolute; inset: 9% 4%; z-index: 4;
  display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 1fr; place-items: center; gap: 2px; }
.cd-rod { width: 4px; height: 58%; border-radius: 3px; background: rgba(255, 255, 255, .85);
  box-shadow: 0 0 4px rgba(120, 180, 255, .5); transform: rotate(var(--a));
  transition: transform .6s cubic-bezier(.7, 0, .2, 1), background .5s, box-shadow .5s; transition-delay: var(--d); }
.crystal-demo.is-on .cd-rod { transform: rotate(0deg); background: rgba(155, 212, 255, .97); box-shadow: 0 0 9px rgba(120, 190, 255, .95); }
.cd-electrode { position: absolute; left: 0; right: 0; height: 7%; z-index: 5;
  display: flex; align-items: center; justify-content: center; font-size: .6rem; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0);
  background: linear-gradient(180deg, rgba(120, 190, 255, 0), rgba(120, 190, 255, .22));
  transition: box-shadow .5s, color .5s, background .5s; }
.cd-electrode--top { top: 0; }
.cd-electrode--bottom { bottom: 0; background: linear-gradient(0deg, rgba(120, 190, 255, 0), rgba(120, 190, 255, .22)); }
.crystal-demo.is-on .cd-electrode { box-shadow: 0 0 20px 2px rgba(90, 180, 255, .85); color: rgba(255, 255, 255, .92);
  background: linear-gradient(180deg, rgba(120, 200, 255, .12), rgba(90, 180, 255, .5)); }
.cd-volt { position: absolute; top: 10px; right: 10px; z-index: 6; display: inline-flex; align-items: center; gap: .3rem;
  padding: .3rem .6rem; border-radius: 999px; background: rgba(20, 28, 40, .55); color: rgba(255, 255, 255, .5);
  font-size: .72rem; font-weight: 700; transition: color .4s, background .4s, box-shadow .4s; }
.cd-bolt { opacity: .4; transition: opacity .3s; }
.crystal-demo.is-on .cd-volt { background: rgba(40, 120, 220, .9); color: #fff; box-shadow: 0 0 16px rgba(90, 180, 255, .85); }
.crystal-demo.is-on .cd-bolt { opacity: 1; }
.cd-state { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 6; text-align: center; margin: 0;
  color: #fff; font-size: var(--fs-300); text-shadow: 0 1px 10px rgba(0, 0, 0, .7); }
.cd-state-strong { color: #ffd9a8; }
.crystal-demo.is-on .cd-state-strong { color: #aee0ff; }
.cd-btn { display: block; margin: var(--space-3) auto 0; padding: .7rem 1.5rem; border: 0; border-radius: 999px;
  cursor: pointer; background: var(--deep-900, #14233a); color: #fff; font-weight: 700; font-size: var(--fs-400);
  transition: transform .1s, box-shadow .2s; }
.cd-btn:hover { box-shadow: 0 8px 26px -8px rgba(40, 120, 220, .75); }
.cd-btn:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) { .cd-rod, .cd-stage::before { transition: none; } }

/* Alternating image/text feature rows (zigzag) */
.feature-rows { display: grid; gap: var(--space-5); margin: var(--space-5) 0; }
.feature-row { display: grid; gap: var(--space-3); align-items: center; }
@media (min-width: 820px) {
  .feature-row { grid-template-columns: 1fr 1fr; gap: var(--space-5); }
  .feature-row:nth-child(even) .feature-media { order: -1; }
}
.feature-media { margin: 0; }
.feature-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-l, 18px);
}
/* Diagrams: show the whole illustration (don't crop) on a light panel */
.feature-media.is-diagram img {
  object-fit: contain;
  background: #eef4f8;
  padding: var(--space-3);
}
.feature-text h3 { font-size: var(--fs-600, 1.6rem); margin-bottom: var(--space-1); }
.feature-text p { color: var(--deep-700); }

/* Page hero image (text-only money/city pages) */
.page-hero {
  margin: var(--space-3) 0 var(--space-4);
  border-radius: var(--radius-l, 18px);
  overflow: hidden;
}
.page-hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
}

/* Trust bar — key credibility facts (crawlable + AI-citable) */
.trust-bar {
  list-style: none;
  padding: 0;
  margin: var(--space-3) auto 0;
  max-width: 62rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1.4rem;
  font-size: var(--fs-300);
  color: var(--deep-700);
}
.trust-bar li { display: flex; align-items: center; gap: .4rem; }
.trust-bar li + li::before { content: "·"; margin-right: 1.4rem; color: var(--glass-400, #9bb); }
.trust-bar strong { color: var(--deep-900); }

/* Crawlable Google rating line (complements the live widget) */
.reviews-text { margin: 0 0 var(--space-2); font-size: var(--fs-300); color: var(--deep-700); }
.reviews-text strong { color: var(--deep-900); }

/* Google rating badge (data in src/_data/reviews.json) */
.reviews-badge {
  margin-top: var(--space-2);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem .85rem;
  background: var(--frost-0);
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: var(--radius-m);
  text-decoration: none;
  color: var(--deep-900);
  font-weight: 600;
  line-height: 1;
}
.reviews-badge:hover { border-color: rgba(0, 0, 0, .18); }
.reviews-badge-stars { color: #fbbc04; letter-spacing: 1px; font-size: var(--fs-400); }
.reviews-badge-num strong { font-size: var(--fs-500); }
.reviews-badge-count { font-weight: 500; }

/* --- FAQ ---------------------------------------------------------------------- */
.faq-list { display: grid; gap: var(--space-2); max-width: 820px; margin-inline: auto; }
.faq-item { padding: 0; overflow: hidden; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: var(--space-3);
  font-weight: 800;
  font-size: var(--fs-400);
  color: var(--deep-900);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--glass-500);
  transition: transform .3s var(--ease-glass);
  flex: none;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 var(--space-3) var(--space-3); color: var(--deep-700); }

/* --- Footer ---------------------------------------------------------------------- */
.site-footer {
  background: var(--deep-900);
  color: var(--ice-200);
  padding-block: var(--space-5) var(--space-4);
  margin-top: var(--space-6);
}
.site-footer a { color: var(--ice-200); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: var(--space-4); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand img { height: 44px; margin-bottom: var(--space-2); }
.footer-col h4 {
  color: #fff; font-family: var(--font-body);
  font-size: var(--fs-200); font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: .55rem; font-size: var(--fs-300); }
.footer-areas {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255,255,255,.12);
}
.footer-areas h4 {
  color: #fff; font-family: var(--font-body);
  font-size: var(--fs-200); font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: var(--space-1);
}
.footer-area-links { font-size: var(--fs-200); color: var(--ice-300); line-height: 2; max-width: none; }
.footer-area-links a { color: var(--ice-300); }
.footer-area-links a:hover { color: #fff; }

.footer-socials { display: flex; gap: .7rem; margin-top: var(--space-2); }
.soc {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  transition: transform .2s var(--ease-glass), box-shadow .2s;
}
.soc:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,.35); }
.soc--fb { background: #1877F2; }
.soc--ig { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.soc--tt { background: #010101; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.soc--yt { background: #FF0000; }
.soc--yelp { background: #D32323; }

.footer-meta {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  justify-content: space-between;
  font-size: var(--fs-200); color: var(--ice-300);
}

/* --- Transformer spec table (manufacturer style) ------------------------------------- */
.tx-table-wrap {
  overflow-x: auto;
  background: var(--frost-0);
  border: 1px solid var(--pane-border-soft);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-pane);
  margin-block: var(--space-3);
}
.tx-table { min-width: 760px; font-size: var(--fs-300); }
.tx-table th {
  background: var(--deep-800);
  color: var(--ice-100);
  font-size: var(--fs-200);
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tx-table td { white-space: nowrap; }
.tx-table tbody tr:nth-child(even) { background: rgba(227, 241, 248, 0.35); }
.tx-table tbody tr:hover { background: var(--ice-100); }
.tx-row--dimmable td:first-child { border-left: 3px solid var(--glass-500); }
.tx-note { font-size: var(--fs-200); color: var(--glass-600); font-weight: 600; }
.tx-footnotes { font-size: var(--fs-200); color: var(--deep-700); }
.tx-photo-strip { display: flex; gap: var(--space-2); justify-content: center; }
.tx-photo-strip figure { padding: var(--space-2); max-width: 200px; }
.tx-photo-strip img { max-height: 200px; width: auto; margin-inline: auto; }
.tx-connections { max-width: 460px; justify-self: center; }

/* Native SVG diagrams (site design language) */
.svg-diagram svg { width: 100%; height: auto; display: block; }
.wd-label, .cg-label { font-family: var(--font-body); font-size: 15px; font-weight: 800; fill: var(--deep-800); }
.wd-sub, .cg-sub { font-family: var(--font-body); font-size: 12.5px; font-weight: 600; fill: var(--deep-700); }
.wd-sub-light { font-family: var(--font-body); font-size: 12px; font-weight: 600; fill: #cfe6f2; }
.wd-unit { font-family: var(--font-body); font-size: 11px; font-weight: 800; letter-spacing: .18em; fill: #cfe6f2; }
.wd-volts { font-family: var(--font-display); font-size: 17px; font-weight: 700; fill: #ffffff; }
.cg-center { font-family: var(--font-body); font-size: 12px; font-weight: 800; letter-spacing: .14em; fill: var(--glass-700); }
.cg-footer { font-family: var(--font-body); font-size: 13.5px; font-weight: 600; fill: var(--deep-700); }

/* --- Feature rows: text beside matching image (product pages) ----------------------- */
.feature-row {
  display: grid;
  gap: var(--space-3);
  align-items: center;
  margin-block: var(--space-3);
}
@media (min-width: 860px) {
  .feature-row { grid-template-columns: 1fr 1fr; gap: var(--space-4); }
  .feature-row--flip > :first-child { order: 2; }
}
.feature-row > * { min-width: 0; }
.feature-row figure { margin: 0; }
.feature-row .prose > :first-child, .feature-row h2:first-child, .feature-row h3:first-child { margin-top: 0; }

.figure-caption {
  font-size: var(--fs-200);
  color: var(--deep-700);
  padding-top: .6rem;
}

/* --- Stat cards: numeric highlights that break up long prose ------------------------ */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
  margin-block: var(--space-4);
}
@media (min-width: 720px) {
  .stat-cards { grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
}
.stat-card {
  background: var(--pane);
  -webkit-backdrop-filter: blur(var(--pane-blur)) saturate(1.4);
  backdrop-filter: blur(var(--pane-blur)) saturate(1.4);
  border: 1px solid var(--pane-border-soft);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-pane);
  padding: var(--space-3) var(--space-2);
  text-align: center;
}
.stat-card .stat-num {
  display: block;
  font-weight: 800;
  font-size: var(--fs-700);
  line-height: 1;
  color: var(--glass-600);
  letter-spacing: -0.01em;
}
.stat-card .stat-label {
  display: block;
  margin-top: .5rem;
  font-size: var(--fs-300);
  color: var(--deep-700);
  line-height: 1.35;
}

/* --- Pull quote: a line lifted from the copy, sized up to break the wall ------------ */
.pull-quote {
  margin-block: var(--space-4);
  padding: var(--space-2) 0 var(--space-2) var(--space-3);
  border-left: 4px solid var(--glass-500);
  font-size: var(--fs-600);
  line-height: 1.4;
  font-weight: 600;
  color: var(--glass-700);
}
.pull-quote cite {
  display: block;
  margin-top: .7rem;
  font-size: var(--fs-300);
  font-weight: 600;
  font-style: normal;
  color: var(--deep-700);
}

/* --- Project page: text + media side by side --------------------------------------- */
.project-layout {
  display: grid;
  gap: var(--space-4);
  align-items: start;
}
@media (min-width: 920px) {
  .project-layout { grid-template-columns: 1.15fr 1fr; }
  .project-media { position: sticky; top: calc(var(--header-h) + 16px); }
}
.project-layout > * { min-width: 0; }
/* natural aspect ratio — no mid-photo cropping; cap only extreme heights */
.project-media .glass-pane { margin-bottom: var(--space-2); cursor: pointer; }
.project-media .glass-pane > picture img,
.project-media .glass-pane > img {
  width: 100%;
  height: auto;
  max-height: 76vh;
  object-fit: cover;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
}
.gallery-item {
  margin: 0;
  border-radius: var(--radius-s);
  overflow: hidden;
  border: 1px solid var(--pane-border-soft);
  box-shadow: var(--shadow-pane);
  background: var(--frost-0);
  transition: transform .25s var(--ease-glass), box-shadow .25s var(--ease-glass);
}
.gallery-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-float); }
.gallery-item a { display: block; aspect-ratio: 4 / 5; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-caption {
  font-size: var(--fs-200);
  color: var(--deep-700);
  padding: .55rem .75rem .7rem;
  line-height: 1.45;
}

.project-video { padding: var(--space-2); margin: 0 0 var(--space-2); }
.project-video video { width: 100%; border-radius: var(--radius-s); display: block; }

/* --- Breadcrumb ------------------------------------------------------------------- */
.crumbs { font-size: var(--fs-200); color: var(--deep-700); padding-top: var(--space-2); }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs li + li::before { content: "›"; margin-right: .4rem; color: var(--ice-400); }
.crumbs a { color: var(--deep-700); }

/* --- Prose (markdown page bodies) ---------------------------------------------------- */
.prose h2 { margin: var(--space-4) 0 var(--space-2); }
.prose h3 { margin: var(--space-3) 0 var(--space-1); }
.prose p, .prose ul, .prose ol { margin-bottom: var(--space-2); }
.prose img { border-radius: var(--radius-m); box-shadow: var(--shadow-pane); margin-block: var(--space-3); }
.prose table { margin-block: var(--space-3); }
