/* Lahar Group — single stylesheet, no build step.
   Brand navy (#054B91) and roof red (#AB2D2D) are taken from the house logo. */

:root {
  color-scheme: light dark;

  --brand: #054b91;          /* 8.6:1 on white */
  --brand-strong: #033a72;
  --brand-soft: #e7eef8;
  --accent: #ab2d2d;         /* roof red: small marks and highlights only (6.9:1 on white) */
  --accent-soft: #f8e9e7;

  --bg: #faf8f5;
  --surface: #ffffff;
  --surface-alt: #f2efe9;
  --ink: #16202e;
  --ink-muted: #4a5464;      /* 7.3:1 on --bg */
  --line: #e0dbd2;
  --on-brand: #ffffff;
  --focus: #c2410c;
  --field-border: #7a8494;   /* 3.7:1 on white (WCAG 1.4.11) */
  --danger: #b42318;

  --ok: #11603b;  --ok-soft: #dff3e8;    /* "Available" badge, 7:1 */
  --muted-badge: #3c4656; --muted-badge-soft: #e8ebf0;

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;

  --radius: 14px;
  --shadow: 0 1px 2px rgb(22 32 46 / .06), 0 8px 24px rgb(22 32 46 / .08);
  --shadow-lg: 0 2px 6px rgb(22 32 46 / .08), 0 20px 48px rgb(22 32 46 / .16);
  --wrap: 74rem;
  --gutter: clamp(1rem, 4vw, 2rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #8bb9f0;
    --brand-strong: #b8d4f7;
    --brand-soft: #18273b;
    --accent: #f08a84;
    --accent-soft: #3a1f22;
    --bg: #0e141c;
    --surface: #151d29;
    --surface-alt: #111823;
    --ink: #e8edf4;
    --ink-muted: #aeb8c6;
    --line: #263142;
    --on-brand: #0e141c;
    --focus: #fb923c;
    --field-border: #7a879c;
    --danger: #f97066;
    --ok: #7fd8a6;  --ok-soft: #12301f;
    --muted-badge: #c9d1dc; --muted-badge-soft: #273142;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .28);
    --shadow-lg: 0 2px 6px rgb(0 0 0 / .35), 0 20px 48px rgb(0 0 0 / .4);
  }
  .photo, .gallery img, .card-photo img { filter: brightness(.94); }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--ink);
  text-wrap: balance;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.5rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.3vw, 2.35rem); }
h3 { font-size: 1.25rem; }
p, ul, ol { margin: 0 0 1.1em; }
p { text-wrap: pretty; max-width: 68ch; }

a { color: var(--brand); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-strong); text-decoration-thickness: 2px; }

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

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--brand); color: var(--on-brand);
  padding: .6rem 1rem; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .5rem 1.5rem; padding-block: .7rem;
}
.brand { display: inline-flex; border-radius: 6px; }
.brand img { width: clamp(170px, 16vw, 210px); height: auto; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; align-items: center; }
.nav a {
  display: inline-block; padding: .5rem .75rem; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem;
}
.nav a:hover { background: var(--brand-soft); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-strong); font-weight: 650; }
.nav a.nav-cta { background: var(--brand); color: var(--on-brand); font-weight: 600; }
.nav a.nav-cta:hover { background: var(--brand-strong); }

@media (max-width: 820px) {
  .site-header { position: static; }
  .site-header .wrap { justify-content: center; }
  .nav ul { justify-content: center; }
  .nav a { padding: .45rem .65rem; font-size: .92rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.35rem;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 650; text-decoration: none; line-height: 1.2;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-strong); color: var(--on-brand); }
.btn-ghost { border-color: var(--brand); color: var(--brand-strong); }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand-strong); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.section-alt { background: var(--surface-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: 2.25rem; }
.section-head.row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; }
.section-head.row > div { max-width: 46rem; }
.section-head.row p:last-child { margin-bottom: 0; }
.eyebrow {
  font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .6rem;
}
.lede { font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem); color: var(--ink-muted); }
.flush-top { padding-top: 0; }
.note { color: var(--ink-muted); font-size: .95rem; }

