/* ==========================================================================
   Mortgage Matters — styles.css
   Palette: warm paper, warm ink, brass gold, deep charcoal. Maroon lives
   only in the logo cross. Hairline rules echo the ruling of a printed
   mortgage statement — the site's central motif.
   ========================================================================== */

:root {
  /* Color tokens */
  --paper: #FCFBF7;
  --paper-alt: #F5F2EA;
  --ink: #17140F;
  --ink-70: rgba(23, 20, 15, 0.72);
  --ink-45: rgba(23, 20, 15, 0.5);
  --ink-30: rgba(23, 20, 15, 0.28);
  --line: rgba(23, 20, 15, 0.12);
  --charcoal: #201C15;
  --charcoal-2: #2A251C;
  --gold: #B4892E;
  --gold-bright: #D9B45B;
  --gold-deep: #8A681D;
  --gold-tint: rgba(180, 137, 46, 0.09);
  --maroon: #7A1F23;
  --white: #FFFFFF;
  --footer-bg: #17140F;
  --error: #B3261E;

  /* Type */
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1180px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(23, 20, 15, 0.05), 0 2px 8px rgba(23, 20, 15, 0.05);
  --shadow-md: 0 2px 6px rgba(23, 20, 15, 0.06), 0 12px 32px rgba(23, 20, 15, 0.09);
  --shadow-lg: 0 4px 12px rgba(23, 20, 15, 0.08), 0 24px 64px rgba(23, 20, 15, 0.14);
  --section-pad: clamp(4.5rem, 9vw, 8rem);
  --header-h: 76px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure, fieldset, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
fieldset { border: 0; min-width: 0; }
strong { font-weight: 600; }
[hidden] { display: none !important; }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.15rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.185rem; font-weight: 600; line-height: 1.35; }

::selection { background: var(--gold-bright); color: var(--ink); }

:focus-visible {
  outline: 2.5px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--white);
  padding: 0.75rem 1.25rem; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.container-narrow { max-width: 860px; }

/* ---------- Shared bits ---------- */
.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.1rem;
}
.eyebrow-gold { color: var(--gold-bright); }

