/* ==========================================================================
   Shade the Way — single-file mobile-first stylesheet
   ========================================================================== */

/* Design tokens ------------------------------------------------------------ */
:root {
  --color-ink:       #0B0B0B;
  --color-ink-soft:  #1F1F1F;
  --color-mute:      #5B5B5B;
  --color-line:      #E6E1D6;
  --color-paper:     #FAF7F2;
  --color-soft:      #F4EFE6;
  --color-white:     #FFFFFF;
  --color-gold:      #E8A33D;
  --color-gold-deep: #C7861F;
  --color-gold-soft: #FBE7C3;
  --color-success:   #2E7D32;
  --color-error:     #B3261E;

  --font-body: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Inter, system-ui, sans-serif;
  --font-display: var(--font-body);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.06), 0 1px 1px rgba(0,0,0,.04);
  --shadow-md: 0 8px 24px rgba(11,11,11,.08), 0 2px 6px rgba(11,11,11,.05);
  --shadow-lg: 0 24px 60px rgba(11,11,11,.18), 0 6px 14px rgba(11,11,11,.06);

  --container-w: 1180px;
  --container-narrow: 760px;
  --header-h: 84px;

  --ease: cubic-bezier(.2,.7,.2,1);
}

/* Reset + base ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-ink-soft);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* `clip` is safer than `hidden` — does not establish a scroll container
     or break sticky positioning. Defends against off-screen decorative
     bleed without masking real overflow sources. */
  overflow-x: clip;
  /* Long unbreakable tokens (URLs, emails, hashes in future copy) must
     wrap instead of pushing the viewport wider at 320px. */
  overflow-wrap: break-word;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }

a {
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-ink);
  margin: 0 0 .5em;
  font-weight: 800;
}
h1 {
  font-size: clamp(2.2rem, 6vw + .75rem, 4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(1.75rem, 3vw + 1rem, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h3 {
  font-size: clamp(1.2rem, 1vw + 1rem, 1.5rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
h4 {
  font-size: 1.05rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; line-height: 1.6; }

/* Form fields need ≥16px to prevent iOS zoom on focus */
input, select, textarea, button { font: inherit; font-size: 16px; }

/* Utility ------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}
.container--narrow { max-width: var(--container-narrow); }

/* Accessible "visually hidden" utility. `!important` on every declaration so
   higher-specificity rules elsewhere (e.g. `.field input { width: 100% }`)
   cannot inflate a hidden control like the file picker into a 100%-wide,
   absolutely-positioned box that pushes document scrollWidth past the
   viewport and breaks mobile layout. */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.muted { color: var(--color-mute); }
.small { font-size: .875rem; }
.center { text-align: center; }
.accent { color: var(--color-gold); }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-gold-deep);
  margin: 0 0 .75rem;
}

.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--color-ink); color: #fff;
  padding: 12px 16px; z-index: 1000;
  text-decoration: none; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { top: 0; }

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 14px 22px;
  min-height: 48px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  color: var(--color-ink);
  transition: background-color .15s var(--ease), color .15s var(--ease),
              border-color .15s var(--ease), transform .15s var(--ease),
              box-shadow .15s var(--ease);
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
}
.btn--primary {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-ink);
  box-shadow: 0 4px 16px rgba(232,163,61,.35);
}
.btn--primary:hover {
  background: var(--color-gold-deep);
  border-color: var(--color-gold-deep);
  color: #fff;
  text-decoration: none;
}
.btn--ghost {
  border-color: rgba(255,255,255,.85);
  color: #fff;
}
/* On the dark hero background, give the ghost button a frosted backdrop
   so the white text stays legible over bright spots in the photo. */
.hero .btn--ghost {
  background: rgba(11,11,11,.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.18);
  color: #fff;
  text-decoration: none;
}
.hero .btn--ghost:hover {
  background: rgba(11,11,11,.7);
  border-color: #fff;
}
.section--cta .btn--ghost,
.section:not(.hero):not(.section--dark) .btn--ghost {
  border-color: var(--color-ink);
  color: var(--color-ink);
}
.btn--lg { min-height: 56px; padding: 16px 28px; font-size: 1.05rem; }
.btn--sm { min-height: 40px; padding: 10px 16px; font-size: .95rem; }
.btn--block { display: flex; width: 100%; }

