/* ==========================================================================
   Jo Davis Racing: design system
   Colours are checked for WCAG 2.2 AA contrast (see README for the pairs).
   ========================================================================== */

:root {
  /* Brand */
  --green-950: #0b2e24;
  --green-900: #0f3b2e;
  --green-800: #174a3b;
  --green-700: #1f5c4a;
  --green-100: #dfe9e4;
  --green-50: #eef4f1;
  --gold-500: #c9a227; /* fills and rules only, never small text on light backgrounds */
  --gold-300: #e2c766; /* text on dark green */
  --cream: #f8f5ee;
  --paper: #ffffff;
  --stone-200: #e6e0d2;
  --stone-300: #d6cdb9;
  --ink: #15201b;
  --ink-soft: #46524c;
  --on-dark: #ffffff;
  --on-dark-soft: #d3ddd8;
  --field-border: #6f7a74;
  --error: #a4262c;
  --success: #1f6b3a;
  --note-bg: #fff6d6;
  --note-ink: #3d3200;
  --note-accent: #7a5c00;

  /* Type */
  --font-display: "Libre Caslon Display", "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --font-serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Shape and space */
  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgba(11, 46, 36, .06), 0 10px 30px rgba(11, 46, 36, .08);
  --shadow-lg: 0 30px 60px rgba(0, 0, 0, .28);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(56px, 8vw, 112px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--green-800); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--green-900); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .plan-featured :focus-visible { outline-color: var(--gold-300); }
::selection { background: var(--gold-300); color: var(--green-950); }
main:focus { outline: none; }

h1, h2, h3, h4 { color: var(--green-950); margin: 0 0 .5em; text-wrap: balance; }
h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.35rem, 5vw, 4.25rem); line-height: 1.06; letter-spacing: -.01em; }
h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.85rem, 3.4vw, 2.85rem); line-height: 1.12; }
h3 { font-family: var(--font-serif); font-weight: 400; font-size: 1.375rem; line-height: 1.3; }
h4 { font-family: var(--font-sans); font-weight: 600; font-size: 1rem; line-height: 1.4; }
p, ul, ol, dl { margin: 0 0 1em; }
strong { font-weight: 600; }

.on-dark { color: var(--on-dark); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--on-dark); }
.on-dark a:not(.btn) { color: var(--on-dark); }

.skip-link {
  position: absolute; left: 12px; top: -200px; z-index: 200;
  background: var(--gold-500); color: var(--green-950);
  padding: 12px 18px; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 820px; }
.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.bg-paper { background: var(--paper); }
.bg-mint { background: var(--green-50); }
.bg-green { background: var(--green-900); }
.bg-deep { background: var(--green-950); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p:last-child { margin-bottom: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split-wide-left { grid-template-columns: 1.15fr .85fr; }
.split-top { align-items: start; }
.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.muted { color: var(--ink-soft); }
.small { font-size: .9375rem; }

@media (max-width: 899px) {
  .split, .split-wide-left { grid-template-columns: 1fr; }
}

/* ---------- Type helpers ---------- */
.eyebrow {
  font: 600 .8125rem/1.3 var(--font-sans);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-700); margin: 0 0 14px;
}
.on-dark .eyebrow { color: var(--gold-300); }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink-soft); max-width: 40em; }
.on-dark .lead { color: var(--on-dark-soft); }
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-top: 1.6em; }
.prose > h2:first-child { margin-top: 0; }
.sticky-summary { position: sticky; top: 104px; }
@media (max-width: 899px) { .sticky-summary { position: static; } }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 11px 22px;
  border-radius: var(--radius-pill); border: 2px solid transparent;
  font: 600 1rem/1.2 var(--font-sans); text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn-sm { min-height: 44px; padding: 9px 18px; font-size: .9375rem; }
