/* ==========================================================================
   The Wilkshire House — design system
   Southern boutique estate: warm ivory, deep forest green, aged brass.
   ========================================================================== */

:root {
  /* Type */
  --font-display: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.1875rem;
  --text-xl: clamp(1.5rem, 2.4vw, 2rem);
  --text-2xl: clamp(2rem, 4vw, 3rem);
  --text-hero: clamp(2.75rem, 7vw, 5.75rem);

  /* Space */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --section-y: clamp(3.5rem, 8vw, 8rem);

  --wrap: 1240px;
  --wrap-narrow: 720px;
  --radius: 2px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Light — warm ivory estate */
  --bg: #faf6ee;
  --bg-alt: #f2ece0;
  --bg-deep: #1d3328;
  --surface: #fffdf8;
  --ink: #23231f;
  --ink-soft: #55534b;
  --ink-faint: #8b877c;
  --forest: #1d3328;
  --forest-soft: #35513f;
  --brass: #9a7842;
  --brass-bright: #c2a06a;
  --line: #ddd4c2;
  --line-strong: #c8bda6;
  --on-dark: #f3ede0;
  --on-dark-soft: #c3bcab;
  --shadow-sm: 0 1px 2px rgba(35, 35, 31, 0.06), 0 6px 18px -12px rgba(35, 35, 31, 0.18);
  --shadow-md: 0 2px 4px rgba(35, 35, 31, 0.05), 0 24px 48px -28px rgba(35, 35, 31, 0.28);
  --scrim: linear-gradient(180deg, rgba(16, 24, 19, 0.5) 0%, rgba(16, 24, 19, 0.2) 40%, rgba(16, 24, 19, 0.72) 100%);
}

html[data-theme="dark"] {
  --bg: #14170f;
  --bg-alt: #1b1f18;
  --bg-deep: #101410;
  --surface: #1e2219;
  --ink: #f1ebdd;
  --ink-soft: #bdb6a5;
  --ink-faint: #8b8676;
  --forest: #8fae94;
  --forest-soft: #a8c2ac;
  --brass: #c9a96a;
  --brass-bright: #dfc38b;
  --line: #32382c;
  --line-strong: #4a5142;
  --on-dark: #f1ebdd;
  --on-dark-soft: #bdb6a5;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 24px 48px -28px rgba(0, 0, 0, 0.8);
  --scrim: linear-gradient(180deg, rgba(8, 12, 9, 0.55) 0%, rgba(8, 12, 9, 0.3) 40%, rgba(8, 12, 9, 0.82) 100%);
}

*, *::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;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-4);
  color: var(--ink);
}
h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; line-height: 1.3; }
p { margin: 0 0 var(--space-4); }
a { color: inherit; }

::selection { background: var(--brass-bright); color: #17200f; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 3rem); }
.wrap--narrow { max-width: var(--wrap-narrow); }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-deep); color: var(--on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--on-dark); }
.section--dark p { color: var(--on-dark-soft); }

.eyebrow {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 500;
  color: var(--brass);
  margin: 0 0 var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--brass);
  flex: none;
}
.eyebrow--center { justify-content: center; }

.lede { font-size: var(--text-lg); color: var(--ink-soft); line-height: 1.6; max-width: 58ch; }
.section--dark .lede { color: var(--on-dark-soft); }
.muted { color: var(--ink-soft); }
.tiny { font-size: var(--text-xs); color: var(--ink-faint); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease);
  font-family: var(--font-body);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--forest); color: #f6f2e8; }