/* Loading state */
.btn[aria-busy="true"] { pointer-events: none; opacity: .85; }
.btn[aria-busy="true"] .btn__label::after { content: "…"; }
.btn__spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.btn[aria-busy="true"] .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Header ------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,11,11,.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--color-gold);
  color: #fff;
  transition: box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--header-h);
  padding-block: 4px;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  flex: 0 0 auto;
  min-width: 0;
  border-radius: var(--radius-sm);
  outline-offset: 4px;
}
.brand:focus-visible {
  outline: 2px solid var(--color-gold);
}
/* Logo sized by width with a max-height cap so a horizontal logo can render
   readable without forcing the header taller. If the source asset is square
   with text inside, swap in a horizontal export — see CLAUDE.md §12. */
.brand__logo {
  display: block;
  width: auto;
  height: clamp(64px, 16vw, 76px);
  max-width: 100%;
  object-fit: contain;
}
.brand__text {
  display: none;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 1.15rem;
  align-items: center;
  color: #fff;
}
.brand__text--light { color: #fff; }
.brand__logo.is-broken { display: none; }
.brand__logo.is-broken + .brand__text { display: inline-flex; }

.site-nav { margin-left: auto; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: #fff;
  transition: background-color .15s var(--ease), border-color .15s var(--ease);
}
.nav-toggle:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.32);
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  position: relative;
  transition: transform .2s var(--ease), top .2s var(--ease), bottom .2s var(--ease), background-color .2s var(--ease);
}
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { bottom: -7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { bottom: 0; transform: rotate(-45deg); }

.nav-list {
  list-style: none; margin: 0; padding: 0;
  display: none;
}
.nav-list a {
  display: block;
  padding: 12px 14px;
  text-decoration: none;
  font-weight: 600;
  color: rgba(255,255,255,.82);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  letter-spacing: .01em;
  position: relative;
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.nav-list a:hover,
.nav-list a:focus-visible { color: #fff; }
.nav-list a:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.header__cta { display: none; }

.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  white-space: nowrap;
  background: transparent;
  border-color: rgba(255,255,255,.22);
  color: #fff;
  box-shadow: none;
}
.header__phone:hover,
.header__phone:focus-visible {
  background: rgba(255,255,255,.06);
  border-color: var(--color-gold);
  color: var(--color-gold);
  text-decoration: none;
}
.header__phone-icon { flex: 0 0 auto; }
.header__phone-text { display: none; }
@media (min-width: 420px) {
  .header__phone-text { display: inline; }
}

/* Mobile open menu — drops below header as a dark panel */
.nav-list.is-open {
  display: block;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--color-ink);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.12);
  padding: 8px 12px 14px;
  box-shadow: 0 16px 32px rgba(0,0,0,.4);
}
.nav-list.is-open li + li {
  border-top: 1px solid rgba(255,255,255,.06);
}
.nav-list.is-open a {
  padding: 16px 12px;
  font-size: 1rem;
  color: rgba(255,255,255,.88);
}
.nav-list.is-open a:hover,
.nav-list.is-open a:focus-visible {
  background: rgba(255,255,255,.04);
  color: #fff;
}

@media (min-width: 880px) {
  :root { --header-h: 104px; }
  .brand__logo {
    width: auto;
    height: clamp(80px, 9vw, 96px);
    max-width: none;
  }
  .header__inner { gap: 16px; }

  .nav-toggle { display: none; }
  .nav-list {
    display: flex !important;
    align-items: center;
    position: static !important;
    gap: 2px;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0;
  }
  .nav-list a { padding: 10px 14px; }
  /* Gold underline indicator on hover/focus/current */
  .nav-list a::after {
    content: "";
    position: absolute;
    left: 14px; right: 14px; bottom: 4px;
    height: 2px;
    background: var(--color-gold);
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .2s var(--ease);
  }
  .nav-list a:hover::after,
  .nav-list a:focus-visible::after,
  .nav-list a[aria-current="page"]::after,
  .nav-list a.is-active::after {
    transform: scaleX(1);
  }
  .header__cta { display: inline-flex; margin-left: 4px; }
}

/* Sections ----------------------------------------------------------------- */
.section { padding-block: clamp(56px, 8vw, 96px); }
/* Anchor-jump landing offset (used by native hash navigation + scrollIntoView).
   The JS smooth-scroll in main.js already subtracts the live header height; this
   rule covers the fallback paths (deep links, hash navigation without JS,
   prefers-reduced-motion users) and stays correct during iOS Safari's dynamic
   header collapse. */
