/* =========================================================
   Team Gervasi Mortgages — landing page
   Brand: forest green / off-white / lime (from logo files)
   ========================================================= */

:root {
  /* Brand primitives */
  --green-950: #0B241A;
  --green-900: #0F3226;
  --green-800: #144433;
  --green-700: #1C5C45;
  --green-500: #1F8A5B;
  --lime: #C8E46A;
  --lime-hover: #D6EE85;
  --cream: #F1F5EF;
  --white: #FFFFFF;

  /* Semantic tokens */
  --bg-dark: var(--green-950);
  --bg-light: var(--cream);
  --surface: var(--white);
  --text: #0B241A;
  --text-muted: #4A5F55;
  --text-on-dark: #F1F5EF;
  --text-on-dark-muted: #B9CABF;
  --border: #DCE5DE;
  --border-dark: rgba(241, 245, 239, 0.22);
  --accent: var(--lime);
  --accent-text: var(--green-500);
  --error-on-dark: #FFB4A8;
  --focus: var(--lime);

  /* Type */
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing (8pt) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(11, 36, 26, .06), 0 2px 8px rgba(11, 36, 26, .05);
  --shadow-md: 0 8px 30px rgba(11, 36, 26, .10);

  --header-h: 76px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --dur: 200ms;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-stretch: 112%; line-height: 1.12; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 5.2vw, 3.75rem); font-weight: 700; hyphens: auto; overflow-wrap: break-word; }
.hero-grid > *, .calc-grid > *, .faq-grid > *, .contact-grid > * { min-width: 0; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
main:focus { outline: none; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.section-light :focus-visible, .section-white :focus-visible, .cta-band :focus-visible { outline-color: var(--green-500); }

.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 1000;
  background: var(--lime); color: var(--green-950); padding: 10px 16px; border-radius: 8px; font-weight: 600;
  transition: top var(--dur);
}
.skip-link:focus { top: 12px; }

.placeholder-text { font-style: italic; opacity: .85; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color var(--dur), color var(--dur), border-color var(--dur), transform var(--dur) var(--ease-out);
  touch-action: manipulation;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn .icon { transition: transform var(--dur) var(--ease-out); }
.btn:hover .icon { transform: translateX(3px); }
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: .95rem; }
.btn-lg { min-height: 54px; padding: 14px 28px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--lime); color: var(--green-950); }
.btn-primary:hover { background: var(--lime-hover); }
.btn-ghost { color: var(--text-on-dark); border-color: var(--border-dark); }
.btn-ghost:hover { border-color: var(--text-on-dark); background: rgba(241,245,239,.06); }
.btn-light { background: var(--cream); color: var(--green-950); }
.btn-light:hover { background: var(--white); }
.btn-dark { background: var(--green-950); color: var(--cream); }
.btn-dark:hover { background: var(--green-800); }
.btn-outline-dark { color: var(--green-950); border-color: var(--green-950); }
.btn-outline-dark:hover { background: rgba(11,36,26,.08); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  color: var(--text-on-dark);
  transition: background-color 250ms, box-shadow 250ms;
}
.site-header.is-scrolled { background: rgba(11, 36, 26, .94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(241,245,239,.08); }
.header-inner { height: 100%; display: flex; align-items: center; gap: var(--s-5); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cream); }
.brand-mark { width: 34px; height: 39px; color: var(--cream); --mark-accent: var(--lime); }
.brand-text { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-display); font-stretch: 120%; }
.brand-name { font-size: 1.05rem; font-weight: 500; letter-spacing: .04em; white-space: nowrap; }
.brand-name b { font-weight: 800; }
.brand-sub { font-size: .62rem; letter-spacing: .32em; color: var(--lime); margin-top: 5px; font-weight: 600; }

.brand-tag {
  display: inline-flex; align-items: center; align-self: center;
  margin-left: 4px; padding: 4px 10px; border-radius: 999px;
  border: 1px solid rgba(200,228,106,.55); background: rgba(200,228,106,.1);
  color: var(--lime); font-family: var(--font-body); font-size: .68rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; line-height: 1.2; white-space: nowrap;
}

.brand-group { display: flex; align-items: center; gap: var(--s-4); flex-shrink: 0; }
.brand-mark { flex-shrink: 0; }
.main-nav ul a { white-space: nowrap; }