.section { padding-block: var(--section-pad); }
.section-alt { background: var(--paper-alt); }
.section-head { max-width: 680px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-sub { margin-top: 1.1rem; font-size: 1.11rem; color: var(--ink-70); max-width: 58ch; }

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  font-weight: 600; font-size: 1rem; line-height: 1.2;
  padding: 0.9em 1.7em; border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:active { transform: scale(0.985); }
.btn-gold {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(23,20,15,0.18), inset 0 1px 0 rgba(255,255,255,0.28);
}
.btn-gold:hover { background: var(--gold-bright); box-shadow: 0 4px 16px rgba(180,137,46,0.4); transform: translateY(-1px); }
.btn-ghost {
  border: 1.5px solid var(--ink-30); color: var(--ink); background: transparent;
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(23,20,15,0.03); transform: translateY(-1px); }
.btn-ghost-light { border: 1.5px solid rgba(255,255,255,0.35); color: var(--white); }
.btn-ghost-light:hover { border-color: var(--gold-bright); color: var(--gold-bright); transform: translateY(-1px); }
.btn-lg { font-size: 1.06rem; padding: 1em 1.9em; }
.btn-sm { font-size: 0.92rem; padding: 0.68em 1.3em; }
.btn-block { width: 100%; }

.micro-trust { font-size: 0.875rem; color: var(--ink-45); margin-top: 0.9rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.2, 0.7, 0.3, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(252, 251, 247, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex; align-items: center; gap: 2rem;
  height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-mark { width: 38px; height: 34px; flex: none; }
.brand-logo { height: 58px; width: auto; display: block; }
.brand-logo-footer { height: 106px; }
.brand-word { display: flex; flex-direction: column; line-height: 1.05; }
.brand-line1 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.06rem;
  letter-spacing: 0.02em; color: var(--maroon);
  text-transform: uppercase;
}
.brand-line2 {
  font-size: 0.575rem; font-weight: 600; letter-spacing: 0.38em;
  text-transform: uppercase; color: var(--gold-deep); margin-top: 2px;
}

.site-nav { display: flex; gap: 1.9rem; margin-inline: auto; }
.site-nav a {
  font-size: 0.95rem; font-weight: 500; text-decoration: none; color: var(--ink-70);
  transition: color 0.15s ease; white-space: nowrap;
}
.site-nav a:hover { color: var(--ink); }

.header-cta { display: flex; align-items: center; gap: 1.2rem; }
.header-phone {
  font-size: 0.95rem; font-weight: 600; text-decoration: none; color: var(--ink-70);
  transition: color 0.15s ease; white-space: nowrap;
}
.header-phone:hover { color: var(--gold-deep); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 6px;
  width: 44px; height: 44px; padding: 10px; margin-left: auto;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column; gap: 0.25rem;
  padding: 0.75rem clamp(1.25rem, 4vw, 2.5rem) 1.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.mobile-nav a { padding: 0.7rem 0; font-weight: 500; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 1rem; }
.mobile-nav.open { display: flex; }

@media (max-width: 900px) {
  .site-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  padding-block: clamp(3.5rem, 7vw, 6.5rem) clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 5vw, 5rem); align-items: center;
}
.hero-copy .eyebrow { margin-bottom: 1.4rem; }
.hero-sub {
  margin-top: 1.5rem; font-size: 1.17rem; line-height: 1.65;
  color: var(--ink-70); max-width: 54ch;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 1.6rem;
  margin-top: 2.1rem; padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.hero-trust li {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.9rem; font-weight: 500; color: var(--ink-70);
}
.hero-trust .icon { color: var(--gold-deep); }

/* The annotated statement — signature element */
.hero-visual { position: relative; }
.statement-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.6rem 1.8rem;
  max-width: 480px;
  margin-inline: auto;
  transform: rotate(0.6deg);
}
.statement-head {
  display: flex; align-items: center; gap: 0.6rem;
  padding-bottom: 1rem; border-bottom: 2px solid var(--ink);
}
.statement-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex: none; }
.statement-title { font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em; }
.statement-date { margin-left: auto; font-size: 0.75rem; color: var(--ink-45); }

.statement-body { padding-top: 0.4rem; }
.statement-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.72rem 0.4rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem; color: var(--ink-70);
}
.statement-row strong { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.statement-row.is-flagged { background: var(--gold-tint); border-radius: 6px; }
.statement-row.is-flagged strong { color: var(--gold-deep); }
.statement-total { border-bottom: 0; border-top: 2px solid var(--ink); margin-top: 0.35rem; font-weight: 600; color: var(--ink); }

/* Gold review circle drawn around the rate — anchored to the value itself */
.rate-value { position: relative; }
.rate-circle {
  position: absolute; left: 50%; top: 50%;
  width: 128%; min-width: 96px; height: auto;
  transform: translate(-50%, -50%);
  overflow: visible; pointer-events: none;
}
.anno-circle { stroke-dasharray: 400; stroke-dashoffset: 400; }
.loaded .anno-circle { animation: draw 1.1s ease 0.9s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .anno-circle { stroke-dashoffset: 0; animation: none; }
}

.statement-callout {
  display: flex; flex-direction: column; gap: 0.15rem;
  margin-top: 1.3rem;
  background: var(--ink); color: var(--white);
  border-radius: 12px; padding: 0.85rem 1.1rem;
  box-shadow: var(--shadow-md);
}
.callout-label {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold-bright);
}
.callout-text { font-size: 0.98rem; }
.callout-text strong { color: var(--gold-bright); }

.statement-footnote {
  margin-top: 1rem; text-align: center;
  font-size: 0.78rem; color: var(--ink-45);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; margin-inline: auto; width: 100%; }
}

/* ==========================================================================
   STATS BAND
   ========================================================================== */