.section, .hero {
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.section--soft { background: var(--color-soft); }
.section--dark { background: var(--color-ink); color: #EDEDED; }
.section--dark h2,
.section--dark h3 { color: #fff; }
.section--cta {
  background:
    radial-gradient(120% 80% at 50% 0%, var(--color-gold-soft) 0%, transparent 60%),
    var(--color-paper);
}

.section__head {
  text-align: center;
  margin-bottom: clamp(32px, 5vw, 56px);
  max-width: 720px;
  margin-inline: auto;
}
.section__head--light .eyebrow { color: var(--color-gold); }
.section__sub {
  color: var(--color-mute);
  font-size: 1.05rem;
  margin-top: .25rem;
}
.section--dark .section__sub { color: #BFBFBF; }

/* Grid --------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: clamp(16px, 3vw, 24px);
}
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* Two-column layout ------------------------------------------------------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 900px) {
  .two-col { grid-template-columns: 1.1fr 0.9fr; }
}
.two-col__visual { order: -1; }
@media (min-width: 900px) {
  .two-col__visual { order: 0; }
}

/* Cards -------------------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(232,163,61,.4);
}
.card h3 { margin-bottom: .35em; }
.card p { color: var(--color-mute); }

.card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-weight: 700;
  text-decoration: none;
  color: var(--color-ink);
  border-bottom: 2px solid var(--color-gold);
  padding-bottom: 2px;
}
.card__cta:hover { color: var(--color-gold-deep); }

/* Service cards ----------------------------------------------------------- */
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service-card .card__cta { margin-top: auto; }
/* Whole card is tappable on mobile (stretched-link pattern on the CTA). */
.service-card .card__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 1;
}
/* Make sure card content stays above the stretched overlay for selection,
   but the CTA link is the click target. */
.service-card > *:not(.card__cta) { position: relative; z-index: 0; }
.service-card__icon {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-gold-soft);
  color: var(--color-gold-deep);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

/* SunTex options ---------------------------------------------------------- */
.suntex-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.suntex-card--featured {
  border-color: var(--color-gold);
  box-shadow: 0 12px 32px rgba(232,163,61,.18);
  transform: translateY(-4px);
}
.badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--color-ink);
  color: var(--color-gold);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}
.suntex-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.suntex-card__head h3 { margin: 0; font-size: 1.15rem; }
.suntex-card__num {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--color-gold-deep);
  letter-spacing: -0.02em;
  margin-left: 4px;
}
.shade-meter { display: inline-flex; gap: 4px; }
.shade-meter .bar {
  display: inline-block;
  width: 12px; height: 18px;
  border-radius: 3px;
  background: var(--color-line);
}
.shade-meter .bar--on { background: var(--color-ink); }
.suntex-card dl { margin: 0 0 20px; }
.suntex-card dt {
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-gold-deep);
  font-weight: 700;
  margin-top: 12px;
}
.suntex-card dd { margin: 4px 0 0; color: var(--color-ink-soft); }
.suntex-card .card__cta { margin-top: auto; }

.suntex-stats {
  list-style: none;
  margin: 0 0 14px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  background: var(--color-gold-soft);
  border-radius: var(--radius-md);
}
.suntex-stats li {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.suntex-stats__num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-ink);
  letter-spacing: -0.01em;
}
.suntex-stats__label {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-gold-deep);
  font-weight: 700;
  margin-top: 4px;
}

.suntex-tags {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.suntex-tags li {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--color-ink-soft);
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
}

.samples-note {
  margin: 28px auto 0;
  max-width: 640px;
  text-align: center;
}

