/* ===================================================
   Sun-Brite — Design System v2
   Bold, large-scale identity: deep navy + royal blue,
   built to read as a powerful national leader.
=================================================== */

:root {
  --navy-deep: #201F22;
  --navy: #2D2C30;
  --navy-soft: #403F45;
  --blue: #1E5AA8;
  --blue-bright: #2E7EEA;
  --sky: #7FB6E8;
  --sky-pale: #DCEBFA;
  --white: #FFFFFF;
  --paper: #F7F7F8;
  --paper-deep: #ECECEE;
  --ink: #0D0D0F;
  --charcoal: #0D0D0F;
  --charcoal-soft: #52545A;
  --line: rgba(13, 13, 15, 0.1);
  --line-on-dark: rgba(255, 255, 255, 0.12);

  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1280px;
  --radius: 6px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
/* overflow-x is intentionally set on body only, not html — setting it on
   both breaks position:sticky (site-header, section-nav) in most browsers,
   since it forces html and body into two competing scroll containers. */
body { max-width: 100%; overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--paper);
  line-height: 1.7;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.14;
  margin: 0 0 0.55em;
  color: var(--ink);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 4.6vw, 3.8rem); font-weight: 500; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.7rem, 2.9vw, 2.3rem); font-weight: 500; letter-spacing: -0.018em; }
h3 { font-size: 1.28rem; font-weight: 600; letter-spacing: -0.01em; }

p { margin: 0 0 1.3em; color: var(--charcoal-soft); font-size: 0.98rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.2em;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--blue-bright);
  display: inline-block;
  flex-shrink: 0;
}
.eyebrow.on-dark { color: var(--sky); }
.eyebrow.on-dark::before, .page-hero .eyebrow::before { background: var(--sky); }
.partner-bar .eyebrow.on-dark { color: var(--blue); }
.partner-bar .eyebrow::before { background: var(--blue-bright); }
.section-head.center .eyebrow { justify-content: center; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

section { padding: 156px 0; }
section.tight { padding: 116px 0; }

.section-head {
  max-width: 620px;
  margin: 0 0 68px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 3px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-bright); transform: translateY(-2px); box-shadow: 0 12px 22px rgba(16, 22, 31, 0.18); }
.btn-outline {
  background: transparent;
  border-color: rgba(16, 22, 31, 0.24);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--white); border-color: var(--ink); transform: translateY(-2px); }
.btn-light {
  background: var(--white);
  color: var(--ink);
}
.btn-light:hover { background: var(--sky-pale); transform: translateY(-2px); box-shadow: 0 12px 22px rgba(7, 27, 51, 0.14); }
.btn-on-dark {
  border-color: rgba(255,255,255,0.45);
  color: var(--white);
}
.btn-on-dark:hover { background: rgba(255,255,255,0.12); border-color: var(--white); transform: translateY(-2px); }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.6);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 32px;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar-inner a { color: rgba(255,255,255,0.85); }
.topbar-inner a:hover { color: var(--sky); }
.topbar-inner .divider { opacity: 0.4; margin: 0 4px; }

/* Language toggle — EN | FR, sits in the topbar, right side */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}
.lang-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: color 0.2s ease;
}
.lang-btn:hover { color: rgba(255,255,255,0.88); }
.lang-btn.active { color: var(--white); }
.lang-switch .lang-sep { color: rgba(255,255,255,0.28); }

/* Google Translate widget — loaded invisibly; the .lang-btn toggle above
   drives it directly, so all of Google's own UI (toolbar, top banner,
   floating gadget, tooltips, highlight boxes) is hidden. Never remove
   #google_translate_element itself — the toggle has nothing to control
   without it. Google injects some of this after the fact (its own script
   re-adds the top banner iframe and nudges body/html down with inline
   styles), so this is reinforced by JS in main.js as a belt-and-suspenders
   fix — CSS alone intermittently loses that race. */
#google_translate_element,
#google_translate_element * { display: none !important; }
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
iframe.skiptranslate,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-te-menu-frame { display: none !important; visibility: hidden !important; height: 0 !important; }
body, html { top: 0 !important; margin-top: 0 !important; }
.goog-te-gadget-icon { display: none !important; }
.goog-tooltip, .goog-tooltip:hover { display: none !important; visibility: hidden !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

/* Mobile-only CTA bar — swaps in for the phone/hours bar on small screens */
.topbar-mobile-cta { display: none; padding: 10px 20px; text-align: center; }
.topbar-mobile-cta .btn { width: 100%; justify-content: center; }
/* The desktop topbar-inner (which holds the EN|FR toggle) is hidden below
   760px in favor of this CTA bar — without this, the language toggle would
   disappear entirely on mobile. Reuses the same .lang-switch/.lang-btn
   styles, which are already designed for the topbar's dark background. */
.topbar-mobile-lang { display: flex; justify-content: center; margin-top: 10px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 247, 251, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
  box-shadow: 0 12px 28px rgba(7, 27, 51, 0.08);
}
.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 17px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.logo span { color: var(--blue-bright); }
.logo-img {
  height: 34px;
  width: auto;
  display: block;
}
.footer-grid .logo-img {
  height: 38px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--charcoal-soft);
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--blue-bright);
}
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-cta .btn { padding: 11px 22px; font-size: 0.68rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-deep);
  margin: 5px 0;
  transition: 0.25s;
}

/* ---------- Hero (large-scale, dark, elevated) ---------- */
.hero {
  padding: 160px 0 168px;
  background:
    radial-gradient(circle at 88% -15%, rgba(46, 126, 234, 0.3) 0%, rgba(46,126,234,0) 50%),
    linear-gradient(165deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-soft) 100%);
  position: relative;
  overflow: hidden;
  z-index: 0;
}
.hero::before {
  content: "";
  position: absolute;
  bottom: -220px; left: -160px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127,182,232,0.16) 0%, rgba(127,182,232,0) 70%);
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 100px;
  background: var(--paper);
  clip-path: polygon(0 100%, 100% 46%, 100% 100%);
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 740px;
}
.hero h1 { color: var(--white); }
.hero p.lede {
  font-size: 1.08rem;
  max-width: 560px;
  color: rgba(255,255,255,0.0);
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 38px;
  flex-wrap: wrap;
}