.stats-band {
  border-block: 1px solid var(--line);
  background: var(--white);
  padding-block: clamp(2.2rem, 4vw, 3.2rem);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.stat-label { display: block; margin-top: 0.35rem; font-size: 0.9rem; color: var(--ink-45); }
@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   BENEFITS
   ========================================================================== */
.card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.benefit-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(180, 137, 46, 0.4);
}
.benefit-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--gold-tint); color: var(--gold-deep);
  margin-bottom: 1.25rem;
}
.benefit-icon svg { width: 28px; height: 28px; }
.benefit-card h3 { margin-bottom: 0.6rem; }
.benefit-card p { font-size: 0.965rem; color: var(--ink-70); }
@media (max-width: 960px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   PROCESS
   ========================================================================== */
.process-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  counter-reset: step;
}
.process-step { position: relative; }
.process-illo {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin-bottom: 1.4rem;
  box-shadow: var(--shadow-sm);
}
.process-illo svg { width: 100%; height: auto; max-height: 132px; }
.process-num {
  display: inline-block;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 0.5rem;
}
.process-step h3 { margin-bottom: 0.55rem; }
.process-step p { font-size: 0.965rem; color: var(--ink-70); }
.process-cta { text-align: center; margin-top: clamp(2.5rem, 5vw, 4rem); }
@media (max-width: 820px) {
  .process-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
}

/* ==========================================================================
   CALCULATOR
   ========================================================================== */
.calc-wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}
.calc-inputs {
  display: flex; flex-direction: column; gap: 1.8rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-sm);
}
.calc-inputs legend {
  font-family: var(--font-display); font-size: 1.22rem; font-weight: 600;
  margin-bottom: 1.1rem; padding: 0;
}

.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.field:last-child { margin-bottom: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-row .field { margin-bottom: 1rem; }
.field label, .field-label { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.label-note { font-weight: 400; color: var(--ink-45); font-size: 0.85em; }

input[type="text"], input[type="number"], input[type="email"], input[type="tel"], select {
  width: 100%;
  font: inherit; font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--ink-30);
  border-radius: 10px;
  padding: 0.72em 0.9em;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font-variant-numeric: tabular-nums;
}
input:hover, select:hover { border-color: var(--ink-45); }
input:focus, select:focus {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(180, 137, 46, 0.18);
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%2317140F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9em center; background-size: 12px; padding-right: 2.4em; }

.input-affix { position: relative; display: flex; align-items: center; }
.input-affix .affix {
  position: absolute; font-size: 0.95rem; color: var(--ink-45); pointer-events: none;
}
.input-affix .affix:first-child { left: 0.9em; }
.input-affix .affix:last-child { right: 0.9em; }
.input-affix .affix:first-child + input { padding-left: 2em; }
.input-affix input:has(+ .affix) { padding-right: 2.2em; }

/* Results card — statement motif continued */
.calc-results {
  position: sticky; top: calc(var(--header-h) + 20px);
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-lg);
}
.calc-results-head {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--gold-bright);
  padding-bottom: 1rem; margin-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.calc-hero-number { margin-bottom: 1.4rem; }
