/* ============================================================
   Splendour Fields — The Park JLT
   Shared design system
   Palette + type per research/brand-system.md
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

:root {
  /* core brand tokens */
  --bg: #FFF8EF;
  --surface: #FFFDF8;
  --paper: #FFFFFF;
  --text: #271A12;
  --muted: #7A6654;
  --primary: #B64A2E;
  --primary-deep: #9A3C23;
  --secondary: #17453B;
  --secondary-deep: #0E2F28;
  --accent: #E7A93B;
  --accent-deep: #C98B1E;
  --border: #EADCCB;
  --focus: #B64A2E;

  /* derived venue tones (sage walls / wood / cork) */
  --sage: #9FB6AB;
  --sage-soft: #E3EDE7;
  --sage-pale: #EEF4EF;
  --wood: #C99A63;
  --cork: #C9926A;

  --shadow-sm: 0 1px 2px rgba(39,26,18,.05), 0 1px 1px rgba(39,26,18,.04);
  --shadow-md: 0 12px 30px -12px rgba(39,26,18,.18);
  --shadow-lg: 0 30px 60px -24px rgba(39,26,18,.30);

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --radius-lg: 22px;

  --ff-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --ff-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--text);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--ff-display); font-weight: 600; line-height: 1.06; letter-spacing: -0.01em; color: var(--text); }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

/* ---------- layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.wrap-wide { max-width: 1340px; margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 116px); }
.section-sm { padding-block: clamp(40px, 6vw, 76px); }
.center { text-align: center; }
.stack-sm > * + * { margin-top: 10px; }

/* eyebrow / kicker */
.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--primary);
}
.kicker::before {
  content: ""; width: 22px; height: 1.5px; background: var(--accent); display: inline-block;
}
.kicker.is-light { color: var(--accent); }
.kicker.is-centered { justify-content: center; }
.kicker.is-centered::after {
  content: ""; width: 22px; height: 1.5px; background: var(--accent); display: inline-block;
}

/* headings scale */
.h-display { font-size: clamp(2.6rem, 6.5vw, 5rem); line-height: 0.98; letter-spacing: -0.025em; }
.h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.27rem); color: var(--muted); line-height: 1.62; }
.muted { color: var(--muted); }
.serif-italic { font-family: var(--ff-display); font-style: italic; font-weight: 500; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--primary); --btn-fg: #fff; --btn-bd: var(--primary);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 600; font-size: 15.5px; letter-spacing: .005em;
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
  transition: transform .18s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn--accent { --btn-bg: var(--accent); --btn-fg: #3a2a08; --btn-bd: var(--accent); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--text); --btn-bd: var(--border); }
.btn--ghost:hover { --btn-bd: var(--primary); --btn-fg: var(--primary); }
.btn--on-dark { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.4); }
.btn--on-dark:hover { --btn-bd: var(--accent); --btn-fg: var(--accent); }
.btn--lg { padding: 17px 30px; font-size: 16.5px; }
.btn--block { display: flex; width: 100%; }

/* link with arrow */
.tlink {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; color: var(--primary); font-size: 15.5px;
  border-bottom: 1.5px solid transparent; padding-bottom: 1px;
  transition: gap .2s ease, border-color .2s ease;
}
.tlink:hover { gap: 12px; border-color: var(--primary); }
.tlink svg { width: 16px; height: 16px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.site-header.is-stuck { border-color: var(--border); box-shadow: 0 6px 24px -18px rgba(39,26,18,.4); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand .brand-name { font-family: var(--ff-display); font-weight: 600; font-size: 18px; color: var(--secondary); letter-spacing: -0.01em; }
.brand .brand-sub { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 14px; border-radius: 999px; font-weight: 500; font-size: 15px; color: var(--text);
  transition: background .2s ease, color .2s ease;
}
.nav-links a:hover { background: var(--sage-soft); color: var(--secondary); }
.nav-links a.active { color: var(--primary); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }

@media (max-width: 940px) {
  .nav-links, .nav-cta .btn span.cta-label { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid var(--border);
    background: var(--surface); color: var(--text);
  }
  .nav-toggle svg { width: 22px; height: 22px; }
  .brand .brand-sub { display: none; }
}

/* mobile drawer */
.mobile-menu {
  position: fixed; inset: 0; z-index: 80; display: none;
  background: var(--bg);
  padding: 22px var(--gutter) 40px;
  flex-direction: column;
}
.mobile-menu.open { display: flex; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.mobile-menu .mm-top { display: flex; align-items: center; justify-content: space-between; height: 54px; }
.mobile-menu nav { display: flex; flex-direction: column; margin-top: 26px; gap: 2px; }
.mobile-menu nav a {
  font-family: var(--ff-display); font-size: 30px; font-weight: 500; padding: 14px 0;
  border-bottom: 1px solid var(--border); color: var(--secondary);
}
.mobile-menu nav a:last-child { border-bottom: 0; }
.mobile-menu .mm-actions { margin-top: auto; display: grid; gap: 12px; }
.mm-close { width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; }
.mm-close svg { width: 22px; height: 22px; }

/* ---------- footer ---------- */
.site-footer { background: var(--secondary-deep); color: #E9EFE9; padding-block: clamp(48px, 6vw, 80px) 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 18px; margin-bottom: 16px; }
.site-footer .f-brand img { height: 54px; filter: brightness(0) invert(1); opacity: .95; }
.site-footer p, .site-footer a, .site-footer li { color: #C6D3C9; font-size: 15px; }
.site-footer a:hover { color: var(--accent); }
.f-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.f-list a { display: inline-flex; align-items: center; gap: 9px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-block: 22px 30px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 13px; color: #93A698; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- mobile action bar ---------- */
.action-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 70;
  display: none; grid-template-columns: repeat(3, 1fr);
  background: var(--paper); border-top: 1px solid var(--border);
  box-shadow: 0 -8px 30px -16px rgba(39,26,18,.35);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  gap: 8px;
}
.action-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 8px 4px; border-radius: 12px; font-size: 12px; font-weight: 600; color: var(--secondary);
}
.action-bar a svg { width: 21px; height: 21px; }
.action-bar a.primary { background: var(--primary); color: #fff; }
.action-bar a.accent { background: var(--accent); color: #3a2a08; }
.action-bar a.calm { background: var(--sage-soft); color: var(--secondary); }
@media (max-width: 760px) {
  .action-bar { display: grid; }
  body { padding-bottom: 76px; }
}

/* ---------- cards / pills / misc ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--border); font-size: 13.5px; font-weight: 600; color: var(--secondary);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.pill.is-open .dot { background: #3a9d5d; box-shadow: 0 0 0 3px rgba(58,157,93,.18); }

.tabnum { font-variant-numeric: tabular-nums; letter-spacing: .01em; }

.divider-leaf { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--accent); }
.divider-leaf::before, .divider-leaf::after { content: ""; height: 1px; width: min(80px, 14vw); background: var(--border); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.note {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: 12px; background: var(--sage-soft);
  border: 1px solid color-mix(in srgb, var(--sage) 40%, var(--border));
  font-size: 14px; color: var(--secondary);
}
.note svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--secondary); }