.page-hero {
  padding: 140px 0 120px;
  background:
    radial-gradient(circle at 92% -5%, rgba(46, 126, 234, 0.26) 0%, rgba(46,126,234,0) 50%),
    linear-gradient(165deg, var(--navy-deep) 0%, var(--navy) 100%);
  position: relative;
  overflow: hidden;
  z-index: 0;
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 84px;
  background: var(--paper);
  clip-path: polygon(0 100%, 100% 52%, 100% 100%);
  z-index: 1;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { max-width: 740px; color: var(--white); font-size: clamp(2.2rem, 4.4vw, 3.2rem); }
.page-hero p.lede { max-width: 600px; font-size: 1rem; color: rgba(255,255,255,0.76); line-height: 1.75; }
.page-hero .eyebrow { color: var(--sky); }

/* ---------- Stat strip (under hero) ---------- */
.hero-stats {
  position: relative;
  border-top: 1px solid var(--line-on-dark);
  margin-top: 56px;
  padding-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.hero-stats .stat h3 { color: var(--white); font-size: 2rem; font-style: italic; font-weight: 400; margin-bottom: 4px; }
.hero-stats .stat p { color: rgba(255,255,255,0.6); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; margin: 0; font-weight: 600; }

/* ---------- Cards / Grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  counter-reset: card;
}
.audience-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 46px 36px 40px;
  counter-increment: card;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.audience-card::before {
  content: "0" counter(card);
  position: absolute;
  top: -10px; right: 20px;
  font-family: var(--font-head);
  font-size: 3.8rem;
  font-weight: 500;
  font-style: italic;
  color: var(--paper-deep);
  z-index: 0;
  line-height: 1;
}
.audience-card > * { position: relative; z-index: 1; }
.audience-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 36px rgba(16, 22, 31, 0.08);
  border-color: rgba(16, 22, 31, 0.18);
}
.audience-card .tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 16px;
  display: block;
}
.audience-card h3 { margin-bottom: 12px; font-size: 1.2rem; }
.audience-card a.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--blue-bright);
  padding-bottom: 2px;
  transition: gap 0.2s ease, color 0.2s ease;
}
.audience-card a.card-link:hover { gap: 10px; color: var(--blue-bright); }

.swatch-block {
  position: relative;
  overflow: hidden;
  background: var(--paper-deep);
  color: var(--ink);
  border-radius: 6px;
  padding: 72px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue-bright);
}
.swatch-block::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46,126,234,0.08), transparent 70%);
}
.swatch-block h2, .swatch-block h3 { color: var(--ink); position: relative; }
.swatch-block p { color: var(--charcoal-soft); position: relative; }
.swatch-block > * { position: relative; }

/* ---------- Two column ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media {
  background: var(--white);
  border-radius: 6px;
  aspect-ratio: 4/3;
  padding: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px rgba(7, 27, 51, 0.07);
}
.media-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 3px;
  background:
    radial-gradient(circle at 25% 15%, rgba(46,126,234,0.32), transparent 55%),
    linear-gradient(150deg, var(--navy) 0%, var(--navy-soft) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 400;
  color: var(--white);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 20px;
  overflow: hidden;
}
.media-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  padding: 0;
}

/* ---------- Lists ---------- */
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}
.feature-list li {
  position: relative;
  padding-left: 28px;
  color: var(--charcoal-soft);
  font-size: 0.95rem;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-bright);
}
.feature-list.on-dark li { color: rgba(255,255,255,0.85); }
.feature-list.on-dark li::before { background: var(--sky); }

/* ---------- Partner / trust bar ---------- */
.partner-bar {
  position: relative;
  overflow: hidden;
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 76px 0;
}
.partner-bar .partner-head {
  text-align: center;
  margin-bottom: 48px;
  position: relative;
}
.partner-bar .partner-head .eyebrow { color: var(--blue); justify-content: center; }
.partner-bar .partner-head h2 { color: var(--ink); font-size: clamp(1.5rem, 2.4vw, 2rem); font-style: italic; font-weight: 400; }
.partner-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  position: relative;
}
.partner-mark {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px 20px;
  text-align: center;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--white);
  transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.partner-mark:hover { background: var(--paper); transform: translateY(-3px); border-color: rgba(46,126,234,0.35); }
.partner-mark small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-top: 10px;
}

/* ---------- Altex-featured trust block ---------- */
.partner-feature {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
  position: relative;
}
.partner-feature .altex-mark {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  font-weight: 500;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.partner-feature .altex-desc {
  color: var(--charcoal-soft);
  max-width: 480px;
  margin: 0 auto 32px;
  font-size: 0.92rem;
}
.partner-feature .altex-systems {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.partner-also {
  margin-top: 44px;
  text-align: center;
  font-size: 0.76rem;
  color: var(--charcoal-soft);
  letter-spacing: 0.03em;
}
.partner-also strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Portfolio / gallery ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 30px;
}
.portfolio-grid .p-item {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  background:
    radial-gradient(circle at 30% 20%, rgba(46,126,234,0.3), transparent 55%),
    linear-gradient(150deg, var(--navy-soft), var(--navy-deep) 130%);
  border: 4px solid var(--white);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s ease;
}
.portfolio-grid .p-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.16);
}
.portfolio-grid .p-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.portfolio-grid .p-item-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: 20px 22px;
  background: linear-gradient(0deg, rgba(0,0,0,0.65), transparent 75%);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.portfolio-grid .p-item:hover .p-item-caption { opacity: 1; transform: translateY(0); }
.portfolio-grid .p-item-caption h4 {
  color: var(--white);
  font-size: 0.98rem;
  margin: 0 0 4px;
  font-style: italic;
  font-weight: 400;
}
.portfolio-grid .p-item-caption span {
  color: rgba(255,255,255,0.75);
  font-size: 0.64rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.portfolio-grid .p-item.tall { grid-row: span 2; }
.portfolio-grid .p-item.wide { grid-column: span 2; }
.portfolio-grid .p-item.alt {
  background:
    radial-gradient(circle at 70% 80%, rgba(46,126,234,0.18), transparent 60%),
    linear-gradient(150deg, var(--paper-deep), var(--charcoal-soft) 160%);
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.gallery-strip .g-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
  border-radius: 3px;
  background: linear-gradient(160deg, var(--paper-deep), var(--white));
  border: 4px solid var(--white);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.gallery-strip .g-item:hover { transform: translateY(-4px); box-shadow: 0 18px 32px rgba(0, 0, 0, 0.12); }
.gallery-strip .g-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ---------- Brand cards (products) ---------- */
.brand-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 44px;
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.brand-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(16, 22, 31, 0.07);
}
.brand-card .brand-mark {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 500;
  font-style: italic;
  color: var(--ink);
  border-right: 1px solid var(--line);
  padding-right: 28px;
}
.brand-card:last-child { margin-bottom: 0; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px;
}
.category-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px 26px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(16, 22, 31, 0.07);
  border-color: rgba(46, 126, 234, 0.22);
}
.category-card h4 {
  font-family: var(--font-head);
  font-weight: 500;
  font-style: italic;
  font-size: 1.02rem;
  margin-bottom: 8px;
  color: var(--ink);
}
.category-card p { font-size: 0.86rem; margin: 0; }