.calc-hero-label { display: block; font-size: 0.92rem; color: rgba(255,255,255,0.6); margin-bottom: 0.2rem; }
.calc-hero-value {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.6rem, 5vw, 3.4rem); line-height: 1.05;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}
.calc-hero-value.is-negative { color: #E39A94; }
.calc-lines { margin-bottom: 1.6rem; }
.calc-line {
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  padding: 0.62rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.93rem; color: rgba(255,255,255,0.62);
}
.calc-line strong { color: var(--white); font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-line.is-highlight { color: rgba(255,255,255,0.85); }
.calc-line.is-highlight strong { color: var(--gold-bright); }
.calc-disclaimer { margin-top: 1rem; font-size: 0.75rem; line-height: 1.55; color: rgba(255,255,255,0.42); }

@media (max-width: 880px) {
  .calc-wrap { grid-template-columns: 1fr; }
  .calc-results { position: static; }
}

/* ==========================================================================
   WHY / DARK SECTION
   ========================================================================== */
.section-dark {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.88);
}
.section-dark h2 { color: var(--white); }
.section-dark .section-sub { color: rgba(255, 255, 255, 0.64); }

.compare {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--charcoal-2);
}
.compare-row {
  display: grid; grid-template-columns: 1.1fr 1fr 1.2fr;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.compare-row:last-child { border-bottom: 0; }
.compare-row > span { padding: 1rem 1.4rem; font-size: 0.95rem; color: rgba(255,255,255,0.6); }
.compare-crit { font-weight: 600; color: rgba(255,255,255,0.85) !important; }
.compare-head > span {
  font-size: 0.78rem !important; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding-block: 1.1rem;
}
.compare-us { background: rgba(180, 137, 46, 0.13); color: var(--gold-bright) !important; font-weight: 500; }
.compare-head .compare-us { color: var(--gold-bright) !important; }

@media (max-width: 720px) {
  .compare-row { grid-template-columns: 1fr; }
  .compare-row > span { padding: 0.55rem 1.2rem; }
  .compare-crit { padding-top: 1.1rem !important; }
  .compare-row > span:last-child { padding-bottom: 1.1rem; }
  .compare-head { display: none; }
  .compare-us::before { content: "Mortgage Matters — "; font-weight: 600; }
  .compare-row > span:nth-child(2)::before { content: "A retail bank — "; font-weight: 600; color: rgba(255,255,255,0.4); }
}

.values { margin-top: clamp(2.5rem, 5vw, 3.5rem); max-width: 720px; }
.values-line {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
  border-left: 3px solid var(--gold);
  padding-left: 1.5rem;
}
.values-line em { color: var(--gold-bright); font-style: italic; }

.team {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem; margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.team-card { text-align: center; }
.team-photo {
  aspect-ratio: 4 / 4.6;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--charcoal-2), #3A332600);
  border: 1px dashed rgba(255,255,255,0.25);
  display: grid; place-items: center;
  color: rgba(255,255,255,0.35);
  font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.team-card figcaption { display: flex; flex-direction: column; gap: 0.15rem; }
.team-card strong { color: var(--white); }
.team-card figcaption span { font-size: 0.88rem; color: rgba(255,255,255,0.55); }
.team-nmls { font-size: 0.78rem !important; color: var(--gold-bright) !important; }
@media (max-width: 720px) {
  .team { grid-template-columns: 1fr; max-width: 320px; margin-inline: auto; }
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.google-badge {
  display: inline-flex; align-items: center; gap: 0.7rem;
  margin-top: 1.4rem;
  padding: 0.7rem 1.2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.g-logo { width: 22px; height: 22px; }
.g-stars { color: var(--gold); letter-spacing: 0.1em; font-size: 0.95rem; }
.g-text { font-size: 0.9rem; color: var(--ink-70); }
.g-text a { color: var(--gold-deep); font-weight: 500; }

.testimonial-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.testimonial {
  display: flex; flex-direction: column; gap: 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.t-stars { color: var(--gold); letter-spacing: 0.12em; }
.testimonial p {
  font-family: var(--font-display);
  font-size: 1.13rem; line-height: 1.55; color: var(--ink);
  flex: 1;
}
.testimonial footer { display: flex; align-items: center; gap: 0.85rem; }
.t-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  background: var(--gold-tint); color: var(--gold-deep);
  font-weight: 600; font-size: 0.9rem;
}
.testimonial cite { display: block; font-style: normal; font-weight: 600; font-size: 0.95rem; }
.t-meta { font-size: 0.82rem; color: var(--ink-45); }
@media (max-width: 880px) {
  .testimonial-grid { grid-template-columns: 1fr; max-width: 560px; }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item h3 { font-size: inherit; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  width: 100%; text-align: left;
  padding: 1.35rem 0.25rem;
  font-size: 1.08rem; font-weight: 600; line-height: 1.4;
  transition: color 0.15s ease;
}
.faq-q:hover { color: var(--gold-deep); }
.faq-icon { position: relative; width: 18px; height: 18px; flex: none; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  background: currentColor; border-radius: 2px;
  transition: transform 0.25s ease;
}
.faq-icon::before { width: 16px; height: 2px; }
.faq-icon::after { width: 2px; height: 16px; }
.faq-q[aria-expanded="true"] .faq-icon::after { transform: rotate(90deg); }
.faq-a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.faq-a-inner { overflow: hidden; }
.faq-a-inner p { padding: 0 0.25rem 1.5rem; color: var(--ink-70); max-width: 65ch; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.final-cta {
  background:
    radial-gradient(ellipse 90% 70% at 50% -10%, rgba(180, 137, 46, 0.22), transparent 60%),
    var(--ink);
  color: var(--white);
  padding-block: clamp(5rem, 10vw, 8.5rem);
  text-align: center;
}
.final-inner { max-width: 760px; margin-inline: auto; }
.final-cta h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); color: var(--white); }
.final-cta h2 em { color: var(--gold-bright); font-style: italic; }
.final-sub { margin-top: 1.2rem; font-size: 1.15rem; color: rgba(255,255,255,0.65); }
.final-btns { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-top: 2.4rem; }
.final-trust {
  display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; justify-content: center;
  margin-top: 2.4rem;
}
.final-trust li {
  font-size: 0.85rem; color: rgba(255,255,255,0.55);
  display: flex; align-items: center; gap: 0.45rem;
}
.final-trust li::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--gold);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.65);
  padding-top: clamp(3.5rem, 6vw, 5rem);
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.brand-footer .brand-line1 { color: var(--gold-bright); }
.brand-footer .brand-line2 { color: rgba(255,255,255,0.5); }
.footer-tag { margin-top: 1.1rem; font-size: 0.95rem; max-width: 30ch; }
.footer-badges { display: flex; align-items: center; gap: 0.8rem; margin-top: 1.6rem; }
.ehl { width: 42px; height: 42px; color: rgba(255,255,255,0.7); }
.footer-badge-text { font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.45; color: rgba(255,255,255,0.5); }

.footer-col h4 {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--white); margin-bottom: 1.1rem;
}
.footer-col a {
  display: block; padding: 0.32rem 0;
  font-size: 0.95rem; text-decoration: none; color: rgba(255,255,255,0.65);
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--gold-bright); }
.footer-address { font-size: 0.95rem; margin-top: 0.5rem; line-height: 1.7; }

