/* ==========================================================================
   Superior Impact Windows — Design System
   superiorimpactwindows.com
   Palette: deep ocean navy + vivid orange CTA + coastal accents
   Fonts: Plus Jakarta Sans (display) / Inter (body)
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --navy-900: #081a33;
  --navy-800: #0b2545;
  --navy-700: #102f55;
  --navy-600: #163d6b;
  --blue-500: #1b6ca8;
  --blue-400: #2f8fd4;
  --blue-100: #e7f1fb;
  --teal-500: #0fb5ae;

  --accent: #ff7a1a;        /* primary CTA orange */
  --accent-600: #ed6a0c;
  --accent-700: #d65c05;
  --accent-100: #fff1e6;
  --gold: #ffb703;          /* stars / highlights */

  /* Neutrals */
  --ink: #0c1116;
  --slate-800: #1f2a37;
  --slate-700: #33414f;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --surface: #f6f9fc;
  --surface-2: #eef4fa;
  --white: #ffffff;

  --success: #16a34a;
  --success-100: #dcfce7;
  --danger: #dc2626;
  --danger-100: #fee2e2;

  /* Typography */
  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Radii & shadow */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-xs: 0 1px 2px rgba(8, 26, 51, 0.06);
  --shadow-sm: 0 2px 8px rgba(8, 26, 51, 0.08);
  --shadow: 0 12px 30px rgba(8, 26, 51, 0.10);
  --shadow-lg: 0 24px 60px rgba(8, 26, 51, 0.16);

  /* Layout */
  --container: 1180px;
  --container-narrow: 820px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--slate-700);
  background: var(--white);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
svg { fill: currentColor; }
a { color: var(--blue-500); text-decoration: none; transition: color 0.18s var(--ease); }
a:hover { color: var(--accent-600); }
ul, ol { padding-left: 1.2em; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--navy-800);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p { color: var(--slate-700); }
strong { color: var(--slate-800); font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--blue-400);
  outline-offset: 2px;
  border-radius: 4px;
}

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

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.container-narrow { max-width: var(--container-narrow); }
.section { padding: clamp(56px, 4vw + 36px, 104px) 0; }
.section--tight { padding: clamp(40px, 3vw + 24px, 72px) 0; }
.section--surface { background: var(--surface); }
.section--surface-2 { background: var(--surface-2); }
.section--navy { background: var(--navy-800); color: #cfe0f3; }
.section--navy h2, .section--navy h3 { color: #fff; }

.grid { display: grid; gap: 24px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 4vw, 64px); align-items: center; }

.center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-700); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.section--navy .eyebrow { color: var(--gold); }
.section-head { max-width: 720px; margin: 0 auto clamp(34px, 4vw, 56px); }
.section-head.center { margin-inline: auto; }
.lead { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.22rem); color: var(--slate-600); }
.section--navy .lead { color: #b8cce4; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 16px 26px; border-radius: var(--radius-pill); border: 2px solid transparent;
  cursor: pointer; transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap; text-align: center;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 22px rgba(255, 122, 26, 0.32); }