/* Hero (home) */
.hero {
  padding-block: clamp(2.5rem, 1.5rem + 5vw, 5.5rem);
  background:
    radial-gradient(60rem 30rem at 85% 20%, var(--brand-soft), transparent 70%),
    var(--bg);
}
.hero .wrap, .split {
  display: grid; gap: clamp(2rem, 4vw, 4rem); align-items: center;
  grid-template-columns: 1.05fr .95fr;
}
.split.top { align-items: start; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 880px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
}
.hero h1 .hl { color: var(--brand); }
.hero-photo { position: relative; }
.hero-photo .photo {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: calc(var(--radius) * 1.6); box-shadow: var(--shadow-lg);
}
.hero-badge {
  position: absolute; left: clamp(-1.5rem, -2vw, -.5rem); bottom: 1.5rem;
  display: flex; gap: .85rem; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: .85rem 1.1rem; max-width: 19rem;
}
.hero-badge img { width: 2.6rem; height: 2.6rem; flex: none; }
.hero-badge p { margin: 0; font-size: .92rem; line-height: 1.4; color: var(--ink-muted); }
.hero-badge strong { display: block; color: var(--ink); font-size: 1rem; }
@media (max-width: 880px) { .hero-badge { left: .75rem; bottom: .75rem; } }

/* Page hero (inner pages) */
.page-hero { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.page-hero:last-child { padding-bottom: clamp(3rem, 2rem + 4vw, 5.5rem); }

.crumbs { font-size: .92rem; margin-bottom: 1rem; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs li + li::before { content: "/"; color: var(--ink-muted); margin-right: .4rem; }
.crumbs a { color: var(--ink-muted); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* Trust strip */
.trust { border-block: 1px solid var(--line); background: var(--surface); }
.trust ul {
  list-style: none; margin: 0; padding: 1.1rem 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .75rem 2rem;
}
.trust li { display: flex; gap: .65rem; align-items: center; font-weight: 600; font-size: .97rem; }
.trust svg { flex: none; color: var(--accent); }

/* ---------- Status badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .7rem; border-radius: 999px;
  font-size: .82rem; font-weight: 700; letter-spacing: .02em; line-height: 1.3;
  background: var(--muted-badge-soft); color: var(--muted-badge);
}
.badge::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.badge.available { background: var(--ok-soft); color: var(--ok); }
.badge.sold { background: var(--accent-soft); color: var(--accent); }

/* ---------- Property cards ---------- */
.homes { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); list-style: none; padding: 0; margin: 0; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.homes + .note { margin-top: 1.5rem; }
/* Home with no photos yet: logo on a tinted panel, same shape as a photo. */
.card-placeholder { aspect-ratio: 3 / 2; display: grid; place-items: center; background: var(--brand-soft); }
.card-placeholder img { width: 4rem; height: 4rem; opacity: .55; }
.card.static:hover { transform: none; box-shadow: var(--shadow); }
.card-photo { position: relative; }
.card-photo img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; background: var(--brand-soft); }
.card-photo .badge { position: absolute; top: .85rem; left: .85rem; box-shadow: 0 1px 4px rgb(0 0 0 / .18); }
.card-body { padding: 1.2rem 1.35rem 1.4rem; display: flex; flex-direction: column; flex: 1; gap: .2rem; }
.card h3 { margin: 0; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card is clickable, one link in the a11y tree */
.card .where { color: var(--ink-muted); margin: 0 0 .6rem; }
.card .price { margin: auto 0 0; padding-top: .9rem; border-top: 1px solid var(--line); font-weight: 650; display: flex; justify-content: space-between; gap: 1rem; }
.card .price span { color: var(--brand); }
.card:hover { box-shadow: var(--shadow-lg); }
.card:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.card h3 a:focus-visible { outline: none; }
@media (prefers-reduced-motion: no-preference) { .card:hover { transform: translateY(-3px); } }

.facts { list-style: none; padding: 0; margin: 0 0 .25rem; display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; font-size: .95rem; }
.facts li { display: inline-flex; align-items: center; gap: .4rem; }
.facts svg { color: var(--brand); flex: none; }

/* ---------- Service tiles (home) ---------- */
.tiles { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); list-style: none; padding: 0; margin: 0; }
.tile {
  position: relative; padding: 1.6rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.tile-icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 12px; background: var(--brand-soft); color: var(--brand); margin-bottom: 1rem; }
.tile h3 { margin-bottom: .4rem; }
.tile h3 a { color: var(--ink); text-decoration: none; }
.tile h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.tile p { color: var(--ink-muted); }
.tile .more { margin-top: auto; font-weight: 650; color: var(--brand); }
.tile:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.tile h3 a:focus-visible { outline: none; }
.tile:hover { box-shadow: var(--shadow-lg); }

/* ---------- Gallery (property pages) ---------- */
/* Desktop: mosaic with a large lead photo. Phones: a swipeable strip. Every photo links to its full-size file. */
.gallery {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: .6rem;
  grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(8rem, 13vw, 11.5rem);
}
.gallery li:first-child { grid-column: span 2; grid-row: span 2; }
.gallery a { display: block; height: 100%; border-radius: 10px; overflow: hidden; background: var(--surface-alt); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
@media (prefers-reduced-motion: no-preference) { .gallery a:hover img { transform: scale(1.03); } }
.gallery li:first-child a { border-radius: 10px 10px 10px 10px; }
@media (max-width: 700px) {
  .gallery {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%; grid-auto-rows: auto;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding-bottom: .5rem;
  }
  .gallery li { scroll-snap-align: start; }
  .gallery li:first-child { grid-column: auto; grid-row: auto; }
  .gallery a { aspect-ratio: 4 / 3; }
}
.gallery-note { margin-top: .75rem; font-size: .9rem; color: var(--ink-muted); }

/* Property detail */
.home-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; }
.home-head h1 { margin-bottom: .25rem; }
.home-head p { margin: 0; }
.home-layout { display: grid; gap: clamp(2rem, 4vw, 3.5rem); grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); align-items: start; }
@media (max-width: 880px) { .home-layout { grid-template-columns: 1fr; } }
.home-layout h2:not(:first-child) { margin-top: 2.5rem; }
.summary .rent { margin-top: 0; }
.summary {
  position: sticky; top: 6rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.3);
  box-shadow: var(--shadow); padding: 1.5rem;
}
@media (max-width: 880px) { .summary { position: static; } }
.summary .rent { font-family: var(--font-head); font-size: 1.6rem; font-weight: 750; margin: .6rem 0 .1rem; }
.summary .rent small { font-size: .95rem; font-weight: 500; color: var(--ink-muted); }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: .55rem 1rem; margin: 1.1rem 0 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.summary dt { color: var(--ink-muted); }
.summary dd { margin: 0; font-weight: 650; text-align: right; }
.summary .actions { margin-top: 0; flex-direction: column; }
.summary .btn { width: 100%; }

