/* ═══════════════════════════════════════════════════════════════════
   HAUSPORTE — Design System
   Navy / charcoal / off-white / stone, restrained sage accent.
   Serif headings (Gambetta), sans body (General Sans) — self-hosted,
   files in src/fonts/. Both are free for commercial + web use under
   the ITF Free Font License (see the *_Complete/License folders).
   ═══════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: "Gambetta";
  src: url("/fonts/Gambetta-Regular.woff2") format("woff2"),
       url("/fonts/Gambetta-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gambetta";
  src: url("/fonts/Gambetta-Medium.woff2") format("woff2"),
       url("/fonts/Gambetta-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("/fonts/GeneralSans-Regular.woff2") format("woff2"),
       url("/fonts/GeneralSans-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("/fonts/GeneralSans-Medium.woff2") format("woff2"),
       url("/fonts/GeneralSans-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("/fonts/GeneralSans-Semibold.woff2") format("woff2"),
       url("/fonts/GeneralSans-Semibold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Color */
  --navy: #12203a;
  --navy-deep: #0b1526;
  --charcoal: #23262b;
  --cream: #f7f4ed;
  --cream-2: #efece2;
  --stone: #ddd7c9;
  --stone-line: #e2ded3;
  --sage: #7c8f77;
  --sage-deep: #5f7059;
  --ink: #1c1d1f;
  --ink-soft: #4a4e55;
  --ink-faint: #767b84;
  --white: #ffffff;

  /* Type */
  --font-serif: "Gambetta", Georgia, "Times New Roman", serif;
  --font-sans: "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Rhythm */
  --max-w: 1180px;
  --max-w-narrow: 760px;
  --radius: 4px;
  --space-section: clamp(4.5rem, 8vw, 8rem);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 500; line-height: 1.15; margin: 0; color: var(--navy); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

/* ── Accessibility ─────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -60px;
  background: var(--navy);
  color: var(--cream);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  z-index: 1000;
  transition: top 0.2s var(--ease);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Layout helpers ────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.container--narrow { max-width: var(--max-w-narrow); }
.section { padding-block: var(--space-section); scroll-margin-top: 90px; }
.section--alt { background: var(--cream-2); }
.section--navy { background: var(--navy); color: var(--cream); }
.section--navy h2, .section--navy h3 { color: var(--cream); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 0.9rem;
}
.section--navy .eyebrow { color: var(--sage); }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.section-head p { margin-top: 1.1rem; color: var(--ink-soft); font-size: 1.08rem; line-height: 1.7; }
.section--navy .section-head p { color: rgba(247,244,237,0.78); }

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.7rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--navy); color: var(--cream); }
.btn--primary:hover { background: var(--navy-deep); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--cream); }
.section--navy .btn--ghost { color: var(--cream); border-color: rgba(247,244,237,0.55); }
.section--navy .btn--ghost:hover { background: var(--cream); color: var(--navy); }
.btn--sage { background: var(--sage-deep); color: var(--cream); }
.btn--sage:hover { background: #4d5c48; }

/* ── Header / Nav ──────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 237, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--stone-line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--navy);
}
.nav-desktop { display: none; }
.nav-desktop ul { display: flex; gap: 2.1rem; align-items: center; }
.nav-desktop a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
  padding: 0.3rem 0.1rem;
  border-bottom: 2px solid transparent;
}
.nav-desktop a:hover, .nav-desktop a.is-active { color: var(--navy); border-bottom-color: var(--sage-deep); }
.nav-desktop .btn { margin-left: 0.5rem; }
.nav-desktop a.btn--primary, .nav-desktop a.btn--primary:hover { color: var(--cream); border-bottom-color: transparent; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--stone-line);
  border-radius: var(--radius);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav-mobile {
  display: none;
  position: fixed;
  inset: 76px 0 0 0;
  background: var(--cream);
  z-index: 99;
  overflow-y: auto;
}
.nav-mobile.is-open { display: block; }
.nav-mobile ul { padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem); display: flex; flex-direction: column; gap: 0.25rem; }
.nav-mobile a {
  display: block;
  padding: 1.05rem 0;
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--navy);
  border-bottom: 1px solid var(--stone-line);
}
.nav-mobile .btn { margin-top: 1.5rem; width: 100%; justify-content: center; }
.nav-mobile a.btn--primary { color: var(--cream); border-bottom-color: transparent; }

@media (min-width: 960px) {
  .nav-desktop { display: block; }
  .nav-toggle, .nav-mobile { display: none !important; }
}

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(124,143,119,0.10), transparent 60%),
    var(--cream);
}
.hero__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  grid-template-columns: 1fr;
}
.hero__kicker {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 1.25rem;
}
.hero__headline {
  font-size: clamp(2.35rem, 5.4vw, 3.75rem);
  letter-spacing: -0.01em;
  max-width: 16ch;
}
.hero__body {
  margin-top: 1.5rem;
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero__ctas { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--stone);
  box-shadow: 0 30px 60px -25px rgba(18,32,58,0.35);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 860px) {
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; }
  .hero__photo { max-width: 420px; margin-left: auto; }
}

/* ── Stats strip ───────────────────────────────────────────────────── */
.stats {
  border-top: 1px solid var(--stone-line);
  border-bottom: 1px solid var(--stone-line);
  background: var(--white);
}
.stats__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
}
.stat__value { font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2rem); color: var(--navy); }
.stat__label { margin-top: 0.4rem; font-size: 0.92rem; color: var(--ink-faint); line-height: 1.45; max-width: 26ch; }

