/* ==========================================================================
   HyTech Roofing Solutions — Master Stylesheet
   Glass morphism · Dark blue-gray theme · Blue + Yellow accents
   ========================================================================== */

/* --- View Transitions API ----------------------------------------------- */
/* Chrome/Edge/Safari 18+: auto-fade between pages on same-origin navigation.
   Falls back silently in unsupported browsers. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-fade-out .25s cubic-bezier(.4,0,.2,1) both; }
::view-transition-new(root) { animation: vt-fade-in  .35s cubic-bezier(.2,.8,.2,1) both; }
@keyframes vt-fade-out { to   { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-fade-in  { from { opacity: 0; transform: translateY(8px);  } }
.nav-wrap { view-transition-name: site-nav; }
.site-footer { view-transition-name: site-footer; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* --- Reset / Base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-base);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-blue); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent-yellow); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--accent-yellow); outline-offset: 3px; border-radius: 4px; }

/* --- Design Tokens ------------------------------------------------------ */
:root {
  /* Base surfaces — deep blue-gray */
  --bg-base: #0a1220;
  --bg-1:    #0f1a2e;
  --bg-2:    #142239;
  --bg-3:    #1c2d47;

  /* Brand colors */
  --accent-blue: #2b8bf4;
  --accent-blue-bright: #4aa3ff;
  --accent-blue-deep: #0b5fc4;
  --accent-yellow: #ffd23f;
  --accent-yellow-bright: #ffe066;
  --accent-yellow-deep: #e6b800;

  /* Text */
  --text:        #e6ecf5;
  --text-muted:  #9badc7;
  --text-soft:   #c4d0e2;

  /* Glass surfaces */
  --glass-bg:        rgba(255, 255, 255, 0.05);
  --glass-bg-strong: rgba(255, 255, 255, 0.08);
  --glass-border:    rgba(255, 255, 255, 0.12);
  --glass-border-strong: rgba(255, 255, 255, 0.18);
  /* Blur intensity is the single biggest contributor to Chrome paint cost on
     this site. Keep it low: visually still reads as frosted glass, but Chrome
     stops re-painting every blurred surface on every scroll frame. */
  --glass-blur:       saturate(160%) blur(8px);
  --glass-blur-heavy: saturate(160%) blur(12px);

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0,0,0,.25);
  --shadow-md:  0 8px 24px rgba(0,0,0,.35);
  --shadow-lg:  0 20px 60px rgba(0,0,0,.5);
  --shadow-glow-blue: 0 0 40px rgba(43, 139, 244, .35);
  --shadow-glow-yellow: 0 0 40px rgba(255, 210, 63, .25);

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-full: 999px;

  /* Layout */
  --container: 1240px;
  --container-narrow: 920px;

  /* Type scale (clamps) */
  --fs-xs:   clamp(.75rem, .75rem + 0vw, .8125rem);
  --fs-sm:   clamp(.875rem, .85rem + .1vw, .9375rem);
  --fs-base: clamp(1rem, .95rem + .25vw, 1.0625rem);
  --fs-lg:   clamp(1.125rem, 1rem + .5vw, 1.25rem);
  --fs-xl:   clamp(1.375rem, 1.15rem + 1vw, 1.625rem);
  --fs-h3:   clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
  --fs-h2:   clamp(2rem, 1.5rem + 2.5vw, 3rem);
  --fs-h1:   clamp(2.5rem, 1.75rem + 3.75vw, 4.5rem);
  --fs-hero: clamp(2.75rem, 2rem + 4vw, 5.25rem);
}

/* --- Backdrop atmosphere ------------------------------------------------ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 15% 8%, rgba(43,139,244,.18), transparent 60%),
    radial-gradient(800px 500px at 88% 12%, rgba(255,210,63,.10), transparent 60%),
    radial-gradient(700px 500px at 50% 95%, rgba(43,139,244,.12), transparent 60%),
    linear-gradient(180deg, #0a1220 0%, #0a1426 60%, #0a1220 100%);
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  pointer-events: none;
  opacity: .4;
}

/* --- Typography --------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Bricolage Grotesque', 'Manrope', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #f5f8ff;
}
h1 { font-size: var(--fs-h1); margin-bottom: .5em; }
h2 { font-size: var(--fs-h2); margin-bottom: .5em; }
h3 { font-size: var(--fs-h3); margin-bottom: .4em; }
h4 { font-size: var(--fs-xl); margin-bottom: .4em; }
h5 { font-size: var(--fs-lg); margin-bottom: .4em; }
p  { color: var(--text-soft); margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-yellow);
  margin-bottom: 1rem;
  padding: .375rem .875rem;
  background: rgba(255, 210, 63, .08);
  border: 1px solid rgba(255, 210, 63, .25);
  border-radius: var(--r-full);
}

.grad-text {
  background: linear-gradient(135deg, var(--accent-blue-bright), var(--accent-yellow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Layout helpers ----------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding: 0 clamp(1rem, 3vw, 2rem); }
.container-narrow { max-width: var(--container-narrow); }
.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; position: relative; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.center-text { text-align: center; }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.75rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* --- Glass card --------------------------------------------------------- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,.06);
  position: relative;
  overflow: hidden;
  transform: translateZ(0);          /* GPU-promote: stops Chrome re-painting on scroll */
  contain: paint;                    /* paint-isolation: children can't trigger ancestor paints */
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,0) 35%, rgba(43,139,244,.20));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.glass.padded { padding: clamp(1.25rem, 2.5vw, 2rem); }
.glass.padded-lg { padding: clamp(1.75rem, 3.5vw, 3rem); }

.glass-strong {
  background: var(--glass-bg-strong);
  border-color: var(--glass-border-strong);
  backdrop-filter: var(--glass-blur-heavy);
  -webkit-backdrop-filter: var(--glass-blur-heavy);
}

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .9rem 1.6rem;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: .9375rem;
  letter-spacing: .02em;
  border-radius: var(--r-full);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
  border: 1px solid transparent;
  position: relative;
  white-space: nowrap;
  cursor: pointer;
}
.btn:focus-visible { outline-offset: 4px; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-deep));
  color: #fff;
  box-shadow: 0 8px 24px rgba(43,139,244,.35), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(43,139,244,.45), inset 0 1px 0 rgba(255,255,255,.3);
  color: #fff;
}
.btn-accent {
  background: linear-gradient(135deg, var(--accent-yellow), var(--accent-yellow-deep));
  color: #1a1407;
  box-shadow: 0 8px 24px rgba(255,210,63,.30), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(255,210,63,.45), inset 0 1px 0 rgba(255,255,255,.5);
  color: #1a1407;
}
.btn-glass {
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: var(--text);
}
.btn-glass:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.28);
  transform: translateY(-2px);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--glass-border);
}
.btn-ghost:hover { border-color: var(--accent-yellow); color: var(--accent-yellow); transform: translateY(-1px); }
.btn-sm { padding: .55rem 1.1rem; font-size: .8125rem; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.0625rem; }
.btn-arrow::after { content: "→"; transition: transform .2s ease; }
.btn:hover .btn-arrow::after, .btn-arrow:hover::after { transform: translateX(4px); }