/* ---------- Mini brand mentions (secondary, low-emphasis) ---------- */
.mini-brand-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.mini-brand {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.mini-brand h4 {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 500;
  font-size: 1rem;
  color: var(--charcoal-soft);
  margin-bottom: 6px;
}
.mini-brand p {
  font-size: 0.84rem;
  margin: 0;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border-radius: 6px;
  padding: 60px 64px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue-bright);
  box-shadow: 0 20px 44px rgba(13, 13, 15, 0.06);
}
.cta-band::before {
  content: "";
  position: absolute;
  top: -100px; right: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46,126,234,0.08), transparent 70%);
}
.cta-band h2 { color: var(--ink); margin-bottom: 6px; font-style: italic; font-weight: 400; position: relative; }
.cta-band p { color: var(--charcoal-soft); margin: 0; position: relative; font-size: 0.92rem; }
.cta-band > a { position: relative; }

/* ---------- Meet the Team directory ---------- */
.team-directory { display: grid; gap: 0; }
.team-dept {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  padding: 48px 0 48px 28px;
  border-bottom: 1px solid var(--line);
  border-left: 4px solid var(--accent, var(--line));
}
.team-dept:first-child { padding-top: 0; }
.team-dept:last-child { border-bottom: none; padding-bottom: 0; }
.team-dept:nth-child(1) { --accent: var(--ink); }
.team-dept:nth-child(2) { --accent: var(--blue); }
.team-dept:nth-child(3) { --accent: var(--blue-bright); }
.team-dept:nth-child(even) {
  background: var(--paper-deep);
  border-radius: 4px;
  padding-right: 28px;
}
.team-dept-label { align-self: start; }
.team-dept-label .eyebrow { margin-bottom: 10px; color: var(--accent, var(--blue)); }
.team-dept-label .eyebrow::before { background: var(--accent, var(--blue-bright)); }
.team-dept-label h3 { font-style: italic; font-weight: 400; font-size: 1.5rem; margin-bottom: 6px; }
.team-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 28px;
}
.team-card { display: flex; flex-direction: column; }
.team-card-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 8px;
  background: linear-gradient(160deg, var(--paper-deep), var(--charcoal-soft));
  border: 1px solid var(--line);
  box-shadow: 0 10px 22px rgba(13, 13, 15, 0.08);
  margin-bottom: 16px;
  overflow: hidden;
}
.team-card-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.team-card-name {
  font-family: var(--font-head); font-style: italic; font-weight: 500;
  font-size: 1.12rem; color: var(--ink); margin-bottom: 3px; display: block;
}
.team-card-title {
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--blue); font-weight: 600; display: block;
}
@media (max-width: 960px) {
  .team-dept { grid-template-columns: 1fr; gap: 20px; padding-left: 20px; }
  .team-dept:nth-child(even) { padding-right: 20px; }
}
@media (max-width: 620px) {
  .team-card-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 18px; }
}
.team-rows { display: grid; }
.team-rows.cols-2 { grid-template-columns: 1fr 1fr; column-gap: 28px; }
.team-person-row {
  display: flex; align-items: center; gap: 18px; padding: 14px 16px;
  border-bottom: 1px solid var(--line); border-radius: 4px;
  transition: background 0.25s ease, padding-left 0.25s ease;
}
.team-person-row:last-child { border-bottom: none; }
.team-person-row:hover { background: var(--white); padding-left: 22px; }
.team-person-avatar {
  width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(160deg, var(--paper-deep), var(--charcoal-soft));
  border: 3px solid var(--white); box-shadow: 0 8px 18px rgba(13, 13, 15, 0.1); overflow: hidden;
}
.team-person-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 50%; }
.team-person-info { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.team-person-main { display: flex; flex-direction: column; gap: 3px; }
.team-person-name { font-family: var(--font-head); font-style: italic; font-size: 1.02rem; font-weight: 500; color: var(--charcoal-soft); }
.team-person-title { font-size: 0.72rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--blue); font-weight: 600; }
.team-person-email { font-size: 0.8rem; font-weight: 600; color: var(--blue-bright); word-break: break-word; }
@media (max-width: 620px) {
  .team-person-info { flex-direction: column; align-items: flex-start; gap: 6px; }
  .team-rows.cols-2 { grid-template-columns: 1fr; }
}

/* ---------- History timeline ---------- */
.timeline { max-width: 760px; position: relative; }
.timeline::before {
  content: ""; position: absolute; top: 4px; bottom: 4px; left: 138px;
  width: 1px; background: var(--line); z-index: 0;
}
.timeline-item {
  position: relative; display: grid; grid-template-columns: 100px 28px 1fr;
  column-gap: 24px; align-items: start; padding: 26px 0; border-bottom: 1px solid var(--line);
}
.timeline-item:first-child { padding-top: 0; }
.timeline-item:last-child { border-bottom: none; padding-bottom: 0; }
.timeline-year {
  font-family: var(--font-head); font-style: italic; font-weight: 500;
  font-size: 1.5rem; color: var(--ink); padding-top: 2px;
}
.timeline-marker { position: relative; z-index: 1; display: flex; justify-content: center; padding-top: 8px; }
.timeline-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--blue-bright);
  border: 3px solid var(--paper-deep); box-shadow: 0 0 0 1px var(--line);
}
.timeline-content h4 {
  font-family: var(--font-head); font-style: italic; font-weight: 500;
  font-size: 1.04rem; color: var(--ink); margin-bottom: 4px;
}
.timeline-content p { margin: 0; font-size: 0.92rem; }
@media (max-width: 620px) {
  .timeline::before { left: 80px; }
  .timeline-item { grid-template-columns: 56px 20px 1fr; column-gap: 14px; }
  .timeline-year { font-size: 1.05rem; }
}

