/* ============================================================
   La Vista Designs — shared stylesheet
   Black & white brand palette, light frosted-glass aesthetic.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --brand: #141414;
  --brand-strong: #000000;
  --brand-subtle: rgba(0, 0, 0, 0.05);
  --brand-border: rgba(0, 0, 0, 0.2);
  --accent-strong: #000000;

  --text-strong: #0a0a0a;
  --text: #2c2c2c;
  --text-muted: #5c5c5c;
  --text-faint: #909090;
  --text-on-accent: #ffffff;

  --focus-ring: rgba(0, 0, 0, 0.3);
  --ring: 0 0 0 3px rgba(0, 0, 0, 0.16);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 22px -12px rgba(0, 0, 0, 0.16);
  --shadow-lg: 0 18px 44px -18px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 30px 64px -24px rgba(0, 0, 0, 0.24);

  --space-800: #f1f1f1;
  --space-700: #e8e8e8;

  --radius-xs: 6px;
  --radius-md: 12px;
  --radius-card: 14px;
  --radius-xl: 20px;
  --radius-2xl: 28px;

  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-sans: "Hanken Grotesk", -apple-system, "Segoe UI", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --success: #0a0a0a;
  --success-bg: rgba(0, 0, 0, 0.05);
  --danger: #111111;
  --warning: #111111;
  --warning-bg: rgba(0, 0, 0, 0.05);
}

/* Home: glass theme over a tinted gradient */
body.page-home {
  --surface: rgba(255, 255, 255, 0.62);
  --surface-card: rgba(255, 255, 255, 0.74);
  --surface-inset: rgba(255, 255, 255, 0.5);
  --surface-hover: rgba(255, 255, 255, 0.6);
  --glass-bg: rgba(255, 255, 255, 0.55);
  --border: rgba(255, 255, 255, 0.6);
  --border-strong: rgba(255, 255, 255, 0.85);
  background:
    radial-gradient(900px 620px at 88% -6%, rgba(120, 150, 200, 0.16), transparent 60%),
    radial-gradient(760px 560px at 6% 34%, rgba(150, 140, 190, 0.14), transparent 60%),
    radial-gradient(680px 520px at 50% 108%, rgba(120, 160, 190, 0.12), transparent 60%),
    linear-gradient(180deg, #eef1f6, #f4f5f8 40%, #eef0f5);
  background-attachment: fixed;
}

/* Quote page: plain white theme */
body.page-quote {
  --surface: #f6f6f6;
  --surface-card: #ffffff;
  --surface-inset: #f4f4f4;
  --surface-hover: rgba(0, 0, 0, 0.04);
  --glass-bg: rgba(255, 255, 255, 0.82);
  --border: rgba(0, 0, 0, 0.12);
  --border-strong: rgba(0, 0, 0, 0.24);
  background: #ffffff;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
::selection { background: rgba(0, 0, 0, 0.12); }
img { max-width: 100%; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 1080px; margin: 0 auto; padding: 0 28px; }

/* ---------- Frosted glass (home page signature) ---------- */
.glass {
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.06) 60%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), var(--shadow-md);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease),
    color 180ms var(--ease), transform 140ms var(--ease), box-shadow 180ms var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }

.btn-md { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15.5px; }
.btn-full { width: 100%; }

.btn-accent {
  background: var(--brand);
  color: var(--text-on-accent);
  box-shadow: 0 6px 20px -12px rgba(0, 0, 0, 0.18);
}
.btn-accent:hover { background: var(--brand-strong); }

.btn-outline {
  background: transparent;
  border-color: var(--brand-border);
  color: var(--text-strong);
}
.btn-outline:hover { border-color: rgba(0, 0, 0, 0.45); background: var(--brand-subtle); }

.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--surface-hover); color: var(--text-strong); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid transparent;
}
.badge-sm { height: 24px; padding: 0 11px; font-size: 12px; }
.badge-soft { background: rgba(0, 0, 0, 0.05); color: var(--text); border-color: rgba(0, 0, 0, 0.07); }
.badge-brand-soft { background: var(--brand-subtle); color: var(--text-strong); border-color: rgba(0, 0, 0, 0.1); }
.badge-outline { background: transparent; color: var(--text-muted); border-color: rgba(0, 0, 0, 0.18); }
.badge-brand-outline { background: transparent; color: var(--text-strong); border-color: var(--brand-border); }