html[data-theme="dark"] .btn--primary { background: var(--brass); color: #14170f; }
.btn--primary:hover { background: var(--forest-soft); }
html[data-theme="dark"] .btn--primary:hover { background: var(--brass-bright); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--brass); color: var(--brass); }
.btn--onimage { background: rgba(250, 246, 238, 0.94); color: #1d3328; }
.btn--onimage:hover { background: #fff; }
.btn--outline-light { border-color: rgba(243, 237, 224, 0.45); color: var(--on-dark); }
.btn--outline-light:hover { border-color: var(--brass-bright); color: var(--brass-bright); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.textlink {
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.textlink:hover { color: var(--brass); border-color: var(--brass); }
.textlink svg { transition: transform 0.25s var(--ease); }
.textlink:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--forest);
  backdrop-filter: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
  color: #f2ece0;
}
.header.is-scrolled { border-bottom-color: rgba(255,255,255,0.14); }

/* Force light foreground on the permanent forest header, regardless of light/dark theme */
.header .brand,
.header .brand__name,
.header .brand__sub,
.header .nav a,
.header .header__phone,
.header .icon-btn { color: #f2ece0; }
.header .brand svg,
html[data-theme="dark"] .header .brand svg { color: var(--brass); }
.header .brand__sub { color: rgba(242,236,224,0.7); }
.header .nav a { color: rgba(242,236,224,0.82); }
.header .nav a:hover { color: #ffffff; }
.header .nav a[aria-current="page"] { color: #ffffff; border-bottom-color: var(--brass); }
.header .header__phone { color: #f2ece0; }
.header .header__phone:hover { color: var(--brass); }

/* Inquire button on dark header: swap to cream fill / forest text so it pops on the dark bar */
.header .btn--primary {
  background: #f2ece0;
  color: var(--forest);
  border-color: transparent;
}
.header .btn--primary:hover { background: #ffffff; color: var(--forest); }

/* Icon button (theme toggle, menu) on dark header */
.header .icon-btn { color: #f2ece0; border-color: rgba(242,236,224,0.22); }
.header .icon-btn:hover { background: rgba(242,236,224,0.10); border-color: rgba(242,236,224,0.4); }
.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 2.5vw, 2rem);
  min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); flex: none; }
.brand svg { width: 26px; height: auto; color: var(--forest); flex: none; }
html[data-theme="dark"] .brand svg { color: var(--brass); }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand__sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.5625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 4px;
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: clamp(0.7rem, 1.1vw, 1.4rem); min-width: 0; }
.nav a {
  font-size: var(--text-sm);
  text-decoration: none;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brass); }

.header__actions { display: flex; align-items: center; gap: var(--space-3); flex: none; }
.header__phone {
  font-size: var(--text-sm);
  text-decoration: none;
  color: var(--ink);
  letter-spacing: 0.03em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.45em;
}
.header__phone:hover { color: var(--brass); }
/* Header phone is hidden at all widths — the number is available on the Contact/Masters/Wedding-planner pages and via hero CTAs. Keeps the header uncluttered. */
.header__phone { display: none !important; }
@media (max-width: 1280px) { .nav a { font-size: 0.85rem; } .nav { gap: clamp(0.5rem, 0.9vw, 1rem); } .header__actions { gap: 0.6rem; } }


.icon-btn {
  width: 38px; height: 38px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: transparent; color: var(--ink); cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.icon-btn:hover { border-color: var(--brass); color: var(--brass); }
.icon-btn svg { width: 17px; height: 17px; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.menu-btn { display: none; }

@media (max-width: 1500px) {
  .nav, .header__phone { display: none; }
  .menu-btn { display: inline-grid; }
}

@media (max-width: 620px) {
  .header__bar { min-height: 66px; gap: 0.75rem; }
  .header__actions .btn { padding: 0.6rem 1rem; font-size: 0.8125rem; }
  .header__actions { gap: 0.5rem; }
  .icon-btn { width: 34px; height: 34px; }
  .brand__name { font-size: 1.08rem; }
  .brand__sub { display: none; }
  .brand svg { width: 22px; }
}
@media (max-width: 420px) {
  .header__actions .theme-toggle { display: none; }
}

.drawer {
  position: fixed; inset: 0; z-index: 80;
  background: var(--bg);
  padding: var(--space-6) clamp(1.25rem, 5vw, 3rem) var(--space-12);
  display: flex; flex-direction: column;
  transform: translateY(-100%);
  transition: transform 0.45s var(--ease);
  overflow-y: auto;
}
.drawer.is-open { transform: translateY(0); }
.drawer__top { display: flex; align-items: center; justify-content: space-between; min-height: 76px; margin-bottom: var(--space-8); }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a {
  font-family: var(--font-display);
  font-size: 1.9rem;
  text-decoration: none;
  color: var(--ink);
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}
.drawer nav a[aria-current="page"] { color: var(--brass); }
.drawer__foot { margin-top: auto; padding-top: var(--space-8); display: grid; gap: var(--space-3); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--scrim); }
.hero__inner {
  min-height: clamp(520px, 84vh, 860px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-block: var(--space-24) clamp(3rem, 7vw, 5.5rem);
  color: #f7f3e9;
}
.hero__inner .eyebrow { color: var(--brass-bright); }
.hero__inner .eyebrow::before { background: var(--brass-bright); }
.hero h1 {
  font-size: var(--text-hero);
  color: #fdfaf3;
  max-width: 18ch;
  margin-bottom: var(--space-6);
  text-wrap: balance;
}
.hero__sub { font-size: var(--text-lg); color: rgba(247, 243, 233, 0.88); max-width: 46ch; }
.hero--page .hero__inner { min-height: clamp(400px, 62vh, 620px); }
.hero--page h1 { font-size: var(--text-2xl); max-width: 22ch; }

.hero__meta {
  display: flex; flex-wrap: wrap; gap: var(--space-6);
  margin-top: var(--space-8); padding-top: var(--space-6);
  border-top: 1px solid rgba(247, 243, 233, 0.28);
}
.hero__meta div { min-width: 116px; }
.hero__meta dt {
  font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.18em;
  color: rgba(247, 243, 233, 0.65); margin-bottom: 6px;
}
.hero__meta dd { margin: 0; font-family: var(--font-display); font-size: 1.4rem; color: #fdfaf3; }

/* ---------- Split / editorial ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.split__text { grid-column: span 6; }
.split__media { grid-column: span 6; }
.split--flip .split__text { order: 2; }
.split--wide-media .split__text { grid-column: span 5; }
.split--wide-media .split__media { grid-column: span 7; }
.split--tight { grid-template-columns: 1.15fr 0.85fr; }
@media (max-width: 900px) { .split--tight { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .split__text, .split__media,
  .split--wide-media .split__text, .split--wide-media .split__media { grid-column: 1 / -1; }
  .split--flip .split__text { order: 0; }
}

.frame { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--tall { aspect-ratio: 3 / 4; }
.frame--wide { aspect-ratio: 16 / 10; }
.frame--square { aspect-ratio: 1 / 1; }
.frame--brass { outline: 1px solid var(--line); outline-offset: 10px; }
figcaption { font-size: var(--text-xs); color: var(--ink-faint); margin-top: var(--space-3); letter-spacing: 0.04em; }

.fullbleed { position: relative; height: clamp(320px, 56vh, 620px); overflow: hidden; }
.fullbleed img { width: 100%; height: 100%; object-fit: cover; }
.fullbleed__quote {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(16,24,19,.32), rgba(16,24,19,.62));
  text-align: center; padding: var(--space-8);
}
.fullbleed__quote p {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3.6vw, 3rem);
  color: #fdfaf3; max-width: 24ch; line-height: 1.14; margin: 0; text-wrap: balance;
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color 0.3s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.card:hover .card__media img { transform: scale(1.045); }
.card__body { padding: var(--space-6); display: flex; flex-direction: column; flex: 1; gap: var(--space-2); }
.card__body h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; letter-spacing: -0.01em; margin: 0; }
.card__kicker {
  font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.18em; color: var(--brass); margin: 0;
}
.card__body p { color: var(--ink-soft); font-size: 0.9375rem; margin: 0; }
.card__foot { margin-top: auto; padding-top: var(--space-4); }

.taglist { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.taglist li {
  font-size: var(--text-xs); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-soft); border: 1px solid var(--line); border-radius: 100px; padding: 4px 10px;
}

/* Suite cards */
.suite {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface);
}
.suite:nth-child(even) .suite__media { order: 2; }
.suite__media { min-height: 320px; }
.suite__media img { width: 100%; height: 100%; object-fit: cover; }
.suite__body { padding: clamp(1.5rem, 3.5vw, 3rem); display: flex; flex-direction: column; gap: var(--space-3); }
.suite__body h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 0; }
@media (max-width: 800px) {
  .suite { grid-template-columns: 1fr; }
  .suite:nth-child(even) .suite__media { order: 0; }
  .suite__media { min-height: 240px; aspect-ratio: 4/3; }
}

/* Feature list */
.featlist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.featlist li { position: relative; padding-left: 1.15rem; font-size: 0.9375rem; color: var(--ink-soft); line-height: 1.6; }
.featlist li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; background: var(--brass); border-radius: 50%; }
.section--dark .featlist li { color: var(--on-dark-soft); }

.amenity-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 0; border-top: 1px solid var(--line); }
.amenity-grid div { padding: var(--space-6) var(--space-4) var(--space-6) 0; border-bottom: 1px solid var(--line); }
.amenity-grid h4 { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.02em; margin: 0 0 4px; }
.amenity-grid p { font-size: 0.875rem; color: var(--ink-soft); margin: 0; }

/* Numbered steps */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: var(--space-8); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; gap: var(--space-4); }
.steps li::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--font-display); font-size: 1.6rem; color: var(--brass); line-height: 1;
}
.steps h4 { font-family: var(--font-body); font-size: var(--text-base); font-weight: 600; margin: 0 0 4px; }
.steps p { font-size: 0.9375rem; color: var(--ink-soft); margin: 0; }
.section--dark .steps p { color: var(--on-dark-soft); }

