:root{
  --bg:#ffffff;
  --page-bg: none;        /* ADDED: per-page background image */
  --text:#1a1a1a;
  --muted:#5b5b5b;
  --border:#e6e6e6;
  --brand:#2f5d50;      /* EDIT: primary brand color */
  --accent:#8b7a5b;     /* EDIT: accent color */
  --max:1100px;
  --radius:14px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);

  /* UPDATED BACKGROUND HANDLING */
  background-color: var(--bg);
  background-image: var(--page-bg);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;

  line-height:1.55;
}

a{color:inherit;text-decoration:underline;text-decoration-color:rgba(0,0,0,.25)}
a:hover{text-decoration-color:rgba(0,0,0,.6)}

.container{max-width:var(--max);margin:0 auto;padding:0 18px}
.nowrap{white-space:nowrap}
.muted{color:var(--muted)}

.skip{
  position:absolute;left:-999px;top:10px;
  background:#fff;border:1px solid var(--border);
  padding:8px 10px;border-radius:10px;
}
.skip:focus{left:18px;z-index:20}

.header{
  border-bottom:1px solid var(--border);
  background:#fff;
  position:sticky;
  top:0;
  z-index:10
}

.nav{display:flex; align-items:center; gap:14px; padding:14px 0}

.brand{
  font-weight:800; letter-spacing:.3px;
  text-decoration:none;
  padding:6px 10px; border-radius:12px;
  border:1px solid var(--border);
}

.nav__toggle{display:none}

.nav__menu{
  display:flex;
  gap:14px;
  align-items:center;
  flex-wrap:wrap
}

.nav__menu a{
  font-weight:600;
  text-decoration:none;
  padding:8px 10px;
  border-radius:10px
}
.nav__menu a:hover{background:rgba(0,0,0,.04)}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--brand);
  color:#fff;
  text-decoration:none;
  font-weight:700;
  padding:12px 16px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.05);
}
.btn:hover{filter:brightness(.96)}
.btn--small{padding:10px 12px; font-size:14px}

.hero{padding:56px 0 28px}
.hero__grid{
  display:grid;
  grid-template-columns: 1.3fr .7fr;
  gap:22px;
  align-items:start
}

.kicker{
  color:var(--accent);
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-size:12px
}

.h1{font-size:40px; line-height:1.12; margin:.3rem 0 0}
.lede{font-size:18px; margin:14px 0 18px; color:var(--muted)}

.card{
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  background:#fff;
}

.card h2,.card h3{margin:0 0 8px}

.grid3{display:grid; grid-template-columns: repeat(3, 1fr); gap:14px}
.grid2{display:grid; grid-template-columns: repeat(2, 1fr); gap:14px}

.section{padding:22px 0 36px}
.section__title{font-size:24px; margin:0 0 10px}

.badge{
  display:inline-block;
  font-weight:700;
  font-size:12px;
  color:var(--brand);
  border:1px solid rgba(47,93,80,.25);
  padding:6px 10px;
  border-radius:999px
}

.list{margin:0; padding-left:18px}
.hr{height:1px;background:var(--border); border:0; margin:20px 0}

.footer{
  border-top:1px solid var(--border);
  padding:28px 0 18px;
  background:#fff
}

/* Normalize list typography everywhere */
.hero-box .list,
.card .list{
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
}

.footer__grid{
  display:grid;
  grid-template-columns: 1.3fr .7fr .7fr;
  gap:18px
}

.footer__brand{font-weight:900}
.footer__title{font-weight:800; margin-bottom:8px}

.footer__links{list-style:none; padding:0; margin:0}
.footer__links li{margin:6px 0}
.footer__links a{text-decoration:none}
.footer__links a:hover{text-decoration:underline}

.footer__fineprint{
  display:flex;
  justify-content:space-between;
  gap:12px;
  border-top:1px solid var(--border);
  margin-top:18px;
  padding-top:14px;
  font-size:13px;
  flex-wrap:wrap;
}

.table{width:100%; border-collapse:collapse}
.table th,.table td{
  border-bottom:1px solid var(--border);
  padding:10px 8px;
  text-align:left;
  vertical-align:top
}

.table th{
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--muted)
}

@media (max-width: 860px){
  .hero__grid{grid-template-columns:1fr}
  .grid3{grid-template-columns:1fr}
  .grid2{grid-template-columns:1fr}
  .footer__grid{grid-template-columns:1fr}

  .nav__toggle{
    display:inline-flex;
    margin-left:auto;
    border:1px solid var(--border);
    border-radius:12px;
    padding:8px 10px;
    background:#fff;
    font-weight:800;
  }

  .nav__menu{
    display:none;
    width:100%;
    padding:10px 0 2px;
  }

  .nav__menu.is-open{display:flex}
}

