@font-face {
  font-family: SUIT;
  src: url('/assets/suit-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --brand: #002f47;
  --accent: #c2e1ea;
  --on-accent: #07222f;
  --dark: var(--brand);
  --ink: #102c3b;
  --paper: #fff;
  --gold: #276079;
  --muted: #425d6b;
  --line: #d9e3e8;
  --soft: #f2f5f6;
}

body { font-family: SUIT, sans-serif; accent-color: var(--brand); }
:focus-visible { outline: 3px solid #347c9c; outline-offset: 4px; }
.skip:focus { z-index: 125; }
.header { color: white; background: var(--brand); position: sticky; top: 0; z-index: 90; min-height: 70px; }
.header :is(.navigation a, .brand-en, .brand strong, .header-phone, .menu-toggle) { color: white; }
.header .navigation a[aria-current="page"] { color: var(--accent); }
.is-home .header { position: fixed; inset: 0 0 auto; background: #07222fb8; border-color: transparent; }
.is-home .header.scrolled, .is-home .header:has(.navigation.open) { background: var(--brand); }
.header .navigation a:hover { color: var(--accent); }
.is-home .kaive-hero > img { object-position: 54% 48%; }
.is-home .kaive-hero .hero-copy { padding-top: max(9rem, 16vh); }
.is-home #field-intake .booking-form { padding: 0; border: 0; background: transparent; }
.is-home #field-intake .form-heading span { display: none; }
.is-home #field-intake :is(.form-heading h2, .consent-detail, .form-note) { color: var(--ink); }
.booking-form, .overview-visual, .document-image, .main-plan, .community-grid figure { border-radius: 12px; overflow: hidden; }
.form-note { color: var(--muted); }
.button-gold { background: var(--accent); color: var(--on-accent); }
.consult { background: var(--dark); color: white; }
.consult .eyebrow, .consult p { color: var(--accent); }
.footer { background: var(--on-accent); color: white; }
.footer :is(p, span, a, strong) { color: inherit; }
.section-heading .eyebrow, .page-intro .eyebrow { display: none; }
.page-intro { background: var(--soft); }
.page-intro .intro-rule { background: var(--gold); }
.field-section { padding-block: clamp(4rem, 8vw, 7rem); }
.field-section.tinted { background: var(--soft); }
.field-heading { margin-bottom: 1.75rem; }
.field-heading h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.15; margin-bottom: .6rem; }
.field-heading p { color: var(--muted); }
.field-section > .section { padding-block: 0; }
.field-section > .section > .section-heading, .field-section > .section > .split-title { display: none; }
.field-link { margin-top: 2rem; }
.feature-grid, .community-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(3,minmax(0,1fr)); }
.community-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.feature-grid article, .community-grid figure, .main-plan { margin: 0; background: white; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.feature-grid figure { position: relative; margin: 0; background: var(--soft); }
.feature-grid img { display: block; width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; }
.feature-grid figcaption { position: absolute; bottom: .75rem; left: .75rem; padding: .15rem .5rem; border-radius: .25rem; background: var(--on-accent); color: white; font-size: .8rem; }
.feature-grid article > div { padding: 1.25rem; }
.feature-grid h3 { font-size: 1.3rem; }
.feature-grid p { margin-bottom: 0; color: var(--muted); }
.main-plan img, .community-grid img { display: block; height: auto; width: 100%; }
.main-plan figcaption, .community-grid figcaption { padding: .6rem 1rem; color: var(--muted); }
.tabs button { font-size: 16px; }
.supply-table .featured-row { background: var(--soft); }
.field-quick { position: fixed; z-index: 20; right: 1rem; top: 50%; display: grid; gap: .65rem; text-align: center; }
.field-quick a { background: var(--dark); color: white; border: 1px solid var(--line); border-radius: .6rem; padding: .75rem 1rem; font-weight: 700; }
.field-quick a:last-child { background: var(--accent); color: var(--on-accent); }
.image-dialog { border: 0; background: white; color: var(--ink); padding: 1rem; max-width: min(95vw, 1250px); max-height: 92vh; }
.image-dialog::backdrop { background: #071725db; }
.image-dialog img { display: block; max-width: 100%; max-height: 76vh; object-fit: contain; margin-inline: auto; }
.image-dialog > form { position: sticky; top: 0; float: right; margin-left: 1rem; }
.image-dialog button, .image-full { padding: .45rem .75rem; border-radius: .3rem; color: var(--ink); background: var(--soft); border: 1px solid var(--line); cursor: pointer; }
.image-full { display: inline-block; margin-bottom: .75rem; }
.media-zoom { cursor: zoom-in; }

@media (max-width: 980px) {
  .header { padding-inline: 5vw; }
  .header .header-phone { margin-left: auto; }
  .header .menu-toggle { display: flex; }
  .header .navigation { display: none; position: absolute; inset: 100% 0 auto; background: var(--brand); }
  .header .navigation.open { display: flex; flex-direction: column; align-items: stretch; padding: 1rem 5vw; }
  .header .navigation a { padding: .65rem; }
}
@media (max-width: 760px) {
  .feature-grid, .community-grid { grid-template-columns: 1fr; }
  .tabs button { font-size: 14px; }
  .field-quick { inset: auto 0 0; display: flex; gap: 0; padding-bottom: env(safe-area-inset-bottom); background: var(--dark); }
  .field-quick a { flex: 1; border-radius: 0; }
  body:not(.is-home) { padding-bottom: calc(4rem + env(safe-area-inset-bottom)); }
  .header .brand strong { font-size: 1rem; }
  .header .header-phone strong { font-size: 1rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .arrived { animation: section-in .55s ease-out both; }
}
@keyframes section-in {
  from { opacity: .58; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
