/* ============================================================
   Frontier Windows & Doors — design system 2.0
   Richer depth, gradient CTAs, SVG icon system, full-screen
   mobile navigation. Conversion-focused throughout.
   ============================================================ */

:root {
  --navy-950: #071a2d;
  --navy-900: #0a2340;
  --navy-800: #0f3158;
  --navy-700: #174270;
  --navy-600: #1f568e;
  --navy-100: #e7eef7;
  --navy-50: #f2f6fb;
  --amber-600: #e07200;
  --amber-500: #f68b1f;
  --amber-400: #ffa733;
  --amber-100: #fff1de;
  --green-600: #17944a;
  --green-700: #107a3c;
  --ink: #1a2938;
  --ink-soft: #4b5d70;
  --line: #dfe7ef;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --star: #ffb400;
  --radius: 18px;
  --radius-sm: 12px;
  --grad-accent: linear-gradient(160deg, #ffa733 0%, #f57f00 100%);
  --grad-accent-hover: linear-gradient(160deg, #ffb14d 0%, #ff8c0f 100%);
  --grad-navy: linear-gradient(150deg, var(--navy-950) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  --grad-green: linear-gradient(160deg, #1cab57 0%, #128744 100%);
  --shadow-sm: 0 1px 2px rgba(7, 26, 45, 0.08), 0 2px 8px rgba(7, 26, 45, 0.06);
  --shadow-md: 0 4px 12px rgba(7, 26, 45, 0.10), 0 12px 32px rgba(7, 26, 45, 0.10);
  --shadow-lg: 0 8px 24px rgba(7, 26, 45, 0.14), 0 24px 64px rgba(7, 26, 45, 0.18);
  --glow-amber: 0 6px 20px rgba(240, 127, 0, 0.35);
  --glow-amber-lg: 0 10px 32px rgba(240, 127, 0, 0.45);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

/* Hard guard against horizontal viewport overflow on phones: `clip` (not `hidden`)
   blocks stray sideways panning without creating a scroll container, so
   position: sticky keeps working. */
html, body { overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 0.6em; color: var(--navy-900); font-weight: 800; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -0.025em; font-weight: 900; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.4rem); letter-spacing: -0.015em; }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1em; }
a { color: var(--navy-700); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy-900); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Icons ---------- */
.icon { width: 1.25em; height: 1.25em; display: inline-block; vertical-align: -0.28em; flex: 0 0 auto; }
.icon-btn { width: 1.15em; height: 1.15em; vertical-align: -0.2em; }
.icon-inline { width: 1.2em; height: 1.2em; vertical-align: -0.22em; margin-right: 6px; color: var(--amber-600); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 800; font-size: 1.05rem; text-decoration: none; text-align: center;
  border-radius: 13px; border: 0; cursor: pointer; position: relative;
  padding: 15px 30px; font-family: inherit; letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, filter 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn:focus-visible { outline: 3px solid var(--amber-400); outline-offset: 3px; }

.btn-primary {
  background: var(--grad-accent);
  color: #fff !important;
  box-shadow: var(--glow-amber), inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -2px 0 rgba(120, 55, 0, 0.18);
}
.btn-primary:hover { background: var(--grad-accent-hover); box-shadow: var(--glow-amber-lg), inset 0 1px 0 rgba(255, 255, 255, 0.4); }

.btn-outline {
  background: #fff; color: var(--navy-800); box-shadow: inset 0 0 0 2px var(--navy-800), var(--shadow-sm);
}
.btn-outline:hover { background: var(--navy-800); color: #fff; box-shadow: inset 0 0 0 2px var(--navy-800), var(--shadow-md); }

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.08); color: #fff !important;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.18); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.8); }

.btn-lg { padding: 18px 36px; font-size: 1.14rem; border-radius: 15px; }
.btn-block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-950); color: #cddcec; font-size: 0.85rem; }
.topbar-inner { display: flex; gap: 26px; justify-content: center; padding: 8px 20px; flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; }
.topbar-item .icon { width: 1.05em; height: 1.05em; color: var(--amber-400); }
.topbar-offer { color: var(--amber-400); font-weight: 800; letter-spacing: 0.02em; }
@media (max-width: 640px) { .topbar-item:not(.topbar-offer) { display: none; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 16px rgba(7, 26, 45, 0.07);
}
/* Frosted-glass background lives on a pseudo-element: backdrop-filter on the
   header itself would become a containing block and trap the fixed
   full-screen mobile menu inside the header. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; }
.brand img { width: 200px; height: auto; }
.header-cta { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; }
.header-phone { text-decoration: none; text-align: right; line-height: 1.2; white-space: nowrap; }
.header-phone-label { display: block; font-size: 0.78rem; color: var(--ink-soft); font-weight: 700; }
.header-phone-number { display: block; font-size: 1.35rem; font-weight: 900; color: var(--navy-900); letter-spacing: -0.01em; }
.header-phone:hover .header-phone-number { color: var(--amber-600); }
.header-quote-btn, .nav-quote-btn { white-space: nowrap; }
@media (max-width: 820px) {
  .header-quote-btn { display: none; }
  .brand img { width: 160px; }
  .header-phone-number { font-size: 1.15rem; }
}

/* ---------- Main navigation ---------- */
.main-nav { display: flex; align-items: center; gap: clamp(10px, 1.5vw, 24px); }
.main-nav .nav-link {
  font-weight: 700; font-size: 0.98rem; color: var(--navy-800); text-decoration: none;
  padding: 8px 2px; border-bottom: 3px solid transparent; white-space: nowrap;
  transition: color 0.12s ease;
}
.main-nav .nav-link:hover { color: var(--amber-600); }
.main-nav .nav-link.active { color: var(--amber-600); border-bottom-color: var(--amber-500); }
.main-nav .nav-link-phone, .main-nav .nav-quote-btn { display: none; }
.main-nav .nav-link-phone .icon { color: var(--green-600); }

/* Nav dropdown groups (Windows / Doors submenus) */
.nav-group { position: relative; display: flex; align-items: center; }
.subnav-toggle {
  background: none; border: 0; padding: 4px 2px; cursor: pointer;
  color: var(--navy-800); font-size: 0.8rem; line-height: 1;
  transition: transform 0.15s ease;
}
.nav-dropdown {
  display: none; position: absolute; top: 100%; left: -16px; z-index: 120;
  min-width: 264px; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 10px; overflow: hidden;
}
.nav-dropdown a {
  display: block; padding: 11px 16px; text-decoration: none; border-radius: 10px;
  font-weight: 700; font-size: 0.95rem; color: var(--navy-800); white-space: nowrap;
  transition: background 0.1s ease, color 0.1s ease;
}
.nav-dropdown a:hover { background: var(--amber-100); color: var(--amber-600); }
@media (min-width: 1024px) {
  .nav-group:hover .nav-dropdown, .nav-group:focus-within .nav-dropdown { display: block; }
  .subnav-toggle { pointer-events: none; }
}

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 11px; background: #fff;
  border: 2px solid var(--line); border-radius: 12px; cursor: pointer;
  transition: border-color 0.15s ease;
}
.nav-toggle:hover { border-color: var(--amber-500); }
.nav-toggle-bar { display: block; height: 3px; width: 100%; background: var(--navy-900); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mid-width desktop: keep everything on one line by shrinking, then dropping, pieces */
@media (max-width: 1350px) {
  .brand img { width: 175px; }
  .header-quote-btn { padding: 12px 18px; font-size: 0.95rem; }
  .header-phone-number { font-size: 1.2rem; }
  .header-phone-label { font-size: 0.72rem; }
}
@media (max-width: 1180px) {
  .header-phone-label { display: none; }
}
@media (max-width: 1100px) {
  .header-cta .header-phone { display: none; }
}

/* Full-screen mobile navigation */
@media (max-width: 1023px) {
  .nav-toggle { display: flex; }
  .header-cta .header-phone { display: block; }
  .main-nav {
    display: none; position: fixed; inset: 0; z-index: 95;
    flex-direction: column; align-items: stretch; gap: 0;
    background:
      radial-gradient(ellipse 90% 40% at 85% -5%, rgba(246, 139, 31, 0.18), transparent 60%),
      var(--grad-navy);
    padding: 108px 26px calc(28px + env(safe-area-inset-bottom));
    overflow-y: auto; overscroll-behavior: contain;
  }
  .main-nav.open { display: flex; animation: navFadeIn 0.22s ease; }
  @keyframes navFadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  .main-nav .nav-link {
    color: #fff; font-size: 1.35rem; font-weight: 800; padding: 16px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .main-nav .nav-link.active { color: var(--amber-400); border-bottom-color: rgba(255, 255, 255, 0.12); }
  .main-nav .nav-link:hover { color: var(--amber-400); }
  .nav-group { flex-direction: column; align-items: stretch; }
  .subnav-toggle {
    position: absolute; right: 0; top: 10px; width: 46px; height: 46px;
    font-size: 1.05rem; border-radius: 10px; color: #fff;
    background: rgba(255, 255, 255, 0.08);
  }
  .subnav-toggle[aria-expanded="true"] { transform: rotate(180deg); }
  .nav-dropdown {
    position: static; display: none; min-width: 0; border: 0; box-shadow: none;
    border-radius: 12px; padding: 6px 6px 6px 14px; margin: 6px 0 10px;
    background: rgba(255, 255, 255, 0.07);
  }
  .nav-group.sub-open .nav-dropdown { display: block; }
  .nav-dropdown a { color: #dbe7f3; font-size: 1.05rem; white-space: normal; border-radius: 8px; }
  .nav-dropdown a:hover { background: rgba(255, 255, 255, 0.1); color: var(--amber-400); }
  .main-nav .nav-link-phone {
    display: flex; align-items: center; gap: 10px; color: #7ee2a8; margin-top: 10px; border-bottom: 0;
    font-size: 1.2rem;
  }
  .main-nav .nav-link-phone .icon { color: #7ee2a8; }
  .main-nav .nav-quote-btn { display: inline-flex; margin-top: 16px; padding: 18px; font-size: 1.15rem; }
  body.nav-open { overflow: hidden; }
  body.nav-open .sticky-cta { display: none; }
}
@media (max-width: 480px) {
  .header-cta .header-phone { display: none; }
}

/* ---------- Series sub-nav chips + sections (Windows / Doors pages) ---------- */
.subnav { background: #fff; border-bottom: 1px solid var(--line); }
.subnav-inner { display: flex; gap: 9px; padding: 13px 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.subnav a {
  flex: 0 0 auto; text-decoration: none; font-weight: 700; font-size: 0.92rem;
  color: var(--navy-800); background: var(--navy-100); padding: 9px 18px; border-radius: 999px;
  white-space: nowrap; transition: background 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}
.subnav a:hover { background: var(--amber-100); color: var(--amber-600); box-shadow: var(--shadow-sm); }

.series-head { max-width: 760px; margin-bottom: 30px; }
.series-head .eyebrow {
  display: inline-block; color: var(--amber-600); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 0.8rem; margin-bottom: 10px;
}
.series-head p { color: var(--ink-soft); }
.series-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 18px; }

/* ---------- Inspiration photo galleries ---------- */
.inspiration-title { font-size: 1rem; color: var(--ink-soft); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.inspiration-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
@media (max-width: 900px) { .inspiration-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .inspiration-grid { grid-template-columns: repeat(2, 1fr); } }
.inspiration-grid img {
  width: 100%; aspect-ratio: 554/565; object-fit: cover; border-radius: 14px;
  box-shadow: var(--shadow-sm); background: var(--navy-100);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.inspiration-grid img:hover { transform: scale(1.025); box-shadow: var(--shadow-md); }
.inspiration-more { margin-top: 12px; }
.inspiration-more summary {
  cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; color: var(--amber-600); padding: 10px 0;
}
.inspiration-more summary::-webkit-details-marker { display: none; }
.inspiration-more summary::after { content: "\25BE"; transition: transform 0.15s ease; }
.inspiration-more[open] summary::after { transform: rotate(180deg); }
.inspiration-more[open] .inspiration-grid { margin-top: 10px; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background:
    radial-gradient(ellipse 70% 60% at 88% 0%, rgba(246, 139, 31, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 55% at 5% 100%, rgba(31, 86, 142, 0.5), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='2'%3E%3Crect x='10' y='10' width='100' height='100' rx='4'/%3E%3Cline x1='60' y1='10' x2='60' y2='110'/%3E%3Cline x1='10' y1='60' x2='110' y2='60'/%3E%3C/g%3E%3C/svg%3E"),
    var(--grad-navy);
  color: #fff; text-align: center;
  padding: clamp(44px, 6vw, 72px) 0;
}
.page-hero h1 { color: #fff; max-width: 820px; margin-left: auto; margin-right: auto; }
.page-hero .hero-sub { margin: 0 auto 28px; max-width: 640px; }
.page-hero .hero-ctas { justify-content: center; }

/* Photo page heroes: full-opacity cover image, content in a frosted panel for contrast */
.page-hero-photo { padding: clamp(36px, 5vw, 60px) 0; }
.page-hero-windows { background: url("/img/bg/windows.jpg") center/cover no-repeat; }
.page-hero-doors { background: url("/img/bg/doors.jpg") center/cover no-repeat; }
.page-hero-service { background: url("/img/bg/service-areas.jpg") center 65%/cover no-repeat; }
.page-hero-financing { background: url("/img/bg/financing.jpg") center/cover no-repeat; }
.page-hero-reviews { background: url("/img/bg/reviews.jpg") center/cover no-repeat; }
.page-hero-photo .container {
  width: min(880px, calc(100% - 32px));
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(28px, 4vw, 44px) clamp(20px, 4vw, 40px);
  box-shadow: var(--shadow-lg);
}
.page-hero-photo h1 { color: var(--navy-900); }
.page-hero-photo .hero-sub { color: var(--ink-soft); }
.page-hero-photo .hero-kicker { background: var(--grad-accent); color: #fff; box-shadow: var(--glow-amber); }
.page-hero-photo .btn-ghost-light {
  background: rgba(255, 255, 255, 0.8); color: var(--navy-800) !important;
  box-shadow: inset 0 0 0 2px var(--navy-800), var(--shadow-sm);
}
.page-hero-photo .btn-ghost-light:hover { background: #fff; box-shadow: inset 0 0 0 2px var(--navy-800), var(--shadow-md); }

/* ---------- Hero (homepage) ---------- */
.hero {
  /* Cover photo at full opacity behind the copy + quote card; dark text for contrast on the bright room */
  background: url("/img/hero-room.jpg") center/cover no-repeat;
  color: var(--navy-900);
  padding: clamp(46px, 7vw, 88px) 0 clamp(38px, 6vw, 74px);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: start; }
.hero h1 { color: var(--navy-900); text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6); }
.hero .hero-kicker { background: var(--grad-accent); color: #fff; box-shadow: var(--glow-amber); }
.hero .hero-sub { color: var(--ink-soft); }
.hero .btn-ghost-light {
  background: rgba(255, 255, 255, 0.8); color: var(--navy-800) !important;
  box-shadow: inset 0 0 0 2px var(--navy-800), var(--shadow-sm);
}
.hero .btn-ghost-light:hover { background: #fff; box-shadow: inset 0 0 0 2px var(--navy-800), var(--shadow-md); }
.hero .rating-badge .rating-label { color: var(--ink-soft); }
.hero .rating-badge a { color: var(--navy-800); }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(160deg, rgba(246, 139, 31, 0.22), rgba(246, 139, 31, 0.1));
  box-shadow: inset 0 0 0 1px rgba(255, 167, 51, 0.55), 0 4px 18px rgba(246, 139, 31, 0.15);
  color: #ffd9a1; font-weight: 800; font-size: 0.9rem; letter-spacing: 0.02em;
  padding: 8px 16px; border-radius: 999px; margin-bottom: 20px;
}
.hero-sub { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: #c9d9ea; max-width: 560px; }
.hero-points { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 12px; }
.hero-points li { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; color: #e8f0f8; }
.hero-points .check {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; margin-top: 1px;
  background: var(--grad-accent); color: #fff; font-size: 0;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(240, 127, 0, 0.4);
}
.hero-points .check::after {
  content: ""; width: 11px; height: 6px;
  border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-ratings { display: flex; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.rating-badge { display: flex; flex-direction: column; gap: 2px; }
.rating-badge .stars { color: var(--star); font-size: 1.05rem; letter-spacing: 2px; text-shadow: 0 1px 6px rgba(255, 180, 0, 0.35); }
.rating-badge .rating-label { font-size: 0.85rem; color: #a9bfd4; }
.rating-badge a { color: #fff; }

/* Hero quote card */
.quote-card {
  background: linear-gradient(175deg, #ffffff 0%, #f6f9fd 100%);
  color: var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow-lg), inset 0 1px 0 #fff;
  padding: 30px 28px 24px; position: relative;
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.quote-card-flag {
  position: absolute; top: -15px; left: 26px;
  background: var(--grad-accent); color: #fff; font-weight: 800; font-size: 0.82rem;
  padding: 6px 16px; border-radius: 999px; letter-spacing: 0.05em; text-transform: uppercase;
  box-shadow: var(--glow-amber);
}
.quote-card h2 { font-size: 1.45rem; margin-bottom: 4px; }
.quote-card .quote-card-sub { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 18px; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .quote-card { max-width: 560px; }
}

/* ---------- Trust bar ---------- */
.trustbar { background: #fff; border-bottom: 1px solid var(--line); }
.trustbar-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 22px 20px; }
.trust-item { display: flex; align-items: center; gap: 14px; justify-content: center; text-align: left; }
.trust-icon {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 15px;
  background: linear-gradient(160deg, var(--navy-100), #d7e5f2);
  color: var(--navy-700);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 0 #fff, var(--shadow-sm);
}
.trust-icon .icon { width: 26px; height: 26px; }
.trust-item b { display: block; color: var(--navy-900); font-size: 0.98rem; line-height: 1.25; }
.trust-item span:not(.trust-icon) { display: block; color: var(--ink-soft); font-size: 0.82rem; }
@media (max-width: 860px) { .trustbar-inner { grid-template-columns: repeat(2, 1fr); row-gap: 18px; } }

/* ---------- Sections ---------- */
.section { padding: clamp(52px, 7vw, 88px) 0; }
.section-soft { background: linear-gradient(180deg, var(--bg-soft) 0%, #eef3f9 100%); }
.section-navy {
  background:
    radial-gradient(ellipse 60% 50% at 92% 0%, rgba(246, 139, 31, 0.14), transparent 55%),
    var(--grad-navy);
  color: #d7e3ef;
}
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head .eyebrow, .eyebrow {
  display: inline-block; color: var(--amber-600); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 0.8rem; margin-bottom: 10px;
}
.section-head p { color: var(--ink-soft); }
.section-navy .section-head p { color: #aac0d6; }
.section-navy .section-head .eyebrow { color: var(--amber-400); }

/* ---------- Product cards ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards-grid { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad-accent); opacity: 0; transition: opacity 0.18s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: transparent; }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 54px; height: 54px; border-radius: 15px; margin-bottom: 16px;
  background: linear-gradient(160deg, var(--amber-100), #ffe4bd);
  color: var(--amber-600);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 0 #fff, var(--shadow-sm);
}
.card-icon .icon { width: 27px; height: 27px; }
.card p { color: var(--ink-soft); font-size: 0.97rem; flex: 1; }
.card .card-link { font-weight: 800; text-decoration: none; color: var(--amber-600); }
.card .card-link:hover { text-decoration: underline; }

/* ---------- Steps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 800px) { .steps-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }
.step {
  background: #fff; border-radius: var(--radius); padding: 32px 28px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line); position: relative;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.step:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--grad-navy); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.25rem;
  margin-bottom: 18px; box-shadow: 0 4px 14px rgba(10, 35, 64, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.step p { color: var(--ink-soft); font-size: 0.97rem; margin: 0; }
.step h3 { display: flex; align-items: center; gap: 9px; }
.step h3 .icon { color: var(--amber-600); width: 1.15em; height: 1.15em; }

/* ---------- Reviews ---------- */
.reviews-widget { min-height: 320px; }
.reviews-links { display: flex; gap: 16px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }

/* ---------- Brands ---------- */
.brands-row { display: flex; align-items: center; justify-content: center; gap: clamp(28px, 6vw, 72px); flex-wrap: wrap; }
.brands-row img {
  height: 56px; width: auto; filter: grayscale(35%); opacity: 0.85;
  transition: filter 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}
.brands-row img:hover { filter: none; opacity: 1; transform: scale(1.04); }
.brands-note { text-align: center; color: var(--ink-soft); margin-top: 22px; font-size: 0.95rem; }

/* ---------- Financing ---------- */
.financing-box {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center;
  background:
    radial-gradient(ellipse 55% 65% at 95% 5%, rgba(246, 139, 31, 0.2), transparent 55%),
    var(--grad-navy);
  border-radius: calc(var(--radius) + 8px); padding: clamp(32px, 5vw, 58px); color: #d7e3ef;
  box-shadow: var(--shadow-lg);
}
.financing-box h2 { color: #fff; }
.financing-big {
  font-size: clamp(2.6rem, 5vw, 3.9rem); font-weight: 900; line-height: 1; margin-bottom: 8px;
  background: linear-gradient(160deg, #ffc266, #f68b1f);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 12px rgba(246, 139, 31, 0.35));
}
.financing-terms { font-size: 0.82rem; color: #8ba6c0; margin-top: 18px; }
.financing-cta { display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 860px) { .financing-box { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-grid img {
  border-radius: 14px; object-fit: cover; width: 100%; aspect-ratio: 4/3; box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gallery-grid img:hover { transform: scale(1.025); box-shadow: var(--shadow-md); }

/* ---------- Service area ---------- */
.area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .area-grid { grid-template-columns: 1fr; } }
.area-cities { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 24px; padding: 0; list-style: none; }
.area-cities li {
  background: var(--navy-100); color: var(--navy-800); font-weight: 700; font-size: 0.92rem;
  padding: 8px 16px; border-radius: 999px; box-shadow: inset 0 1px 0 #fff;
}
.map-card {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%2316406a' stroke-opacity='0.07' stroke-width='2'%3E%3Crect x='10' y='10' width='100' height='100' rx='4'/%3E%3Cline x1='60' y1='10' x2='60' y2='110'/%3E%3Cline x1='10' y1='60' x2='110' y2='60'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(150deg, #ffffff, var(--navy-100));
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 42px 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.map-card-pin {
  width: 62px; height: 62px; border-radius: 50%; margin-bottom: 8px;
  background: var(--grad-accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--glow-amber);
}
.map-card-pin .icon { width: 30px; height: 30px; }
.map-card-address { font-size: 1.1rem; font-weight: 800; color: var(--navy-900); margin-bottom: 2px; }
.map-card-hours { color: var(--ink-soft); margin-bottom: 14px; }
.map-card-phone { display: inline-block; margin-top: 12px; color: var(--ink-soft); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 13px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  transition: box-shadow 0.15s ease;
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-item[open] { box-shadow: var(--shadow-md); border-color: var(--amber-400); }
.faq-item summary {
  cursor: pointer; padding: 19px 22px; font-weight: 800; color: var(--navy-900);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.45rem; color: var(--amber-600); font-weight: 800; transition: transform 0.15s ease; flex: 0 0 auto; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 19px; color: var(--ink-soft); }

/* ---------- Quote form (multi-step) ---------- */
.quote-wrap { max-width: 640px; margin: 0 auto; }
.quote-form-card {
  background: linear-gradient(175deg, #ffffff 0%, #f7fafd 100%);
  border-radius: var(--radius); box-shadow: var(--shadow-lg), inset 0 1px 0 #fff;
  padding: clamp(26px, 4vw, 42px); color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.progress-track { height: 9px; background: var(--navy-100); border-radius: 999px; margin-bottom: 28px; overflow: hidden; box-shadow: inset 0 1px 3px rgba(7, 26, 45, 0.1); }
.progress-fill { height: 100%; width: 33%; background: var(--grad-accent); border-radius: 999px; transition: width 0.3s ease; box-shadow: 0 0 8px rgba(246, 139, 31, 0.5); }

.form-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-step[hidden] { display: none; }
.form-step-title { font-size: 1.32rem; font-weight: 800; color: var(--navy-900); margin-bottom: 4px; padding: 0; float: left; width: 100%; }
.form-step-title + * { clear: both; }
.form-step-sub { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 18px; }

.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-bottom: 8px; }
.choice-grid.choice-grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 560px) {
  /* Keep Windows / Doors / Both on one compact row on phones */
  .choice-grid { gap: 8px; }
  .choice-grid .choice label { padding: 12px 4px; min-height: 80px; font-size: 0.88rem; gap: 6px; }
  .choice-emoji { width: 34px; height: 34px; border-radius: 10px; }
  .choice-emoji .icon { width: 19px; height: 19px; }
}
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice label {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border: 2px solid var(--line); border-radius: 14px; padding: 20px 10px; text-align: center;
  font-weight: 800; color: var(--navy-800); cursor: pointer; min-height: 92px; background: #fff;
  transition: border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}
.choice-emoji {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(160deg, var(--navy-100), #d7e5f2); color: var(--navy-700);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.12s ease, color 0.12s ease;
}
.choice-emoji .icon { width: 24px; height: 24px; }
.choice input:hover + label { border-color: var(--amber-500); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.choice input:focus-visible + label { outline: 3px solid var(--amber-400); outline-offset: 2px; }
.choice input:checked + label {
  border-color: var(--amber-500); background: var(--amber-100);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--amber-500);
}
.choice input:checked + label .choice-emoji { background: var(--grad-accent); color: #fff; }

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 800; font-size: 0.92rem; color: var(--navy-900); margin-bottom: 6px; }
.field .optional { color: var(--ink-soft); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 15px; font-size: 1.05rem; font-family: inherit;
  border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber-500); box-shadow: 0 0 0 4px rgba(246, 139, 31, 0.16); }
.field input.input-error { border-color: #d93025; }
.field-error { color: #d93025; font-size: 0.85rem; margin-top: 5px; display: none; }
.field-error.visible { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.form-nav { display: flex; gap: 12px; margin-top: 22px; }
.form-nav .btn-back { flex: 0 0 auto; padding-left: 20px; padding-right: 20px; }
.form-nav .btn-next, .form-nav .btn-submit { flex: 1; }
.form-privacy { text-align: center; color: var(--ink-soft); font-size: 0.82rem; margin: 14px 0 0; }
.form-privacy a { color: var(--ink-soft); }
.response-promise {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--green-600); font-weight: 800; font-size: 0.92rem; margin-top: 14px;
}
.response-promise .icon { color: var(--amber-500); }
.validation-summary { color: #d93025; font-weight: 700; margin-bottom: 14px; }
.validation-summary ul { margin: 6px 0 0; padding-left: 20px; font-weight: 400; }
.validation-summary:empty { display: none; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* No-JS fallback: show all steps stacked, hide step nav */
.no-js .form-step[hidden] { display: block; }
.no-js .btn-next, .no-js .btn-back, .no-js .progress-track { display: none; }
.no-js .js-only { display: none; }
.js .nojs-only { display: none; }

/* ---------- Final CTA band ---------- */
.cta-band {
  background:
    radial-gradient(ellipse 50% 80% at 90% 20%, rgba(255, 255, 255, 0.14), transparent 60%),
    linear-gradient(120deg, #e07200, #f68b1f);
  color: #fff;
}
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(30px, 4vw, 46px) 20px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 4px; }
.cta-band p { margin: 0; color: #fff3e0; }
.cta-band .btn { background: var(--navy-950); color: #fff !important; box-shadow: 0 8px 24px rgba(7, 26, 45, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.cta-band .btn:hover { background: var(--navy-800); }

/* ---------- Sticky mobile CTA bar ---------- */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 110;
  display: none; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--navy-950);
  box-shadow: 0 -6px 24px rgba(7, 26, 45, 0.3);
  padding-bottom: env(safe-area-inset-bottom);
}
.sticky-cta a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 10px; font-weight: 800; font-size: 1.02rem; text-decoration: none; letter-spacing: 0.01em;
}
.sticky-call { background: var(--grad-green); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.sticky-quote { background: var(--grad-accent); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25); }
@media (max-width: 820px) {
  .sticky-cta { display: grid; }
  body { padding-bottom: 64px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--grad-navy); color: #a9bfd4; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; padding: 60px 20px 34px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { background: #fff; padding: 10px 14px; border-radius: 12px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.88rem; }
.site-footer a { color: #d7e3ef; }
.site-footer a:hover { color: var(--amber-400); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 18px 20px; text-align: center; font-size: 0.85rem; color: #7d95ac; }
.footer-bottom p { margin: 0; }

/* ---------- Thank you page ---------- */
.thankyou { max-width: 640px; margin: 0 auto; text-align: center; padding: clamp(56px, 9vw, 110px) 20px; }
.thankyou .ty-icon {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--grad-green); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 2.5rem;
  margin: 0 auto 26px; box-shadow: 0 10px 30px rgba(23, 148, 74, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.25);
}
.thankyou p { color: var(--ink-soft); }
.ty-steps { text-align: left; background: var(--bg-soft); border-radius: var(--radius); padding: 26px 30px; margin: 28px 0; border: 1px solid var(--line); }
.ty-steps li { margin-bottom: 8px; }

/* ---------- Privacy / plain content ---------- */
.plain-page { max-width: 820px; margin: 0 auto; padding: 56px 20px; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }

/* ---------- Scroll reveal (subtle fade-up as content enters view) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.revealed { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Forced colors (Windows High Contrast) ---------- */
@media (forced-colors: active) {
  .choice input:checked + label {
    outline: 3px solid Highlight;
    outline-offset: 2px;
    forced-color-adjust: none;
    background: Highlight;
    color: HighlightText;
    border-color: Highlight;
  }
  .btn { border: 2px solid ButtonText; }
  .progress-fill { background: Highlight; }
}

/* ---------- Print ---------- */
@media print {
  .sticky-cta, .topbar, .skip-link, .header-quote-btn, .btn-next, .btn-back, .progress-track, .nav-toggle { display: none !important; }
  .hero, .page-hero, .section-navy, .site-footer, .financing-box, .cta-band {
    background: #fff !important;
    color: var(--ink) !important;
  }
  .hero h1, .page-hero h1, .section-navy h2, .section-navy h3, .financing-box h2, .cta-band h2 { color: var(--navy-900) !important; }
  .hero-sub, .hero-points li, .section-navy p, .financing-box p, .site-footer, .site-footer a, .cta-band p { color: var(--ink) !important; }
  body { padding-bottom: 0; }
}