.schools { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.schools li { padding: .8rem 1rem; border-radius: 10px; background: var(--brand-soft); }
.schools span { display: block; font-size: .85rem; color: var(--ink-muted); }
.schools strong { font-weight: 650; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.steps li { counter-increment: step; padding: 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 2.4rem; height: 2.4rem; margin-bottom: .9rem; border-radius: 50%;
  background: var(--brand); color: var(--on-brand); font-weight: 750; font-family: var(--font-head); font-size: 1.1rem;
}
.steps h3 { margin-bottom: .35rem; font-size: 1.15rem; }
.steps p { margin: 0; color: var(--ink-muted); }

/* Check lists */
.checks { list-style: none; padding: 0; display: grid; gap: .7rem; }
.checks li { position: relative; padding-left: 2rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23054b91' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center / 80% no-repeat;
}
@media (prefers-color-scheme: dark) {
  .checks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%238bb9f0' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E"); }
}
.checks.cols { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: .7rem 2rem; }

/* Feature grid (promises / values) */
.features { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); list-style: none; padding: 0; margin: 0; }
@media (min-width: 1100px) { .features.five { grid-template-columns: repeat(5, 1fr); gap: 1rem; } .features.five .feature { padding: 1.25rem; } }
.feature { padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); border-top: 4px solid var(--accent); }
.feature h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.feature p { margin: 0; color: var(--ink-muted); }

/* The Lahar Group family (About) */
.ventures { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.venture {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
/* Partner logos are drawn for light backgrounds, so their plate stays white in dark mode too. */
.venture-logo {
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  height: 8.5rem; padding: 1.25rem 1.5rem; background: #fff; border-bottom: 1px solid var(--line);
}
.venture-logo img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.venture-word { font-family: var(--font-head); font-weight: 750; font-size: 1.6rem; letter-spacing: -.02em; color: #101418; }
.venture-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.venture-body h3 { margin-bottom: .4rem; }
.venture-body p { color: var(--ink-muted); }
.venture-link { margin-top: auto; font-weight: 650; }
.venture-link::after { content: " \2197"; }
.family-line { flex-basis: 100%; font-size: .9rem; }

/* Panel (bordered box for side content) */
.panel { padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.3); box-shadow: var(--shadow); }
.panel > :last-child { margin-bottom: 0; }
.panel.alert { border-left: 5px solid var(--accent); }

/* Note from the president */
.letter { margin: 0; padding: clamp(1.75rem, 4vw, 3rem); background: var(--surface); border-radius: calc(var(--radius) * 1.5); border: 1px solid var(--line); box-shadow: var(--shadow); }
.letter blockquote { margin: 0 0 1.25rem; font-size: clamp(1.15rem, 1.05rem + .6vw, 1.4rem); line-height: 1.55; }
.letter blockquote p { max-width: none; margin: 0; }
.letter blockquote p::before { content: "\201C"; color: var(--accent); font-weight: 750; }
.letter blockquote p::after { content: "\201D"; color: var(--accent); font-weight: 750; }
.letter figcaption { color: var(--ink-muted); }
.letter figcaption strong { color: var(--ink); }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--brand); color: var(--on-brand); border-radius: calc(var(--radius) * 1.5);
  padding: clamp(2rem, 5vw, 3.5rem); text-align: center;
}
.cta-band h2, .cta-band p { color: inherit; margin-inline: auto; }
.cta-band .actions { justify-content: center; }
.cta-band .btn-primary { background: var(--on-brand); color: var(--brand-strong); }
.cta-band .btn-primary:hover { background: var(--brand-soft); color: var(--brand-strong); }
.cta-band .btn-ghost { border-color: var(--on-brand); color: var(--on-brand); }
.cta-band .btn-ghost:hover { background: rgb(255 255 255 / .12); }
@media (prefers-color-scheme: dark) { .cta-band .btn-ghost:hover { background: rgb(0 0 0 / .12); } }