/* --- Navigation --------------------------------------------------------- */
.nav-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: .75rem clamp(1rem, 3vw, 2rem);
  transition: padding .3s ease, background .3s ease;
}
.nav-wrap.scrolled { padding-top: .4rem; padding-bottom: .4rem; }
.nav {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem 1rem .65rem 1.25rem;
  background: rgba(10, 18, 32, .65);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-full);
  backdrop-filter: var(--glass-blur-heavy);
  -webkit-backdrop-filter: var(--glass-blur-heavy);
  box-shadow: var(--shadow-md);
  overflow: visible;   /* let the oversized logo stray beyond the pill */
}
.brand {
  display: flex; align-items: center; gap: .6rem;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 1.125rem;
  color: #fff;
  letter-spacing: -0.01em;
  height: 46px;          /* fixed so the big logo doesn't grow the bar */
  position: relative;
}
.brand:hover { color: #fff; }
/* Logo is larger than the bar and overflows it (biased downward) for a bold,
   prominent mark without enlarging the header pill. */
.brand-logo {
  height: 92px; width: auto; display: block;
  transform: translate(42px, 14px);   /* nudge right so it sits centered between pill edge and Home */
  transform-origin: left center;
  filter: drop-shadow(0 5px 14px rgba(0,0,0,.55));
  transition: transform .3s ease, filter .3s ease;
}
.brand:hover .brand-logo { transform: translate(42px, 14px) scale(1.05); filter: drop-shadow(0 8px 20px rgba(0,0,0,.6)) drop-shadow(0 0 14px rgba(255,210,63,.25)); }
@media (max-width: 720px) { .brand { height: 40px; } .brand-logo { height: 56px; transform: none; } .brand:hover .brand-logo { transform: scale(1.04); } }
.brand-footer .brand-logo { height: 64px; }
.phone-logo { height: 30px; width: auto; display: block; }
@media (max-width: 1080px) { .phone-cta { display: none; } }
.brand-mark {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-deep));
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 6px 16px rgba(43,139,244,.4), inset 0 1px 0 rgba(255,255,255,.25);
  position: relative;
  overflow: hidden;
}
.brand-mark::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(255,210,63,.5) 50%);
  opacity: .6;
}
.brand-mark span { position: relative; z-index: 1; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text .sub { font-size: .65rem; font-weight: 500; color: var(--text-muted); letter-spacing: .15em; text-transform: uppercase; margin-top: 2px; }

.nav-links {
  display: flex; align-items: center; gap: .25rem;
}
.nav-links a {
  position: relative;
  padding: .55rem .8rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-soft);
  border-radius: var(--r-full);
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-links a.active { color: #fff; background: rgba(43,139,244,.18); }
.nav-links .has-sub { position: relative; }
.nav-links .has-sub > a::after { content: " ▾"; font-size: .65rem; opacity: .6; }
.nav-sub {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 240px;
  background: rgba(15, 26, 46, .92);
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--r-md);
  backdrop-filter: var(--glass-blur-heavy);
  -webkit-backdrop-filter: var(--glass-blur-heavy);
  box-shadow: var(--shadow-lg);
  padding: .5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.has-sub:hover > .nav-sub,
.has-sub:focus-within > .nav-sub {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-sub a { display: block; padding: .55rem .85rem; border-radius: var(--r-sm); font-size: .88rem; }
.nav-sub a:hover { background: rgba(43,139,244,.15); color: #fff; }
.nav-cta { display: flex; gap: .5rem; align-items: center; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; position: relative; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .25s ease, top .25s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top:  6px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open span::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
    padding: 1rem;
    background: rgba(15, 26, 46, .95);
    border: 1px solid var(--glass-border-strong);
    border-radius: var(--r-lg);
    backdrop-filter: var(--glass-blur-heavy);
    -webkit-backdrop-filter: var(--glass-blur-heavy);
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;                    /* ensure closed menu can't ever steal taps */
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
    max-height: 70vh;
    overflow-y: auto;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
  .nav-links a { padding: .8rem 1rem; font-size: 1rem; }
  .nav-sub {
    position: static; transform: none; opacity: 1; visibility: visible;
    background: transparent; border: none; box-shadow: none; padding-left: 1rem; min-width: 0;
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .has-sub > a::after { display: none; }
  .nav-cta .btn:not(.btn-accent) { display: none; }
}

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(6.5rem, 12vw, 10rem) 0 clamp(3rem, 7vw, 6rem);
  overflow: hidden;
}

/* 3D tilt smoothing — applied via JS by setting inline transform; the
   transition makes resets glide back to neutral. */
.svc-card, .ws-card, .ic-card-tilt {
  transform-style: preserve-3d;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .svc-card, .ws-card { transition: none; }
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 .accent { color: var(--accent-yellow); }
.hero-lede { font-size: var(--fs-lg); color: var(--text-soft); max-width: 60ch; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.hero-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; color: var(--text-muted); font-size: .85rem; }
.hero-trust .star { color: var(--accent-yellow); }

/* --- Mobile hero polish: center text, tighten trust row, compact CTAs --- */
@media (max-width: 720px) {
  .hero { padding: clamp(5rem, 9vw, 7rem) 0 clamp(2rem, 5vw, 3rem); }
  .hero .container, .hero-inner > *:first-child { text-align: center; }
  .hero h1 { font-size: clamp(2.2rem, 8vw, 3rem); line-height: 1.1; }
  .hero-lede { margin-left: auto; margin-right: auto; font-size: 1rem; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: .6rem; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-trust { justify-content: center; gap: .5rem .9rem; row-gap: .35rem;
                font-size: .78rem; line-height: 1.3; }
  .hero-trust span { display: inline-flex; align-items: center; gap: .35rem; }
  .eyebrow { display: inline-block; }
}

/* Skip the visual-only stat panel on phones — it duplicates content that's
   already shown directly below the hero CTAs, and crowds the viewport. */
@media (max-width: 720px) { .hero-visual { display: none; } }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

/* --- Hero stat panel: one cohesive premium glass card -------------------- */
.stat-panel {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 1.6rem 1.6rem 1.4rem;
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, rgba(20,34,57,.72), rgba(10,18,32,.66));
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(22px) saturate(1.1);
  -webkit-backdrop-filter: blur(22px) saturate(1.1);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.12);
  overflow: hidden;
  animation: panelFloat 7s ease-in-out infinite;
}
/* Animated gradient sheen on the border */
.stat-panel::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--ang, 0deg),
    rgba(43,139,244,.0) 0deg, rgba(43,139,244,.8) 70deg,
    rgba(255,210,63,.9) 140deg, rgba(43,139,244,.0) 220deg, rgba(43,139,244,.0) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: borderSpin 6s linear infinite;
  pointer-events: none;
}
/* Soft colored glow blooming behind the card */
.stat-panel-glow {
  position: absolute; inset: -40%;
  background:
    radial-gradient(closest-side, rgba(43,139,244,.35), transparent 70%) 20% 25%/60% 60% no-repeat,
    radial-gradient(closest-side, rgba(255,210,63,.22), transparent 70%) 85% 80%/55% 55% no-repeat;
  filter: blur(8px);
  z-index: -1;
  animation: glowDrift 9s ease-in-out infinite alternate;
}
.sp-eyebrow {
  display: inline-block;
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--accent-yellow);
  margin-bottom: 1.1rem;
}
.sp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--r-md);
  overflow: hidden;
}
.sp-item {
  background: rgba(10,18,32,.35);
  padding: 1.1rem 1rem;
  display: flex; flex-direction: column; align-items: flex-start;
  gap: .3rem;
  transition: background .25s ease, transform .25s ease;
}
.sp-item:hover { background: rgba(43,139,244,.12); transform: translateY(-2px); }
.sp-ico {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(43,139,244,.28), rgba(43,139,244,.08));
  border: 1px solid rgba(43,139,244,.35);
  color: var(--accent-blue-bright);
  font-size: 1rem; line-height: 1;
  margin-bottom: .15rem;
}
.sp-ico.yellow {
  background: linear-gradient(135deg, rgba(255,210,63,.28), rgba(255,210,63,.08));
  border-color: rgba(255,210,63,.4);
  color: var(--accent-yellow);
}
.sp-num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(1.7rem, 1rem + 1.5vw, 2.1rem);
  font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, #fff 0%, var(--accent-yellow) 130%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sp-lbl {
  font-size: .72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--text-muted);
}
.sp-foot {
  display: flex; align-items: center; gap: .55rem;
  margin-top: 1.05rem;
  font-size: .82rem; color: var(--text-soft);
}
.sp-foot .star { color: var(--accent-yellow); letter-spacing: 1px; font-size: .8rem; }
.sp-foot strong { color: #fff; }

@keyframes borderSpin { to { --ang: 360deg; } }
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes panelFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes glowDrift {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(6%, -4%) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .stat-panel, .stat-panel::before, .stat-panel-glow { animation: none; }
}
@media (max-width: 900px) {
  .hero-visual { margin-top: 2.25rem; }
  .stat-panel { max-width: 520px; }
}

/* --- Background video hero --------------------------------------------- */
.hero-video-section {
  isolation: isolate;
  /* Poster shows instantly and is the fallback on phones (video isn't loaded there) */
  background-image: url('/assets/images/hero-poster.jpg');
  background-size: cover;
  background-position: center;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  /* Fallback look if the video file is missing or still loading */
  background:
    radial-gradient(circle at 30% 30%, rgba(43,139,244,.35), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(255,210,63,.25), transparent 50%),
    linear-gradient(160deg, #142239 0%, #0f1a2e 100%);
}
.hero-overlay {
  position: absolute; inset: 0;
  z-index: -1;
  /* Transparent layer over the video so headline text stays readable */
  background:
    linear-gradient(180deg, rgba(10,18,32,.55) 0%, rgba(10,18,32,.78) 100%),
    radial-gradient(1100px 700px at 18% 12%, rgba(43,139,244,.22), transparent 60%);
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}


/* --- Page header (interior pages) -------------------------------------- */
.page-header {
  padding: clamp(7rem, 14vw, 10rem) 0 clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  position: relative;
}
.page-header h1 { margin-bottom: .75rem; }
.page-header .lede { font-size: var(--fs-lg); color: var(--text-soft); max-width: 70ch; margin-inline: auto; }

/* Compact variant for pages where the form / content should appear right under
   the nav (Contact, Quote). */
.page-header-tight { padding: clamp(5rem, 9vw, 7rem) 0 clamp(1rem, 3vw, 2rem); }
.page-header-tight h1 { font-size: clamp(2rem, 6vw, 2.6rem); margin-bottom: .35rem; }
.page-header-tight .lede { margin-bottom: 0; font-size: 1rem; }

/* Mobile: tighten top padding so the form / content is closer to the fold. */
@media (max-width: 720px) {
  .page-header { padding: 4.5rem 0 1.25rem; }
}
.breadcrumb {
  display: inline-flex;
  flex-wrap: wrap; justify-content: center;
  gap: .35rem .5rem; align-items: center;
  margin-bottom: 1.25rem;
  padding: .35rem .8rem;
  font-size: .78rem;
  color: var(--text-muted);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-full);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent-yellow); }
.breadcrumb .sep { opacity: .5; }

/* --- Service / Product cards ------------------------------------------- */
.card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,0) 30%, rgba(43,139,244,.18));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(43,139,244,.45);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(43,139,244,.25);
}
.card h3 { margin-bottom: .5rem; font-size: 1.35rem; }
.card p { color: var(--text-soft); margin-bottom: 1rem; font-size: .95rem; }
.card-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 14px;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(43,139,244,.25), rgba(43,139,244,.05));
  border: 1px solid rgba(43,139,244,.35);
  color: var(--accent-blue-bright);
  font-size: 1.5rem;
}
.card-icon.yellow {
  background: linear-gradient(135deg, rgba(255,210,63,.25), rgba(255,210,63,.05));
  border-color: rgba(255,210,63,.4);
  color: var(--accent-yellow);
}
.card .more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--accent-blue-bright);
  font-weight: 600;
  font-size: .9rem;
}
.card .more::after { content: "→"; transition: transform .2s ease; }
.card:hover .more::after { transform: translateX(4px); }

/* Image card (for services with photos) */
.image-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--glass-border);
  transition: transform .4s ease, box-shadow .4s ease;
  display: block;
}
.image-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.image-card .ic-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: saturate(.85) brightness(.7);
  transition: transform .8s ease, filter .4s ease;
}
.image-card:hover .ic-bg { transform: scale(1.06); filter: saturate(1) brightness(.82); }
.image-card .ic-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(10,18,32,.85) 100%);
}
.image-card .ic-content {
  position: absolute;
  left: 1rem; right: 1rem; bottom: 1rem;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
}
.image-card h3 { color: #fff; margin: 0; font-size: 1.25rem; }
.image-card .arrow {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--accent-yellow);
  color: #1a1407;
  font-size: 1rem; font-weight: 800;
  transition: transform .25s ease;
}
.image-card:hover .arrow { transform: rotate(-45deg); }

/* --- Stats strip -------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.stat {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  position: relative;
  overflow: hidden;
}
.stat::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(43,139,244,.18), transparent 60%);
  pointer-events: none;
}
.stat .num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
  font-weight: 800;
  background: linear-gradient(135deg, #fff, var(--accent-yellow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: .35rem;
}
.stat .lbl {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--text-muted);
  font-weight: 600;
}

/* --- Two-column content ------------------------------------------------- */
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
}
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
.two-col.flip > :first-child { order: 2; }
@media (max-width: 800px) { .two-col.flip > :first-child { order: 0; } }

/* --- Content prose ------------------------------------------------------ */
.prose p, .prose ul, .prose ol { margin-bottom: 1rem; color: var(--text-soft); }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul { padding-left: 1.25rem; list-style: disc; }
.prose ul li { margin-bottom: .5rem; }
.prose strong { color: var(--text); }