@media (min-width: 720px) {
  .stats__grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .stat { border-left: 1px solid var(--stone-line); padding-left: 1.5rem; }
  .stat:first-child { border-left: none; padding-left: 0; }
}
.stats .container { padding-block: 2.75rem; }

/* ── About ─────────────────────────────────────────────────────────── */
.about__grid { display: grid; gap: 3rem; }
.about__intro { font-size: 1.2rem; line-height: 1.65; color: var(--ink); font-family: var(--font-serif); font-weight: 400; }
.about__body p { margin-bottom: 1.25rem; color: var(--ink-soft); line-height: 1.75; }
.about__body p:last-child { margin-bottom: 0; }
.about__award {
  margin-top: 2rem;
  padding: 1.1rem 1.4rem;
  border-left: 3px solid var(--sage-deep);
  background: var(--cream-2);
  font-size: 0.98rem;
  color: var(--ink-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.about__photo {
  margin-top: 2.25rem;
  max-width: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--stone);
  box-shadow: 0 20px 40px -22px rgba(18,32,58,0.3);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 900px) {
  .about__grid { grid-template-columns: 0.85fr 1.15fr; }
}

/* ── Criteria ──────────────────────────────────────────────────────── */
.criteria-grid { display: grid; gap: 1.75rem; grid-template-columns: 1fr; margin-top: 1rem; }
@media (min-width: 720px) { .criteria-grid { grid-template-columns: repeat(2, 1fr); } }

.crit-card {
  background: var(--white);
  border: 1px solid var(--stone-line);
  border-radius: var(--radius);
  padding: 2rem;
}
.crit-card h3 { font-size: 1.15rem; margin-bottom: 1.1rem; }
.crit-card ul { display: flex; flex-direction: column; gap: 0.7rem; }
.crit-card li {
  position: relative;
  padding-left: 1.3rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.55;
}
.crit-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--sage-deep);
  border-radius: 50%;
}
.crit-card p.crit-intro { color: var(--ink-soft); margin-bottom: 1rem; font-size: 0.98rem; }
.crit-card .crit-note {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--stone-line);
  font-size: 0.9rem;
  color: var(--ink-faint);
  line-height: 1.6;
}

.crit-size-list { display: flex; flex-direction: column; gap: 1rem; }
.crit-size-list dt { font-weight: 600; color: var(--navy); font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.04em; }
.crit-size-list dd { margin: 0.25rem 0 0; color: var(--ink-soft); font-size: 1.02rem; }

.geo-block { margin-bottom: 1.1rem; }
.geo-block .geo-label { font-weight: 600; color: var(--navy); font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.04em; }
.geo-block p { margin-top: 0.3rem; color: var(--ink-soft); }

/* ── Prepared to close ─────────────────────────────────────────────── */
.prepared__labels { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.75rem; }
.prepared__labels li {
  border: 1px solid rgba(247,244,237,0.35);
  color: var(--cream);
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
}
.prepared__body { max-width: 62ch; font-size: 1.08rem; line-height: 1.75; color: rgba(247,244,237,0.85); }

/* ── Brokers ───────────────────────────────────────────────────────── */
.marker-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin-top: 2.5rem; }
@media (min-width: 720px) { .marker-grid { grid-template-columns: repeat(2, 1fr); } }
.marker {
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--stone-line);
  border-radius: var(--radius);
}
.marker h3 { font-size: 1.02rem; font-family: var(--font-sans); font-weight: 600; color: var(--navy); margin-bottom: 0.5rem; }
.marker p { color: var(--ink-soft); font-size: 0.96rem; line-height: 1.6; }
.brokers__note { margin-top: 2.5rem; font-size: 1.04rem; color: var(--ink-soft); max-width: 62ch; line-height: 1.7; }
.brokers__cta { margin-top: 1.75rem; }

/* ── Owners ────────────────────────────────────────────────────────── */
.owners__inner { max-width: 62ch; }
.owners__body { margin-top: 1.5rem; font-size: 1.1rem; line-height: 1.75; color: var(--ink-soft); }
.owners__cta { margin-top: 2rem; }

/* ── Contact ───────────────────────────────────────────────────────── */
.contact-direct { max-width: 640px; }
.contact-direct__name { font-family: var(--font-serif); font-size: 1.6rem; color: var(--navy); }
.contact-direct__title { color: var(--ink-faint); margin-top: 0.25rem; font-size: 1rem; }

.contact-methods {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
@media (min-width: 620px) { .contact-methods { grid-template-columns: 1fr 1fr; } }

.contact-method {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.5rem 1.75rem;
  background: var(--white);
  border: 1px solid var(--stone-line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.contact-method:hover { border-color: var(--sage-deep); background: var(--cream-2); }
.contact-method__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-deep);
}
.contact-method__value {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--navy);
  word-break: break-word;
}

.contact-direct__links { margin-top: 1.75rem; font-size: 0.95rem; color: var(--ink-soft); }
.contact-direct__links a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.contact-direct__links a:hover { color: var(--sage-deep); }

/* ── Footer ────────────────────────────────────────────────────────── */
.site-footer { background: var(--navy-deep); color: rgba(247,244,237,0.65); padding-block: 2.5rem; }
.site-footer__inner { display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.88rem; }
@media (min-width: 720px) { .site-footer__inner { flex-direction: row; justify-content: space-between; align-items: center; } }
.site-footer a { color: rgba(247,244,237,0.85); text-decoration: none; }
.site-footer a:hover { color: var(--cream); }

/* ── Reveal-on-scroll (progressive enhancement only) ──────────────── */
.reveal { opacity: 1; transform: none; }
.js-anim .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js-anim .reveal.is-visible { opacity: 1; transform: none; }