.btn-gold { background: var(--gold-500); color: var(--green-950); }
.btn-gold:hover { background: var(--gold-300); }
.btn-green { background: var(--green-900); color: #fff; }
.btn-green:hover { background: var(--green-700); }
.btn-outline { border-color: var(--green-900); color: var(--green-900); background: transparent; }
.btn-outline:hover { background: var(--green-900); color: #fff; }
.btn-outline-light { border-color: rgba(255, 255, 255, .7); color: #fff; background: transparent; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { font-weight: 600; display: inline-flex; align-items: center; gap: .35em; min-height: 44px; }
.text-link svg { width: 18px; height: 18px; transition: transform .2s; }
.text-link:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--green-900); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.logo { display: inline-flex; flex-direction: column; align-items: center; color: #fff; text-decoration: none; line-height: 1; padding: 8px 0; }
.logo-name { font-family: var(--font-serif); font-size: 1.6rem; letter-spacing: .02em; white-space: nowrap; }
.logo-rule { display: block; width: 100%; height: 1.5px; margin: 6px 0 5px; background: var(--gold-500); }
.logo-sub { font: 500 .625rem/1 var(--font-sans); letter-spacing: .52em; padding-left: .52em; }
.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 8px;
  color: #fff; font-weight: 500; font-size: .9688rem; text-decoration: none;
}
.site-nav a:not(.btn):hover { background: rgba(255, 255, 255, .08); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--gold-500); border-radius: 8px 8px 0 0; }
.menu-toggle { display: none; }

@media (max-width: 1059px) {
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
    background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); border-radius: var(--radius-pill);
    font: 600 .9375rem/1 var(--font-sans); cursor: pointer;
  }
  .menu-toggle svg { width: 20px; height: 20px; }
  .menu-toggle .icon-close { display: none; }
  .menu-toggle[aria-expanded="true"] .icon-open { display: none; }
  .menu-toggle[aria-expanded="true"] .icon-close { display: block; }
  .js .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 12px;
    background: var(--green-900); border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 8px var(--gutter) 24px; max-height: calc(100vh - 120px); overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
  }
  .js .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav a:not(.btn) { width: 100%; font-size: 1.125rem; padding: 12px 8px; border-bottom: 1px solid rgba(255, 255, 255, .08); border-radius: 0; }
  .site-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--gold-500); padding-left: 16px; }
  .no-js .site-nav, html:not(.js) .site-nav { flex-wrap: wrap; }
}

/* ---------- Section sub-navigation ---------- */
.subnav { background: var(--paper); border-bottom: 1px solid var(--stone-200); }
.subnav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: thin; }
.subnav a {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 14px; white-space: nowrap;
  color: var(--ink-soft); font-weight: 500; text-decoration: none; border-bottom: 3px solid transparent;
}
.subnav a:hover { color: var(--green-900); }
.subnav a[aria-current="page"] { color: var(--green-950); border-bottom-color: var(--gold-500); font-weight: 600; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0 0 18px; padding: 0; font-size: .9375rem; }
.breadcrumbs li + li::before { content: "/"; margin: 0 10px; opacity: .6; }
.breadcrumbs a { color: inherit; }
.on-dark .breadcrumbs { color: var(--on-dark-soft); }

/* ---------- Heroes ---------- */
.hero { background: var(--green-900); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(1200px 500px at 10% -10%, rgba(226, 199, 102, .12), transparent 60%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(40px, 7vw, 96px); }
.hero h1 { margin-bottom: 20px; }
.hero .actions { margin: 28px 0 32px; }
.proof { display: flex; flex-wrap: wrap; gap: 12px 32px; list-style: none; margin: 0; padding: 20px 0 0; border-top: 1px solid rgba(255, 255, 255, .16); color: var(--on-dark-soft); font-size: .9375rem; }
.proof li { display: flex; flex-direction: column; }
.proof strong { font: 400 1.6rem/1.1 var(--font-display); color: #fff; }
.hero-media { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; max-height: 640px; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.media-caption {
  position: absolute; left: 14px; right: 14px; bottom: 14px; margin: 0;
  background: rgba(11, 46, 36, .9); color: #fff; padding: 10px 14px; border-radius: var(--radius-sm); font-size: .9375rem;
}
@media (max-width: 899px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 4 / 3; }
}

.page-hero { background: var(--green-900); position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 80px); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(900px 400px at 100% 0%, rgba(226, 199, 102, .10), transparent 60%);
}
.page-hero .container { position: relative; }
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { margin-bottom: 0; }
.page-hero-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.page-hero-media { margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-lg); }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) { .page-hero-split { grid-template-columns: 1fr; } }