.btn-primary:hover { background: var(--accent-600); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px rgba(255, 122, 26, 0.4); }
.btn-secondary { background: var(--white); color: var(--navy-800); border-color: var(--line-strong); box-shadow: var(--shadow-xs); }
.btn-secondary:hover { color: var(--navy-800); border-color: var(--navy-600); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--navy-800); border-color: transparent; padding-inline: 8px; }
.btn-ghost:hover { color: var(--accent-600); }
.btn-white { background: #fff; color: var(--navy-800); }
.btn-white:hover { background: #fff; color: var(--accent-600); transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: #fff; }
.btn-lg { padding: 19px 34px; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.arrow-link { font-family: var(--font-display); font-weight: 700; display: inline-flex; align-items: center; gap: 7px; }
.arrow-link svg { width: 16px; height: 16px; transition: transform 0.18s var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.topbar {
  background: var(--navy-800); color: #cbdcf0; font-size: 0.86rem;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; padding-block: 6px; }
.topbar a { color: #fff; font-weight: 600; white-space: nowrap; }
.topbar a:hover { color: var(--gold); }
.topbar .topbar-left { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar .pill-note { display: inline-flex; align-items: center; gap: 7px; }
.topbar .pill-note svg { width: 15px; height: 15px; color: var(--gold); }
.topbar .topbar-right { display: flex; gap: 18px; align-items: center; }
.topbar svg { width: 15px; height: 15px; flex: none; vertical-align: -2px; }

.nav { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 10px; }
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand .logo-mark { width: 38px; height: 38px; flex: none; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand .brand-name { font-family: var(--font-display); font-weight: 800; font-size: 0.98rem; color: var(--navy-800); letter-spacing: -0.02em; }
.brand .brand-sub { font-size: 0.58rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--accent-700); font-weight: 700; }

.nav-menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-menu > li { position: relative; }
.nav-menu > li > a, .nav-menu .nav-toggle-sub {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  font-family: var(--font-display); font-weight: 600; font-size: 0.84rem; color: var(--slate-800);
  padding: 9px 8px; border-radius: 10px; background: none; border: none; cursor: pointer;
}
.nav-menu > li > a:hover, .nav-menu .nav-toggle-sub:hover,
.nav-menu > li.has-dropdown:hover > .nav-toggle-sub { color: var(--accent-600); background: var(--surface); }
.nav-menu .caret { width: 13px; height: 13px; transition: transform 0.2s var(--ease); }
.has-dropdown:hover .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 268px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 10px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all 0.2s var(--ease); z-index: 50;
}
.has-dropdown:hover > .dropdown, .has-dropdown:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: flex; flex-direction: column; gap: 1px; padding: 10px 12px; border-radius: 9px; color: var(--slate-800); font-weight: 600; font-size: 0.94rem; }
.dropdown a small { font-weight: 500; color: var(--slate-500); font-size: 0.8rem; }
.dropdown a:hover { background: var(--surface); color: var(--accent-600); }

.nav-actions { display: flex; align-items: center; gap: 9px; flex: none; }
.nav-actions .btn { padding: 11px 14px; font-size: 0.92rem; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 800; color: var(--navy-800); font-size: 0.95rem; }
.nav-phone svg { width: 18px; height: 18px; color: var(--accent); }
.nav-phone small { display: block; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-500); }

.nav-burger {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line-strong);
  border-radius: 11px; background: #fff; position: relative;
}
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 2px; background: var(--navy-800);
  border-radius: 2px; transform: translate(-50%, -50%); transition: 0.25s var(--ease);
}
.nav-burger span::before { transform: translate(-50%, -8px); }
.nav-burger span::after { transform: translate(-50%, 6px); }
body.nav-open .nav-burger span { background: transparent; }
body.nav-open .nav-burger span::before { transform: translate(-50%, 0) rotate(45deg); }
body.nav-open .nav-burger span::after { transform: translate(-50%, 0) rotate(-45deg); }

/* ---------- Mobile nav ---------- */
.nav-backdrop { position: fixed; inset: 0; background: rgba(8,26,51,0.5); opacity: 0; visibility: hidden; transition: 0.25s; z-index: 90; }
body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }
body.nav-open { overflow: hidden; }

@media (max-width: 1180px) {
  .nav-menu, .nav-actions .nav-phone { display: none; }
  .nav-burger { display: block; }
  .nav-menu {
    display: flex; position: fixed; top: 0; right: 0; height: 100dvh; width: min(360px, 86vw);
    background: #fff; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 84px 18px 28px; box-shadow: var(--shadow-lg); z-index: 95;
    transform: translateX(105%); transition: transform 0.3s var(--ease); overflow-y: auto;
  }
  body.nav-open .nav-menu { transform: translateX(0); }
  .nav-menu > li > a, .nav-menu .nav-toggle-sub { width: 100%; font-size: 1.05rem; padding: 14px 12px; justify-content: space-between; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: none; border-left: 2px solid var(--line); border-radius: 0; margin: 0 0 6px 12px;
    padding: 2px 0 6px; min-width: 0; max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease);
  }
  .nav-menu li.open .dropdown { max-height: 600px; }
  .has-dropdown:hover .caret { transform: none; }
  .nav-menu li.open .caret { transform: rotate(180deg); }
}