/* ---------- Section heading ---------- */
.section-heading .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin: 0 0 14px;
}
.section-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--text-strong);
}
.section-heading .lead {
  margin: 16px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
}
.section-heading.center { text-align: center; }
.section-heading.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--glass-bg);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  border-bottom: 1px solid var(--border);
}
body.page-home .site-nav { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85); }
.site-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.nav-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.nav-brand img { width: 42px; height: 42px; object-fit: contain; display: block; }
.nav-brand .wordmark {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text-strong);
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}
.nav-brand .sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-top: 4px;
}
.nav-right { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; color: var(--text-muted); }
.nav-links a { text-decoration: none; transition: color 160ms var(--ease); }
.nav-links a:hover { color: var(--text-strong); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--brand-border);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-strong);
}
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px 20px 18px;
  border-top: 1px solid var(--border);
}
.mobile-menu a {
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
  padding: 10px 8px;
  border-radius: 8px;
}
.mobile-menu a:hover { background: var(--surface-hover); }
.mobile-menu.open { display: flex; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 92px 0 76px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.hero-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 6vw, 82px);
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--text-strong);
}
.hero-copy h1 .em { color: var(--accent-strong); }
.hero-copy .hero-lead { margin: 0; max-width: 520px; font-size: 19px; line-height: 1.6; color: var(--text-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

.hero-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-xl);
}
.hero-chip {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.hero-chip .chip-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.hero-chip .chip-label { font-size: 14px; color: var(--text-strong); margin-top: 3px; }

/* ---------- Image placeholders (client photos pending) ---------- */
.img-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.04);
  color: rgba(0, 0, 0, 0.55);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  padding: 12px;
}
.img-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px dashed rgba(0, 0, 0, 0.25);
  border-radius: inherit;
  pointer-events: none;
}
.img-placeholder svg { opacity: 0.45; }

/* ---------- Stat bar ---------- */
.stat-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 34px;
  padding-bottom: 34px;
}
.stat .value {
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1;
  color: var(--text-strong);
}
.stat.accent .value { color: var(--accent-strong); }
.stat .label { font-size: 14px; font-weight: 600; color: var(--text); margin-top: 8px; }
.stat .sub { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }

/* ---------- Services ---------- */
.section { position: relative; padding: 72px 0; }
.section-services { padding: 96px 0 40px; }
.section-heading.mb { margin-bottom: 52px; }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 26px;
  transition: transform 200ms var(--ease), border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.card.interactive:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.card .icon-tile {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-subtle);
  color: var(--brand-strong);
  border: 1px solid var(--brand-border);
}
.card h3 { margin: 14px 0 0; font-family: var(--font-display); font-weight: 400; font-size: 23px; color: var(--text-strong); }
.card p { margin: 14px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--text-muted); }

/* ---------- Capabilities ---------- */
.cap-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.cap-panels { display: flex; flex-direction: column; gap: 18px; }
.cap-panel {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px 24px;
}
.panel-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 12px;
}
.badge-wrap { display: flex; flex-wrap: wrap; gap: 9px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 4px; }
.step {
  text-align: center;
  padding: 18px 12px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.step .num { font-family: var(--font-display); font-size: 30px; color: var(--accent-strong); line-height: 1; }
.step .desc { font-size: 13px; color: var(--text-muted); margin-top: 8px; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  gap: 16px;
}
.gallery-cell { border-radius: 14px; overflow: hidden; min-height: 0; }
.gallery-cell.tall { grid-row: span 2; }
.gallery-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Service area ---------- */
.local-band { border-top: 1px solid var(--border); background: var(--surface); }
.local-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
  padding-top: 82px;
  padding-bottom: 82px;
}
.local-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.local-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  color: var(--text-strong);
}
.local-copy p { margin: 0; max-width: 480px; font-size: 17px; line-height: 1.6; color: var(--text-muted); }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feature-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px;
  transition: transform 200ms var(--ease), border-color 200ms var(--ease);
}
.feature-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.feature-card h4 { margin: 14px 0 6px; font-family: var(--font-display); font-weight: 400; font-size: 20px; color: var(--text-strong); }
.feature-card p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-muted); }

/* ---------- CTA band ---------- */
.cta-section { padding: 92px 0; }
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-strong);
  background: linear-gradient(135deg, var(--space-800), var(--space-700));
  box-shadow: var(--shadow-xl);
  padding: 64px 48px;
  text-align: center;
}
.cta-band .cta-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.cta-band h2 {
  margin: 0;
  max-width: 720px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.03;
  color: var(--text-strong);
}
.cta-band p { margin: 0; max-width: 540px; font-size: 18px; line-height: 1.6; color: var(--text-muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-top: 54px;
  padding-bottom: 40px;
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand .brand-row { display: flex; align-items: center; gap: 11px; }
.footer-brand img { width: 42px; height: 42px; object-fit: contain; display: block; }
.footer-brand .wordmark { font-family: var(--font-display); font-size: 20px; color: var(--text-strong); }
.footer-brand p { margin: 0; max-width: 320px; font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col .col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.footer-col a, .footer-col span { text-decoration: none; color: var(--text-muted); font-size: 14px; }
.footer-col a:hover { color: var(--text-strong); }
.footer-bottom { border-top: 1px solid var(--border); }
.footer-bottom .bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 18px;
  padding-bottom: 18px;
  font-size: 12.5px;
  color: var(--text-faint);
}

/* ============================================================
   Quote page
   ============================================================ */
.quote-header { padding: 58px 0 8px; }
.quote-header .header-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 640px; }
.quote-header h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--text-strong);
}
.quote-header p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--text-muted); }
.req { color: var(--accent-strong); }

.quote-body {
  display: grid;
  grid-template-columns: 1.55fr 0.95fr;
  gap: 32px;
  align-items: start;
  padding-top: 36px;
  padding-bottom: 100px;
}