/* Frames + swatches ------------------------------------------------------- */
.frames {
  margin-top: 48px;
  text-align: center;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.frames__title { margin-bottom: .25em; }
.frames__sub { color: var(--color-mute); margin-bottom: 1.5em; }
.frame-swatches {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0 0 1em;
  padding: 0;
}
.frame-swatches li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.swatch {
  display: block;
  width: 72px; height: 72px;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-line);
  box-shadow: var(--shadow-sm);
}
.swatch--white { background: #F5F5F0; }
.swatch--mill {
  background: linear-gradient(135deg, #C0BFB7 0%, #A9A8A0 45%, #C7C6BE 100%);
  border-color: #A9A8A0;
}
.swatch--black { background: #1a1a1a; }
.swatch__label { font-weight: 600; font-size: .9rem; }
.frames__note { margin: 0; }

/* Hero --------------------------------------------------------------------- */
.hero {
  position: relative;
  /* Pull the hero up under the translucent header so the frosted blur
     picks up the hero image instead of the white page background. */
  margin-top: calc(-1 * var(--header-h));
  /* `svh` = small-viewport height. Stable while iOS Safari toolbar collapses,
     so the hero won't suddenly snap taller mid-scroll. Bounded floor lowered
     for small-screen phones (e.g. iPhone SE @ 568px). */
  min-height: clamp(480px, 80svh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}
.hero__media {
  position: absolute; inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 80% at 20% 10%, rgba(232,163,61,.35), transparent 60%),
    radial-gradient(120% 80% at 80% 90%, rgba(11,11,11,.45), transparent 60%),
    linear-gradient(135deg, #1A1A1A 0%, #2A2218 100%);
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
/* If the hero image is missing or 0-byte, the gradient stays visible */
.hero__media img:not([src]),
.hero__media img[src=""] { display: none; }
.hero__overlay {
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11,11,11,.55) 0%, rgba(11,11,11,.35) 40%, rgba(11,11,11,.75) 100%);
}
.hero__content {
  /* Top padding clears the overlapping header + adds breathing room. */
  padding-block: calc(var(--header-h) + 32px) 64px;
  max-width: 760px;
  /* As the sole flex child of .hero, default min-width:auto would let
     intrinsic content (e.g. an unbroken h1 word) push past the viewport. */
  min-width: 0;
  color: #fff;
}
.hero__eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0 0 16px;
  padding: 6px 14px;
  background: rgba(11,11,11,.6);
  border: 1px solid rgba(232,163,61,.35);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero h1 { color: #fff; margin-bottom: 16px; }
.hero__sub {
  font-size: clamp(1rem, 1vw + .8rem, 1.2rem);
  color: rgba(255,255,255,.92);
  max-width: 620px;
  margin-bottom: 28px;
}
.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.trust-strip {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap;
  gap: 8px 18px;
  font-size: .9rem;
  color: rgba(255,255,255,.92);
}
.trust-strip li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
}
.trust-strip strong { color: #fff; font-weight: 700; }
.trust-strip .muted { color: rgba(255,255,255,.6); font-weight: 400; }
.trust-strip__icon {
  flex-shrink: 0;
  opacity: .85;
}

/* Comfort section visual -------------------------------------------------- */
.check-list { list-style: none; padding: 0; margin: 1em 0; }
.check-list li {
  position: relative;
  padding: 8px 0 8px 32px;
  border-bottom: 1px solid var(--color-line);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 14px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 0 4px rgba(232,163,61,.18);
}
.comfort-visual {
  position: relative;
  background: linear-gradient(180deg, #FFE5B0 0%, #FAF7F2 60%);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  border: 1px solid var(--color-line);
  overflow: hidden;
}
.comfort-visual__sun {
  position: absolute;
  top: -32px; right: -32px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #FFE079, var(--color-gold) 60%, var(--color-gold-deep));
  box-shadow: 0 0 60px rgba(232,163,61,.4);
}
.comfort-visual__house {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  position: relative;
  margin-top: 32px;
}
.comfort-visual__window {
  aspect-ratio: 3 / 4;
  background: linear-gradient(180deg, #B6D6E8 0%, #87B5D6 100%);
  border: 6px solid #fff;
  border-radius: 6px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.comfort-visual__window img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.comfort-visual__window--shaded::after {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(11,11,11,.55) 0 2px, transparent 2px 4px),
    rgba(11,11,11,.15);
}
.comfort-visual__window:has(img)::after { display: none; }
.comfort-visual__pair {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.comfort-visual__pair figcaption {
  font-size: .85rem;
  font-weight: 600;
  color: var(--color-ink);
  text-align: center;
}
.comfort-visual__caption {
  margin-top: 16px;
  font-size: .85rem;
  color: var(--color-mute);
  font-weight: 600;
}

/* How it works ------------------------------------------------------------ */
.steps {
  list-style: none; padding: 0; margin: 0 0 32px;
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
  position: relative;
  padding: 28px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
}
.step h3 { color: #fff; }
.step p { color: #BFBFBF; margin-bottom: 0; }
.step__num {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-gold);
  color: var(--color-ink);
  border-radius: 50%;
  font-weight: 900;
  font-size: 1.15rem;
  margin-bottom: 16px;
}

/* Gallery ------------------------------------------------------------------ */
.gallery__item {
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: var(--color-soft);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
  color: var(--color-mute);
  border: 2px dashed var(--color-line);
}
.gallery__item.placeholder {
  background:
    repeating-linear-gradient(135deg, var(--color-soft) 0 14px, var(--color-paper) 14px 28px);
}

/* Testimonials ------------------------------------------------------------ */
.testimonial {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-sm);
}
.testimonial.placeholder {
  background: rgba(255,255,255,.6);
  border-style: dashed;
}
.testimonial__stars {
  color: var(--color-gold);
  letter-spacing: 2px;
  margin-bottom: 12px;
  font-size: 1.1rem;
}
.testimonial p { font-size: 1.05rem; color: var(--color-ink-soft); }
.testimonial footer {
  font-size: .9rem;
  color: var(--color-mute);
  font-weight: 600;
  margin-top: 16px;
}

/* Service area ------------------------------------------------------------ */
.city-list {
  list-style: none; padding: 0;
  display: flex; flex-wrap: wrap;
  gap: 8px;
  margin: 1em 0;
}
.city-list li {
  background: var(--color-soft);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .95rem;
}
.map-placeholder {
  background: var(--color-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-line);
}
.map-placeholder img,
.map-placeholder svg {
  display: block;
  width: 100%;
  height: auto;
}

/* FAQ ---------------------------------------------------------------------- */
.faq details {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 700;
  color: var(--color-ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  min-height: 56px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-gold-deep);
  transition: transform .2s var(--ease);
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--color-gold-deep); }
.faq summary:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: -3px;
  border-radius: var(--radius-md);
}
.faq__body { padding: 0 20px 20px; color: var(--color-ink-soft); }
.faq__body p:last-child { margin-bottom: 0; }

/* FORM --------------------------------------------------------------------- */
.quote-form {
  background: #fff;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-lg);
  position: relative;
}
/* Honeypot — invisible to users, visible to bots */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px; height: 1px;
  overflow: hidden;
}
.form-legend { margin: 0 0 16px; }
.req { color: var(--color-error); font-weight: 700; }

.field { margin-bottom: 18px; }
.field label,
.field__label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-ink);
  font-size: 1rem;
  line-height: 1.3;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--color-ink);
  min-height: 52px;
  /* keep ≥16px to prevent iOS zoom */
  font-size: 16px;
  line-height: 1.4;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%230B0B0B' d='M6 8 0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 4px rgba(232,163,61,.18);
}
.field input:invalid:not(:placeholder-shown),
.field select:invalid:not(:focus) { /* visual cue only after interaction */ }
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--color-error);
  box-shadow: 0 0 0 4px rgba(179,38,30,.12);
}
.field__error {
  color: var(--color-error);
  font-size: .875rem;
  font-weight: 600;
  margin: 6px 0 0;
  display: none;
}
.field.has-error .field__error { display: block; }