/* ---------- Facts strip ---------- */
.facts { background: var(--paper); border-bottom: 1px solid var(--stone-200); }
.facts-list { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0 auto; padding-block: 28px; }
.facts-list li { padding: 6px 22px; border-left: 1px solid var(--stone-200); }
.facts-list li:first-child { border-left: 0; padding-left: 0; }
.fact-num { display: block; font: 400 clamp(2rem, 3.4vw, 2.75rem)/1 var(--font-display); color: var(--green-900); }
.fact-label { display: block; margin-top: 8px; color: var(--ink-soft); font-size: .9375rem; line-height: 1.4; }
@media (max-width: 799px) {
  .facts-list { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .facts-list li { padding: 4px 0 4px 16px; }
  .facts-list li:nth-child(odd) { border-left: 0; padding-left: 0; }
}

/* ---------- Pillars ---------- */
.pillars { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
.pillars li { background: var(--paper); border: 1px solid var(--stone-200); border-radius: var(--radius); padding: 24px; }
.pillars h3 { margin-bottom: 6px; }
.pillars p { margin: 0; color: var(--ink-soft); }

/* ---------- Photo band ---------- */
.photo-band { position: relative; margin: clamp(32px, 5vw, 56px) 0 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21 / 8; }
.photo-band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
@media (max-width: 700px) { .photo-band { aspect-ratio: 4 / 3; } }

/* ---------- Cards (shared) ---------- */
.card { background: var(--paper); border: 1px solid var(--stone-200); border-radius: var(--radius); }
.card-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1099px) { .card-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 899px) { .card-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; } }

/* Plans */
.plan { display: flex; flex-direction: column; gap: 14px; padding: 28px 24px; }
.plan h3 { margin: 0; }
.plan-tag { align-self: flex-start; font: 600 .75rem/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; background: var(--green-50); color: var(--green-800); padding: 7px 10px; border-radius: var(--radius-pill); }
.price { margin: 0; font: 400 2.25rem/1 var(--font-display); color: var(--green-900); }
.price small { font: 500 .9375rem/1 var(--font-sans); color: var(--ink-soft); }
.tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.tick-list li { position: relative; padding-left: 28px; }
.tick-list li::before {
  content: ""; position: absolute; left: 2px; top: .42em; width: 13px; height: 7px;
  border-left: 2px solid var(--green-700); border-bottom: 2px solid var(--green-700); transform: rotate(-45deg);
}
.plan .btn { margin-top: auto; }
.plan-featured { background: var(--green-900); border-color: var(--green-900); color: #fff; }
.plan-featured h3, .plan-featured .price { color: #fff; }
.plan-featured .price small, .plan-featured p { color: var(--on-dark-soft); }
.plan-featured .plan-tag { background: var(--gold-300); color: var(--green-950); }
.plan-featured .tick-list li::before { border-color: var(--gold-300); }

/* Horse cards */
.horse-card { display: flex; flex-direction: column; overflow: hidden; position: relative; transition: box-shadow .2s, transform .2s; }
.horse-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.horse-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.horse-card-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 18px 20px 20px; }
.horse-card h3 { margin: 0; font-size: 1.3rem; }
.horse-card h3 a { color: inherit; text-decoration: none; }
.horse-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.horse-card h3 a:focus-visible { outline: none; }
.horse-card:has(h3 a:focus-visible) { outline: 3px solid var(--green-900); outline-offset: 3px; }
.aka { font-family: var(--font-serif); font-style: italic; color: var(--ink-soft); }
.horse-meta { margin: 0; color: var(--ink-soft); font-size: .9375rem; }
.horse-card-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--stone-200); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: .9375rem; }
.badge { display: inline-flex; align-items: center; gap: 6px; font: 600 .8125rem/1 var(--font-sans); padding: 7px 10px; border-radius: var(--radius-pill); background: var(--green-50); color: var(--green-800); }
.badge-gold { background: var(--gold-300); color: var(--green-950); }
.badge-muted { background: #efece4; color: var(--ink-soft); }

/* News cards */
.news-card { display: flex; flex-direction: column; overflow: hidden; position: relative; }
.news-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.news-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.news-card h3 { margin: 0; font-size: 1.25rem; }
.news-card h3 a { color: inherit; text-decoration: none; }
.news-card h3 a::after { content: ""; position: absolute; inset: 0; }
.news-card:has(h3 a:focus-visible) { outline: 3px solid var(--green-900); outline-offset: 3px; }
.news-card h3 a:focus-visible { outline: none; }
.news-card p { margin: 0; color: var(--ink-soft); }
.news-card:hover { box-shadow: var(--shadow); }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  border: 1.5px solid var(--stone-300); border-radius: var(--radius-pill); background: var(--paper);
  font: 500 .9375rem/1 var(--font-sans); color: var(--ink); cursor: pointer;
}
.chip:hover { border-color: var(--green-700); }
.chip[aria-pressed="true"] { background: var(--green-900); border-color: var(--green-900); color: #fff; }
.chip .count { font-size: .8125rem; opacity: .8; }
.results-count { margin: 0 0 16px; color: var(--ink-soft); }

/* ---------- Facilities ---------- */
.facility-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; list-style: none; margin: 24px 0 32px; padding: 0; }
.facility-list li { display: flex; gap: 12px; align-items: flex-start; }
.facility-list svg { flex: none; width: 22px; height: 22px; margin-top: 3px; color: var(--green-700); }
.on-dark .facility-list li { color: var(--on-dark-soft); }
.on-dark .facility-list svg { color: var(--gold-300); }
@media (max-width: 560px) { .facility-list { grid-template-columns: 1fr; } }