/* ---------- Sticky mobile CTA bar ---------- */
.mobile-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 80;
  display: none; grid-template-columns: 1fr 1fr; gap: 0;
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(8,26,51,0.12);
}
.mobile-cta a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; font-family: var(--font-display); font-weight: 800; }
.mobile-cta a svg { width: 18px; height: 18px; }
.mobile-cta .mc-call { color: var(--navy-800); }
.mobile-cta .mc-quote { background: var(--accent); color: #fff; }
/* Hamburger viewports (<=1180): show sticky call/quote bar, simplify header to logo + menu button */
@media (max-width: 1180px) { .mobile-cta { display: grid; } body { padding-bottom: 56px; } .nav-actions .btn { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; background: radial-gradient(1200px 600px at 80% -10%, var(--navy-700), var(--navy-900) 60%); color: #fff; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8,26,51,0) 60%, rgba(8,26,51,0.5)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 39.5H40M39.5 0V40' stroke='%23ffffff' stroke-opacity='0.04'/%3E%3C/svg%3E");
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.06fr 0.94fr; gap: clamp(28px, 4vw, 60px); align-items: center; padding: clamp(48px, 5vw, 84px) 0 clamp(56px, 5vw, 92px); }
.hero h1 { color: #fff; }
.hero h1 .hl { color: var(--gold); }
.hero .hero-sub { font-size: clamp(1.08rem, 1rem + 0.5vw, 1.3rem); color: #c4d6ec; margin-top: 18px; max-width: 560px; }
.hero .hero-cta { margin-top: 30px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.16); color: #fff; padding: 7px 15px; border-radius: var(--radius-pill);
  font-size: 0.84rem; font-weight: 600; backdrop-filter: blur(4px);
}
.hero-eyebrow svg { width: 16px; height: 16px; color: var(--gold); }
.hero-trust { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px 26px; }
.hero-trust .ht { display: flex; align-items: center; gap: 9px; font-size: 0.94rem; color: #d6e4f4; }
.hero-trust .ht svg { width: 20px; height: 20px; color: var(--teal-500); flex: none; }
.hero-stars { display: flex; align-items: center; gap: 10px; margin-top: 22px; }
.hero-stars .stars { color: var(--gold); }
.hero-stars span { color: #d6e4f4; font-size: 0.94rem; }

/* Hero quote card */
.quote-card { background: #fff; color: var(--slate-700); border-radius: var(--radius-lg); padding: clamp(22px, 2.5vw, 32px); box-shadow: var(--shadow-lg); }
.quote-card h3 { font-size: 1.4rem; margin-bottom: 4px; }
.quote-card .qc-sub { color: var(--slate-500); font-size: 0.95rem; margin-bottom: 18px; }
.quote-card .form-grid { display: grid; gap: 14px; }
.quote-card .qc-foot { margin-top: 14px; font-size: 0.82rem; color: var(--slate-500); display: flex; align-items: center; gap: 8px; }
.quote-card .qc-foot svg { width: 15px; height: 15px; color: var(--success); flex: none; }

/* ---------- Trust / certification bar ---------- */
.trustbar { background: var(--white); border-bottom: 1px solid var(--line); }
.trustbar .container { display: flex; align-items: center; justify-content: space-between; gap: 18px 30px; flex-wrap: wrap; padding-block: 22px; }
.trust-item { display: flex; align-items: center; gap: 11px; }
.trust-item .ti-icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--blue-100); color: var(--blue-500); }
.trust-item .ti-icon svg { width: 22px; height: 22px; }
.trust-item .ti-text { line-height: 1.2; }
.trust-item .ti-text strong { display: block; font-family: var(--font-display); color: var(--navy-800); font-size: 0.98rem; }
.trust-item .ti-text span { font-size: 0.8rem; color: var(--slate-500); }
.trust-stars { color: var(--gold); font-size: 0.95rem; }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-xs); transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease); height: 100%; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card .card-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue-100), #fff); color: var(--blue-500); margin-bottom: 16px; box-shadow: var(--shadow-xs); }
.card .card-icon svg { width: 27px; height: 27px; }
.card h3 { font-size: 1.22rem; margin-bottom: 8px; }
.card p { color: var(--slate-600); font-size: 0.98rem; }
.card .arrow-link { margin-top: 14px; }
.card--accent .card-icon { background: linear-gradient(135deg, var(--accent-100), #fff); color: var(--accent-600); }

/* value cards (Why choose us) */
.value-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); height: 100%; }
.value-card .vc-icon { width: 48px; height: 48px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--navy-800); color: #fff; }
.value-card .vc-icon svg { width: 24px; height: 24px; }
.value-card h3 { font-size: 1.1rem; margin-bottom: 5px; }
.value-card p { font-size: 0.94rem; color: var(--slate-600); }

/* service card with image area */
.service-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.service-card .sc-media { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--navy-700), var(--blue-500)); position: relative; display: grid; place-items: center; color: rgba(255,255,255,0.92); }
.service-card .sc-media svg { width: 64px; height: 64px; opacity: 0.95; }
.service-card .sc-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.service-card h3 { font-size: 1.18rem; }
.service-card p { flex: 1; margin: 8px 0 14px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 8px; }
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); color: #fff; line-height: 1; letter-spacing: -0.03em; }
.stat .num .unit { color: var(--gold); }
.stat .label { color: #a9c2de; font-size: 0.92rem; margin-top: 8px; }
.section:not(.section--navy) .stat .num { color: var(--navy-800); }
.section:not(.section--navy) .stat .label { color: var(--slate-500); }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 28px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); }
.step .step-num { counter-increment: step; width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; display: grid; place-items: center; margin-bottom: 16px; box-shadow: 0 8px 16px rgba(255,122,26,0.3); }
.step .step-num::before { content: counter(step); }
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { font-size: 0.93rem; color: var(--slate-600); }
.steps.on-navy .step { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); }
.steps.on-navy .step h3 { color: #fff; }
.steps.on-navy .step p { color: #aec5e0; }

/* ---------- Pros & cons ---------- */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pc-col { border-radius: var(--radius-lg); padding: 30px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-xs); }
.pc-col.pros { border-top: 5px solid var(--success); }
.pc-col.cons { border-top: 5px solid var(--accent); }
.pc-col h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 1.3rem; }
.pc-col h3 .pc-badge { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; }
.pros h3 .pc-badge { background: var(--success-100); color: var(--success); }
.cons h3 .pc-badge { background: var(--accent-100); color: var(--accent-700); }
.pc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.pc-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.97rem; }
.pc-list li svg { width: 21px; height: 21px; flex: none; margin-top: 2px; }
.pros .pc-list li svg { color: var(--success); }
.cons .pc-list li svg { color: var(--accent-600); }
.pc-list li strong { color: var(--navy-800); }