/* ---------- Slider ---------- */
.slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.slider-track {
  display: flex;
  transition: transform 0.5s ease;
}
.slide {
  min-width: 100%;
  aspect-ratio: 21/8;
  background:
    radial-gradient(circle at 80% 0%, rgba(46,126,234,0.28), transparent 55%),
    linear-gradient(135deg, var(--navy-deep), var(--navy-soft) 140%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  padding: 40px;
}
.slide h3 { color: var(--white); font-size: 2rem; }
.slide-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.slide-dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 0;
}
.slide-dots button.active { background: var(--white); }

/* ---------- Stats ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  text-align: center;
}
.stat-row .stat {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.stat-row .stat h3 {
  font-size: 2.4rem;
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 4px;
}
.stat-row .stat p {
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  margin: 0;
  font-weight: 600;
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.team-card {
  text-align: center;
  transition: transform 0.3s ease;
}
.team-card:hover { transform: translateY(-3px); }
.team-card .avatar {
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--paper-deep), var(--charcoal-soft));
  margin-bottom: 16px;
  border: 3px solid var(--white);
  box-shadow: 0 14px 26px rgba(16, 22, 31, 0.1);
}
.team-card h4 { font-family: var(--font-head); font-weight: 500; font-size: 1rem; margin-bottom: 2px; color: var(--ink); }
.team-card p { font-size: 0.78rem; margin: 0; color: var(--charcoal-soft); font-style: italic; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 88px;
}
.contact-block {
  border-left: 1px solid var(--blue-bright);
  padding-left: 20px;
  margin-bottom: 30px;
}
.contact-block h4 {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--charcoal-soft);
  margin-bottom: 8px;
}
.contact-block p { margin: 0; font-size: 1rem; color: var(--ink); }
.map-placeholder {
  border-radius: 4px;
  border: 1px solid var(--line);
  aspect-ratio: 4/3;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 20%, rgba(46,126,234,0.3), transparent 55%),
    linear-gradient(150deg, var(--navy), var(--navy-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 400;
}
/* The embedded Google Maps iframe carries hardcoded width/height HTML
   attributes (600x450) — without this, it ignores its container entirely
   and forces horizontal overflow/scrolling on any screen narrower than
   ~650px, which is most phones. */
.map-placeholder iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Reusable 2-up form row (e.g. Name + Phone) that stacks to one column on
   small screens instead of squeezing both fields down to ~110px wide. */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 560px) {
  .form-row-2 { grid-template-columns: 1fr; }
}

/* ---------- Pull quote ---------- */
.quote-block {
  position: relative;
  text-align: center;
  padding: 110px 0;
}
.quote-block .container { max-width: 760px; }
.quote-mark {
  font-family: var(--font-head);
  font-size: 5rem;
  line-height: 1;
  color: var(--paper-deep);
  margin: 0 0 -1rem;
}
.quote-text {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.4;
  margin: 0 0 26px;
}
.quote-rule {
  width: 44px;
  height: 1px;
  background: var(--blue-bright);
  margin: 0 auto 22px;
}
.quote-attribution {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--charcoal-soft);
  margin: 0;
}

/* ---------- Alternate section tint ---------- */
.tint {
  background: var(--paper-deep);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1);
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}
.card-grid > *:nth-child(1), .category-grid > *:nth-child(1), .portfolio-grid > *:nth-child(1),
.team-grid > *:nth-child(1), .partner-row > *:nth-child(1), .stat-row > *:nth-child(1), .hero-stats > *:nth-child(1) { transition-delay: 0s; }
.card-grid > *:nth-child(2), .category-grid > *:nth-child(2), .portfolio-grid > *:nth-child(2),
.team-grid > *:nth-child(2), .partner-row > *:nth-child(2), .stat-row > *:nth-child(2), .hero-stats > *:nth-child(2) { transition-delay: 0.08s; }
.card-grid > *:nth-child(3), .category-grid > *:nth-child(3), .portfolio-grid > *:nth-child(3),
.team-grid > *:nth-child(3), .partner-row > *:nth-child(3), .stat-row > *:nth-child(3), .hero-stats > *:nth-child(3) { transition-delay: 0.16s; }
.card-grid > *:nth-child(4), .category-grid > *:nth-child(4), .portfolio-grid > *:nth-child(4),
.team-grid > *:nth-child(4), .partner-row > *:nth-child(4), .stat-row > *:nth-child(4), .hero-stats > *:nth-child(4) { transition-delay: 0.24s; }
.portfolio-grid > *:nth-child(5) { transition-delay: 0.32s; }
.portfolio-grid > *:nth-child(6) { transition-delay: 0.4s; }
.portfolio-grid > *:nth-child(7) { transition-delay: 0.48s; }
.portfolio-grid > *:nth-child(8) { transition-delay: 0.56s; }

/* ---------- Filterable Photo Gallery (residential.html) ---------- */
.gallery-filter-bar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 40px;
}
.gallery-filter-bar .configurator-chip { font-size: 0.82rem; }
.photo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px;
}
.photo-grid-item {
  position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 4/3;
  background: var(--paper-deep); box-shadow: 0 2px 10px rgba(13,13,15,0.06);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  animation: galleryFadeIn 0.4s ease both;
}
.photo-grid-item:hover { transform: translateY(-5px); box-shadow: 0 22px 38px rgba(13,13,15,0.18); }
.photo-grid-item img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.45s ease;
}
.photo-grid-item:hover img { transform: scale(1.07); }
.photo-grid-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(13,13,15,0.55) 0%, rgba(13,13,15,0) 46%);
  opacity: 0; transition: opacity 0.28s ease;
}
.photo-grid-item:hover::after { opacity: 1; }
.photo-badge {
  position: absolute; left: 12px; bottom: 12px; z-index: 1;
  background: rgba(13,13,15,0.72); color: var(--white); font-size: 0.64rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em; padding: 6px 12px; border-radius: 20px;
  opacity: 0; transform: translateY(8px); transition: opacity 0.28s ease, transform 0.28s ease;
}
.photo-grid-item:hover .photo-badge { opacity: 1; transform: translateY(0); }
.gallery-hidden { display: none !important; }
@keyframes galleryFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 760px) {
  .photo-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .gallery-filter-bar { gap: 8px; }
}