.facility-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.facility-card { padding: 24px; }
.facility-card svg { width: 30px; height: 30px; color: var(--green-700); margin-bottom: 14px; }
.facility-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.facility-card p { margin: 0; color: var(--ink-soft); font-size: .9688rem; }
@media (max-width: 1000px) { .facility-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .facility-cards { grid-template-columns: 1fr; } }

.rounded-media { margin: 0; border-radius: var(--radius-lg); overflow: hidden; }
.rounded-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.rounded-media figcaption { font-size: .9375rem; color: var(--ink-soft); padding-top: 10px; }
.on-dark .rounded-media figcaption { color: var(--on-dark-soft); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; padding: 24px; }
.steps h3 { font-size: 1.2rem; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ink-soft); font-size: .9688rem; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Topic chips ---------- */
.topics { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 24px; padding: 0; }
.topics li { background: var(--green-50); color: var(--green-800); border-radius: var(--radius-pill); padding: 7px 14px; font-size: .9375rem; }

/* ---------- Price cards ---------- */
.price-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 24px; }
.price-card { padding: 20px; }
.price-card h3 { font: 600 1rem/1.3 var(--font-sans); margin: 0 0 8px; color: var(--ink); }
.price-card .price { font-size: 2.25rem; }
.price-card p { margin: 8px 0 0; font-size: .9375rem; color: var(--ink-soft); }
@media (max-width: 480px) { .price-cards { grid-template-columns: 1fr; } }

/* ---------- Profile ---------- */
.profile-hero { padding-block: clamp(32px, 5vw, 64px); }
.profile-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.profile-media { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.profile-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.profile-name { margin-bottom: 6px; }
.profile-aka { font: italic 400 1.3rem/1.3 var(--font-serif); color: var(--ink-soft); margin: 0 0 16px; }
.facts-dl { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 20px 0 24px; border-top: 1px solid var(--stone-200); }
.facts-dl dt, .facts-dl dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--stone-200); }
.facts-dl dt { font-weight: 600; padding-right: 24px; color: var(--ink); }
.facts-dl dd { color: var(--ink-soft); }
@media (max-width: 899px) { .profile-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .facts-dl { grid-template-columns: 1fr; } .facts-dl dt { border-bottom: 0; padding-bottom: 0; } }