/* Residential / Commercial switch (segmented control next to the logo) */
.site-switch {
  display: inline-flex; align-items: center; flex-shrink: 0; padding: 3px; gap: 2px;
  border-radius: 999px; border: 1px solid rgba(200,228,106,.45); background: rgba(241,245,239,.06);
}
.site-switch-opt {
  display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border-radius: 999px;
  font-family: var(--font-body); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  line-height: 1.1; white-space: nowrap; text-decoration: none; color: var(--text-on-dark-muted);
  transition: background-color var(--dur), color var(--dur);
}
.site-switch-opt:hover { color: var(--cream); background: rgba(241,245,239,.1); }
.site-switch-opt.is-active, .site-switch-opt[aria-current="page"] { background: var(--lime); color: var(--green-950); }
.site-switch-opt:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav ul a {
  display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none;
  font-weight: 500; font-size: .95rem; color: var(--text-on-dark-muted);
  position: relative; transition: color var(--dur);
}
.main-nav ul a:hover, .main-nav ul a[aria-current="true"] { color: var(--cream); }
.main-nav ul a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--lime); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.main-nav ul a[aria-current="true"]::after { transform: scaleX(1); }
.nav-cta-mobile { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px;
  border-radius: 999px; border: 1.5px solid var(--border-dark); background: transparent; color: var(--cream);
  font-weight: 600; font-size: .9rem; cursor: pointer; transition: border-color var(--dur), background-color var(--dur);
}
.lang-toggle:hover { border-color: var(--cream); background: rgba(241,245,239,.06); }
.lang-toggle .icon { width: 18px; height: 18px; }
.menu-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 0; background: transparent; color: var(--cream); cursor: pointer; border-radius: 8px;
}
.menu-toggle .icon { width: 24px; height: 24px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(31,138,91,.28), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(200,228,106,.08), transparent 60%),
    var(--bg-dark);
  color: var(--text-on-dark);
  padding: calc(var(--header-h) + clamp(40px, 7vw, 88px)) 0 clamp(64px, 9vw, 112px);
}
.hero-bg-mark {
  position: absolute; width: 620px; height: 714px; left: -160px; bottom: -260px;
  color: rgba(241,245,239,.035); --mark-accent: rgba(200,228,106,.06); pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.eyebrow { font-weight: 600; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); margin-bottom: var(--s-4); }
.eyebrow-lime { color: var(--lime); }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: var(--s-5);
  padding: 8px 16px 8px 12px; border-radius: 999px;
  background: rgba(200,228,106,.12); border: 1px solid rgba(200,228,106,.4);
  color: var(--lime); font-weight: 600; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase;
}
.hero-badge .icon { width: 18px; height: 18px; }
.hero-sub { margin-top: var(--s-5); font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--text-on-dark-muted); max-width: 54ch; }
.hero-points { margin-top: var(--s-6); display: grid; gap: 12px; }
.hero-points li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.hero-points .icon { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: rgba(200,228,106,.16); color: var(--lime); stroke-width: 3; }
.hero-ctas { margin-top: var(--s-7); display: flex; flex-wrap: wrap; gap: 12px; }

/* Enquiry card */
.enquire-card {
  background: linear-gradient(180deg, rgba(31,138,91,.22), rgba(20,68,51,.35));
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.4vw, 40px);
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
  backdrop-filter: blur(8px);
}
.enquire-title { font-size: clamp(1.6rem, 2.6vw, 2rem); text-align: center; }
.enquire-sub { text-align: center; color: var(--text-on-dark-muted); margin-top: 8px; margin-bottom: var(--s-5); font-size: .95rem; }
.enquire-form { display: grid; gap: 14px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: .88rem; font-weight: 500; display: flex; gap: 4px; }
.label-meta { margin-left: auto; }
.req { color: var(--lime); }
.field input:not([type="checkbox"]), .field select {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border-radius: var(--radius-sm); border: 1.5px solid var(--border-dark);
  background: rgba(11,36,26,.35); color: var(--cream);
  font-size: 1rem; transition: border-color var(--dur), background-color var(--dur);
  appearance: none; -webkit-appearance: none;
}
.field input:hover, .field select:hover { border-color: rgba(241,245,239,.4); }
.field input:focus-visible, .field select:focus-visible { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(200,228,106,.3); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--error-on-dark); }
.select-wrap { position: relative; }
.select-wrap select { padding-right: 40px; cursor: pointer; }
.select-wrap .icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; width: 18px; height: 18px; }
.field select option { color: var(--text); background: var(--white); }
.field-error { color: var(--error-on-dark); font-size: .85rem; min-height: 0; }
.field-error:empty { display: none; }
.field-check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; margin-top: 4px; }
.field-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--lime); cursor: pointer; }
.field-check label { font-weight: 400; font-size: .88rem; color: var(--text-on-dark-muted); cursor: pointer; display: block; }
.hp { position: absolute; left: -9999px; }
.enquire-form .btn { margin-top: 6px; }
.form-status { font-size: .95rem; text-align: center; }
.form-status:empty { display: none; }
.form-status.is-success { color: var(--lime); }
.form-status.is-error { color: var(--error-on-dark); }
.form-privacy { font-size: .8rem; text-align: center; color: var(--text-on-dark-muted); }