.form-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 32px;
}
.form-stack { display: flex; flex-direction: column; gap: 26px; }
.form-section { display: flex; flex-direction: column; gap: 16px; }
.form-section-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.divider { height: 1px; background: var(--border); }
.field-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; color: var(--text); }
.field .hint { font-size: 12px; color: var(--text-faint); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0 14px;
  height: 40px;
  background: var(--surface-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-strong);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; padding: 12px 14px; line-height: 1.55; height: auto; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--focus-ring);
  box-shadow: var(--ring);
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: rgba(0, 0, 0, 0.45); }
.field-error { font-size: 12px; color: var(--danger); display: none; }
.field.invalid .field-error { display: block; }

.notice {
  display: none;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--warning-bg);
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: var(--radius-md);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text);
}
.notice.show { display: flex; }
.notice svg { flex-shrink: 0; margin-top: 1px; }

/* File dropzone */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 34px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  background: var(--surface-inset);
  border: 1.5px dashed var(--border-strong);
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease);
}
.dropzone.dragging { background: var(--brand-subtle); border-color: var(--brand); }
.dropzone .dz-title { font-size: 15px; color: var(--text-strong); font-weight: 500; margin-top: 12px; }
.dropzone .dz-sub { font-size: 12.5px; color: var(--text-faint); margin-top: 5px; }

.file-list { display: flex; flex-direction: column; gap: 8px; }
.file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.file-row .file-name {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-row .file-size { font-size: 12px; color: var(--text-faint); font-family: var(--font-mono); }
.file-row button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-faint);
  display: inline-flex;
  padding: 2px;
}
.file-row button:hover { color: var(--text-strong); }

/* Honeypot — off-screen, hidden from humans */
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* Robot checkbox */
.robot-check {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 320px;
  padding: 12px 16px;
  background: var(--surface-inset);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
}
.robot-check.checked { border-color: var(--brand); }
.robot-box {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-xs);
  border: 2px solid var(--border-strong);
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease);
}
.robot-check.checked .robot-box { background: var(--brand); border-color: var(--brand); }
.robot-box svg { display: none; }
.robot-check.checked .robot-box svg { display: block; }
.robot-label { font-size: 14px; color: var(--text); cursor: pointer; user-select: none; }
.robot-tag {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  text-align: right;
  line-height: 1.3;
}

/* Math challenge */
.math-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.math-prompt {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background: var(--surface-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text-strong);
  letter-spacing: 0.04em;
}
.math-row input {
  width: 96px;
  height: 40px;
  padding: 0 14px;
  background: var(--surface-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-strong);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
}
.math-row input:focus { border-color: var(--focus-ring); box-shadow: var(--ring); }
.math-row .math-note { font-size: 12.5px; color: var(--text-faint); }

.verify-error {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--danger);
}
.verify-error.show { display: flex; }

.form-legal { margin: 0; font-size: 12px; color: var(--text-faint); text-align: center; line-height: 1.5; }

/* Success state */
@keyframes lv-pop {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.success-panel {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding: 40px 12px;
}
.success-panel.show { display: flex; animation: lv-pop 0.35s var(--ease); }
.success-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--success-bg);
  border: 1px solid rgba(0, 0, 0, 0.14);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.14);
}
.success-panel h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 34px; color: var(--text-strong); }
.success-panel p { margin: 0; max-width: 420px; font-size: 16px; line-height: 1.6; color: var(--text-muted); }
.success-actions { display: flex; gap: 12px; margin-top: 8px; }

/* Sidebar */
.quote-sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 88px; }
.sidebar-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
}
.sidebar-card .side-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 14px;
}
.contact-line {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
  font-size: 14.5px;
}
.contact-line + .contact-line { margin-top: 12px; }
.tip-list { display: flex; flex-direction: column; gap: 12px; }
.tip { display: flex; gap: 10px; font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }
.tip .arrow { color: var(--accent-strong); }
.sidebar-card.tinted {
  background: linear-gradient(150deg, var(--space-800), var(--space-700));
  border-color: var(--border-strong);
}
.sidebar-card .tinted-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sidebar-card .tinted-head .head-label { font-family: var(--font-display); font-size: 20px; color: var(--text-strong); }
.sidebar-card.tinted p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.sidebar-card.tinted strong { color: var(--text); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero { padding: 64px 0 56px; }
  .hero-grid, .cap-grid, .local-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; }
  .hero-frame { max-width: 460px; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .quote-body { grid-template-columns: 1fr; }
  .quote-sidebar { position: static; }
}

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 640px) {
  .section, .section-services { padding: 56px 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery-cell.tall { grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .field-row-2, .field-row-3 { grid-template-columns: 1fr; }
  .cta-band { padding: 48px 24px; }
  .form-card { padding: 24px 20px; }
  .nav-brand .sub { display: none; }
  .nav-brand .wordmark { font-size: 17px; }
  .nav-brand img { width: 36px; height: 36px; }
  .nav-right { gap: 12px; }
  body.page-home .nav-right .btn-accent { display: none; }
  .mobile-menu .menu-cta { font-weight: 600; color: var(--text-strong); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