.footer-legal { padding-block: 1.8rem 2.2rem; }
.footer-legal p { font-size: 0.78rem; line-height: 1.65; color: rgba(255,255,255,0.4); max-width: 100ch; }
.footer-legal p + p { margin-top: 0.8rem; }
.footer-legal a { color: rgba(255,255,255,0.55); }

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   STICKY MOBILE CTA
   ========================================================================== */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: 0.8rem clamp(1.25rem, 4vw, 2.5rem) calc(0.8rem + env(safe-area-inset-bottom));
  background: rgba(252, 251, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.sticky-cta.show { transform: none; }
@media (min-width: 761px) { .sticky-cta { display: none; } }

/* ==========================================================================
   LEAD MODAL
   ========================================================================== */
.lead-modal {
  border: 0; padding: 0; margin: auto;
  width: min(600px, calc(100vw - 2rem));
  max-height: min(92dvh, 860px);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 120px rgba(0,0,0,0.35);
}
.lead-modal::backdrop { background: rgba(23, 20, 15, 0.55); backdrop-filter: blur(4px); }
.lead-modal[open] { animation: modalIn 0.3s cubic-bezier(0.2, 0.7, 0.3, 1); }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } }

.lead-inner { position: relative; padding: clamp(1.8rem, 4vw, 2.6rem); }
.lead-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-45);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.lead-close:hover { background: rgba(23,20,15,0.06); color: var(--ink); }
.lead-close svg { width: 18px; height: 18px; }

.lead-step h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin-bottom: 0.6rem; }
.lead-sub { color: var(--ink-70); font-size: 0.98rem; margin-bottom: 1.6rem; max-width: 48ch; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.req { color: var(--gold-deep); }
.field-error { font-size: 0.83rem; color: var(--error); margin-top: 0.1rem; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--error); }
.form-error {
  background: rgba(179, 38, 30, 0.07);
  border: 1px solid rgba(179, 38, 30, 0.3);
  color: var(--error);
  border-radius: 10px; padding: 0.8rem 1rem;
  font-size: 0.9rem; margin-bottom: 1rem;
}