.callout { padding: 26px; border-radius: var(--radius); background: var(--green-50); border: 1px solid var(--green-100); }
.callout h2, .callout h3 { margin-top: 0; }
.callout-dark { background: var(--green-900); border-color: var(--green-900); }
.offer-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.offer-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 12px 14px; background: var(--paper); border: 1px solid var(--stone-200); border-radius: var(--radius-sm); }
.offer-list strong { color: var(--green-950); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--stone-200); border-radius: var(--radius); background: var(--paper); }
.data-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.data-table caption { text-align: left; padding: 18px 20px 6px; font: 400 1.3rem/1.3 var(--font-serif); color: var(--green-950); }
.data-table th, .data-table td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--stone-200); vertical-align: middle; }
.data-table thead th { font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); font-weight: 600; }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table td.num, .data-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table, .data-table tbody, .data-table tr, .data-table td, .data-table th { display: block; width: 100%; }
  .data-table tr { padding: 12px 20px; border-bottom: 1px solid var(--stone-200); }
  .data-table tbody tr:last-child { border-bottom: 0; }
  .data-table th[scope="row"], .data-table td { padding: 4px 0; border: 0; text-align: left; }
  .data-table td.num { text-align: left; }
  .data-table td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--ink); }
}

/* ---------- Accordions ---------- */
.faq-group { margin-bottom: 48px; }
.faq { border-bottom: 1px solid var(--stone-300); }
.faq:first-of-type { border-top: 1px solid var(--stone-300); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; list-style: none;
  min-height: 56px; padding: 14px 0; font: 600 1.0625rem/1.4 var(--font-sans); color: var(--green-950);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-right: 6px;
  border-right: 2px solid var(--green-800); border-bottom: 2px solid var(--green-800); transform: rotate(45deg) translateY(-3px); transition: transform .2s;
}
.faq[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq .faq-answer { padding: 0 0 18px; max-width: 70ch; color: var(--ink-soft); }
.faq .faq-answer p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.form-card { padding: clamp(22px, 3vw, 32px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field legend, .label { font-weight: 600; color: var(--ink); }
.req { color: var(--error); font-weight: 600; }
.hint { font-size: .9063rem; color: var(--ink-soft); margin: 0; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="date"], input[type="number"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font: 400 1rem/1.4 var(--font-sans); color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--field-border); border-radius: var(--radius-sm);
}
textarea { min-height: 130px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--green-900); outline-offset: 1px; border-color: var(--green-900); }
[aria-invalid="true"] { border-color: var(--error) !important; box-shadow: 0 0 0 1px var(--error); }
.error-msg { display: none; color: var(--error); font-size: .9375rem; font-weight: 500; margin: 0; }
.error-msg.is-visible { display: flex; gap: 6px; align-items: center; }
.error-msg::before { content: "!"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--error); color: #fff; font-size: .75rem; font-weight: 700; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 10px; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--green-900); }
.check label { font-weight: 400; }
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .radio-cards { grid-template-columns: 1fr; } }
.radio-card { position: relative; }
.radio-card input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.radio-card label { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 18px 18px 18px 52px; border: 1.5px solid var(--stone-300); border-radius: var(--radius); background: var(--paper); cursor: pointer; font-weight: 400; }
.radio-card label::before { content: ""; position: absolute; left: 18px; top: 20px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--field-border); background: var(--paper); }
.radio-card input:checked + label { border-color: var(--green-900); box-shadow: 0 0 0 1px var(--green-900); background: var(--green-50); }
.radio-card input:checked + label::before { border-color: var(--green-900); background: radial-gradient(circle, var(--green-900) 45%, var(--paper) 50%); }
.radio-card input:focus-visible + label { outline: 3px solid var(--green-900); outline-offset: 3px; }
.radio-card .rc-title { font-weight: 600; color: var(--green-950); }
.radio-card .rc-price { font: 400 1.5rem/1.1 var(--font-display); color: var(--green-900); }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.radio-row .check { align-items: center; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 8px; }
.form-status { margin: 0; color: var(--error); font-weight: 600; }
.form-success { padding: 24px; border-radius: var(--radius); background: var(--green-50); border: 1px solid var(--green-100); }
.form-success h3 { margin-top: 0; }
.form-inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.form-inline .field { flex: 1 1 240px; }