/* Stat strip */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: var(--space-8); }
.stats div { border-top: 1px solid var(--line-strong); padding-top: var(--space-4); }
.section--dark .stats div { border-color: rgba(243, 237, 224, 0.3); }
.stats dt { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink-faint); margin-bottom: var(--space-2); }
.section--dark .stats dt { color: var(--on-dark-soft); }
.stats dd { margin: 0; font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; }

/* Testimonials */
.quote-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.5rem); display: flex; flex-direction: column; gap: var(--space-4);
}
.quote-card blockquote { margin: 0; font-family: var(--font-display); font-size: 1.375rem; line-height: 1.35; color: var(--ink); }
.quote-card cite { font-style: normal; font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); margin-top: auto; }
.stars { display: flex; gap: 3px; color: var(--brass); }
.stars svg { width: 13px; height: 13px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; gap: clamp(0.5rem, 1.2vw, 1rem); }
.gallery a { overflow: hidden; border-radius: var(--radius); display: block; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery a:hover img { transform: scale(1.05); }
.gallery .g-tall { grid-row: span 2; }
.gallery .g-wide { grid-column: span 2; }
.gallery .g-big { grid-column: span 2; grid-row: span 2; }
@media (max-width: 780px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .gallery .g-big { grid-column: span 2; grid-row: span 2; }
}

/* ---------- Forms ---------- */
.form-panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 3.5vw, 3rem);
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-soft); font-weight: 500;
}
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 0.9375rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 0.7rem 0.85rem; width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 118px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brass) 18%, transparent);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); margin-top: var(--space-6); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.form-success {
  display: none; text-align: left; padding: var(--space-8) 0;
}
.form-success h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.75rem; }
form.is-sent { display: none; }
form.is-sent + .form-success { display: block; }
.form-success__mark { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--brass) 22%, transparent); color: var(--brass); margin-bottom: var(--space-4); }