/* ---------- Gallery ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.filter-btn { padding: 9px 18px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: #fff; font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; color: var(--slate-700); transition: 0.18s var(--ease); }
.filter-btn:hover { border-color: var(--navy-600); color: var(--navy-800); }
.filter-btn.active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-xs); transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gallery-item .gi-media { aspect-ratio: 4/3; background: linear-gradient(135deg, var(--navy-700), var(--blue-500)); position: relative; display: grid; place-items: center; color: rgba(255,255,255,0.85); }
.gallery-item .gi-media .gi-tag { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,0.95); color: var(--navy-800); font-size: 0.74rem; font-weight: 700; padding: 5px 11px; border-radius: var(--radius-pill); font-family: var(--font-display); }
.gallery-item .gi-media svg { width: 54px; height: 54px; }
.gallery-item .gi-body { padding: 16px 18px; }
.gallery-item .gi-body h4 { font-size: 1.02rem; color: var(--navy-800); margin-bottom: 3px; }
.gallery-item .gi-body p { font-size: 0.86rem; color: var(--slate-500); }
.gallery-item.is-hidden { display: none; }

/* ---------- Comparison table ---------- */
.compare-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-xs); }
table.compare { width: 100%; border-collapse: collapse; min-width: 620px; background: #fff; }
table.compare th, table.compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
table.compare thead th { background: var(--navy-800); color: #fff; font-family: var(--font-display); font-size: 0.98rem; }
table.compare thead th.col-win { background: var(--accent); }
table.compare tbody th { font-weight: 600; color: var(--navy-800); font-family: var(--font-display); width: 30%; }
table.compare td { color: var(--slate-700); font-size: 0.96rem; }
table.compare td.win { background: var(--accent-100); font-weight: 600; color: var(--navy-800); }
table.compare tr:last-child th, table.compare tr:last-child td { border-bottom: none; }
.cell-icon { display: inline-flex; align-items: center; gap: 8px; }
.cell-icon svg { width: 18px; height: 18px; }
.cell-icon.yes svg { color: var(--success); } .cell-icon.no svg { color: var(--danger); }

/* generic data table for content pages */
.data-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.data-table th, .data-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.96rem; }
.data-table thead th { background: var(--surface-2); color: var(--navy-800); font-family: var(--font-display); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:nth-child(even) { background: var(--surface); }

/* ---------- Insurance / calculator ---------- */
.calc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow); }
.calc h3 { font-size: 1.5rem; margin-bottom: 6px; }
.calc .calc-fields { display: grid; gap: 18px; margin: 22px 0; }
.calc .calc-result { background: var(--navy-800); color: #fff; border-radius: var(--radius); padding: 24px; text-align: center; }
.calc .calc-result .cr-label { color: #aec5e0; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; }
.calc .calc-result .cr-value { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem); color: var(--gold); line-height: 1.1; margin: 6px 0; }
.calc .calc-result .cr-note { color: #aec5e0; font-size: 0.84rem; }
.range-out { font-family: var(--font-display); font-weight: 700; color: var(--accent-700); }

/* ---------- Financing ---------- */
.finance-band { background: linear-gradient(135deg, var(--navy-800), var(--blue-500)); color: #fff; border-radius: var(--radius-lg); padding: clamp(30px, 4vw, 56px); }
.finance-band h2 { color: #fff; }
.price-from { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem); color: var(--gold); line-height: 1; }
.price-from small { font-size: 1rem; color: #c4d6ec; font-weight: 600; }

/* ---------- Testimonials ---------- */
.reviews-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-xs); display: flex; flex-direction: column; height: 100%; }
.review .stars { color: var(--gold); margin-bottom: 12px; }
.review p { color: var(--slate-700); font-style: italic; flex: 1; }
.review .reviewer { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.review .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy-700); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; flex: none; }
.review .reviewer .rn { font-family: var(--font-display); font-weight: 700; color: var(--navy-800); font-size: 0.96rem; }
.review .reviewer .rl { font-size: 0.82rem; color: var(--slate-500); }
.review .gbadge { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 0.8rem; color: var(--slate-500); }
.review .gbadge svg { width: 16px; height: 16px; }
.stars { letter-spacing: 2px; }

/* ---------- About / team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-card { text-align: center; }
.team-card .avatar-lg { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 16px; background: linear-gradient(135deg, var(--navy-700), var(--blue-500)); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 2rem; box-shadow: var(--shadow); }
.team-card h3 { font-size: 1.15rem; }
.team-card .role { color: var(--accent-700); font-weight: 600; font-size: 0.9rem; }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 840px; margin-inline: auto; display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; box-shadow: var(--shadow-xs); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; padding: 20px 22px; background: none; border: none; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--navy-800); }
.faq-q:hover { color: var(--accent-600); }
.faq-q .faq-ico { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 2px solid var(--line-strong); position: relative; transition: 0.2s var(--ease); }
.faq-q .faq-ico::before, .faq-q .faq-ico::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--navy-700); border-radius: 2px; transition: 0.2s var(--ease); }
.faq-q .faq-ico::before { width: 11px; height: 2px; transform: translate(-50%, -50%); }
.faq-q .faq-ico::after { width: 2px; height: 11px; transform: translate(-50%, -50%); }
.faq-item.open .faq-ico { border-color: var(--accent); background: var(--accent); }
.faq-item.open .faq-ico::before, .faq-item.open .faq-ico::after { background: #fff; }
.faq-item.open .faq-ico::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease); }
.faq-a-inner { padding: 0 22px 22px; color: var(--slate-600); }
.faq-item.open .faq-a { max-height: 520px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; width: 420px; height: 420px; background: radial-gradient(circle, rgba(255,122,26,0.28), transparent 70%); top: -160px; right: -120px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c4d6ec; max-width: 560px; margin-inline: auto; }
.cta-band .container { position: relative; z-index: 2; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: 0.88rem; color: var(--navy-800); }
.field .req { color: var(--accent-600); }
.input, .select, .textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line-strong); border-radius: 11px;
  background: #fff; color: var(--slate-800); font-size: 1rem; transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--slate-400); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 4px rgba(47,143,212,0.16); }
.textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: 0.82rem; color: var(--slate-500); }
.hp-field { position: absolute; left: -5000px; }
.form-success { display: none; background: var(--success-100); border: 1px solid var(--success); color: #14532d; padding: 18px 20px; border-radius: var(--radius); }
.form-success.show { display: block; }
.form-success h4 { color: #14532d; margin-bottom: 4px; }

/* ---------- Page (interior) hero / breadcrumb ---------- */
.page-hero { background: radial-gradient(900px 500px at 85% -20%, var(--navy-700), var(--navy-900)); color: #fff; padding: clamp(40px, 4vw, 70px) 0; position: relative; }
.page-hero h1 { color: #fff; max-width: 760px; }
.page-hero p { color: #c4d6ec; max-width: 640px; margin-top: 14px; font-size: 1.1rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.86rem; color: #9db6d4; margin-bottom: 16px; list-style: none; padding: 0; }
.breadcrumb a { color: #cfe0f3; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb li::after { content: "/"; margin-left: 8px; color: #5f7ba0; }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb li[aria-current] { color: #fff; }

/* ---------- Prose (article content) ---------- */
.prose { max-width: 760px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.7em; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: var(--slate-700); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-top: 0.5em; }
.prose a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--navy-800); }
.callout { border-left: 4px solid var(--accent); background: var(--accent-100); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; }
.callout.info { border-color: var(--blue-500); background: var(--blue-100); }
.callout.success { border-color: var(--success); background: var(--success-100); }
.callout h4 { margin-bottom: 6px; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.toc h4 { margin-bottom: 10px; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-500); }
.toc ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.toc a { font-weight: 600; }

/* sidebar layout */
.with-aside { display: grid; grid-template-columns: 1fr 340px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.aside-card { position: sticky; top: calc(var(--header-h) + 20px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); }
.aside-card h3 { font-size: 1.25rem; margin-bottom: 6px; }

/* check list */
.check-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 11px; align-items: flex-start; }
.check-list li svg { width: 22px; height: 22px; color: var(--success); flex: none; margin-top: 2px; }
.check-list.on-navy li svg { color: var(--teal-500); }

/* pills / badges */
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: var(--radius-pill); font-size: 0.84rem; font-weight: 700; font-family: var(--font-display); background: var(--blue-100); color: var(--blue-500); }
.pill.accent { background: var(--accent-100); color: var(--accent-700); }
.pill.gold { background: #fff4d6; color: #92660a; }
.pill.success { background: var(--success-100); color: #14532d; }
.pill svg { width: 15px; height: 15px; }
.badge-grid { display: flex; flex-wrap: wrap; gap: 12px; }

/* area chips */
.area-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.area-chips a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-pill); font-weight: 600; font-size: 0.92rem; color: var(--navy-800); box-shadow: var(--shadow-xs); }
.area-chips a:hover { border-color: var(--accent); color: var(--accent-600); transform: translateY(-2px); }
.area-chips a svg { width: 15px; height: 15px; color: var(--accent); }

/* map embed */
.map-embed { border: 0; width: 100%; height: 100%; min-height: 320px; border-radius: var(--radius); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #9db6d4; padding-top: clamp(48px, 5vw, 72px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 44px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; letter-spacing: 0.02em; }
.site-footer a { color: #9db6d4; }
.site-footer a:hover { color: var(--gold); }
.footer-links { list-style: none; padding: 0; display: grid; gap: 10px; font-size: 0.94rem; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { color: #8fa9c9; font-size: 0.94rem; margin-top: 14px; max-width: 320px; }
.footer-contact { list-style: none; padding: 0; display: grid; gap: 12px; font-size: 0.94rem; }
.footer-contact li { display: flex; gap: 11px; align-items: flex-start; }
.footer-contact svg { width: 19px; height: 19px; color: var(--accent); flex: none; margin-top: 2px; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.footer-badge { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); padding: 7px 12px; border-radius: 9px; font-size: 0.78rem; font-weight: 600; color: #cfe0f3; }
.footer-badge svg { width: 15px; height: 15px; color: var(--teal-500); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.07); display: grid; place-items: center; color: #cfe0f3; }
.footer-social a:hover { background: var(--accent); color: #fff; }
.footer-social svg { width: 19px; height: 19px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; font-size: 0.84rem; color: #7f99ba; }
.footer-bottom a { color: #9db6d4; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; } .reveal.d3 { transition-delay: 0.24s; } .reveal.d4 { transition-delay: 0.32s; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 30px; } .mt-4 { margin-top: 44px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 20px; } .mb-3 { margin-bottom: 30px; }
.text-accent { color: var(--accent-600); } .text-white { color: #fff; } .text-muted { color: var(--slate-500); }
.hide { display: none !important; }
.flow > * + * { margin-top: 1rem; }
.maxw-720 { max-width: 720px; } .mx-auto { margin-inline: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .with-aside { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .reviews-row, .team-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .quote-card { max-width: 520px; }
  .split { grid-template-columns: 1fr; }
  .proscons { grid-template-columns: 1fr; }
  .cols-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .topbar .topbar-left .pill-note.hide-sm { display: none; }
}
@media (max-width: 560px) {
  .cols-2, .cols-4, .reviews-row, .team-grid, .gallery-grid, .steps, .stats { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row .btn { width: 100%; }
  .topbar { display: none; }
}

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