.field-row {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-bottom: 0;
}
@media (min-width: 560px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  /* City gets more room, ZIP stays compact since it's always 5 digits */
  .field-row:has(.field--city):has(.field--zip) {
    grid-template-columns: 2fr 1fr;
  }
}

/* Visual group header for related fields (e.g. address block) */
.field-group-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 12px;
  padding-top: 8px;
  border-top: 1px solid var(--color-line);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-gold-deep);
}
.field-group-label svg { flex-shrink: 0; }
.field-group-label .muted {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  font-size: .85rem;
  color: var(--color-mute);
}

/* Modern select dropdown — leading icon + animated chevron */
.select-wrap {
  position: relative;
  display: block;
}
.select-wrap select {
  padding-left: 48px;
  padding-right: 48px;
  font-weight: 600;
  cursor: pointer;
  /* override the default chevron from .field select */
  background-image: none;
  background-color: #fff;
  box-shadow: 0 1px 0 rgba(11, 11, 11, .02),
              0 2px 6px -3px rgba(11, 11, 11, .06);
  /* Lock to single-line; truncate long option text with ellipsis */
  height: 52px;
  min-height: 52px;
  max-height: 52px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.select-wrap select:hover {
  border-color: var(--color-gold);
  background-color: #FFFCF6;
}
/* Placeholder text — softer when nothing selected */
.select-wrap select:invalid {
  color: #8B8378;
  font-weight: 500;
}
.select-wrap select option {
  color: var(--color-ink);
  font-weight: 500;
  padding: 12px;
  background: #fff;
}
.select-wrap select option:disabled { color: #B8B0A2; }

.select-wrap__icon,
.select-wrap__chevron {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold-deep);
  pointer-events: none;
  line-height: 0;
}
.select-wrap__icon { left: 18px; }
.select-wrap__chevron {
  right: 18px;
  transition: transform .25s var(--ease), color .15s var(--ease);
}
.select-wrap:hover .select-wrap__chevron,
.select-wrap:hover .select-wrap__icon { color: var(--color-gold); }
.select-wrap:focus-within .select-wrap__icon { color: var(--color-gold); }
.select-wrap:focus-within .select-wrap__chevron {
  color: var(--color-gold);
  transform: translateY(-50%) rotate(-180deg);
}

/* Progressive enhancement: style the OPEN dropdown panel in browsers
   that support customizable select (Chrome 130+). Other browsers and
   mobile still get the native OS picker — preserves CLAUDE.md hard rule. */
@supports (appearance: base-select) {
  .select-wrap select,
  .select-wrap select::picker(select) {
    appearance: base-select;
  }
  /* Hide the native picker icon that base-select adds inside the button —
     we already render our own gold chevron via .select-wrap__chevron */
  .select-wrap select::picker-icon { display: none; }
  /* Ensure the selected value stays on one line and truncates cleanly
     inside the base-select button layout */
  .select-wrap select selectedoption {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    min-width: 0;
    flex: 1 1 auto;
  }
  .select-wrap select::picker(select) {
    border: none;
    border-radius: 14px;
    padding: 8px;
    margin-top: 8px;
    background: #fff;
    box-shadow: 0 24px 48px -12px rgba(11, 11, 11, .28),
                0 0 0 1px rgba(232, 163, 61, .25);
    max-height: 360px;
    overflow-y: auto;
    transform-origin: top;
    animation: selectPickerIn .18s var(--ease);
  }
  .select-wrap select option {
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 1rem;
    color: var(--color-ink);
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: background-color .12s var(--ease), color .12s var(--ease);
  }
  /* Remove the native checkmark indicator that base-select adds to the
     selected option — the gold fill alone signals selection */
  .select-wrap select option::checkmark { display: none; }
  .select-wrap select option + option { margin-top: 2px; }
  .select-wrap select option:hover,
  .select-wrap select option:focus {
    background: var(--color-gold-soft);
    color: var(--color-ink);
    outline: none;
  }
  .select-wrap select option:checked {
    background: var(--color-gold);
    color: var(--color-ink);
    font-weight: 700;
  }
  .select-wrap select option:disabled {
    color: #B8B0A2;
    cursor: not-allowed;
    background: transparent;
    font-style: italic;
  }
  .select-wrap select option:disabled:hover { background: transparent; }
  @keyframes selectPickerIn {
    from { opacity: 0; transform: translateY(-4px) scale(.98); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
  }
}

/* File upload trigger */
.field--file { margin-top: 4px; }
.file-trigger {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1.5px dashed var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-paper);
  cursor: pointer;
  min-height: 64px;
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
  flex-wrap: wrap;
}
.file-trigger:hover,
.file-trigger:focus-within {
  border-color: var(--color-gold);
  background: var(--color-gold-soft);
}
.file-trigger__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold-deep);
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  line-height: 0;
}
.file-trigger__icon svg { display: block; }
.file-trigger__text {
  font-weight: 700;
  color: var(--color-ink);
  line-height: 22px;
}
.file-trigger__hint {
  font-size: .85rem;
  color: var(--color-mute);
}
@media (min-width: 480px) {
  .file-trigger__hint { margin-left: auto; }
}
.file-feedback {
  font-size: .9rem;
  color: var(--color-mute);
  margin: 8px 0 0;
  min-height: 0;
}
.file-feedback.has-files {
  color: var(--color-success);
  font-weight: 600;
}
.form-fineprint { margin: 16px 0 0; text-align: center; }