/* Dropzone */
.dropzone {
  border: 2px dashed var(--ink-30);
  border-radius: var(--radius);
  background: var(--white);
  padding: 1.8rem 1.4rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.dropzone:hover, .dropzone:focus-visible { border-color: var(--gold); background: var(--gold-tint); }
.dropzone.dragover { border-color: var(--gold); background: var(--gold-tint); border-style: solid; }
.drop-icon { width: 34px; height: 34px; margin: 0 auto 0.7rem; color: var(--gold-deep); }
.dropzone p { font-size: 0.95rem; color: var(--ink-70); }
.drop-browse { color: var(--gold-deep); font-weight: 600; text-decoration: underline; }
.drop-hint { font-size: 0.8rem !important; color: var(--ink-45) !important; margin-top: 0.5rem !important; }

.file-list { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.7rem; }
.file-item {
  display: flex; align-items: center; gap: 0.7rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  font-size: 0.88rem;
}
.file-item .icon { color: var(--gold-deep); }
.file-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.file-size { color: var(--ink-45); font-size: 0.8rem; flex: none; }
.file-remove {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: var(--ink-45);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.file-remove:hover { background: rgba(179, 38, 30, 0.08); color: var(--error); }
.file-remove svg { width: 13px; height: 13px; }

.field-consent { margin-top: 1.2rem; }
.consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.86rem; color: var(--ink-70); font-weight: 400 !important; cursor: pointer; }
.consent input {
  width: 18px; height: 18px; margin-top: 2px; flex: none;
  accent-color: var(--gold-deep);
}

.upload-progress { margin: 1.2rem 0 0.4rem; }
.progress-track { height: 8px; border-radius: 99px; background: rgba(23,20,15,0.1); overflow: hidden; }
.progress-bar {
  height: 100%; width: 0%; border-radius: 99px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  transition: width 0.25s ease;
}
.progress-text { font-size: 0.83rem; color: var(--ink-70); margin-top: 0.5rem; }

#leadSubmit { margin-top: 1.4rem; }
#leadSubmit[disabled] { opacity: 0.6; cursor: wait; transform: none; }
.lead-fineprint {
  display: flex; align-items: center; justify-content: center; gap: 0.45rem;
  margin-top: 1rem;
  font-size: 0.78rem; color: var(--ink-45); text-align: center;
}
.lead-fineprint .icon { color: var(--gold-deep); }

/* Success step */
.lead-success { text-align: center; padding-block: 1.5rem; }
.success-mark { width: 76px; margin: 0 auto 1.4rem; }
.success-mark circle { stroke-dasharray: 200; stroke-dashoffset: 200; animation: draw 0.7s ease forwards; }
.success-mark path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 0.5s ease 0.5s forwards; }
.lead-success h2 { margin-bottom: 0.8rem; }
.lead-success p { color: var(--ink-70); max-width: 42ch; margin-inline: auto; }
.success-ref { margin-top: 1.2rem; font-size: 0.85rem; color: var(--ink-45); }
.success-ref span { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink-70); }
.lead-success .btn { margin-top: 1.6rem; }

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* ==========================================================================
   LEGAL PAGES (privacy.html)
   ========================================================================== */
.back-home {
  margin-left: auto;
  font-size: 0.95rem; font-weight: 500; text-decoration: none; color: var(--ink-70);
  white-space: nowrap; transition: color 0.15s ease;
}
.back-home:hover { color: var(--gold-deep); }

.legal-hero {
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.legal-hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); }
.legal-updated { color: var(--ink-45); font-size: 0.9rem; margin-top: 0.9rem; }

.legal { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(4rem, 7vw, 6rem); }
.legal .container { max-width: 820px; }
.legal h2 {
  font-size: 1.45rem;
  margin: 2.6rem 0 0.8rem;
}
.legal p { color: var(--ink-70); margin-bottom: 1rem; max-width: 70ch; }
.legal ul { list-style: disc; padding-left: 1.4rem; color: var(--ink-70); margin-bottom: 1rem; max-width: 68ch; }
.legal li { margin-bottom: 0.45rem; }
.legal li::marker { color: var(--gold); }
.legal strong { color: var(--ink); }
.legal a { color: var(--gold-deep); }

.notice-box {
  background: var(--gold-tint);
  border: 1px solid rgba(180, 137, 46, 0.35);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  font-size: 0.95rem; line-height: 1.6; color: var(--ink-70);
  margin-bottom: 1.5rem;
}