/* ---------- Image lightbox ---------- */
.lightbox-trigger { cursor: zoom-in; }
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 15, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 1000;
}
.lightbox-overlay.active { opacity: 1; visibility: visible; }
.lightbox-overlay .lightbox-img {
  max-width: 90vw;
  max-height: 86vh;
  border-radius: 4px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  display: block;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.lightbox-overlay.active .lightbox-img { opacity: 1; transform: scale(1); }
.lightbox-close {
  position: absolute;
  top: 28px; right: 32px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.6); transform: rotate(90deg); }
.lightbox-close svg { width: 20px; height: 20px; }
body.lightbox-open { overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.75);
  padding: 76px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid .logo { color: var(--white); }
.footer-grid p { color: rgba(255,255,255,0.5); font-size: 0.84rem; }
.footer-social { display: flex; gap: 12px; margin-top: 22px; }
.social-link {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.social-link:hover { background: var(--blue-bright); border-color: var(--blue-bright); color: var(--white); transform: translateY(-2px); }
.social-link svg { width: 16px; height: 16px; display: block; }
.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { font-size: 0.84rem; color: rgba(255,255,255,0.6); }
.footer-col a:hover { color: var(--sky); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-media { order: 0; }
  .gallery-strip { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .portfolio-grid .p-item.wide { grid-column: span 2; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .brand-card { grid-template-columns: 1fr; }
  .brand-card .brand-mark { border-right: none; border-bottom: 1px solid var(--line); padding-right: 0; padding-bottom: 12px; }
  .partner-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta .btn-outline, .nav-cta .btn-primary { display: none; }
  .nav-toggle { display: block; }
  .topbar-inner { display: none; }
  .topbar-mobile-cta { display: block; }
  .nav-wrap.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 20px 28px 28px;
    border-bottom: 1px solid var(--line);
    gap: 18px;
  }
  section { padding: 84px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .gallery-strip { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .portfolio-grid .p-item.wide { grid-column: span 1; }
  .portfolio-grid .p-item.tall { grid-row: span 1; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-band { flex-direction: column; text-align: center; }
  .partner-row { grid-template-columns: 1fr 1fr; }
  .hero { padding: 130px 0 110px; }
  .hero::after { height: 56px; }
  .page-hero { padding: 110px 0 90px; }
  .page-hero::after { height: 48px; }
  .topbar-inner { justify-content: center; text-align: center; font-size: 0.74rem; }
  .topbar-inner .hide-mobile { display: none; }
  .quote-block { padding: 72px 0; }
  .quote-mark { font-size: 5rem; }
  .container { padding: 0 20px; }
  .nav-wrap { padding: 14px 20px; }
  .topbar-mobile-cta { padding: 10px 20px; }
  .swatch-block { padding: 36px 24px; }
  .cta-band { padding: 40px 28px; }
}

/* ===================================================
   Outdoor Living — department additions
   New rules only; nothing above this line is modified
   from the core Sun-Brite stylesheet.
=================================================== */

/* Hero — rotating photo background, static text on top. Mirrors the
   pattern from the Sun-Brite refresh's homepage concept; main.js already
   contains the crossfade JS (.hero-bg / .hero-bg-slide.active), this just
   supplies the missing CSS so it can be reused here. */
.hero { background: var(--navy-deep); position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.8s ease;
}
.hero-bg-slide.active { opacity: 1; }
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
 /* background:
    radial-gradient(circle at 88% -15%, rgba(46, 126, 234, 0.28) 0%, rgba(46,126,234,0) 50%),
    linear-gradient(100deg, rgba(20,19,22,0.86) 0%, rgba(20,19,22,0.56) 34%, rgba(20,19,22,0.22) 60%, rgba(20,19,22,0.42) 100%);*/
}
.hero .hero-inner { position: relative; z-index: 2; }
.hero-slide-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}
.hero-slide-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.6);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, transform 0.25s ease;
}
.hero-slide-dots button.active { background: var(--white); transform: scale(1.15); }

/* Products — quick-link photo tiles, replacing the plain icon strip.
   Each tile links straight to the matching category on products.html. */
.product-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.product-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1/1;
  background: linear-gradient(150deg, var(--navy-soft), var(--navy-deep) 130%);
  box-shadow: 0 14px 30px rgba(16, 22, 31, 0.12);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease;
}
.product-tile:hover { transform: translateY(-6px); box-shadow: 0 24px 44px rgba(16, 22, 31, 0.2); }
.product-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1);
}
.product-tile:hover img { transform: scale(1.06); }
.product-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(13,13,15,0.8) 0%, rgba(13,13,15,0.22) 42%, rgba(13,13,15,0.02) 64%);
  transition: opacity 0.3s ease;
}
.product-tile-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.product-tile-label span {
  color: var(--white);
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.product-tile-label svg {
  flex-shrink: 0;
  width: 22px; height: 22px;
  color: rgba(255,255,255,0.8);
  transition: transform 0.3s ease, color 0.3s ease;
}
.product-tile:hover .product-tile-label svg { transform: translate(4px, -4px); color: var(--sky); }
@media (max-width: 960px) {
  .product-tile-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 640px) {
  .product-tile-grid { grid-template-columns: 1fr; gap: 20px; }
  .product-tile { aspect-ratio: 4/3; }
  .product-tile-label { padding: 22px 24px; }
  .product-tile-label span { font-size: 1.2rem; }
}
@media (max-width: 560px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* Category card photo (products.html) + anchor offset so a jump from the
   homepage tiles doesn't land the heading under the sticky header. */
.category-card[id] { scroll-margin-top: 110px; }
.category-card-img {
  margin: -28px -26px 20px;
  border-radius: 4px 4px 0 0;
  overflow: hidden;
  aspect-ratio: 16/10;
}
.category-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Photo-backed section — full-bleed real project photo behind a dark
   scrim, used for Client Reviews and Where We Work so those sections read
   as photographic rather than flat text blocks (projects.html). */
.photo-band {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.photo-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% -10%, rgba(46, 126, 234, 0.22) 0%, rgba(46,126,234,0) 50%),
    linear-gradient(165deg, rgba(32,31,34,0.94) 0%, rgba(45,44,48,0.9) 55%, rgba(32,31,34,0.94) 100%);
}
.photo-band > .container { position: relative; z-index: 1; }
.photo-band .eyebrow { color: var(--sky); }
.photo-band .section-head h2 { color: var(--white); }
.photo-band .section-head p { color: rgba(255,255,255,0.72); }
.photo-band .audience-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
  backdrop-filter: blur(2px);
}
.photo-band .audience-card p { color: rgba(255,255,255,0.82); }
.photo-band .audience-card h3 { color: var(--white); }
.photo-band .audience-card::before { color: rgba(255,255,255,0.08); }
.photo-band .mini-brand { border-top-color: rgba(255,255,255,0.16); }
.photo-band .mini-brand p { color: rgba(255,255,255,0.85); font-weight: 600; }