/* Audience picker chips */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label {
  font-size: var(--text-sm); letter-spacing: 0.02em; padding: 0.5rem 1rem;
  border: 1px solid var(--line-strong); border-radius: 100px; cursor: pointer;
  transition: all 0.2s var(--ease); color: var(--ink-soft);
}
.chips label:hover { border-color: var(--brass); color: var(--ink); }
.chips input:checked + label { background: var(--forest); border-color: var(--forest); color: #f6f2e8; }
html[data-theme="dark"] .chips input:checked + label { background: var(--brass); border-color: var(--brass); color: #14170f; }
.chips input:focus-visible + label { outline: 2px solid var(--brass); outline-offset: 2px; }

/* ---------- Availability calendar ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: var(--space-2); border-bottom: 1px solid var(--line); padding-bottom: var(--space-4); margin-bottom: var(--space-8); }
.tab {
  font-family: var(--font-body); font-size: var(--text-sm); letter-spacing: 0.03em;
  background: transparent; border: 1px solid var(--line-strong); border-radius: 100px;
  padding: 0.5rem 1.1rem; cursor: pointer; color: var(--ink-soft); transition: all 0.2s var(--ease);
}
.tab:hover { border-color: var(--brass); color: var(--ink); }
.tab[aria-selected="true"] { background: var(--forest); border-color: var(--forest); color: #f6f2e8; }
html[data-theme="dark"] .tab[aria-selected="true"] { background: var(--brass); border-color: var(--brass); color: #14170f; }

.cal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.month { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-4); background: var(--surface); }
.month__name { font-family: var(--font-display); font-size: 1.35rem; margin: 0 0 var(--space-3); text-align: center; }
.month__dow, .month__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.month__dow span {
  font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint);
  text-align: center; padding-bottom: 6px;
}
.day {
  aspect-ratio: 1 / 1; display: grid; place-items: center; font-size: 0.8125rem;
  border-radius: 2px; color: var(--ink-soft); position: relative;
}
.day--empty { visibility: hidden; }
.day--past { color: var(--ink-faint); opacity: 0.45; }
.day--open { background: color-mix(in srgb, var(--forest) 12%, transparent); color: var(--ink); font-weight: 500; }
html[data-theme="dark"] .day--open { background: color-mix(in srgb, var(--forest) 22%, transparent); }
.day--booked { background: color-mix(in srgb, var(--ink) 12%, transparent); color: var(--ink-faint); text-decoration: line-through; }
.day--hold { background: color-mix(in srgb, var(--brass) 30%, transparent); color: var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: var(--space-6); margin-top: var(--space-8); font-size: var(--text-sm); color: var(--ink-soft); }
.legend span { display: flex; align-items: center; gap: 0.5rem; }
.legend i { width: 14px; height: 14px; border-radius: 2px; display: block; }
.swatch-open { background: color-mix(in srgb, var(--forest) 22%, transparent); }
.swatch-hold { background: color-mix(in srgb, var(--brass) 40%, transparent); }
.swatch-booked { background: color-mix(in srgb, var(--ink) 16%, transparent); }

.notice {
  border-left: 2px solid var(--brass); padding: var(--space-3) 0 var(--space-3) var(--space-4);
  font-size: 0.9375rem; color: var(--ink-soft); background: transparent;
}

/* ---------- Footer ---------- */
.footer { background: var(--bg-deep); color: var(--on-dark); padding-block: var(--space-24) var(--space-8); }
.footer a { color: var(--on-dark-soft); text-decoration: none; }
.footer a:hover { color: var(--brass-bright); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-8); }
.footer__brand svg { width: 30px; color: var(--brass-bright); margin-bottom: var(--space-4); }
.footer h4 { font-family: var(--font-body); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.18em; color: var(--brass-bright); margin: 0 0 var(--space-4); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); font-size: 0.9375rem; }
.footer__brand p { color: var(--on-dark-soft); font-size: 0.9375rem; max-width: 34ch; }
.footer__bottom {
  margin-top: var(--space-16); padding-top: var(--space-6); border-top: 1px solid rgba(243, 237, 224, 0.16);
  display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between;
  font-size: var(--text-xs); color: var(--on-dark-soft);
}
.footer__collection {
  margin: var(--space-4) 0 0; font-size: var(--text-xs); color: var(--on-dark-soft);
  opacity: 0.8; letter-spacing: 0.01em;
}
.footer__collection em { font-family: var(--font-display); font-style: italic; font-size: 1.05em; }
.footer__domains { font-size: var(--text-xs); color: var(--on-dark-soft); opacity: 0.75; }
.channels { display: flex; flex-wrap: wrap; gap: var(--space-3); font-size: var(--text-xs); color: var(--on-dark-soft); letter-spacing: 0.06em; }
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .btn:hover { transform: none; }
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--forest); color: #fff; padding: 0.75rem 1.25rem; font-size: var(--text-sm);
}
.skip-link:focus { left: var(--space-4); top: var(--space-4); }