.spinner { display: none; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-light { background: var(--bg-light); }
.section-white { background: var(--surface); }
.section-dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); }
.section-head-left { text-align: left; margin-inline: 0; }
.section-sub { margin-top: var(--s-4); color: var(--text-muted); font-size: 1.08rem; }
.section-dark .section-sub { color: var(--text-on-dark-muted); }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform 250ms var(--ease-out), box-shadow 250ms, border-color 250ms;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #C7D5CB; }
.service-icon {
  display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center;
  border-radius: 14px; background: var(--green-900); color: var(--lime); margin-bottom: 20px;
}
.service-icon .icon { width: 24px; height: 24px; }
.service-card p { margin-top: 10px; color: var(--text-muted); }
.services-note {
  margin-top: 32px; padding: 20px 24px; border-radius: var(--radius);
  border: 1px dashed #B9CBBE; text-align: center; color: var(--text-muted);
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 12px;
}
.services-note .text-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  color: var(--accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
.services-note .icon { width: 18px; height: 18px; transition: transform var(--dur) var(--ease-out); }
.services-note .text-link:hover .icon { transform: translateX(3px); }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; position: relative; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--bg-light); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 50%; background: var(--green-950); color: var(--lime);
  font-family: var(--font-display); font-weight: 700; font-stretch: 112%; margin-bottom: 20px;
}
.step p { margin-top: 10px; color: var(--text-muted); }

/* Calculator */
.calc-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.calc-intro .btn { margin-top: var(--s-6); }
.calc-card {
  background: rgba(241,245,239,.04); border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
}
.calc-form { display: grid; gap: 16px; align-content: start; }
.label-meta { color: var(--lime); font-weight: 600; font-variant-numeric: tabular-nums; }
.calc-warn { font-size: .85rem; color: var(--error-on-dark); }
.calc-warn:empty { display: none; }
.calc-result {
  background: var(--cream); color: var(--text); border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column;
}
.calc-result-label { font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); }
.calc-payment { margin-top: 6px; font-family: var(--font-display); font-stretch: 110%; font-weight: 750; font-size: clamp(2rem, 3.6vw, 2.6rem); color: var(--green-950); font-variant-numeric: tabular-nums; line-height: 1.1; }
.calc-per { font-size: 1rem; font-weight: 500; color: var(--text-muted); font-family: var(--font-body); }
.calc-breakdown { margin: 20px 0 0; display: grid; gap: 0; }
.calc-breakdown div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border); font-size: .92rem; }
.calc-breakdown dt { color: var(--text-muted); }
.calc-breakdown dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.calc-disclaimer { grid-column: 1 / -1; font-size: .8rem; color: var(--text-on-dark-muted); }
.field-hint { font-size: .8rem; color: var(--text-on-dark-muted); }