/* Department badge — sits beside the wordmark logo in the header/footer,
   the same way a sub-brand tag would. No new logo asset required. */
.dept-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
.dept-badge span {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}
.footer-grid .dept-badge { border-left-color: rgba(255,255,255,0.18); }
.footer-grid .dept-badge span { color: var(--sky); }
.logo-text {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.footer-grid .logo-text { color: var(--white); }

/* Warranty / certification tier cards — About page */
.tier-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.tier-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 34px 30px;
  text-align: center;
}
.tier-card h3 {
  font-size: 2rem;
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 6px;
}
.tier-card p {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  margin: 0;
  font-weight: 600;
}
@media (max-width: 760px) {
  .tier-row { grid-template-columns: 1fr; }
}

/* =========================================================================
   Product Detail Page — 10 reusable customization/showcase components
   ========================================================================= */

/* Shared product-hero (category page header w/ photo) */
.product-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  background: var(--navy-deep);
  overflow: hidden;
}
.product-hero-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.product-hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,13,15,0.15) 0%, rgba(13,13,15,0.78) 100%);
}
.product-hero .container { position: relative; z-index: 1; padding-bottom: 46px; padding-top: 120px; }
.product-hero .eyebrow { color: var(--sky); }
.product-hero h1 { color: var(--white); }
.product-hero .lede { color: rgba(255,255,255,0.82); max-width: 640px; }
.product-hero-crumb { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-bottom: 14px; }
.product-hero-crumb a { color: rgba(255,255,255,0.85); }

/* Section chrome shared across all 10 blocks */
.pdx-section { padding: 64px 0; border-top: 1px solid var(--line); }
.pdx-section.tint { background: var(--paper); }
.pdx-section .section-head { margin-bottom: 34px; }

/* 1 — Color / Finish Swatch Picker */
.swatch-picker { display: flex; flex-wrap: wrap; gap: 18px; }
.swatch-btn {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: none; border: none; cursor: pointer; padding: 0; width: 92px;
  font-family: var(--font-body);
}
.swatch-chip {
  width: 64px; height: 64px; border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--line), 0 4px 10px rgba(13,13,15,0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.swatch-btn:hover .swatch-chip { transform: translateY(-3px); }
.swatch-btn.active .swatch-chip { box-shadow: 0 0 0 3px var(--blue), 0 6px 14px rgba(13,13,15,0.18); }
.swatch-btn span {
  font-size: 0.76rem; font-weight: 600; text-align: center; color: var(--charcoal-soft);
  letter-spacing: 0.01em;
}
.swatch-btn.active span { color: var(--blue); }
.swatch-preview {
  margin-top: 30px; display: flex; align-items: center; gap: 18px;
  padding: 18px 22px; background: var(--white); border: 1px solid var(--line); border-radius: 4px;
  max-width: 460px;
}
.swatch-preview-chip { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 1px var(--line); }
.swatch-preview p { margin: 0; font-size: 0.9rem; }
.swatch-preview strong { display: block; font-family: var(--font-head); font-size: 1.05rem; font-style: italic; }

/* 2 — Style Selector Tabs */
.style-tabs-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.style-tab-btn {
  font-family: var(--font-body); font-size: 0.86rem; font-weight: 600; color: var(--charcoal-soft);
  background: none; border: none; cursor: pointer; padding: 12px 18px; border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.style-tab-btn:hover { color: var(--blue); }
.style-tab-btn.active { color: var(--blue); border-bottom-color: var(--blue); }
.style-tab-btn { display: inline-flex; align-items: center; gap: 8px; }
.style-tab-btn .tab-icon { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }
.fence-icon-key { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin: 0 0 30px; }
.fence-icon-key-item {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  padding: 16px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--white, #fff);
}
.fence-icon-key-item img { width: 54px; height: 54px; object-fit: contain; }
.fence-icon-key-item svg.accent-icon { width: 54px; height: 54px; }
.fence-icon-key-item span { font-size: 0.78rem; font-weight: 600; color: var(--charcoal-soft); line-height: 1.3; }
@media (max-width: 760px) {
  .fence-icon-key { grid-template-columns: repeat(2, 1fr); }
}
.spec-table td.icon-cell { width: 56px; }
.spec-table td.icon-cell img { width: 32px; height: 32px; object-fit: contain; display: block; }
.style-tab-panel { display: none; }
.style-tab-panel.active { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; }
.style-tab-panel img { width: 100%; border-radius: 4px; aspect-ratio: 4/3; object-fit: cover; }
.style-tab-copy h3 { font-family: var(--font-head); font-style: italic; font-weight: 500; font-size: 1.5rem; margin-bottom: 10px; }
.style-tab-copy p { margin-bottom: 16px; }
.style-tab-specs { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.style-tab-specs li { font-size: 0.86rem; color: var(--charcoal-soft); padding-left: 18px; position: relative; }
.style-tab-specs li::before { content: "—"; position: absolute; left: 0; color: var(--blue); }
@media (max-width: 760px) {
  .style-tab-panel.active { grid-template-columns: 1fr; }
}

/* 3 — Before / After Slider */
.ba-slider {
  position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 4px; overflow: hidden;
  max-width: 820px; margin: 0 auto; user-select: none; background: var(--paper-deep);
}
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-slider .ba-after { clip-path: inset(0 0 0 50%); }
.ba-slider .ba-label {
  position: absolute; top: 16px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(13,13,15,0.6); color: var(--white); padding: 5px 10px; border-radius: 2px; z-index: 2;
}
.ba-slider .ba-label.before { left: 16px; }
.ba-slider .ba-label.after { right: 16px; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: var(--white);
  transform: translateX(-50%); cursor: ew-resize; z-index: 3; box-shadow: 0 0 0 1px rgba(13,13,15,0.2);
}
.ba-handle::after {
  content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 40px; height: 40px; background: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--blue); box-shadow: 0 2px 8px rgba(13,13,15,0.25);
}
.ba-slider-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 4;
  -webkit-appearance: none;
}

/* 4 — Scrollable Style Filmstrip */
.filmstrip-wrap { position: relative; }
.filmstrip {
  display: flex; gap: 18px; overflow-x: auto; scroll-behavior: smooth; padding-bottom: 8px;
  scrollbar-width: thin;
}
.filmstrip-item {
  flex: 0 0 auto; width: 210px; cursor: pointer;
}
.filmstrip-item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 4px; border: 2px solid transparent; transition: border-color 0.15s ease; }
.filmstrip-item:hover img, .filmstrip-item.active img { border-color: var(--blue); }
.filmstrip-item span { display: block; margin-top: 8px; font-size: 0.82rem; font-weight: 600; color: var(--charcoal-soft); }
.filmstrip-arrow {
  position: absolute; top: 40%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; background: var(--white); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 8px rgba(13,13,15,0.12);
}
.filmstrip-arrow.prev { left: -10px; }
.filmstrip-arrow.next { right: -10px; }
@media (max-width: 640px) { .filmstrip-arrow { display: none; } }