/* ---------- Social ---------- */
.social-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.social-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 18px;
  background: var(--paper); border: 1px solid var(--stone-200); border-radius: var(--radius-pill);
  color: var(--ink); font-weight: 600; text-decoration: none;
}
.social-btn:hover { border-color: var(--green-700); }
.social-btn svg { width: 20px; height: 20px; color: var(--green-800); }
.social-btn .count { font-weight: 500; color: var(--ink-soft); }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--green-900); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { margin: 0 0 8px; color: #fff; }
.cta-band p { margin: 0; color: var(--on-dark-soft); max-width: 52ch; }

/* ---------- Team ---------- */
.team-card { overflow: hidden; }
.team-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.team-card .team-body { padding: 20px; }
.team-card h3 { margin: 0 0 4px; }
.team-role { margin: 0 0 10px; font-weight: 600; color: var(--green-700); font-size: .9375rem; }
.team-card p:last-child { margin-bottom: 0; color: var(--ink-soft); }
.monogram { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--green-900); color: var(--gold-300); font: 400 3.5rem/1 var(--font-display); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); padding-block: clamp(48px, 7vw, 80px) 28px; color: var(--on-dark-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer .logo { align-items: flex-start; padding: 0; margin-bottom: 16px; }
.site-footer .logo .logo-rule { width: 146px; }
.site-footer .logo .logo-sub { padding-left: 0; }
.site-footer p { margin: 0 0 1em; }
.site-footer address { font-style: normal; margin-bottom: 1em; line-height: 1.6; }
.footer-title { font: 600 .8125rem/1.3 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300) !important; margin: 0 0 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-contact a { display: inline-flex; align-items: center; min-height: 36px; }
.social-list { display: flex; gap: 8px; list-style: none; margin: 18px 0 0; padding: 0; }
.social-list a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); }
.social-list a:hover { background: rgba(255, 255, 255, .1); }
.social-list svg { width: 20px; height: 20px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .9375rem; }
.footer-bottom p { margin: 0; }
.legal-links { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0; padding: 0; }
.legal-links a { display: inline-flex; align-items: center; min-height: 36px; color: #fff; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Misc ---------- */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.results-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; }
.todo { padding: 16px 18px; margin-bottom: 24px; border: 2px dashed var(--note-accent); border-radius: var(--radius-sm); background: var(--note-bg); color: var(--note-ink); }
.todo p:last-child, .todo ul:last-child { margin-bottom: 0; }
.h3-size { font-family: var(--font-serif); font-weight: 400; font-size: 1.5rem; line-height: 1.3; }
.h4-size { font-family: var(--font-sans); font-weight: 600; font-size: 1.0625rem; line-height: 1.4; }
.rounded-media.wide img { aspect-ratio: 16 / 9; }
html:not(.js) .menu-toggle { display: none; }
html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 8px; }
.divider { height: 1px; background: var(--stone-200); border: 0; margin: 40px 0; }
.external-icon { width: 14px; height: 14px; display: inline-block; vertical-align: -1px; margin-left: 4px; }
.list-plain { list-style: none; padding: 0; margin: 0; }
.kicker-list { display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; }
.kicker-list li { padding: 16px 18px; background: var(--paper); border: 1px solid var(--stone-200); border-radius: var(--radius-sm); }
.kicker-list strong { display: block; color: var(--green-950); }
.notice { padding: 16px 18px; border-left: 4px solid var(--gold-500); background: var(--paper); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .horse-card:hover { transform: none; }
}

@media print {
  .site-header, .site-footer, .subnav { display: none !important; }
  body { background: #fff; }
}