/* Feature list with check icons */
.checks { list-style: none; padding: 0; }
.checks li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: .85rem;
  color: var(--text-soft);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: .15rem;
  width: 22px; height: 22px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent-yellow), var(--accent-yellow-deep));
  box-shadow: 0 4px 10px rgba(255,210,63,.25);
}
.checks li::after {
  content: "";
  position: absolute;
  left: 6px; top: 7px;
  width: 11px; height: 5px;
  border-left: 2px solid #1a1407;
  border-bottom: 2px solid #1a1407;
  transform: rotate(-45deg);
}

/* --- Process timeline --------------------------------------------------- */
.timeline { position: relative; padding-left: 1.5rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-yellow), var(--accent-blue), transparent);
  border-radius: 2px;
}
.tl-item { position: relative; padding-bottom: 1.5rem; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: .4rem;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 2px solid var(--accent-yellow);
  box-shadow: 0 0 0 4px rgba(255,210,63,.12);
}
.tl-item h4 { color: #fff; font-size: 1.1rem; margin-bottom: .25rem; }
.tl-item p { color: var(--text-muted); }

/* --- Pricing / Tier cards ----------------------------------------------- */
.tier {
  position: relative;
  padding: 2rem 1.75rem;
  border-radius: var(--r-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  display: flex; flex-direction: column;
  transition: transform .3s ease, border-color .3s ease;
}
.tier:hover { transform: translateY(-4px); border-color: var(--glass-border-strong); }
.tier.featured {
  background: linear-gradient(160deg, rgba(43,139,244,.18), rgba(43,139,244,.05));
  border-color: rgba(43,139,244,.5);
  box-shadow: var(--shadow-glow-blue);
}
.tier .tier-badge {
  position: absolute; top: -12px; right: 1.5rem;
  background: var(--accent-yellow); color: #1a1407;
  padding: .25rem .75rem;
  font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  border-radius: var(--r-full);
}
.tier h3 { font-size: 1.4rem; margin-bottom: .35rem; }
.tier .tier-tag { font-size: .8rem; color: var(--accent-yellow); text-transform: uppercase; letter-spacing: .18em; font-weight: 600; margin-bottom: 1.25rem; }
.tier ul { padding: 0; list-style: none; margin-bottom: 1.5rem; }
.tier ul li { padding: .55rem 0; border-bottom: 1px dashed var(--glass-border); color: var(--text-soft); font-size: .92rem; }
.tier ul li:last-child { border-bottom: none; }

/* --- Testimonials ------------------------------------------------------- */
.quote {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--r-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  position: relative;
  overflow: hidden;
}
.quote::before {
  content: """;
  position: absolute;
  top: -1.25rem; left: 1rem;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 8rem;
  color: rgba(255,210,63,.18);
  line-height: 1;
  pointer-events: none;
}
.quote .stars { color: var(--accent-yellow); margin-bottom: .75rem; letter-spacing: .15em; font-size: 1.05rem; }
.quote blockquote { font-size: var(--fs-lg); color: var(--text); margin-bottom: 1.25rem; line-height: 1.55; }
.quote cite { font-style: normal; color: var(--text-muted); font-size: .9rem; font-weight: 600; }
.quote cite strong { color: var(--text); display: block; font-weight: 700; }

/* --- FAQ ---------------------------------------------------------------- */
.faq-list { display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-weight: 700; color: #fff; font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-yellow);
  color: #1a1407;
  font-weight: 800;
  flex: 0 0 auto;
  transition: transform .25s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 1.25rem 1.25rem; color: var(--text-soft); }
.faq-item .faq-body p { margin-bottom: .75rem; }
.faq-item .faq-body ul { padding-left: 1.25rem; list-style: disc; }
.faq-item .faq-body li { margin-bottom: .35rem; }

/* --- AEO TL;DR answer card ---------------------------------------------- */
.tldr {
  display: flex; gap: .75rem; align-items: flex-start;
  margin: 0 0 1rem;
  padding: .85rem 1rem;
  border: 1px solid color-mix(in srgb, var(--accent-yellow) 38%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-yellow) 12%, transparent),
                                       color-mix(in srgb, var(--accent-blue) 6%, transparent));
  border-radius: var(--r-md);
  color: var(--text);
  font-size: .98rem; line-height: 1.55;
}
.tldr .tldr-tag {
  flex: 0 0 auto;
  font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-yellow);
  background: color-mix(in srgb, var(--accent-yellow) 18%, transparent);
  padding: .35rem .55rem; border-radius: 999px;
}
.tldr .tldr-body { flex: 1 1 auto; }
.tldr .tldr-body strong { color: #fff; }
.faq-item .faq-body .tldr { margin-bottom: 1rem; }

/* --- Last-updated freshness signal --------------------------------------- */
.last-updated { display: block; }
.last-updated time { font-variant-numeric: tabular-nums; }

/* --- Glossary list ------------------------------------------------------- */
.glossary-list dl { margin: 0; }
.glossary-item {
  padding: 1rem 1.1rem;
  border: 1px solid var(--glass-border, rgba(255,255,255,.1));
  border-radius: var(--r-md, 14px);
  background: rgba(255,255,255,.025);
  backdrop-filter: blur(12px);
}
.glossary-item dt {
  font-family: "Bricolage Grotesque", serif;
  font-weight: 700; font-size: 1.15rem;
  color: var(--accent-yellow);
  margin-bottom: .35rem;
}
.glossary-item dd {
  margin: 0; color: var(--text-soft);
  font-size: .98rem; line-height: 1.6;
}
.glossary-item dd a { color: var(--accent-blue); }

/* --- Comparison table ---------------------------------------------------- */
.cmp-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp-table {
  width: 100%; border-collapse: collapse;
  font-size: .92rem; min-width: 580px;
}
.cmp-table th, .cmp-table td {
  padding: .7rem .9rem;
  border-bottom: 1px solid var(--glass-border, rgba(255,255,255,.08));
  text-align: left; vertical-align: top;
}
.cmp-table thead th {
  font-family: "Bricolage Grotesque", serif;
  font-weight: 700; font-size: .98rem;
  color: var(--accent-yellow);
  border-bottom: 2px solid color-mix(in srgb, var(--accent-yellow) 35%, transparent);
}
.cmp-table tbody tr:hover { background: rgba(255,255,255,.025); }
.cmp-table td:first-child { color: var(--text); font-weight: 600; }

/* --- Brands strip ------------------------------------------------------- */
.brand-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  align-items: center;
}
.brand-strip .brand-tile {
  padding: 1.25rem 1rem;
  display: grid; place-items: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  text-align: center;
  font-weight: 700;
  color: var(--text-soft);
  letter-spacing: .02em;
  min-height: 80px;
  transition: transform .25s ease, color .25s ease, border-color .25s ease;
}
.brand-strip .brand-tile:hover {
  color: #fff;
  border-color: rgba(255,210,63,.4);
  transform: translateY(-3px);
}

/* --- Contact form ------------------------------------------------------- */
.form-grid { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: .35rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: .85rem 1rem;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: rgba(255,255,255,.06);
  box-shadow: 0 0 0 4px rgba(43,139,244,.15);
}
.field textarea { resize: vertical; min-height: 130px; }

/* Contact info card */
.info-card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(43,139,244,.16), rgba(43,139,244,.02));
  border: 1px solid rgba(43,139,244,.35);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.info-row { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px dashed var(--glass-border); align-items: flex-start; }
.info-row:last-child { border-bottom: none; padding-bottom: 0; }
.info-row:first-child { padding-top: 0; }
.info-row .ico {
  width: 42px; height: 42px;
  flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border-strong);
  color: var(--accent-yellow);
  font-size: 1.1rem;
}
.info-row .info-h { font-weight: 700; color: #fff; margin-bottom: .15rem; font-size: .95rem; }
.info-row .info-v { color: var(--text-soft); font-size: .92rem; }
.info-row a { color: var(--text-soft); }
.info-row a:hover { color: var(--accent-yellow); }

/* --- CTA band ----------------------------------------------------------- */
.cta-band {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4rem);
  border-radius: var(--r-xl);
  background:
    radial-gradient(700px 400px at 20% 20%, rgba(43,139,244,.35), transparent 65%),
    radial-gradient(600px 400px at 80% 80%, rgba(255,210,63,.20), transparent 65%),
    linear-gradient(160deg, #142239, #0f1a2e);
  border: 1px solid var(--glass-border-strong);
  overflow: hidden;
  text-align: center;
}
.cta-band::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 2px, transparent 2px 18px);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: 1rem; }
.cta-band p { color: var(--text-soft); max-width: 60ch; margin-inline: auto; margin-bottom: 2rem; }
.cta-band .btn-row { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  margin-top: 4rem;
  padding: clamp(3rem, 5vw, 5rem) 0 1.5rem;
  background: linear-gradient(180deg, transparent, rgba(10,18,32,.7));
  border-top: 1px solid var(--glass-border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: 2.5rem;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h5 { font-size: .82rem; text-transform: uppercase; letter-spacing: .18em; color: var(--accent-yellow); margin-bottom: 1rem; font-weight: 700; }
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col a { color: var(--text-soft); font-size: .9rem; }
.footer-col a:hover { color: var(--accent-yellow); }
.footer-col p { font-size: .9rem; color: var(--text-soft); }
.social-row { display: flex; gap: .5rem; margin-top: 1rem; }
.social-row a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  color: var(--text-soft);
  font-weight: 700;
  font-size: .82rem;
  transition: transform .2s ease, color .2s ease, border-color .2s ease;
}
.social-row a:hover { color: var(--accent-yellow); border-color: var(--accent-yellow); transform: translateY(-2px); }
.footer-bottom {
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center; gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
  font-size: .82rem;
  color: var(--text-muted);
}
.footer-bottom .fb-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-bottom .fb-links a { color: var(--text-muted); }
.footer-bottom .fb-links a:hover { color: var(--accent-yellow); }

/* --- Badges / chips ----------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .7rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-full);
  color: var(--text-soft);
}
.chip.blue { color: var(--accent-blue-bright); border-color: rgba(43,139,244,.4); background: rgba(43,139,244,.1); }
.chip.yellow { color: var(--accent-yellow); border-color: rgba(255,210,63,.4); background: rgba(255,210,63,.08); }

/* Phone callout button */
.phone-cta {
  display: inline-flex;
  align-items: center;
  padding: 0;
  background: transparent;
  border: none;
  transition: transform .2s ease, filter .2s ease;
}
.phone-cta:hover { transform: translateY(-1px); filter: brightness(1.1) drop-shadow(0 0 8px rgba(255,210,63,.35)); }

/* --- Galleries ---------------------------------------------------------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.photo-tile {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--glass-border);
  transition: transform .35s ease, box-shadow .35s ease;
  display: grid; place-items: center;
}
.photo-tile:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }
.photo-tile .placeholder {
  text-align: center;
  padding: 1rem;
}
.photo-tile .placeholder .icon { font-size: 2rem; color: var(--accent-yellow); margin-bottom: .5rem; }
.photo-tile .placeholder .label { color: var(--text-muted); font-size: .85rem; font-weight: 600; }

/* Before/After tiles */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.5rem;
}
@media (max-width: 520px) { .ba-grid { grid-template-columns: 1fr; } }

/* Interactive before/after drag-slider */
.ba-slider { display: flex; flex-direction: column; gap: .7rem; }
.bas-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  user-select: none;
}
.bas-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.bas-before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.bas-tag {
  position: absolute; top: .7rem; z-index: 3;
  background: rgba(10,18,32,.82); color: #fff;
  font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  padding: .3rem .6rem; border-radius: var(--r-full);
  pointer-events: none;
}
.bas-before-tag { left: .7rem; }
.bas-after-tag { right: .7rem; color: var(--accent-yellow); }
.bas-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%);
  width: 3px; transform: translateX(-1.5px); z-index: 4;
  background: rgba(255,255,255,.9); box-shadow: 0 0 12px rgba(0,0,0,.5);
  pointer-events: none;
}
.bas-grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.95); color: #0a1220;
  display: grid; place-items: center;
  font-size: .9rem; font-weight: 900; letter-spacing: -1px;
  box-shadow: 0 4px 14px rgba(0,0,0,.45);
}
.bas-range {
  position: absolute; inset: 0; z-index: 5;
  width: 100%; height: 100%; margin: 0;
  -webkit-appearance: none; appearance: none;
  background: transparent; cursor: ew-resize; opacity: 0;
}
.bas-range::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 100%; }
.bas-range::-moz-range-thumb { width: 44px; height: 100%; border: 0; background: transparent; }
.bas-meta { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }

/* Video tiles */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.video-tile {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--glass-border);
}
.video-tile iframe { width: 100%; height: 100%; border: 0; }

/* --- Util --------------------------------------------------------------- */
.gap-sm > * + * { margin-top: .5rem; }
.gap-md > * + * { margin-top: 1rem; }
.gap-lg > * + * { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0 !important; }
.mb-sm { margin-bottom: .75rem !important; }
.mb-md { margin-bottom: 1.5rem !important; }
.mb-lg { margin-bottom: 2.5rem !important; }
.text-muted { color: var(--text-muted); }
.text-soft { color: var(--text-soft); }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap { gap: 1rem; }
.gap-sm-x { gap: .5rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.relative { position: relative; }
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* --- Reveal animations -------------------------------------------------- */
/* Opacity-only on mobile/touch (transform-based reveal caused iOS Safari to
   register taps on the wrong card while the translateY was animating). On
   wider screens we keep the lift for desktop polish. */
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes reveal-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.reveal { opacity: 0; }
.reveal.in-view { animation: reveal-fade .5s ease forwards; }
@media (min-width: 900px) and (hover: hover) {
  .reveal { transform: translateY(24px); }
  .reveal.in-view { animation: reveal-up .7s cubic-bezier(.22, .61, .36, 1) forwards; }
}
.reveal[data-delay="100"] { animation-delay: .1s; }
.reveal[data-delay="200"] { animation-delay: .2s; }
.reveal[data-delay="300"] { animation-delay: .3s; }
.reveal[data-delay="400"] { animation-delay: .4s; }
.reveal[data-delay="500"] { animation-delay: .5s; }

/* CRITICAL: any anchor or button with the .reveal class must always be fully
   visible and at its layout position — no fade, no translate. Click targets
   on interactive elements must never depend on an animation completing. */
a.reveal, button.reveal {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

/* CRITICAL: every clickable button / tile gets its own stacking context, so a
   sibling's backdrop-filter / glow / transform cannot bleed into another card's
   hit-test on iOS Safari. */
a.btn, a.svc-card, a.image-card, a.card, button.btn {
  position: relative;
  z-index: 1;
  isolation: isolate;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(43,139,244,.18);
}
/* Every child of a CTA button is decorative — only the anchor receives taps. */
a.btn > *, button.btn > * { pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* --- Floating phone button (mobile only) ------------------------------- */
.float-call {
  display: none;                              /* hidden on desktop — phone link lives in nav */
  position: fixed;
  bottom: 1rem; right: 1rem;
  z-index: 210;                               /* sits above the Ask-HyTech chat bubble */
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-yellow), var(--accent-yellow-deep));
  color: #1a1407;
  place-items: center;
  font-size: 1.4rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(255,210,63,.4), 0 0 0 4px rgba(255,210,63,.15);
  animation: pulse 2.4s ease-in-out infinite;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(255,210,63,.25);
  -webkit-user-select: none;
}
.float-call:active { transform: scale(.92); }
.float-call > * { pointer-events: none; }      /* the emoji can never steal the tap */
@keyframes pulse {
  0%, 100% { box-shadow: 0 12px 28px rgba(255,210,63,.4), 0 0 0 4px rgba(255,210,63,.15); }
  50%      { box-shadow: 0 12px 32px rgba(255,210,63,.55), 0 0 0 10px rgba(255,210,63,.0); }
}
@media (max-width: 700px) { .float-call { display: grid; } }

/* --- Skip link for accessibility --------------------------------------- */
.skip-link {
  position: absolute;
  top: -100px; left: 1rem;
  padding: .55rem 1rem;
  background: var(--accent-yellow);
  color: #1a1407;
  font-weight: 700;
  border-radius: var(--r-sm);
  z-index: 200;
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; color: #1a1407; }

/* --- Tag for tier comparisons ------------------------------------------ */
.spec-row { display: flex; justify-content: space-between; padding: .6rem 0; border-bottom: 1px dashed var(--glass-border); font-size: .92rem; }
.spec-row:last-child { border-bottom: none; }
.spec-row .k { color: var(--text-muted); }
.spec-row .v { color: var(--text); font-weight: 600; }

/* --- Color swatches (shingles) ----------------------------------------- */
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: .9rem;
}
.swatch {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  text-align: left;
  display: block;
  width: 100%;
  color: inherit;
  font: inherit;
  padding: 0;
}
.swatch.sw-clickable { cursor: pointer; }
.swatch.sw-clickable:hover,
.swatch.sw-clickable:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255,210,63,.55);
  box-shadow: 0 16px 34px -16px rgba(0,0,0,.6);
  outline: none;
}
.swatch .sw-photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}
.swatch.sw-clickable { position: relative; }
.swatch.sw-clickable::after {
  content: "View homes";
  position: absolute; top: 0; left: 0; right: 0;
  aspect-ratio: 16 / 7;
  display: grid; place-items: center;
  background: rgba(10,18,32,.5);
  color: #fff; font-size: .82rem; font-weight: 700;
  letter-spacing: .04em;
  opacity: 0; transition: opacity .2s ease;
}
.swatch.sw-clickable:hover::after,
.swatch.sw-clickable:focus-visible::after { opacity: 1; }
.swatch .name {
  padding: .6rem .75rem .7rem;
  font-size: .9rem; font-weight: 700; color: #fff;
  display: flex; flex-direction: column; gap: .15rem;
}
.swatch .sw-avail { font-size: .68rem; font-weight: 500; color: var(--text-muted); letter-spacing: .03em; }
.swatch .sw-count { font-size: .72rem; font-weight: 700; color: var(--accent-yellow); margin-top: .25rem; }
.swatch .sw-count.sw-soft { color: var(--text-muted); font-weight: 500; }

/* Pre-defined swatch colors (CertainTeed Landmark approximations) */
.sw-weathered  { --c1: #7a6a52; --c2: #3d342a; }
.sw-driftwood  { --c1: #9a8f78; --c2: #4b4538; }
.sw-colonial   { --c1: #69707c; --c2: #2c3138; }
.sw-charcoal   { --c1: #32353c; --c2: #15171b; }
.sw-burnt      { --c1: #9a4a2a; --c2: #4a2114; }
.sw-pewter     { --c1: #565b63; --c2: #25282c; }
.sw-georgetown { --c1: #828891; --c2: #3c4046; }
.sw-moire      { --c1: #25272f; --c2: #0d0f12; }
.sw-cobblestone{ --c1: #767b85; --c2: #383c42; }
.sw-resawn     { --c1: #6a5b49; --c2: #2f2820; }
.sw-heather    { --c1: #5f6577; --c2: #2b303a; }
.sw-hunter     { --c1: #335440; --c2: #142421; }
.sw-birchwood  { --c1: #8d8170; --c2: #423a30; }
.sw-atlantic   { --c1: #305178; --c2: #131e30; }
.sw-silver     { --c1: #9aa0a3; --c2: #4c5154; }
.sw-granite    { --c1: #7c8186; --c2: #393d41; }

/* --- Project photo gallery --------------------------------------------- */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: .85rem;
}
.proj-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--bg-2);
  cursor: pointer;
  padding: 0;
  display: block;
}
.proj-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .3s ease; filter: saturate(.92) brightness(.9); display: block; }
.proj-tile:hover img, .proj-tile:focus-visible img { transform: scale(1.07); filter: saturate(1.05) brightness(1); }
.proj-tile:focus-visible { outline: 2px solid var(--accent-yellow); outline-offset: 2px; }
.proj-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem .7rem .6rem;
  font-size: .82rem; font-weight: 600; color: #fff; text-align: left;
  background: linear-gradient(transparent, rgba(10,18,32,.9));
  opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease;
}
.proj-tile:hover .proj-cap, .proj-tile:focus-visible .proj-cap { opacity: 1; transform: none; }

/* --- Color gallery modal + lightbox ------------------------------------ */
.color-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 1.25rem; }
.color-modal[hidden] { display: none; }
.cm-backdrop { position: absolute; inset: 0; background: rgba(6,10,18,.78); backdrop-filter: blur(8px); animation: cmFade .25s ease; }
.cm-panel {
  position: relative;
  width: min(960px, 100%);
  max-height: 88vh; overflow-y: auto;
  background: linear-gradient(160deg, rgba(20,34,57,.96), rgba(10,18,32,.98));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-xl);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.8);
  padding: 1.6rem;
  animation: cmRise .3s cubic-bezier(.2,.8,.25,1);
}
.cm-close {
  position: absolute; top: .9rem; right: .9rem; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff; font-size: 1rem;
  display: grid; place-items: center;
  transition: background .2s ease, transform .2s ease;
}
.cm-close:hover { background: rgba(255,255,255,.2); transform: rotate(90deg); }
.cm-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; padding-right: 2.5rem; }
.cm-swatch { flex: 0 0 auto; width: 84px; height: 56px; border-radius: 10px; border: 1px solid rgba(255,255,255,.15); background-size: cover; background-position: center; }
.cm-eyebrow { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: var(--accent-yellow); }
.cm-head h3 { font-size: 1.5rem; margin: .1rem 0; color: #fff; }
.cm-sub { font-size: .85rem; color: var(--text-muted); margin: 0; }
.cm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .7rem; }
.cm-tile {
  position: relative; aspect-ratio: 4/3; border-radius: var(--r-md); overflow: hidden;
  cursor: pointer; border: 1px solid var(--glass-border); background: var(--bg-2);
}
.cm-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; display: block; }
.cm-tile:hover img { transform: scale(1.07); }
.cm-tile .cm-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: .5rem .6rem; font-size: .75rem; font-weight: 600; color: #fff;
  background: linear-gradient(transparent, rgba(10,18,32,.85));
}
/* Lightbox */
.cm-lightbox { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; background: rgba(6,10,18,.94); padding: 2rem; }
.cm-lightbox[hidden] { display: none; }
.cm-lightbox img { max-width: 92vw; max-height: 82vh; border-radius: var(--r-md); box-shadow: 0 30px 80px -20px #000; }
.lb-caption { position: absolute; bottom: 1.4rem; left: 0; right: 0; text-align: center; color: var(--text-soft); font-size: .9rem; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff; font-size: 1.8rem; line-height: 1;
  display: grid; place-items: center; transition: background .2s ease;
}
.lb-nav:hover { background: rgba(255,255,255,.22); }
.lb-prev { left: 2vw; } .lb-next { right: 2vw; }
@keyframes cmFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cmRise { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cm-backdrop, .cm-panel { animation: none; } }

/* ==========================================================================
   Photo seeding additions — service photo tiles, badge strips, team,
   FAQ thumbnails, CertainTeed grade columns
   ========================================================================== */

/* --- Service cards (home) — glass container with a photo banner --------- */
.svc-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.svc-card {
  display: flex; flex-direction: column;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  color: var(--text);
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease, border-color .4s ease;
  touch-action: manipulation;   /* disables iOS double-tap zoom so taps register on the right card */
  -webkit-tap-highlight-color: rgba(43,139,244,.18);
  /* explicit stacking context so backdrop-filter / box-shadow on siblings
     cannot bleed across cards and steal hit-tests on iOS Safari */
  position: relative; z-index: 1; isolation: isolate;
  /* GPU-promote: stop Chrome re-painting every tile on every scroll frame */
  transform: translateZ(0); contain: paint;
}
.svc-card * { pointer-events: none; }    /* every child is decorative — the whole anchor is the click target */
.svc-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg), var(--shadow-glow-blue); border-color: rgba(74,163,255,.55); }
.svc-card-photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.svc-card-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .4s ease;
  filter: saturate(.95) brightness(.92);
}
.svc-card:hover .svc-card-photo img { transform: scale(1.07); filter: saturate(1.05) brightness(1); }
.svc-card-photo::after { /* fade the photo into the card body */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,18,32,0) 55%, rgba(15,26,46,.85) 100%);
}
.svc-card-icon {
  position: absolute; top: .9rem; left: .9rem; z-index: 1;
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: var(--r-md); font-size: 1.25rem; color: var(--accent-blue-bright);
  background: rgba(10,18,32,.55); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.22);
  transition: transform .4s ease, background .4s ease;
}
.svc-card-icon.yellow { color: var(--accent-yellow); }
.svc-card:hover .svc-card-icon { transform: scale(1.08) rotate(-4deg); background: rgba(10,18,32,.7); }
.svc-card-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.svc-card-body h3 { font-size: 1.45rem; margin: 0 0 .5rem; letter-spacing: -.01em; }
.svc-card-body p { color: var(--text-muted); font-size: .92rem; line-height: 1.55; margin: 0 0 1rem; }
.svc-card-body .more {
  margin-top: auto; display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 700; font-size: .85rem; letter-spacing: .03em; color: var(--accent-yellow);
}
.svc-card-body .more .arrow { transition: transform .3s ease; }
.svc-card:hover .svc-card-body .more .arrow { transform: translateX(4px); }

/* --- Team / owner cards with headshots ---------------------------------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); }
.owner-card {
  position: relative; display: flex; gap: 1.25rem; align-items: flex-start;
  padding: 1.5rem; border-radius: var(--r-lg);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  overflow: hidden; transition: transform .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.owner-card::before { /* glow wash behind portrait */
  content: ""; position: absolute; top: -40%; left: -10%; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(43,139,244,.28), transparent 70%); filter: blur(10px); z-index: 0;
}
.owner-card.alt::before { background: radial-gradient(circle, rgba(255,210,63,.22), transparent 70%); }
.owner-card:hover { transform: translateY(-5px); border-color: var(--glass-border-strong); box-shadow: var(--shadow-md); }
.owner-portrait {
  position: relative; z-index: 1; flex: 0 0 auto;
  width: 104px; height: 104px; border-radius: 50%; overflow: hidden;
  border: 3px solid rgba(255,255,255,.18);
  box-shadow: 0 10px 24px rgba(0,0,0,.4);
}
.owner-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.owner-card.alt .owner-portrait { border-color: rgba(255,210,63,.45); }
.owner-body { position: relative; z-index: 1; }
.owner-body h3 { margin: .3rem 0 .1rem; font-size: 1.35rem; }
.owner-card blockquote {
  font-size: 1rem; color: var(--text-soft);
  border-left: 3px solid var(--accent-yellow); padding-left: 1rem; margin-top: .85rem;
}
@media (max-width: 540px) { .owner-card { flex-direction: column; align-items: center; text-align: center; }
  .owner-card blockquote { border-left: none; border-top: 3px solid var(--accent-yellow); padding: .75rem 0 0; } }

/* --- Badge / credential / brand strips ---------------------------------- */
.badge-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: clamp(.85rem, 1.6vw, 1.25rem); align-items: stretch; }
.badge-card {
  display: grid; place-items: center; gap: .6rem; text-align: center;
  padding: 1.4rem 1rem; border-radius: var(--r-md);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease, background .35s ease;
}
.badge-card:hover { transform: translateY(-5px); border-color: var(--glass-border-strong); box-shadow: var(--shadow-md); }
.badge-card img { height: 84px; width: auto; max-width: 100%; object-fit: contain; transition: transform .35s ease; }
.badge-card:hover img { transform: scale(1.06); }
.badge-card .badge-name { font-size: .78rem; color: var(--text-muted); font-weight: 600; line-height: 1.3; }
/* white-background brand jpgs sit on a soft white chip so they read on dark glass */
.badge-card.on-light { background: rgba(255,255,255,.92); border-color: rgba(255,255,255,.5); }
.badge-card.on-light:hover { background: #fff; }
.badge-card.on-light .badge-name { color: #45597a; }
/* credential seals are colorful transparent PNGs — show them straight on glass */
.badge-card.seal img { height: 104px; }

/* --- CertainTeed grade columns (Good / Better / Best) ------------------- */
.grade-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); align-items: start; }
.grade {
  --grade-accent: var(--accent-blue);
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  display: flex; flex-direction: column;
  transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease;
}
.grade:hover { transform: translateY(-6px); border-color: var(--glass-border-strong); box-shadow: var(--shadow-lg); }
.grade.featured { box-shadow: 0 0 40px rgba(0,94,184,.3); border-color: rgba(0,94,184,.5); }
.grade-head {
  position: relative; padding: 1.6rem 1.5rem 1.4rem; text-align: center; color: #fff;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--grade-accent) 85%, #fff 0%) 0%,
                            color-mix(in srgb, var(--grade-accent) 70%, #000 25%) 100%);
  border-bottom: 3px solid rgba(255,255,255,.2);
}
.grade-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.16), transparent 60%); pointer-events: none; }
.grade-tier { display: block; font-size: .8rem; letter-spacing: .26em; text-transform: uppercase; font-weight: 800; opacity: .92; }
/* shared title slot so all three grade marks read at the same size */
.grade-name { min-height: 46px; margin: .55rem auto .15rem; display: flex; flex-direction: column; align-items: center; justify-content: center; }
/* logos sized by max-height + max-width with auto aspect → never distorted, slightly
   smaller so they match the NorthGate wordmark */
.grade-logo { display: block; width: auto; height: auto; max-height: 30px; max-width: 74%; margin: .9rem auto .55rem; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); }
.grade-name { font-size: 1.5rem; font-weight: 800; letter-spacing: .01em; line-height: 1.04; }
.grade-name small { display: block; font-size: .95rem; font-weight: 600; opacity: .9; letter-spacing: .02em; margin-top: 1px; }
.grade.featured .grade-ribbon {
  position: absolute; z-index: 2; top: 14px; right: -34px; transform: rotate(45deg);
  background: var(--accent-yellow); color: #1a1407; font-size: .68rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; padding: .3rem 2.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.35);
}
.grade-body { padding: 1.5rem 1.5rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.grade-body ul { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.grade-body li { position: relative; padding: .6rem 0 .6rem 1.65rem; border-bottom: 1px dashed var(--glass-border); color: var(--text-soft); font-size: .92rem; }
.grade-body li:last-child { border-bottom: none; }
.grade-body li::before { content: "✓"; position: absolute; left: 0; top: .55rem; color: var(--grade-accent); font-weight: 800; }
.grade-body li.star::before { content: "★"; color: var(--accent-yellow); }
.grade-rec { margin-top: auto; font-size: .82rem; color: var(--text-muted); }
.grade-rec strong { color: var(--text-soft); }

/* --- Storm Mode ribbon (NWS marine forecast > 50 mph alert) ------------ */
.storm-mode {
  position: fixed; left: 0; right: 0; top: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center;
  gap: .8rem; flex-wrap: wrap;
  padding: .65rem 1rem .6rem;
  background: linear-gradient(90deg, #f59e0b 0%, #ffd23f 55%, #f59e0b 100%);
  color: #0a1220; font-weight: 700; font-size: .9rem;
  box-shadow: 0 6px 20px -10px rgba(0,0,0,.45);
  animation: sm-slide-in .55s cubic-bezier(.16,1,.3,1) both;
}
.storm-mode[hidden] { display: none; }
.storm-mode .sm-pulse {
  width: 10px; height: 10px; border-radius: 999px;
  background: #b91c1c; box-shadow: 0 0 0 0 rgba(185,28,28,.6);
  animation: sm-pulse 1.4s ease-out infinite;
}
.storm-mode .sm-icon { font-size: 1.05rem; }
.storm-mode .sm-text strong { font-weight: 800; }
.storm-mode .sm-cta {
  background: #0a1220; color: #ffd23f; padding: .35rem .85rem;
  border-radius: 999px; font-size: .82rem; font-weight: 700;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.storm-mode .sm-cta:hover { background: #fff; color: #0a1220; transform: translateY(-1px); }
.storm-mode .sm-close {
  background: rgba(10,18,32,.12); color: #0a1220; width: 26px; height: 26px;
  border-radius: 999px; font-weight: 700;
}
.storm-mode .sm-close:hover { background: rgba(10,18,32,.25); }
@keyframes sm-slide-in { from { transform: translateY(-100%); } to { transform: translateY(0); } }
@keyframes sm-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(185,28,28,.65); }
  70%  { box-shadow: 0 0 0 12px rgba(185,28,28,0);  }
  100% { box-shadow: 0 0 0 0   rgba(185,28,28,0);  }
}
/* Push the fixed nav down when Storm Mode is showing. */
body:has(.storm-mode:not([hidden])) .nav-wrap { top: 44px; transition: top .35s ease; }
@media (prefers-reduced-motion: reduce) {
  .storm-mode { animation: none; }
  .storm-mode .sm-pulse { animation: none; }
}

/* --- Warranty stack (CertainTeed 2026 layered protection) -------------- */
.warranty-stack {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(.9rem, 1.6vw, 1.3rem);
}
.ws-card {
  position: relative;
  padding: 1.6rem 1.4rem 1.5rem;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  overflow: hidden;
}
.ws-card::before {
  content: ""; position: absolute; inset: -1px;
  background: linear-gradient(135deg, rgba(43,139,244,.55), transparent 45%);
  opacity: 0; transition: opacity .4s ease; pointer-events: none; border-radius: inherit;
}
.ws-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg), 0 0 38px -10px rgba(43,139,244,.4); border-color: rgba(74,163,255,.5); }
.ws-card:hover::before { opacity: .35; }
.ws-icon {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: 14px;
  background: rgba(43,139,244,.18); color: var(--accent-blue);
  font-size: 1.3rem; margin-bottom: .9rem;
  border: 1px solid rgba(74,163,255,.35);
}
.ws-tier {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-blue);
  margin-bottom: .35rem;
}
.ws-card h3 { font-size: 1.15rem; margin: 0 0 .55rem; letter-spacing: -.01em; }
.ws-card p { color: var(--text-muted); font-size: .92rem; line-height: 1.55; margin: 0; }
.ws-card.ws-featured {
  background: linear-gradient(180deg, rgba(255,210,63,.10), rgba(255,210,63,.03));
  border-color: rgba(255,210,63,.45);
}
.ws-card.ws-featured .ws-icon { background: rgba(255,210,63,.18); color: var(--accent-yellow); border-color: rgba(255,210,63,.45); }
.ws-card.ws-featured .ws-tier { color: var(--accent-yellow); }
.ws-card.ws-featured:hover { box-shadow: var(--shadow-lg), 0 0 42px -10px rgba(255,210,63,.45); border-color: rgba(255,210,63,.7); }

/* --- CRM "Recent Installs" iframe wrapper ------------------------------ */
.crm-map {
  max-width: 1180px; margin-inline: auto;
  border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 25px 70px -25px rgba(0,0,0,.65);
  background: #0f1e35;
}
.crm-map iframe { display: block; }

/* --- Interactive cost estimator ---------------------------------------- */
.estimator { max-width: 980px; margin-inline: auto; }
.est-grid {
  display: grid; gap: 1.4rem;
}
.est-label {
  display: block; font-weight: 700; font-size: .92rem;
  margin-bottom: .5rem; color: var(--text);
}
.est-label .est-val {
  display: inline-block; min-width: 2ch;
  color: var(--accent-yellow); font-weight: 800; font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}
.est-unit { color: var(--text-muted); font-size: .85rem; font-weight: 500; margin-left: .15rem; }
.est-note { display: block; font-size: .78rem; color: var(--text-muted); margin-top: .4rem; }

/* Range slider — themed to match the rest of the site. */
.est-control input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px;
  background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-blue) var(--p, 22%), rgba(255,255,255,.12) var(--p, 22%));
  border-radius: 999px;
}
.est-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px; border-radius: 999px;
  background: #fff; border: 3px solid var(--accent-blue);
  box-shadow: 0 4px 10px -4px rgba(0,0,0,.5);
  cursor: grab; transition: transform .15s ease;
}
.est-control input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
.est-control input[type="range"]::-webkit-slider-thumb:active { cursor: grabbing; }
.est-control input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 999px;
  background: #fff; border: 3px solid var(--accent-blue);
  box-shadow: 0 4px 10px -4px rgba(0,0,0,.5); cursor: grab;
}

.est-tier-row {
  display: grid; gap: .6rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.est-tier {
  position: relative; cursor: pointer;
  padding: .8rem .95rem;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--glass-border);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.est-tier:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); transform: translateY(-2px); }
.est-tier input { position: absolute; opacity: 0; pointer-events: none; }
.est-tier span {
  display: block; font-weight: 700; font-size: .92rem; margin-bottom: .15rem;
}
.est-tier small { color: var(--text-muted); font-size: .78rem; }
.est-tier:has(input:checked) {
  background: linear-gradient(180deg, rgba(43,139,244,.18), rgba(43,139,244,.06));
  border-color: rgba(74,163,255,.55);
  box-shadow: inset 0 0 18px rgba(43,139,244,.12);
}
.est-tier:has(input:checked) span { color: var(--accent-blue); }

/* The big animated readout. */
.est-readout {
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px dashed var(--glass-border);
  display: grid; gap: 1.1rem; place-items: center;
}
.est-band { text-align: center; }
.est-band-label {
  display: block; font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-blue); margin-bottom: .35rem;
}
.est-amount {
  display: inline-flex; align-items: baseline; gap: .55rem; flex-wrap: wrap; justify-content: center;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -.02em;
  background: linear-gradient(120deg, #fff 0%, #4aa3ff 55%, #ffd23f 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.est-sep { color: var(--text-muted); font-weight: 400; font-size: 1.4rem; -webkit-text-fill-color: var(--text-muted); }
.est-band-foot { display: block; font-size: .8rem; color: var(--text-muted); margin-top: .55rem; max-width: 56ch; }
.est-cta-row { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; }
@media (max-width: 640px) { .est-tier-row { grid-template-columns: 1fr; } }

/* --- True 3D extruded credential coins ---------------------------------- *
 * Each coin is the bare badge PNG (transparent background) extruded into a
 * physical-looking disc by stacking ~13 copies of the PNG along the Z axis.
 * The outermost two slabs are the bright front and (mirrored) back faces;
 * the 11 dim middle slabs only become visible when the coin rotates toward
 * an edge-on angle — that's what creates the visible "thickness." No square
 * container, no flat back card, no chrome — the PNG's silhouette IS the
 * shape of the coin from every angle.
 */
.coin-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  justify-items: center; align-items: start;
  padding: 1.5rem 0 8rem;   /* room below for the hover tooltip */
}
.coin {
  width: clamp(180px, 19vw, 240px);
  aspect-ratio: 1 / 1;
  perspective: 1600px;
  position: relative;
  animation: coin-bob 5s ease-in-out infinite;
  cursor: pointer;
  outline: none;
}
.coin-3d {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  animation: coin-spin 11s linear infinite;
  transition: transform 1.4s cubic-bezier(.25,.85,.25,1);
  will-change: transform;
}
.coin:hover .coin-3d, .coin:focus-visible .coin-3d {
  animation-play-state: paused;
  transform: rotateY(720deg) rotateX(-8deg) scale(1.06);
}
/* Every slab is the same badge PNG — sized to the coin face, transparency intact. */
.coin-3d .cs {
  position: absolute; inset: 0;
  background-image: var(--coin-src);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
/* The bright front face — drop-shadows give it lift off the page. */
.coin-3d .cs-face {
  transform: translateZ(10px);
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.45))
          drop-shadow(0 0 16px rgba(74,163,255,.32));
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
/* Mirrored back face — flipped 180° so it reads upright when rotated through. */
.coin-3d .cs-back {
  transform: translateZ(-10px) rotateY(180deg);
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.35))
          brightness(.92) saturate(.9);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
/* The 11 middle slabs at Z = -5..5 — dimmed so they read as edge thickness,
   not as a second face. Only really visible during the edge-on rotation. */
.coin-3d .cs-mid {
  transform: translateZ(calc(var(--z) * 1.6px));
  filter: brightness(.42) saturate(.55) contrast(1.1);
  opacity: .85;
}
/* Soft blue puddle of light under the coin — sells the "floating disc" look. */
.coin-glow {
  position: absolute; left: -8%; right: -8%; bottom: -4%;
  height: 38%;
  background: radial-gradient(ellipse at center top,
              rgba(43,139,244,.55), rgba(43,139,244,.18) 45%, transparent 70%);
  filter: blur(20px); z-index: -1; pointer-events: none;
  opacity: .9;
  transition: opacity .35s ease, transform .35s ease;
}
.coin:hover .coin-glow { opacity: 1; transform: scale(1.08); }

/* Tooltip that fades in below the coin on hover/focus. */
.coin-tip {
  position: absolute; left: 50%; bottom: -6.5rem; transform: translateX(-50%) translateY(8px);
  width: min(300px, 88vw);
  padding: 1rem 1.15rem 1.05rem;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  text-align: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease, transform .3s cubic-bezier(.2,.8,.2,1);
  z-index: 4;
}
.coin:hover .coin-tip, .coin:focus-visible .coin-tip,
.coin:focus-within .coin-tip {
  opacity: 1; transform: translateX(-50%) translateY(0);
}
.coin-tip .ct-eyebrow {
  display: block; font-size: .65rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent-yellow);
  font-weight: 800; margin-bottom: .4rem;
}
.coin-tip .ct-name {
  display: block; font-size: .95rem; font-weight: 700; line-height: 1.35;
  margin-bottom: .45rem;
}
.coin-tip .ct-note {
  display: block; font-size: .8rem; color: var(--text-muted); line-height: 1.5;
}

@keyframes coin-spin { 0% { transform: rotateY(0); } 100% { transform: rotateY(360deg); } }
@keyframes coin-bob  { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) {
  .coin, .coin-3d { animation: none; }
}

/* --- FAQ answer thumbnail ----------------------------------------------- */
.faq-item .faq-figure {
  float: right; width: clamp(150px, 32%, 260px); margin: 0 0 .75rem 1.25rem;
  border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}
.faq-item .faq-figure img { width: 100%; height: auto; display: block; transition: transform .5s ease; }
.faq-item .faq-figure:hover img { transform: scale(1.04); }
.faq-item .faq-body::after { content: ""; display: block; clear: both; }
@media (max-width: 560px) { .faq-item .faq-figure { float: none; width: 100%; margin: 0 0 1rem; } }

/* --- Google review trust badge ------------------------------------------ */
.google-badge { gap: .4rem; }
.google-badge .g-top { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.google-badge .g-logo { font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.google-badge .g-score { font-weight: 800; font-size: 1.5rem; color: #2a2a2a; line-height: 1; }
.google-badge .g-stars { color: #fbbc05; font-size: 1.05rem; letter-spacing: 1px; }
.google-badge .badge-name { color: #5a6b80; font-weight: 700; }

/* --- Manufacturer logo wall (borderless, glow-backed) ------------------- */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(1rem, 2.5vw, 2.25rem);
  align-items: center; justify-items: center;
}
.logo-link {
  display: grid; place-items: center;
  width: 100%; min-height: 132px; padding: 1.5rem 1.25rem;
  border: none; background: transparent;
  /* soft white glow pool — no hard edges, fades fully to transparent */
  background-image: radial-gradient(ellipse 72% 64% at 50% 50%,
      rgba(255,255,255,.95) 0%, rgba(255,255,255,.62) 34%,
      rgba(255,255,255,.18) 56%, rgba(255,255,255,0) 72%);
  border-radius: 999px;
  transition: transform .35s ease, filter .35s ease;
}
.logo-link img {
  max-height: 56px; max-width: 100%; width: auto; object-fit: contain;
  transition: transform .35s ease;
}
.logo-link:hover, .logo-link:focus-visible {
  transform: translateY(-5px);
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.35));
  outline: none;
}
.logo-link:hover img, .logo-link:focus-visible img { transform: scale(1.07); }
@media (max-width: 520px) { .logo-link { min-height: 108px; padding: 1.1rem; } .logo-link img { max-height: 46px; } }

/* --- Ventilation airflow diagram ---------------------------------------- */
.vent-diagram {
  max-width: 920px; margin: 0 auto;
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.vent-diagram img { width: 100%; height: auto; display: block; }

/* --- Ventilation supporting figures + captions -------------------------- */
.vent-figure { max-width: 880px; margin: 0 auto; }
.vent-figure img { width: 100%; height: auto; display: block; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--glass-border); }
.vent-figure figcaption { text-align: center; color: var(--text-muted); font-size: .9rem; margin-top: .9rem; max-width: 64ch; margin-inline: auto; }

/* --- Ventilation systems showcase cards --------------------------------- */
.vsys-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.vsys-card {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r-lg); background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease, border-color .4s ease;
}
.vsys-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg), var(--shadow-glow-blue); border-color: rgba(74,163,255,.5); }
.vsys-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0b1422; }
.vsys-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.vsys-card:hover .vsys-media img { transform: scale(1.06); }
.vsys-media.logo { display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, #fff 0%, #eef3f8 70%, #dfe8f0 100%); }
.vsys-media.logo img { width: auto; max-width: 72%; max-height: 56%; object-fit: contain; }
.vsys-body { padding: 1.25rem 1.4rem 1.5rem; }
.vsys-body h3 { font-size: 1.2rem; margin: 0 0 .4rem; }
.vsys-body p { color: var(--text-muted); font-size: .9rem; line-height: 1.55; margin: 0; }

/* --- Universal image zoom lightbox -------------------------------------- */
.zoom-lb { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 4vw;
  background: radial-gradient(ellipse at center, rgba(20,32,56,.94), rgba(4,8,16,.97));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: zfade .25s ease; }
.zoom-lb[hidden] { display: none; }
.zoom-lb img {
  max-width: 94vw; max-height: 86vh; width: auto; height: auto;
  border-radius: var(--r-md);
  box-shadow: 0 40px 100px -20px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.06);
  animation: zpop .3s cubic-bezier(.16,1,.3,1);
}
.zoom-close, .zoom-prev, .zoom-next {
  position: absolute; width: 52px; height: 52px; border-radius: 999px;
  background: rgba(255,255,255,.10); color: #fff; font-size: 1.4rem; font-weight: 700;
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: grid; place-items: center; cursor: pointer;
  transition: background .18s ease, transform .18s ease, border-color .18s ease;
}
.zoom-close { top: 20px; right: 22px; }
.zoom-prev  { top: 50%; left: 22px;  transform: translateY(-50%); font-size: 1.8rem; }
.zoom-next  { top: 50%; right: 22px; transform: translateY(-50%); font-size: 1.8rem; }
.zoom-close:hover, .zoom-prev:hover, .zoom-next:hover {
  background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.4);
}
.zoom-prev:hover { transform: translate(-3px, -50%); }
.zoom-next:hover { transform: translate(3px, -50%); }
.zoom-cap {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  max-width: 80vw; padding: .5rem 1rem; border-radius: 999px;
  background: rgba(10,18,32,.65); color: var(--text-soft); font-size: .88rem;
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.zoom-cap:empty { display: none; }
@keyframes zfade { from { opacity: 0; } to { opacity: 1; } }
@keyframes zpop  { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }

/* Small "view photo" affordance overlay on .image-card hub tiles (the
   tile itself links to a sub-page; this little button opens the photo). */
.image-card .ic-zoom {
  position: absolute; top: .6rem; right: .6rem; z-index: 3;
  width: 36px; height: 36px; border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(10,18,32,.55); color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(-4px); transition: opacity .2s ease, transform .2s ease, background .2s ease;
  cursor: zoom-in;
}
.image-card:hover .ic-zoom, .image-card:focus-within .ic-zoom { opacity: 1; transform: none; }
.image-card .ic-zoom:hover { background: var(--accent-blue); }

/* --- All-blue credential cards (force_dark): logos glow, Google card on dark - */
.badge-card.glow img { filter: drop-shadow(0 0 7px rgba(255,255,255,.6)) drop-shadow(0 0 16px rgba(255,255,255,.32)); }
.badge-card.glow:hover img { filter: drop-shadow(0 0 9px rgba(255,255,255,.75)) drop-shadow(0 0 20px rgba(255,255,255,.4)); }
.google-badge.gdark .g-score { color: #eaf1fb; }
.google-badge.gdark .badge-name { color: var(--text-muted); }

/* =====================================================================
   AI Features Suite — Roof Health Check / Chat / Storm Triage / AI Quote
   ===================================================================== */

/* ---- Shared spinner ---- */
.rhc-spinner {
  display: inline-block;
  width: 22px; height: 22px;
  border: 2.5px solid rgba(255,255,255,.2);
  border-top-color: var(--accent-yellow);
  border-radius: 50%;
  animation: rhc-spin 1s linear infinite;
  vertical-align: middle;
}
@keyframes rhc-spin { to { transform: rotate(360deg); } }

/* =================================================================
   1. Roof Health Check (on /shingles.html)
   ================================================================= */
.rhc-card {
  max-width: 980px; margin-inline: auto;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  padding: clamp(1rem, 2.5vw, 2rem);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
}
.rhc-stage { position: relative; min-height: 340px; }

/* Drop zone */
.rhc-zone {
  display: flex; align-items: center; justify-content: center;
  padding: 2.5rem 1.5rem;
  border: 2px dashed rgba(255,255,255,.15);
  border-radius: var(--r-md);
  background: rgba(10,18,32,.35);
  text-align: center;
  transition: border-color .2s, background .2s;
}
.rhc-zone:hover, .rhc-zone.dragging {
  border-color: var(--accent-yellow);
  background: rgba(255,210,63,.05);
}
.rhc-ico { font-size: 2.5rem; margin-bottom: .5rem; }
.rhc-cta h3 { margin: .25rem 0 .35rem; font-size: 1.4rem; }
.rhc-cta > p { color: var(--text-muted); margin-bottom: 1rem; max-width: 46ch; margin-inline: auto; }
.rhc-fineprint { font-size: .78rem; margin-top: 1rem; }

/* Loading preview */
.rhc-preview {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #06090f;
}
.rhc-photo { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .6; }
.rhc-status {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: linear-gradient(0deg, rgba(10,18,32,.65), rgba(10,18,32,.3));
  color: #fff; text-align: center;
}
.rhc-status .rhc-status-text {
  display: block; font-size: 1.1rem; font-weight: 700; margin-top: .5rem;
}
.rhc-status .rhc-status-sub {
  display: block; opacity: .7; margin-top: .25rem;
}

/* Report card */
.rhc-report {
  display: grid;
  gap: 1.1rem;
}
.rhc-report-head {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--glass-border);
}
.rhc-report-eyebrow {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-blue); font-weight: 800;
}
.rhc-report-grade {
  font-family: "Bricolage Grotesque", serif;
  font-size: 2.4rem; font-weight: 800; line-height: 1;
  padding: .35rem .85rem; border-radius: var(--r-md);
  background: rgba(255,210,63,.18); color: var(--accent-yellow);
  min-width: 60px; text-align: center;
}
.rhc-report-grade[data-grade="A"] { background: rgba(34,197,94,.18); color: #4ade80; }
.rhc-report-grade[data-grade="B"] { background: rgba(43,139,244,.18); color: #60a5fa; }
.rhc-report-grade[data-grade="C"] { background: rgba(255,210,63,.18); color: var(--accent-yellow); }
.rhc-report-grade[data-grade="D"] { background: rgba(245,158,11,.18); color: #fbbf24; }
.rhc-report-grade[data-grade="F"] { background: rgba(239,68,68,.18); color: #f87171; }
.rhc-report-photo {
  width: 100%; max-height: 380px; object-fit: cover;
  border-radius: var(--r-md);
}
.rhc-report-body h4 {
  font-family: "Bricolage Grotesque", serif;
  font-size: 1.2rem; margin: 0 0 .5rem;
}
.rhc-headline {
  font-size: 1.15rem; font-weight: 600; line-height: 1.4;
  color: var(--text); margin-bottom: 1rem;
}
.rhc-obs {
  display: grid; gap: .55rem; margin: 0 0 1rem; padding: 0; list-style: none;
}
.rhc-obs li {
  display: grid; grid-template-columns: 28px 1fr; gap: .65rem;
  padding: .65rem .85rem;
  background: rgba(10,18,32,.35);
  border-left: 3px solid var(--glass-border);
  border-radius: 8px;
}
.rhc-obs li[data-icon="good"] { border-left-color: #4ade80; }
.rhc-obs li[data-icon="warn"] { border-left-color: var(--accent-yellow); }
.rhc-obs li[data-icon="bad"]  { border-left-color: #f87171; }
.rhc-obs .obs-ico {
  font-size: 1.1rem; line-height: 1.3; text-align: center;
}
.rhc-obs .obs-title { font-weight: 700; font-size: .98rem; }
.rhc-obs .obs-detail { color: var(--text-muted); font-size: .9rem; margin-top: .1rem; }
.rhc-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
  margin-bottom: 1rem;
}
.rhc-meta-cell {
  padding: .65rem .8rem; background: rgba(10,18,32,.4);
  border: 1px solid var(--glass-border); border-radius: 8px;
}
.rhc-meta-cell .lbl { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); }
.rhc-meta-cell .val { font-size: 1.05rem; font-weight: 700; margin-top: .15rem; display: block; }
.rhc-report-cta {
  padding: 1rem 1.1rem;
  background: linear-gradient(135deg, rgba(43,139,244,.15), rgba(255,210,63,.12));
  border: 1px solid color-mix(in srgb, var(--accent-yellow) 25%, transparent);
  border-radius: var(--r-md);
}
.rhc-report-cta p { margin-bottom: .75rem; }
.rhc-reset { margin-top: .25rem; align-self: start; }
.rhc-error {
  padding: 1.1rem 1.2rem; background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.3); border-radius: var(--r-md);
  color: #fecaca;
}
.rhc-disclaimer {
  font-size: .76rem; color: var(--text-muted);
  margin-top: 1rem; text-align: center; padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
}

/* =================================================================
   2. Ask HyTech floating chat widget (every page)
   ================================================================= */
.hyc-root { position: fixed; right: 18px; bottom: 88px; z-index: 200; }
@media (max-width: 700px) { .hyc-root { right: 12px; bottom: 76px; } }

.hyc-bubble {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .7rem 1.05rem;
  background: linear-gradient(135deg, var(--accent-blue), #1f7ce3);
  color: #fff;
  border: 0; border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 14px 32px -8px rgba(43,139,244,.55), 0 6px 14px -4px rgba(0,0,0,.4);
  font-weight: 700; font-size: .9rem;
  transition: transform .15s, box-shadow .2s;
}
.hyc-bubble:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -8px rgba(43,139,244,.7); }
.hyc-bubble-ico { font-size: 1.2rem; }
.hyc-bubble-dot {
  width: 9px; height: 9px; background: var(--accent-yellow);
  border-radius: 999px; box-shadow: 0 0 0 3px rgba(255,210,63,.25);
  animation: hyc-pulse 2s ease-in-out infinite;
}
@keyframes hyc-pulse { 50% { box-shadow: 0 0 0 7px rgba(255,210,63,.08); } }

.hyc-panel {
  position: absolute; right: 0; bottom: calc(100% + 12px);
  width: min(380px, calc(100vw - 30px));
  height: min(560px, calc(100vh - 180px));
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #15203a, #0d1626);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  box-shadow: 0 24px 56px -16px rgba(0,0,0,.6);
  overflow: hidden;
}
.hyc-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1rem; background: rgba(43,139,244,.1);
  border-bottom: 1px solid var(--glass-border);
}
.hyc-title { font-weight: 800; font-size: 1rem; font-family: "Bricolage Grotesque", serif; }
.hyc-sub { font-size: .72rem; color: var(--text-muted); margin-top: .15rem; }
.hyc-close { background: transparent; border: 0; color: var(--text-muted); font-size: 1.1rem; cursor: pointer; padding: 4px 8px; }
.hyc-close:hover { color: #fff; }

.hyc-log {
  flex: 1; overflow-y: auto;
  padding: 1rem;
  display: flex; flex-direction: column; gap: .65rem;
  scroll-behavior: smooth;
}
.hyc-msg {
  max-width: 85%;
  padding: .55rem .8rem;
  border-radius: 14px;
  font-size: .9rem; line-height: 1.5;
  white-space: pre-wrap;
}
.hyc-msg-user {
  align-self: flex-end;
  background: var(--accent-blue); color: #fff;
  border-bottom-right-radius: 4px;
}
.hyc-msg-bot {
  align-self: flex-start;
  background: rgba(255,255,255,.06); color: var(--text);
  border-bottom-left-radius: 4px;
}
.hyc-msg-bot a { color: var(--accent-yellow); text-decoration: underline; }
.hyc-msg-typing {
  align-self: flex-start; background: rgba(255,255,255,.06);
  padding: .55rem .9rem; border-radius: 14px; border-bottom-left-radius: 4px;
  display: inline-flex; gap: 4px;
}
.hyc-msg-typing span {
  width: 6px; height: 6px; background: var(--text-muted); border-radius: 50%;
  animation: hyc-typing 1.2s ease-in-out infinite;
}
.hyc-msg-typing span:nth-child(2) { animation-delay: .15s; }
.hyc-msg-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes hyc-typing { 0%, 80%, 100% { transform: scale(0.6); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }

.hyc-form {
  display: flex; gap: .35rem;
  padding: .55rem .55rem .65rem;
  border-top: 1px solid var(--glass-border);
}
.hyc-input {
  flex: 1; padding: .55rem .8rem;
  background: rgba(10,18,32,.6); color: #fff;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  font-size: .9rem;
}
.hyc-input::placeholder { color: var(--text-muted); }
.hyc-input:focus { outline: none; border-color: var(--accent-blue); }
.hyc-send {
  width: 38px; height: 38px;
  background: var(--accent-blue); color: #fff;
  border: 0; border-radius: 999px;
  font-size: 1.1rem; font-weight: 800;
  cursor: pointer;
}
.hyc-send:hover { background: #1f7ce3; }
.hyc-send:disabled { opacity: .45; cursor: not-allowed; }
.hyc-foot {
  padding: .35rem .9rem .5rem;
  text-align: center; font-size: .7rem; color: var(--text-muted);
}
.hyc-foot a { color: var(--accent-yellow); }

/* Suggested prompts shown on first open */
.hyc-suggest {
  display: flex; flex-wrap: wrap; gap: .35rem;
  padding: .25rem 0 .5rem;
}
.hyc-chip {
  background: rgba(255,255,255,.06); border: 1px solid var(--glass-border);
  padding: .35rem .65rem; border-radius: 999px;
  color: var(--text); font-size: .76rem; cursor: pointer;
}
.hyc-chip:hover { background: rgba(255,255,255,.12); border-color: var(--accent-blue); }

/* =================================================================
   3. Storm Damage Triage modal
   ================================================================= */
.sm-triage-btn {
  background: rgba(255,255,255,.18); color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  padding: .35rem .75rem; border-radius: 999px;
  font-weight: 700; cursor: pointer;
}
.sm-triage-btn:hover { background: rgba(255,255,255,.3); }

.storm-triage {
  position: fixed; inset: 0; z-index: 250;
  display: grid; place-items: center;
}
.storm-triage[hidden] { display: none; }
.st-backdrop {
  position: absolute; inset: 0;
  background: rgba(6,9,15,.78); backdrop-filter: blur(8px);
}
.st-panel {
  position: relative;
  width: min(640px, 92vw);
  max-height: 88vh;
  background: linear-gradient(180deg, #15203a, #0d1626);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.7);
  overflow: auto;
  padding: 1.5rem 1.5rem 1.75rem;
}
.st-close {
  position: absolute; top: 10px; right: 10px;
  background: transparent; border: 0; color: var(--text-muted);
  font-size: 1.2rem; cursor: pointer; padding: 6px 10px; border-radius: 8px;
}
.st-close:hover { color: #fff; background: rgba(255,255,255,.08); }
.st-eyebrow {
  display: inline-block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: #f87171; font-weight: 800; margin-bottom: .35rem;
}
.st-zone { padding: 1rem 0 .5rem; text-align: center; }
.st-zone h3 { font-size: 1.5rem; margin: .35rem 0 .5rem; }
.st-zone > p { max-width: 50ch; margin-inline: auto; color: var(--text-muted); }
.st-loading { text-align: center; padding: 2rem 1rem; }
.st-loading p { margin-top: .65rem; font-weight: 700; }
.st-report .obs-section { margin-bottom: 1rem; }
.st-report .obs-section h4 {
  font-family: "Bricolage Grotesque", serif;
  font-size: 1.1rem; margin: 0 0 .5rem;
}
.st-damage-item {
  padding: .65rem .85rem;
  background: rgba(10,18,32,.4);
  border-left: 3px solid;
  border-radius: 8px;
  margin-bottom: .45rem;
}
.st-damage-item[data-sev="minor"]    { border-left-color: var(--accent-yellow); }
.st-damage-item[data-sev="moderate"] { border-left-color: #fbbf24; }
.st-damage-item[data-sev="severe"]   { border-left-color: #f87171; }
.st-damage-item strong { display: block; margin-bottom: .15rem; }
.st-damage-item small { color: var(--text-muted); }
.st-flag {
  display: inline-block;
  padding: .35rem .7rem; border-radius: 999px;
  font-size: .82rem; font-weight: 700;
  margin-right: .35rem; margin-bottom: .5rem;
}
.st-flag-claim   { background: rgba(245,158,11,.18); color: #fbbf24; }
.st-flag-tarp    { background: rgba(239,68,68,.18); color: #f87171; }
.st-cta-band {
  margin-top: 1rem; padding: 1rem;
  background: linear-gradient(135deg, rgba(43,139,244,.15), rgba(255,210,63,.12));
  border: 1px solid color-mix(in srgb, var(--accent-yellow) 25%, transparent);
  border-radius: var(--r-md);
  text-align: center;
}
.st-error {
  padding: 1.1rem; background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.3); border-radius: var(--r-md);
  color: #fecaca;
}

/* =================================================================
   4. AI Quote (extension of the existing estimator)
   ================================================================= */
.est-ai-result {
  margin-top: 1rem; padding: 1rem 1.1rem;
  background: rgba(10,18,32,.45);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
}
.est-ai-loading { color: var(--text-muted); font-weight: 700; }
.est-ai-body h4 {
  font-family: "Bricolage Grotesque", serif;
  font-size: 1.15rem; margin: 0 0 .5rem;
}
.est-ai-range {
  display: flex; align-items: baseline; gap: .35rem;
  font-family: "Bricolage Grotesque", serif;
  font-size: 1.65rem; font-weight: 800;
  margin: .35rem 0 .65rem;
}
.est-ai-range .sep { font-size: 1.1rem; color: var(--text-muted); }
.est-ai-summary { color: var(--text-soft); margin-bottom: .85rem; }
.est-ai-factors {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: .35rem;
}
.est-ai-factors li {
  padding: .5rem .75rem; background: rgba(255,255,255,.04);
  border-radius: 8px;
}
.est-ai-factors strong { display: block; font-size: .92rem; }
.est-ai-factors small { color: var(--text-muted); }