/* 5 — Spec Comparison Table */
.spec-table-wrap { overflow-x: auto; }
.spec-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.spec-table th, .spec-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.88rem; }
.spec-table thead th {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--charcoal-soft);
  border-bottom: 2px solid var(--ink); font-weight: 700;
}
.spec-table tbody tr:hover { background: var(--paper); }
.spec-table td:first-child, .spec-table th:first-child { font-weight: 600; color: var(--ink); }

/* Product Comparison Table (homepage) */
.compare-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.compare-table th, .compare-table td {
  padding: 18px 20px; text-align: left; border: 1px solid var(--line); font-size: 0.88rem; vertical-align: top;
}
.compare-table thead th {
  background: var(--paper); font-family: var(--font-head); font-style: italic; font-weight: 600;
  font-size: 1.05rem; color: var(--ink); border-top: none;
}
.compare-table thead th:first-child { font-family: var(--font-body); font-style: normal; font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--charcoal-soft); }
.compare-table tbody th, .compare-table tbody td:first-child {
  font-weight: 700; color: var(--ink); background: var(--paper); white-space: nowrap;
}
.compare-table tbody tr:first-child th, .compare-table tbody tr:first-child td { border-top: none; }
.compare-table td.standout { font-weight: 700; color: var(--blue); }
.compare-table tbody tr:hover td, .compare-table tbody tr:hover th { background: var(--paper); }
@media (max-width: 760px) {
  .compare-table { min-width: 680px; }
}

/* 6 — "Build Your Look" Configurator */
.configurator { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
.configurator-preview { position: relative; border-radius: 4px; overflow: hidden; aspect-ratio: 4/3; background: var(--paper-deep); }
.configurator-preview img { width: 100%; height: 100%; object-fit: cover; }
.configurator-group { margin-bottom: 26px; }
.configurator-group h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--charcoal-soft); margin-bottom: 12px; }
.configurator-options { display: flex; flex-wrap: wrap; gap: 10px; }
.configurator-chip {
  font-family: var(--font-body); font-size: 0.84rem; font-weight: 600; padding: 9px 16px;
  border: 1px solid var(--line); border-radius: 30px; background: var(--white); cursor: pointer; color: var(--charcoal-soft);
}
.configurator-chip:hover { border-color: var(--blue); color: var(--blue); }
.configurator-chip.active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.configurator-summary {
  margin-top: 24px; padding: 20px; background: var(--paper); border-radius: 4px; font-size: 0.88rem;
}
.configurator-summary strong { display: block; font-family: var(--font-head); font-style: italic; font-size: 1.15rem; margin-bottom: 6px; }
@media (max-width: 760px) { .configurator { grid-template-columns: 1fr; } }

/* 7 — Detail Close-Up Callouts */
.callout-figure { position: relative; border-radius: 4px; overflow: hidden; max-width: 760px; margin: 0 auto 30px; }
.callout-figure img { width: 100%; display: block; }
.callout-marker {
  position: absolute; width: 30px; height: 30px; border-radius: 50%; background: var(--blue);
  color: var(--white); font-size: 0.82rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 5px rgba(255,255,255,0.55); transform: translate(-50%, -50%);
}
.callout-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
.callout-list-item { display: flex; gap: 12px; }
.callout-list-item .num {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: var(--white);
  font-size: 0.78rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.callout-list-item h5 { font-size: 0.92rem; margin-bottom: 4px; }
.callout-list-item p { font-size: 0.84rem; color: var(--charcoal-soft); margin: 0; }
@media (max-width: 760px) { .callout-list { grid-template-columns: 1fr; } }

/* 8 — Application / Use-Case Cards */
.usecase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.usecase-card { border-radius: 4px; overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.usecase-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.usecase-card-body { padding: 18px 20px; }
.usecase-card-body span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue); font-weight: 700; }
.usecase-card-body h4 { font-size: 1.02rem; margin: 6px 0; }
.usecase-card-body p { font-size: 0.86rem; color: var(--charcoal-soft); margin: 0; }
@media (max-width: 960px) { .usecase-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .usecase-grid { grid-template-columns: 1fr; } }