/* Utility */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .lede { margin-inline: auto; }
.stack-6 > * + * { margin-top: var(--space-6); }
.stack-4 > * + * { margin-top: var(--space-4); }
.maxw-60 { max-width: 60ch; }

/* Small-screen typographic polish */
@media (max-width: 520px) {
  .eyebrow { letter-spacing: 0.16em; font-size: 0.6875rem; }
  .hero__inner .eyebrow { max-width: 26ch; }
  .legend { gap: var(--space-4); }
}

/* Concierge service checkboxes (inquiry forms) */
.checkrow { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 4px; }
.field .checkrow__item, .checkrow__item {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 400;
  letter-spacing: 0; text-transform: none; color: var(--ink-soft); cursor: pointer;
}
.checkrow__item input { width: 1rem; height: 1rem; accent-color: var(--forest); }

/* ==== Masters map ==== */
.map-wrap {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
}
@media (max-width: 780px) {
  .map-wrap { grid-template-columns: 1fr; }
}
#masters-map {
  min-height: 460px;
  height: 100%;
  width: 100%;
  background: #e6e0d1;
}
@media (max-width: 780px) {
  #masters-map { min-height: 360px; }
}
.map-legend {
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
  background: var(--bg-alt);
}
.map-legend__item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  line-height: 1.4;
}
.map-legend__item strong {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--ink);
  display: block;
  margin-bottom: 0.15rem;
}
.map-dot {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-top: 0.35rem;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}
.map-dot--house { background: var(--forest); }
.map-dot--course { background: var(--brass); }
.map-legend__stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.map-legend__stat:first-of-type { padding-top: 1rem; }
.map-legend__stat strong {
  font-family: var(--font-display, var(--font-body));
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--forest);
  line-height: 1.1;
}

/* Custom Leaflet markers */
.wilk-marker {
  position: relative;
  background: transparent !important;
  border: none !important;
}
.wilk-marker__pin {
  position: absolute;
  left: 8px;
  bottom: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35), 0 0 0 1px rgba(0,0,0,0.15);
}
.wilk-marker__pin::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 10px solid #fff;
  margin-top: -2px;
}
.wilk-marker--house .wilk-marker__pin { background: #1d3328; }
.wilk-marker--course .wilk-marker__pin { background: #9a7842; }
.wilk-marker__label {
  position: absolute;
  left: 32px;
  bottom: 4px;
  background: rgba(255, 253, 248, 0.96);
  color: #23231f;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  letter-spacing: 0.01em;
}
.wilk-marker--course .wilk-marker__label { color: #6b5228; }

/* Dark mode adjustments */
:root[data-theme="dark"] .map-legend { background: var(--bg-alt); }
:root[data-theme="dark"] #masters-map { background: #2a2d24; }

/* Leaflet popup restyle */
.leaflet-popup-content-wrapper {
  border-radius: 4px !important;
  font-family: var(--font-body);
}
.leaflet-popup-content { font-size: 0.9rem; line-height: 1.5; }