/* Split band with photo (sell / residents teasers) */
.media { border-radius: calc(var(--radius) * 1.5); overflow: hidden; box-shadow: var(--shadow-lg); }
.media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Prose (privacy, long text) */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.45rem; margin-top: 2.25rem; }
.prose h3 { font-size: 1.1rem; font-family: var(--font-body); margin-top: 1.25rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: .3rem; }
figure { margin: 0; }
address { font-style: normal; }

/* ---------- Forms ---------- */
/* One panel: form on the left, tinted "other ways" column on the right. */
.contact-panel {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.5); box-shadow: var(--shadow); overflow: hidden;
}
.form, .contact-side { padding: clamp(1.75rem, 4vw, 3rem); }
.contact-side { background: var(--brand-soft); border-left: 1px solid var(--line); }
@media (max-width: 880px) {
  .contact-panel { grid-template-columns: 1fr; }
  .contact-side { border-left: 0; border-top: 1px solid var(--line); }
}
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.5); box-shadow: var(--shadow); }

.panel-head { margin-bottom: 2rem; }
.panel-head h2 { font-size: clamp(1.4rem, 1.25rem + .6vw, 1.7rem); margin-bottom: .4rem; }
.panel-head p { margin: 0; color: var(--ink-muted); }

.form { display: flex; flex-direction: column; gap: 1.4rem; }
.form .panel-head { margin-bottom: .5rem; }
.form .row { display: grid; gap: 1.4rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .5rem; }
.field label { font-weight: 650; line-height: 1.3; }
.field label .opt { font-weight: 400; color: var(--ink-muted); }
.field .hint { margin: -.15rem 0 0; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; line-height: 1.5; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--field-border); border-radius: 10px;
  padding: .75rem 1rem; min-height: 3.25rem;
  transition: border-color .15s, box-shadow .15s;
}
.field select {
  appearance: none; padding-right: 2.75rem; cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%237a8494' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E") right 1rem center / 1.1rem no-repeat;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--ink-muted); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--focus);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--danger); }
.form .btn { align-self: flex-start; border: 0; cursor: pointer; font: inherit; font-weight: 650; min-height: 3.25rem; padding-inline: 1.75rem; margin-top: .25rem; }
@media (max-width: 520px) { .form .btn { align-self: stretch; } }
.hint { font-size: .9rem; line-height: 1.5; color: var(--ink-muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; padding-block: 1.25rem; border-top: 1px solid color-mix(in srgb, var(--brand) 18%, transparent); }
.contact-list li:first-child { padding-top: 0; border-top: 0; }
.contact-list li:last-child { padding-bottom: 0; }
.contact-icon {
  flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--surface); color: var(--brand); box-shadow: 0 1px 2px rgb(22 32 46 / .08);
}
.contact-icon svg { width: 1.25rem; height: 1.25rem; }
.contact-list h3 {
  font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-muted); margin: .1rem 0 .3rem;
}
.contact-list p { margin: 0; max-width: none; }
.contact-list a { font-weight: 600; overflow-wrap: anywhere; }
.contact-list .hint { margin-top: .4rem; }

/* ---------- Footer ---------- */
.site-footer { padding-block: 3rem 2rem; background: var(--surface-alt); border-top: 1px solid var(--line); font-size: .95rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.5fr 1fr 1fr 1fr; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-family: var(--font-body); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: .75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer .brand-foot img { width: 190px; height: auto; margin-bottom: 1rem; }
.social { display: flex !important; gap: .5rem !important; margin-top: .25rem !important; }
.social a { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.social a:hover { color: var(--brand); border-color: var(--brand); }
.legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--ink-muted); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; align-items: center; }
.legal p { margin: 0; max-width: none; }
.eho { display: inline-flex; align-items: center; gap: .5rem; }

@media print {
  .site-header, .site-footer, .cta-band, .skip, .form, .contact-panel { display: none; }
  body { background: #fff; color: #000; }
}