/* Footer ------------------------------------------------------------------- */
.site-footer {
  background: var(--color-ink);
  color: #BFBFBF;
  padding-block: 56px 24px;
}
.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.site-footer a {
  color: #BFBFBF;
  text-decoration: none;
}
.site-footer a:hover { color: #fff; }
.footer__grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  margin-bottom: 32px;
}
@media (min-width: 600px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
}
.brand__logo--footer {
  height: clamp(140px, 28vw, 240px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.footer__tag { margin-top: 12px; color: #BFBFBF; max-width: 28ch; }

.footer__cta.btn--primary {
  color: var(--color-ink);
  background: var(--color-gold);
  border-color: var(--color-gold);
  font-weight: 800;
  letter-spacing: .01em;
  padding: 14px 20px;
  margin-top: 4px;
  max-width: 280px;
  box-shadow: 0 6px 18px rgba(232,163,61,.35);
}
.footer__cta.btn--primary:hover {
  color: #fff;
  background: var(--color-gold-deep);
  border-color: var(--color-gold-deep);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(232,163,61,.45);
}
.footer__cta-icon {
  transition: transform .2s var(--ease);
}
.footer__cta:hover .footer__cta-icon {
  transform: translateX(3px);
}

.footer__form { margin-top: 16px; }
.footer__phone { margin-top: 6px; }
.footer__instagram { margin-top: 6px; }
.footer__google { margin-top: 6px; }
.footer__form a,
.footer__phone a,
.footer__instagram a,
.footer__google a {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .01em;
}
.footer__form a svg,
.footer__phone a svg,
.footer__instagram a svg,
.footer__google a svg {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
.footer__form a:hover,
.footer__phone a:hover,
.footer__instagram a:hover,
.footer__google a:hover { color: var(--color-gold, #E8A33D); }
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { padding: 4px 0; }
.footer__social { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px !important; }
.footer__social a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 36px; padding: 6px 12px;
  border: 1px solid #333; border-radius: var(--radius-pill);
  font-size: .85rem;
}
.footer__legal {
  border-top: 1px solid #1F1F1F;
  padding-top: 16px;
  text-align: center;
}
.footer__legal .muted { color: #777; }

/* Sticky mobile CTA ------------------------------------------------------- */
.mobile-cta {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 40;
  box-sizing: border-box;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-line);
  /* Honor safe areas on every side — landscape iPhone has a notch inset on
     one horizontal edge, portrait has the home-indicator inset on the bottom.
     Horizontal inset matches `.container`'s `clamp(16px, 4vw, 32px)` so the
     inner button aligns with page sections at every mobile/tablet width. */
  padding:
    12px
    max(clamp(16px, 4vw, 32px), env(safe-area-inset-right))
    calc(12px + env(safe-area-inset-bottom))
    max(clamp(16px, 4vw, 32px), env(safe-area-inset-left));
  box-shadow: 0 -8px 24px rgba(11,11,11,.08);
  transform: translateY(0);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
/* Pin the inner CTA button to the page's `.container` max-width and center it,
   so its edges line up with on-page sections instead of stretching to the
   viewport edge on wider phones/landscape/tablet widths. */
.mobile-cta .btn {
  display: flex;
  width: 100%;
  max-width: var(--container-w);
  min-width: 0;
  margin-inline: auto;
  box-sizing: border-box;
}
.mobile-cta.is-hidden {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
/* On mobile only — keep last section spaced from sticky CTA */
@media (max-width: 879px) {
  body { padding-bottom: 92px; }
}
@media (min-width: 880px) {
  .mobile-cta { display: none; }
}

/* 404 page ---------------------------------------------------------------- */
.page-narrow {
  /* `svh` keeps the layout stable while iOS Safari's address bar shifts */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: var(--color-paper);
}
.narrow-stack {
  text-align: center;
  max-width: 520px;
}
.narrow-stack .brand { display: inline-flex; margin-bottom: 24px; }

/* Thank-you page ---------------------------------------------------------- */
.thanks {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120% 80% at 50% 0%, var(--color-gold-soft) 0%, transparent 60%),
    var(--color-paper);
  padding: 32px;
  text-align: center;
}
.thanks__inner { max-width: 560px; }
.thanks__check {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-ink);
  font-size: 2.6rem;
  font-weight: 900;
  margin-bottom: 24px;
  box-shadow: 0 12px 32px rgba(232,163,61,.4);
}

/* Reduce motion overrides ------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .card:hover, .suntex-card--featured { transform: none; }
  .mobile-cta { transition: none; }
}