/* =========================================================
   THEME: GLASS (applies only when <body class="theme-glass">)
   ========================================================= */

.theme-glass .header,
.theme-glass .section,
.theme-glass .footer,
.theme-glass .footer__fineprint{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Remove horizontal rules/lines that read as “bands” */
.theme-glass hr,
.theme-glass .hr{
  border: 0 !important;
  height: 0 !important;
  margin: 0 !important;
}

/* Footer fineprint divider line */
.theme-glass .footer__fineprint{
  border-top: 0 !important;
}

/* Make nav + footer text readable over the image background */
.theme-glass .header,
.theme-glass .header a,
.theme-glass .nav a,
.theme-glass .brand,
.theme-glass .footer,
.theme-glass .footer a,
.theme-glass .footer__brand,
.theme-glass .footer__title{
  color: #ffffff !important;
}

.theme-glass .muted{
  color: rgba(255,255,255,0.82) !important;
}

/* Universal glass boxes (your “translucent boxes”) */
.theme-glass .hero-box,
.theme-glass .card{
  background: rgba(25, 40, 40, 0.34) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  border-radius: var(--radius) !important;
  box-shadow: none !important;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  text-shadow: 0 1px 2px rgba(0,0,0,0.45);
}

/* Text inside glass boxes */
.theme-glass .hero-box,
.theme-glass .card,
.theme-glass .hero-box h1, .theme-glass .hero-box h2, .theme-glass .hero-box h3,
.theme-glass .card h1, .theme-glass .card h2, .theme-glass .card h3,
.theme-glass .hero-box p, .theme-glass .card p,
.theme-glass .hero-box li, .theme-glass .card li{
  color: rgba(255,255,255,0.92) !important;
}

.theme-glass .hero-box .muted,
.theme-glass .card .muted{
  color: rgba(255,255,255,0.80) !important;
}

.theme-glass .hero-box a,
.theme-glass .card a{
  color: rgba(255,255,255,0.92) !important;
  text-decoration-color: rgba(255,255,255,0.45);
}

.theme-glass .hero-box a:hover,
.theme-glass .card a:hover{
  color: #ffffff !important;
  text-decoration-color: rgba(255,255,255,0.75);
}

/* Mobile: slightly stronger surfaces */
@media (max-width: 640px){
  .theme-glass .hero-box,
  .theme-glass .card{
    background: rgba(25, 40, 40, 0.42) !important;
  }
}

/* =========================================================
   GLASS THEME — MAKE ALL “ON BACKGROUND” TEXT LIGHT
   (Fixes .lede, .kicker, headings, etc.)
   ========================================================= */

.theme-glass{
  color: rgba(255,255,255,0.92) !important;
}

/* Common “dark” typography classes in your base CSS */
.theme-glass .lede,
.theme-glass .kicker,
.theme-glass .section__title,
.theme-glass .h1{
  color: rgba(255,255,255,0.92) !important;
}

/* Any headings/text that are not inside cards */
.theme-glass h1,
.theme-glass h2,
.theme-glass h3,
.theme-glass h4,
.theme-glass p,
.theme-glass li{
  color: rgba(255,255,255,0.92) !important;
}

/* Links outside cards */
.theme-glass a{
  color: rgba(255,255,255,0.92) !important;
  text-decoration-color: rgba(255,255,255,0.45) !important;
}
.theme-glass a:hover{
  color: #ffffff !important;
  text-decoration-color: rgba(255,255,255,0.75) !important;
}

/* Muted text outside cards */
.theme-glass .muted{
  color: rgba(255,255,255,0.75) !important;
}

/* =========================================================
   GLASS THEME — STRONGER TEXT WEIGHT & CONTRAST
   ========================================================= */

/* Base text on image background */
.theme-glass{
  font-weight: 500; /* default body text stronger */
}

/* Headings everywhere */
.theme-glass h1,
.theme-glass h2,
.theme-glass h3,
.theme-glass h4,
.theme-glass .h1,
.theme-glass .section__title{
  font-weight: 700 !important;
  color: rgba(255,255,255,0.97) !important;
}

/* Paragraphs & list items (outside boxes) */
.theme-glass p,
.theme-glass li{
  font-weight: 500 !important;
  color: rgba(255,255,255,0.93) !important;
}

/* Hero lede + explanatory text */
.theme-glass .lede{
  font-weight: 500 !important;
  color: rgba(255,255,255,0.94) !important;
}

/* Kicker text (small caps line) */
.theme-glass .kicker{
  font-weight: 700 !important;
  letter-spacing: 0.09em;
  color: rgba(255,255,255,0.90) !important;
}

/* ===== BOX CONTENT (cards + hero-box) ===== */
.theme-glass .hero-box,
.theme-glass .card{
  font-weight: 500;
}

/* Box headings */
.theme-glass .hero-box h1,
.theme-glass .hero-box h2,
.theme-glass .hero-box h3,
.theme-glass .card h2,
.theme-glass .card h3{
  font-weight: 700 !important;
  color: rgba(255,255,255,0.98) !important;
}

/* Box paragraphs */
.theme-glass .hero-box p,
.theme-glass .card p,
.theme-glass .hero-box li,
.theme-glass .card li{
  font-weight: 500 !important;
  color: rgba(255,255,255,0.94) !important;
}

/* Muted text — still secondary but readable */
.theme-glass .muted{
  font-weight: 400 !important;
  color: rgba(255,255,255,0.82) !important;
}
/* =========================================================
   GLASS THEME — SLIGHTLY HEAVIER (FINE-TUNE)
   ========================================================= */

/* General body text */
.theme-glass{
  font-weight: 550;
}

/* Paragraphs & lists (inside + outside boxes) */
.theme-glass p,
.theme-glass li{
  font-weight: 550 !important;
}

/* Hero lede text */
.theme-glass .lede{
  font-weight: 550 !important;
}

/* Headings — just a touch more authority */
.theme-glass h1,
.theme-glass h2,
.theme-glass h3,
.theme-glass .h1,
.theme-glass .section__title{
  font-weight: 750 !important;
}

/* =========================================================
   GLASS THEME — FOOTER TEXT CONTRAST (NO BAND)
   ========================================================= */

.theme-glass .footer,
.theme-glass .footer__fineprint{
  text-shadow:
    0 1px 2px rgba(0,0,0,0.65),
    0 2px 6px rgba(0,0,0,0.45);
}

/* Slightly strengthen footer text */
.theme-glass .footer,
.theme-glass .footer a,
.theme-glass .footer__brand,
.theme-glass .footer__title{
  color: rgba(255,255,255,0.96) !important;
  font-weight: 550;
}

/* =========================================================
   PAGE MODE: TEXT-ONLY (NO BOX SURFACES)
   ========================================================= */

.theme-glass.text-only .hero-box,
.theme-glass.text-only .card{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Stronger text for readability without boxes */
.theme-glass.text-only{
  font-weight: 600;
}

/* Headings */
.theme-glass.text-only h1,
.theme-glass.text-only h2,
.theme-glass.text-only h3,
.theme-glass.text-only .h1,
.theme-glass.text-only .section__title{
  font-weight: 800 !important;
  color: rgba(255,255,255,0.98) !important;
}

/* Paragraphs & lists */
.theme-glass.text-only p,
.theme-glass.text-only li{
  font-weight: 600 !important;
  color: rgba(255,255,255,0.95) !important;
}

/* Invisible “support” for text — no visible box */
.theme-glass.text-only{
  text-shadow:
    0 1px 2px rgba(0,0,0,0.65),
    0 2px 6px rgba(0,0,0,0.45);
}

/* =========================================================
   TEXT-ONLY MODE — ADD MICRO SURFACE BEHIND SMALL TEXT
   ========================================================= */

/* Make small text slightly bigger on mobile for readability */
@media (max-width: 640px){
  .theme-glass.text-only p,
  .theme-glass.text-only li{
    font-size: 1.05rem !important;
    line-height: 1.65 !important;
  }
}

/* Add a subtle "caption" surface behind paragraphs/lists only */
.theme-glass.text-only p,
.theme-glass.text-only li{
  display: inline;
  background: rgba(0,0,0,0.28);
  padding: 0.12em 0.35em;
  border-radius: 0.4em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* =========================================================
   TEXT-ONLY MODE — HIGHLIGHT STRIP COLOR (ADJUSTABLE)
   ========================================================= */

.theme-glass.text-only{
  --highlight-bg: rgba(198, 168, 92, 0.34); /* ← change THIS only */
}

/* Highlight behind small text */
.theme-glass.text-only p,
.theme-glass.text-only li{
  display: inline;
  background: var(--highlight-bg);
  padding: 0.12em 0.35em;
  border-radius: 0.4em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* =========================================================
   Footer fineprint blocks — translucent like cards above
   ========================================================= */

.footer__fineprint--two{
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* Individual translucent blocks */
.footer-chip{
  background: rgba(25, 40, 40, 0.34);        /* SAME as hero-box/card */
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  box-shadow: none;

  padding: 0.6rem 0.9rem;
  border-radius: 10px;

  color: rgba(255,255,255,0.92);
  font-size: 0.9rem;
  line-height: 1.35;

  text-shadow: 0 1px 2px rgba(0,0,0,0.45);
}

/* Muted variant still readable */
.footer-chip.muted{
  color: rgba(255,255,255,0.82) !important;
}

/* Mobile: stack neatly */
@media (max-width: 640px){
  .footer__fineprint--two{
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Force glass boxes globally (regardless of theme-glass class) */
.hero-box, .card{
  background: rgba(25, 40, 40, 0.34) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  box-shadow: none !important;
}

/* Footer: convert 3-column grid to 2 columns on this layout */
.footer__grid--two{
  display: grid !important;
  grid-template-columns: 1.4fr 0.6fr !important; /* left bigger, right smaller */
  gap: 18px !important;
}

/* Glass background behind the two footer columns */
.footer-col.glass{
  background: rgba(25, 40, 40, 0.34) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: 14px;
  padding: 16px;
  box-shadow: none !important;
}

/* Make footer links readable */
.footer-col.glass a{
  color: rgba(255,255,255,0.92) !important;
  text-decoration-color: rgba(255,255,255,0.45) !important;
}
.footer-col.glass a:hover{
  color: #ffffff !important;
  text-decoration-color: rgba(255,255,255,0.75) !important;
}

/* Mobile: stack into one column */
@media (max-width: 860px){
  .footer__grid--two{
    grid-template-columns: 1fr !important;
  }
}

/* Horizontal footer links */
.footer__links--inline{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 0;
  margin: 10px 0 0;
  list-style: none;
}

.footer__links--inline li{
  margin: 0;
}

.footer__links--inline a{
  white-space: nowrap;
  font-weight: 600;
}

/* FORCE footer quick links horizontal */
.footer__links.footer__links--inline{
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 16px;
  padding: 0;
  margin: 10px 0 0;
  list-style: none;
}

/* Remove vertical spacing inherited from base styles */
.footer__links.footer__links--inline li{
  margin: 0 !important;
}

/* Keep links tidy */
.footer__links.footer__links--inline a{
  white-space: nowrap;
  font-weight: 600;
}

/* =========================================================
   OPTIONAL “SCROLL SHELL” LAYOUT (SAFE)
   Only activates on pages whose <body> includes class="scroll-wrap"
   ========================================================= */

/* Heights used only when scroll-wrap is active */
:root{
  --header-h: 64px;   /* top menu height */
  --footer-h: 54px;   /* bottom contact band height */
}

/* Default site behavior (ALL pages): normal scrolling */
html, body{
  height: auto;
}
body{
  overflow: auto;  /* IMPORTANT: restores normal mobile behavior site-wide */
}

/* Activate the fixed-shell layout ONLY when you choose it */
body.scroll-wrap{
  height: 100%;
  overflow: hidden; /* only this special layout disables body scroll */
}

/* Fixed top menu (only in scroll-wrap mode) */
body.scroll-wrap header.header{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1000;
  padding: 0 !important;
}

/* Fixed bottom contact band (only in scroll-wrap mode) */
body.scroll-wrap .contact-band{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto !important;

  height: var(--footer-h); /* FIX: was var(--band-h) which didn’t exist */
  z-index: 1000;

  display: flex;
  align-items: center;

  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Scrollable middle content area (only in scroll-wrap mode)
   Requires: <main id="main"> ... </main> */
body.scroll-wrap main#main{
  position: fixed;
  top: var(--header-h);
  bottom: var(--footer-h);
  left: 0; right: 0;

  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 1;
  padding: 0.75rem 0;
}

/* Make sure the full footer itself scrolls normally even in scroll-wrap mode */
body.scroll-wrap footer.footer{
  position: static !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;

  height: auto !important;
  overflow: visible !important;
  transform: none !important;
}

/* Mobile comfort (only affects the special scroll-wrap layout) */
@media (max-width: 768px){
  :root{
    --header-h: 72px;
    --footer-h: 68px;
  }
}

/* Mobile: stack cards */
@media (max-width: 768px){
  .grid3,
  .grid--cards{
    grid-template-columns: 1fr !important;
  }

  .container{
    width: 92% !important;
    max-width: 92% !important;
  }
}

/* ===== 4 COLUMN HORSE GRID ===== */

.grid4{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:30px;
}

@media (max-width:900px){
  .grid4{
    grid-template-columns:repeat(2,1fr);
  }
}

@media (max-width:600px){
  .grid4{
    grid-template-columns:1fr;
  }
}

/* ===== HORSE CARD IMAGE STYLE ===== */

.horse-card img{
  width:100%;
  height:260px;
  object-fit:cover;
  border-radius:6px;
  margin-bottom:15px;
}