/* 9 — Full Lightbox Gallery Grid (images use existing global lightbox in main.js) */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-grid a { display: block; border-radius: 4px; overflow: hidden; aspect-ratio: 1/1; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; cursor: zoom-in; }
.gallery-grid a:hover img { transform: scale(1.06); }
@media (max-width: 960px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* 10 — Specs & FAQ Accordion */
.accordion { max-width: 820px; }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  background: none; border: none; text-align: left; cursor: pointer; padding: 20px 4px;
  font-family: var(--font-head); font-size: 1.05rem; font-style: italic; color: var(--ink);
}
.accordion-trigger .plus { flex-shrink: 0; font-size: 1.3rem; color: var(--blue); font-family: var(--font-body); font-style: normal; transition: transform 0.2s ease; }
.accordion-item.open .accordion-trigger .plus { transform: rotate(45deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.accordion-panel-inner { padding: 0 4px 20px; font-size: 0.9rem; color: var(--charcoal-soft); }
.accordion-item.open .accordion-panel { max-height: 400px; }

/* Products nav dropdown */
.nav-links li.has-dropdown { position: relative; }
.nav-links li.has-dropdown > a { display: inline-flex; align-items: center; gap: 5px; }
.nav-caret { width: 9px; height: 9px; display: inline-block; transition: transform 0.2s ease; flex-shrink: 0; }
.nav-links li.has-dropdown:hover .nav-caret,
.nav-links li.has-dropdown.open .nav-caret { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute; top: 100%; left: -18px; margin-top: 18px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 20px 44px rgba(13,13,15,0.16);
  min-width: 460px; padding: 16px; z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(8px) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}
.nav-dropdown::before {
  content: ""; position: absolute; top: -7px; left: 32px; width: 13px; height: 13px;
  background: var(--white); border-left: 1px solid var(--line); border-top: 1px solid var(--line);
  transform: rotate(45deg); border-radius: 2px 0 0 0;
}
.nav-links li.has-dropdown:hover .nav-dropdown,
.nav-links li.has-dropdown.open .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0) scale(1);
}
.nav-dropdown-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.nav-dropdown-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 8px;
  transition: background 0.15s ease;
}
.nav-dropdown-item:hover { background: var(--paper); }
.nav-dropdown-icon {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 8px; background: var(--paper);
  display: flex; align-items: center; justify-content: center; color: var(--blue);
}
.nav-dropdown-item:hover .nav-dropdown-icon { background: var(--paper-deep); color: var(--blue-bright); }
.nav-dropdown-icon svg { width: 18px; height: 18px; }
.nav-dropdown-text { display: flex; flex-direction: column; min-width: 0; }
.nav-dropdown-label { font-size: 0.82rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.nav-dropdown-desc { font-size: 0.72rem; color: var(--charcoal-soft); margin-top: 2px; }
.nav-dropdown-all {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 0.76rem; font-weight: 700; color: var(--blue-bright); letter-spacing: 0.02em;
}
.nav-dropdown-all:hover { color: var(--ink); }
@media (max-width: 760px) {
  .nav-links li.has-dropdown { position: static; }
  .nav-dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; border-radius: 0; min-width: 0;
    background: transparent; margin: 0; padding: 0 0 0 0;
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }
  .nav-dropdown::before { display: none; }
  .nav-links li.has-dropdown.open .nav-dropdown { max-height: 700px; padding: 10px 0 4px; }
  .nav-dropdown-grid { grid-template-columns: 1fr; gap: 2px; }
  .nav-dropdown-item { padding: 12px 10px; border-radius: 8px; min-height: 44px; }
  .nav-dropdown-item:active, .nav-dropdown-item:hover { background: var(--paper-deep); }
  .nav-dropdown-icon { width: 32px; height: 32px; }
  .nav-dropdown-all { margin-top: 6px; padding: 12px 0; }
  .nav-caret { display: inline-block; }
}

/* Handrail profile diagram (aluminum-railings.html) */
.handrail-profiles-photo { max-width: 900px; margin: 0 auto; }
.handrail-profiles-photo img { display: block; width: 100%; height: auto; }

/* Add-on layout explainer (aluminum-railings.html) */
.layout-explainer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 40px; }
.layout-explainer-item {
  background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 26px 24px;
}
.layout-explainer-item h4 {
  font-family: var(--font-head); font-style: italic; font-weight: 500; font-size: 1.15rem;
  color: var(--blue); margin-bottom: 8px;
}
.layout-explainer-item p { font-size: 0.88rem; color: var(--charcoal-soft); margin: 0; }
@media (max-width: 760px) {
  .layout-explainer { grid-template-columns: 1fr; }
}

/* Live visualizer (replaces static configurator preview with a rendered SVG) */
.visualizer-svg-wrap {
  position: relative; border-radius: 4px; overflow: hidden; aspect-ratio: 4/3; background: var(--paper-deep);
  display: flex; align-items: center; justify-content: center;
}
.visualizer-svg-wrap svg { width: 100%; height: 100%; }
.visualizer-caption {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 10px 14px;
  background: rgba(13,13,15,0.68); color: var(--white); font-size: 0.76rem; text-align: center;
}

/* Category quick-nav (anchor jump strip at top of each product page) */
.pdx-quicknav {
  position: sticky; top: 78px; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line);
}
.pdx-quicknav .container { display: flex; gap: 4px; overflow-x: auto; padding: 0; }
.pdx-quicknav a {
  flex-shrink: 0; font-size: 0.8rem; font-weight: 600; color: var(--charcoal-soft); padding: 16px 14px;
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.pdx-quicknav a:hover { color: var(--blue); }

/* ---------- Contact / Estimate Form ---------- */
.sb-form-card { max-width: 760px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 36px 40px; box-shadow: 0 10px 30px rgba(13,13,15,0.06); }
.sb-form { display: grid; gap: 28px; }
.sb-fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; }
.sb-fieldset legend { font-family: var(--font-head); font-style: italic; font-size: 1.25rem; color: var(--ink); padding: 0 0 10px; margin-bottom: 4px; border-bottom: 2px solid var(--blue); width: 100%; }
.sb-form label { display: block; font-size: 0.84rem; font-weight: 600; color: var(--ink); }
.sb-form .req { color: #c0392b; }
.sb-form .opt { font-weight: 400; color: var(--charcoal-soft); font-size: 0.78rem; }
.sb-form input[type="text"], .sb-form input[type="email"], .sb-form input[type="tel"], .sb-form select, .sb-form textarea, .sb-form input[type="file"] {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px; font-family: var(--font-body); font-size: 0.92rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: 6px; box-sizing: border-box;
}
.sb-form input:focus, .sb-form select:focus, .sb-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,90,168,0.15); }
.sb-form textarea { resize: vertical; min-height: 120px; }
.sb-row { display: grid; gap: 16px; }
.sb-row-2 { grid-template-columns: 1fr 1fr; }
.sb-row-3 { grid-template-columns: 1.4fr 1.2fr 0.9fr; }
.sb-consent { display: flex !important; gap: 12px; align-items: flex-start; font-weight: 400 !important; font-size: 0.78rem !important; line-height: 1.55; color: var(--charcoal-soft) !important; background: var(--paper); padding: 14px 16px; border-radius: 6px; }
.sb-consent input { margin-top: 3px; flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--blue); }
.sb-hint { display: block; margin-top: 6px; font-weight: 400; font-size: 0.76rem; color: var(--charcoal-soft); }
.sb-form button[type="submit"] { justify-self: start; }
@media (max-width: 640px) {
  .sb-form-card { padding: 24px 20px; }
  .sb-row-2, .sb-row-3 { grid-template-columns: 1fr; }
}