/* Commercial calculator: debt coverage ratio */
.calc-breakdown .dscr-row { align-items: center; }
.calc-breakdown .dscr-row dt { color: var(--text); font-weight: 600; }
.calc-breakdown .dscr-row dd { display: inline-flex; align-items: center; gap: 8px; font-size: 1.05rem; }
.dscr-pill { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.dscr-pill:empty { display: none; }
.dscr-pill.is-good { background: #DDF0C2; color: #2C5A10; }
.dscr-pill.is-warn { background: #FFF1CC; color: #8A5A00; }
.dscr-pill.is-bad { background: #FFE0DA; color: #9B2C1C; }

/* Team */
.team-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: stretch; }
.person {
  display: grid; grid-template-columns: 200px 1fr; gap: 0; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.person-photo {
  position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: linear-gradient(160deg, var(--green-700), var(--green-900)); min-height: 260px;
}
.person-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.person-initials { position: relative; z-index: 1; font-family: var(--font-display); font-stretch: 120%; font-weight: 800; font-size: 2.6rem; color: var(--cream); letter-spacing: .04em; }
.person-photo-mark { position: absolute; width: 180px; height: 207px; right: -50px; bottom: -40px; color: rgba(241,245,239,.08); --mark-accent: rgba(200,228,106,.25); }
.person-body { padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.person-role { color: var(--accent-text); font-weight: 600; font-size: .95rem; }
.person-bio { color: var(--text-muted); margin-top: 4px; }
.person-bio + .person-bio { margin-top: 12px; }
.person-contact { margin-top: auto; padding-top: 16px; display: grid; gap: 4px; }
.person-contact a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 40px; text-decoration: none; font-weight: 500;
  overflow-wrap: anywhere;
}
.person-contact a:hover { text-decoration: underline; text-underline-offset: 3px; }
.person-contact .icon { width: 18px; height: 18px; color: var(--accent-text); }
.badge-lead {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  background: var(--lime); color: var(--green-950); font-size: .75rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
}
.person-lead { background: var(--green-950); border-color: var(--green-950); color: var(--text-on-dark); }
.person-lead .person-role { color: var(--lime); }
.person-lead .person-bio { color: var(--text-on-dark-muted); }
.person-lead .person-contact .icon { color: var(--lime); }
.person-lead .person-photo { background: linear-gradient(160deg, var(--green-500), var(--green-800)); }
.person-lead :focus-visible { outline-color: var(--lime); }

/* Testimonials */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi {
  position: relative; display: flex; flex-direction: column; gap: 16px;
  padding: 28px; border-radius: var(--radius); background: var(--bg-light); border: 1px solid var(--border);
}
.sample-tag { position: absolute; top: 14px; right: 14px; font-size: .7rem; font-weight: 600; color: #8A5A00; background: #FFF1CC; padding: 3px 8px; border-radius: 999px; }
.stars { display: flex; gap: 3px; color: #D9A400; }
.stars svg { width: 18px; height: 18px; fill: currentColor; }
.testi blockquote { margin: 0; font-size: 1.04rem; line-height: 1.65; }
.testi-author { margin-top: auto; font-size: .9rem; color: var(--text-muted); }
.testi-author strong { color: var(--text); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color var(--dur), box-shadow var(--dur); }
.faq-item[open] { border-color: #C7D5CB; box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; font-weight: 600; font-size: 1.04rem; min-height: 56px; border-radius: var(--radius);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { transition: transform 250ms var(--ease-out); color: var(--accent-text); }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item p { padding: 0 24px 22px; color: var(--text-muted); }

/* CTA band */
.cta-band { background: var(--lime); color: var(--green-950); padding: clamp(48px, 6vw, 72px) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-inner p { margin-top: 8px; font-size: 1.1rem; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-phone { padding-block: 8px; }
.cta-phone-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; font-variant-numeric: tabular-nums; }
.cta-phone-name { font-size: .78rem; font-weight: 600; letter-spacing: .02em; opacity: .75; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: stretch; }
.contact-list { display: grid; gap: 24px; }
.contact-list li { display: flex; gap: 16px; }
.contact-icon { display: inline-flex; width: 44px; height: 44px; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 12px; background: var(--bg-light); color: var(--accent-text); }
.contact-label { font-weight: 650; margin-bottom: 4px; }
.contact-list address { font-style: normal; color: var(--text-muted); }
.contact-list a { color: var(--text-muted); text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.contact-list .text-link { display: inline-block; margin-top: 6px; color: var(--accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); min-height: 360px; background: var(--bg-light); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* Footer */
.site-footer { background: var(--green-950); color: var(--text-on-dark-muted); padding: 64px 0 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(241,245,239,.1); }
.footer-brand p { margin-top: 16px; max-width: 36ch; }
.footer-links { display: grid; gap: 4px; }
.footer-links a, .footer-contact a { text-decoration: none; display: inline-block; padding: 6px 0; }
.footer-links a:hover, .footer-contact a:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.footer-contact p + p { margin-top: 12px; }
.footer-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: .85rem; }

/* ---------- Reveal motion ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  /* Calculator card needs full width so its two inner columns don't squeeze the inputs */
  .calc-grid { grid-template-columns: 1fr; }
  .calc-intro { max-width: 640px; }
}

@media (max-width: 1100px) {
  .main-nav ul { gap: 0; }
  .main-nav a { padding: 10px 8px; }
  .person { grid-template-columns: 1fr; }
  .person-photo { min-height: 200px; }
}

@media (max-width: 1023px) {
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--green-950); padding: 24px clamp(16px, 4vw, 32px) 32px;
    display: flex; flex-direction: column; gap: 24px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 200ms, transform 200ms var(--ease-out), visibility 0s 200ms;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 200ms, transform 200ms var(--ease-out); }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { font-size: 1.15rem; padding: 14px 4px; border-bottom: 1px solid rgba(241,245,239,.08); border-radius: 0; color: var(--cream); }
  .main-nav ul a::after { display: none; }
  .nav-cta-mobile { display: inline-flex; }
  .site-header.menu-open { background: var(--green-950); }

  .hero-grid, .calc-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .services-grid, .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .services-grid, .testi-grid, .steps, .team-grid { grid-template-columns: 1fr; }
  .calc-card { grid-template-columns: 1fr; }
  .person { grid-template-columns: 140px 1fr; }
  .person-photo { min-height: 100%; }
  .hero-ctas .btn { width: 100%; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 359px) {
  .brand-text { display: none; }
}

@media (min-width: 1024px) {
  /* Header with the Residential/Commercial switch: a bit wider than the content, tighter nav */
  .header-inner.container { max-width: 1400px; }
  .header-inner { gap: var(--s-4); }
  .brand-group { gap: 12px; }
  .site-switch-opt { padding: 4px 10px; font-size: .66rem; letter-spacing: .06em; }
  .main-nav ul a { padding: 10px 9px; }
}
@media (min-width: 1024px) and (max-width: 1365px) {
  .header-cta { display: none; }
}
@media (min-width: 1024px) and (max-width: 1179px) {
  .main-nav ul a { padding: 10px 6px; font-size: .88rem; }
  .main-nav ul a::after { left: 6px; right: 6px; }
  .lang-toggle .icon { display: none; }
}

@media (max-width: 520px) {
  .header-inner { gap: 12px; }
  .brand { gap: 10px; }
  .brand-mark { width: 30px; height: 35px; }
  .brand-name { font-size: .82rem; }
  /* Mobile: wordmark on top, Residential/Commercial switch underneath, so the bar still fits at 375px */
  .brand-group { flex-direction: column; align-items: flex-start; gap: 5px; }
  .brand-header { display: inline-flex; gap: 8px; }
  .brand-header .brand-mark { width: 20px; height: 23px; }
  .brand-header .brand-sub { display: none; }
  .site-switch { padding: 2px; }
  .site-switch-opt { min-height: 26px; padding: 2px 9px; font-size: .6rem; letter-spacing: .06em; }
  .hero-badge { font-size: .72rem; letter-spacing: .05em; padding: 7px 12px 7px 10px; gap: 6px; }
  .brand-sub { font-size: .56rem; letter-spacing: .28em; }
  .header-actions { gap: 4px; }
  .lang-toggle { padding: 8px 12px; }
  .lang-toggle .icon { display: none; }
  .form-row.two { grid-template-columns: 1fr; }
  .person { grid-template-columns: 1fr; }
  .person-photo { min-height: 160px; }
  .hero-bg-mark { width: 400px; height: 460px; }
}

/* Consent / privacy links */
.field-check label a, .form-privacy a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* Privacy policy page */
.legal-page { max-width: 820px; }
.legal-page h1 { margin-bottom: .5rem; }
.legal-page h2 { margin-top: 2rem; font-size: 1.25rem; }
.legal-page ul { padding-left: 1.2rem; }
.legal-page li { margin: .35rem 0; }
.draft-banner { border: 2px dashed #b45309; background: #fff7ed; color: #7c2d12; padding: 12px 16px; border-radius: 8px; font-weight: 600; margin: 1rem 0 1.5rem; }
