/* ==========================================================================
   Tullymurry Equestrian Centre — site styles
   Brand colours are taken from the logo: black + horseshoe gold.
   ========================================================================== */

:root {
  --black: #0b0b0b;
  --ink: #141414;
  --charcoal: #1d1d1d;
  --gold: #f8b020;
  --gold-deep: #d9940c;
  --gold-soft: #fbd27a;
  --cream: #f7f2e8;
  --paper: #fffdf8;
  --stone: #e9e1d1;
  --text: #2a2620;
  --muted: #6e665a;
  --white: #ffffff;

  --font-display: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --font-body: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --header-h: 84px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
h4 { font-size: 1.25rem; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { width: min(820px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--black); padding: 10px 16px; z-index: 999; }
.skip:focus { left: 10px; top: 10px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}
.dark .eyebrow { color: var(--gold); }
.lead { font-size: 1.15rem; color: var(--muted); }
.dark .lead { color: #cfc7b8; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--font-body);
  font-size: .82rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none;
  padding: 1.05em 2em;
  border: 1px solid var(--gold);
  background: var(--gold); color: var(--black);
  border-radius: var(--radius);
  transition: background .25s, color .25s, transform .25s;
  cursor: pointer;
}
.btn:hover { background: var(--gold-soft); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--gold); }
.btn.ghost:hover { background: var(--gold); color: var(--black); }
.btn.dark-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.dark-ghost:hover { background: var(--ink); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 11, 11, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(248, 176, 32, .25);
}
.topbar {
  background: var(--black);
  color: #b9b1a3;
  font-size: .78rem;
  letter-spacing: .08em;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; }
.topbar a { color: var(--gold); text-decoration: none; }
.topbar span + span::before { content: "·"; margin: 0 .7em; color: #555; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 58px; width: auto; }
.footer-logo img { height: auto; }

.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav li { position: relative; }
.main-nav a {
  display: block;
  color: #eee6d6;
  text-decoration: none;
  font-size: .8rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  padding: 12px 12px;
  white-space: nowrap;
  transition: color .2s;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--gold); }
.main-nav .has-sub > a::after {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}
.sub {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  list-style: none; margin: 0; padding: 10px 0;
  background: var(--ink);
  border-top: 2px solid var(--gold);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.has-sub:hover > .sub, .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { text-transform: none; letter-spacing: .04em; font-size: .92rem; padding: 9px 22px; color: #d8d0c0; }
.nav-cta { margin-left: 10px; }
.nav-cta a.btn { padding: .85em 1.4em; color: var(--black); }
.nav-cta a.btn:hover { color: var(--black); }

.menu-toggle {
  display: none;
  background: none; border: 0; padding: 10px; cursor: pointer; color: var(--gold);
}
.menu-toggle span { display: block; width: 26px; height: 2px; background: currentColor; margin: 6px 0; transition: transform .25s, opacity .25s; }
.nav-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1180px) {
  .topbar .hide-sm { display: none; }
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed; inset: calc(var(--header-h) + 33px) 0 0 0;
    background: var(--black);
    overflow-y: auto;
    padding: 20px var(--gutter) 60px;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .3s ease, visibility .3s;
  }
  .nav-open .main-nav { transform: none; visibility: visible; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid rgba(255,255,255,.08); }
  .main-nav a { font-size: .95rem; padding: 16px 4px; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 12px 12px; min-width: 0; }
  .sub a { padding: 8px 4px; font-size: 1rem; white-space: normal; }
  .main-nav .has-sub > a::after { display: none; }
  .nav-cta { margin: 24px 0 0; border: 0 !important; }
  .nav-cta a.btn { width: 100%; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 560px) {
  .brand img { height: 46px; }
  :root { --header-h: 72px; }
  .topbar .wrap { justify-content: center; }
}

/* ---------- Photo slots ----------
   Each .photo has a gradient fallback. Drop a real image into
   assets/img/photos/ with the filename used in the HTML and it
   appears automatically. */
.photo {
  position: relative;
  background-color: var(--charcoal);
  background-image:
    var(--img, none),
    radial-gradient(120% 90% at 80% 10%, rgba(248,176,32,.22), transparent 55%),
    linear-gradient(160deg, #2a241a 0%, #121212 70%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.photo.placeholder::after {
  content: "";
  position: absolute; inset: 0;
  background: url("../assets/img/logo-sm.png") center / 46% auto no-repeat;
  opacity: .08;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h) - 33px);
  min-height: calc(100svh - var(--header-h) - 33px);
  display: grid; place-items: center;
  text-align: center;
  color: var(--white);
  isolation: isolate;
}
.hero .photo { position: absolute; inset: 0; z-index: -2; }
.hero .photo.placeholder::after { display: none; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.55) 60%, rgba(11,11,11,.95) 100%);
}
.hero-inner { padding: 60px var(--gutter) 120px; max-width: 900px; }
.hero-logo { width: min(620px, 92vw); height: auto; margin: 0 auto 26px; filter: drop-shadow(0 10px 30px rgba(0,0,0,.6)); }
.hero p.tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  color: #f1e8d6;
  margin-bottom: 1.6em;
}
.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold);
  text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-cue::after {
  content: ""; width: 1px; height: 44px; background: linear-gradient(var(--gold), transparent);
  animation: cue 2s ease-in-out infinite;
}
@keyframes cue { 0%,100% { transform: scaleY(.4); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } }

/* Inner page hero */
.page-hero {
  position: relative; isolation: isolate;
  color: var(--white);
  padding: clamp(46px, 6vw, 76px) 0 clamp(40px, 5vw, 64px);
  text-align: center;
}
.page-hero .photo { position: absolute; inset: 0; z-index: -2; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.75));
}
.page-hero h1 { color: var(--white); margin-bottom: .25em; }
.page-hero p { color: #e8dfcd; font-size: 1.15rem; max-width: 640px; margin: 0 auto; }
.crumbs { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.crumbs a { color: var(--gold); text-decoration: none; }

/* ---------- Sections ---------- */
.section { padding: clamp(70px, 10vw, 120px) 0; }
.section.tight { padding: clamp(50px, 7vw, 80px) 0; }
.section.cream { background: var(--cream); }
.section.dark, .dark { background: var(--black); color: #ddd5c6; }
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--white); }
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }

.horseshoe-rule {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin: 0 auto 22px; color: var(--gold);
}
.horseshoe-rule::before, .horseshoe-rule::after { content: ""; height: 1px; width: 60px; background: currentColor; opacity: .6; }
.horseshoe-rule svg { width: 30px; height: 30px; }

/* Welcome */
.welcome h2 span { display: block; color: var(--gold-deep); font-style: italic; }

/* News — two-up like Wellington's "Latest News" */
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 36px); }
.news-card { background: var(--white); box-shadow: 0 2px 0 var(--stone); display: flex; flex-direction: column; }
.news-card .photo { aspect-ratio: 16 / 10; }
.news-card .body { padding: clamp(24px, 3vw, 38px); display: flex; flex-direction: column; flex: 1; }
.news-card .date { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 10px; }
.news-card .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 760px) { .news-grid { grid-template-columns: 1fr; } }

/* Quick booking strip */
.cta-strip { background: var(--gold); color: var(--black); }
.cta-strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px 0; flex-wrap: wrap; }
.cta-strip h3 { margin: 0; color: var(--black); }
.cta-strip p { margin: 4px 0 0; }
.cta-strip .btn { background: var(--black); color: var(--gold); border-color: var(--black); }
.cta-strip .btn:hover { background: #222; }
.cta-strip .btn.ghost { background: transparent; color: var(--black); }
.cta-strip .btn.ghost:hover { background: var(--black); color: var(--gold); }

/* Explore tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tile {
  position: relative; display: block; aspect-ratio: 4 / 3.4;
  text-decoration: none; color: var(--white);
  overflow: hidden;
}
.tile .photo { position: absolute; inset: 0; transition: transform .7s ease; }
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.85));
  transition: background .4s;
}
.tile:hover .photo { transform: scale(1.06); }
.tile:hover::before { background: linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.9)); }
.tile .tile-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 28px; }
.tile h3 { color: var(--white); margin: 0 0 6px; }
.tile p { margin: 0; color: #e0d7c5; font-size: .95rem; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s, opacity .4s; }
.tile:hover p, .tile:focus p { max-height: 120px; opacity: 1; }
.tile .more { display: inline-block; margin-top: 10px; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
@media (hover: none) { .tile p { max-height: none; opacity: 1; } }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } .tile { aspect-ratio: 4 / 3; } }

/* Stats band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(248,176,32,.2); border: 1px solid rgba(248,176,32,.2); }
.stat { background: var(--black); padding: 36px 20px; text-align: center; }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1; color: var(--gold); font-weight: 600; }
.stat span { display: block; margin-top: 10px; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: #cfc7b8; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Split / feature rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.split + .split { margin-top: clamp(60px, 8vw, 100px); }
.split.flip > :first-child { order: 2; }
.split .photo { aspect-ratio: 5 / 4; box-shadow: var(--shadow); }
.split .photo.frame { outline: 1px solid var(--gold); outline-offset: 14px; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
}

.ticks { list-style: none; padding: 0; margin: 0 0 1.4em; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: .55em; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 14px; height: 8px;
  border-left: 2px solid var(--gold-deep); border-bottom: 2px solid var(--gold-deep);
  transform: rotate(-45deg);
}
.dark .ticks li::before { border-color: var(--gold); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card {
  background: var(--white);
  border-top: 3px solid var(--gold);
  padding: 32px 28px;
  box-shadow: 0 1px 0 var(--stone), 0 14px 30px -24px rgba(0,0,0,.4);
  display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .3em; }
.card .meta { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 14px; }
.card p:last-child { margin-bottom: 0; }
.card .price { font-family: var(--font-display); font-size: 2.3rem; color: var(--ink); line-height: 1; margin: 6px 0 14px; }
.card .price small { font-family: var(--font-body); font-size: .85rem; color: var(--muted); }
.card .btn { margin-top: auto; align-self: flex-start; }
.dark .card { background: var(--ink); box-shadow: none; }
.dark .card .price { color: var(--white); }

.note { font-size: .9rem; color: var(--muted); font-style: italic; }
.dark .note { color: #9f978a; }

/* Price table */
.price-table { width: 100%; border-collapse: collapse; background: var(--white); }
.price-table th, .price-table td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--stone); }
.price-table th { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: var(--cream); }
.price-table td:last-child { font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); white-space: nowrap; }

/* Events list */
.event-list { display: grid; gap: 16px; }
.event {
  display: grid; grid-template-columns: 110px 1fr auto; gap: 26px; align-items: center;
  background: var(--white); padding: 22px 26px; border-left: 3px solid var(--gold);
}
.event .when { text-align: center; font-family: var(--font-display); line-height: 1; color: var(--ink); }
.event .when b { display: block; font-size: 2.6rem; font-weight: 600; }
.event .when small { font-family: var(--font-body); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); }
.event h3 { margin: 0 0 4px; font-size: 1.5rem; }
.event p { margin: 0; color: var(--muted); }
@media (max-width: 680px) { .event { grid-template-columns: 1fr; gap: 10px; } .event .when { text-align: left; } .event .when b { display: inline; font-size: 1.8rem; margin-right: 8px; } }

/* Accordion */
details.acc { background: var(--white); border-bottom: 1px solid var(--stone); }
details.acc summary {
  cursor: pointer; list-style: none;
  padding: 20px 50px 20px 24px; position: relative;
  font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); font-weight: 600;
}
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); color: var(--gold-deep); font-family: var(--font-body); font-size: 1.6rem; font-weight: 300; }
details.acc[open] summary::after { content: "–"; }
details.acc .acc-body { padding: 0 24px 22px; }

/* Gallery */
.gallery-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.gallery-filters button {
  font: inherit; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  background: transparent; border: 1px solid var(--stone); color: var(--text);
  padding: .7em 1.4em; cursor: pointer; border-radius: 40px;
}
.gallery-filters button.active, .gallery-filters button:hover { background: var(--ink); color: var(--gold); border-color: var(--ink); }
.gallery { columns: 3 280px; column-gap: 12px; }
.gallery figure { margin: 0 0 12px; break-inside: avoid; position: relative; cursor: zoom-in; overflow: hidden; }
.gallery figure img { width: 100%; height: auto; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figure.empty { cursor: default; }
.gallery figure.empty .photo { aspect-ratio: var(--ar, 4/3); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 30px 16px 12px; color: var(--white); font-size: .9rem;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
}
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.94);
  display: none; align-items: center; justify-content: center; padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 86vh; max-width: 92vw; width: auto; box-shadow: var(--shadow); }
.lightbox button { position: absolute; background: none; border: 0; color: var(--gold); font-size: 2.4rem; cursor: pointer; padding: 10px 18px; line-height: 1; }
.lightbox .close { top: 14px; right: 14px; }
.lightbox .prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 6px; top: 50%; transform: translateY(-50%); }

/* Affiliations */
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 18px; }
.badge {
  border: 1px solid var(--stone); background: var(--white);
  padding: 16px 26px; font-family: var(--font-display); font-size: 1.25rem; color: var(--ink);
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(30px, 5vw, 60px); }
.contact-block { margin-bottom: 30px; }
.contact-block h4 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 8px; font-weight: 500; }
.contact-block p { margin: 0; font-size: 1.1rem; }
.contact-block a { text-decoration: none; border-bottom: 1px solid var(--gold); }
.map { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(.3) contrast(1.05); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #b9b1a3; font-size: .95rem; }
.footer-top { padding: 80px 0 50px; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo img { width: 260px; margin-bottom: 18px; }
.site-footer h4 { font-family: var(--font-body); font-size: .76rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; font-weight: 500; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #ddd5c6; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer address { font-style: normal; line-height: 1.8; }
.socials { display: flex; gap: 12px; margin-top: 18px; }
.socials a { width: 42px; height: 42px; border: 1px solid rgba(248,176,32,.5); border-radius: 50%; display: grid; place-items: center; color: var(--gold); }
.socials a:hover { background: var(--gold); color: var(--black); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; font-size: .8rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .scroll-cue::after { animation: none; }
}

/* ---------- Topbar BHS flag ---------- */
.topbar .bhs-flag { color: var(--gold); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; }
@media (max-width: 1180px) { .topbar .bhs-flag { display: none; } }

/* ---------- Official logo badges (BHS / Pony Club) ---------- */
.logo-badge {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--white);
  border: 1px solid var(--stone);
  padding: 14px 22px 14px 16px;
  text-align: left; vertical-align: middle;
  min-height: 74px;
}
.logo-badge::before {
  content: ""; flex: 0 0 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--gold-deep);
  background: radial-gradient(circle, var(--gold) 0 4px, transparent 5px);
}
.logo-badge .lb-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-badge small { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.logo-badge b { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--ink); }
.logo-badge.has-logo { padding: 10px 16px; }
.logo-badge.has-logo::before, .logo-badge.has-logo .lb-text { display: none; }
.logo-badge img { height: 64px; width: auto; }
.logo-badge.on-dark { background: rgba(255,255,255,.04); border-color: rgba(248,176,32,.35); }
.logo-badge.on-dark small { color: #a59d8f; }
.logo-badge.on-dark b { color: var(--white); }
.logo-badge.on-dark.has-logo { background: var(--white); }
.badge-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 26px; }
.badges { align-items: center; }
.club-logo-panel { display: grid; place-items: center; background: var(--cream); aspect-ratio: 5 / 4; outline: 1px solid var(--gold); outline-offset: 14px; }
.club-logo-panel .logo-badge { transform: scale(1.25); }
.club-logo-panel .logo-badge.has-logo { transform: none; background: transparent; border: 0; }
.club-logo-panel .logo-badge.has-logo img { height: 180px; }

/* ---------- Forms ---------- */
.form-split { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.form-split .logo-badge { margin-top: 8px; }
@media (max-width: 900px) { .form-split { grid-template-columns: 1fr; } }
.form-card {
  background: var(--white);
  border-top: 3px solid var(--gold);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 1px 0 var(--stone), 0 30px 60px -40px rgba(0,0,0,.5);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.tm-form label, .tm-form legend {
  display: block; margin-bottom: 8px;
  font-size: .74rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.tm-form legend span, .tm-form label span[aria-hidden] { color: var(--gold-deep); }
.tm-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.tm-form input:not([type=radio]):not([type=checkbox]), .tm-form select, .tm-form textarea {
  width: 100%;
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--paper);
  border: 1px solid #d9cfbd; border-radius: var(--radius);
  padding: 13px 14px;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
}
.tm-form select {
  background-image: linear-gradient(45deg, transparent 50%, var(--gold-deep) 50%), linear-gradient(-45deg, transparent 50%, var(--gold-deep) 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%;
  background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px;
}
.tm-form textarea { resize: vertical; min-height: 120px; }
.tm-form input:focus, .tm-form select:focus, .tm-form textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(248,176,32,.22);
}
.choice { display: flex; flex-wrap: wrap; gap: 10px; }
.choice label { margin: 0; cursor: pointer; text-transform: none; letter-spacing: .02em; font-size: .95rem; color: var(--text); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-block; padding: 10px 18px;
  border: 1px solid #d9cfbd; border-radius: 40px; background: var(--paper);
  transition: background .2s, border-color .2s, color .2s;
}
.choice label:hover span { border-color: var(--gold); }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--gold); }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(248,176,32,.35); }
.tm-form .invalid input, .tm-form .invalid select, .tm-form .invalid textarea, .tm-form fieldset.invalid .choice span { border-color: #c0392b; }
.tm-form .invalid > label, .tm-form fieldset.invalid legend { color: #c0392b; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 26px; }
.form-msg { margin: 0; font-size: .95rem; flex: 1 1 220px; }
.form-msg.ok { color: #2e7d4f; }
.form-msg.error { color: #c0392b; }
.tm-form button[disabled] { opacity: .6; cursor: wait; }

/* Dark variant (home contact form) */
.tm-form.on-dark label, .tm-form.on-dark legend { color: #b9b1a3; }
.tm-form.on-dark input:not([type=radio]):not([type=checkbox]), .tm-form.on-dark select, .tm-form.on-dark textarea {
  background-color: rgba(255,255,255,.05); border-color: rgba(248,176,32,.3); color: var(--white);
}
.tm-form.on-dark select option { color: var(--text); }
.tm-form.on-dark .form-msg.ok { color: #8fd3a8; }
.tm-form.on-dark .form-msg.error { color: #ff9a8c; }
.contact-mini { list-style: none; padding: 0; margin: 30px 0 0; }
.contact-mini li { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.1); color: #ddd5c6; }
.contact-mini span { display: block; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }
.contact-mini a { color: var(--white); text-decoration: none; }
.contact-mini a:hover { color: var(--gold); }

/* BHS badge uses the real logo; Pony Club badge stays text */
.logo-badge.bhs { padding: 10px 22px 10px 12px; gap: 16px; }
.logo-badge.bhs::before { display: none; }
.logo-badge.bhs img { height: 70px; width: auto; }
.logo-badge.bhs .lb-text { border-left: 1px solid var(--stone); padding-left: 16px; }
.logo-badge.bhs small { color: #8b1538; }
.logo-badge.bhs.on-dark { background: var(--white); border-color: var(--white); }
.logo-badge.bhs.on-dark small { color: #8b1538; }
.logo-badge.bhs.on-dark b { color: var(--ink); }
.club-logo-panel .logo-badge { transform: scale(1.35); }
.logo-badge.pc small { color: #1f3a8a; }
.club-logo-panel { background: var(--white); }
.pc-logo-large { width: min(62%, 300px); height: auto; }
.site-footer .logo-badge b { font-size: 1.1rem; }
.site-footer .logo-badge.bhs img { height: 56px; }

/* Events: weekday line */
.event .event-day { display: block; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 2px; }

/* Facebook section */
.fb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 980px; margin: 0 auto; }
@media (max-width: 760px) { .fb-grid { grid-template-columns: 1fr; } }
.fb-card {
  display: flex; align-items: center; gap: 20px;
  background: var(--white); border: 1px solid var(--stone); border-left: 3px solid var(--gold);
  padding: 26px 26px; text-decoration: none; color: var(--text);
  transition: transform .25s, box-shadow .25s;
}
.fb-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -28px rgba(0,0,0,.5); }
.fb-card .fb-ico { flex: 0 0 54px; height: 54px; border-radius: 50%; background: var(--ink); color: var(--gold); display: grid; place-items: center; }
.fb-card .fb-ico svg { width: 24px; height: 24px; fill: currentColor; }
.fb-card > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; line-height: 1.3; }
.fb-card small { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); }
.fb-card b { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; color: var(--ink); margin: 2px 0; }
.fb-card em { font-style: normal; color: var(--muted); font-size: .95rem; }
.fb-card .more { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); white-space: nowrap; border-bottom: 1px solid var(--gold); }
@media (max-width: 480px) { .fb-card { flex-wrap: wrap; } .fb-card .more { margin-left: 74px; } }
.topbar a.hide-sm { margin-right: 1.6em; }
.topbar .wrap > div { white-space: nowrap; }
@media (max-width: 1500px) { .topbar .hide-md { display: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Hero tagline: keep on one line on desktop, balanced lines on smaller screens */
.hero-inner { max-width: 1100px; }
.hero p.tag { text-wrap: balance; font-size: clamp(1.25rem, 2.2vw, 1.8rem); }
@media (min-width: 900px) { .hero p.tag { white-space: nowrap; } }
.page-hero p, .section-head h2, h2 { text-wrap: balance; }
.logo-badge.rda small { color: #4b8b2f; }
.logo-badge.ei small { color: #2f6b1f; }
.logo-badge.ei img { height: 74px; }
/* Logo badges: same width, stacked neatly on phones */
@media (max-width: 640px) {
  .badges, .badge-row { flex-direction: column; align-items: center; }
  .badges .logo-badge, .badge-row .logo-badge { width: min(100%, 340px); }
}
/* "Proud to support" logos: tidy 2x2 grid on larger screens */
@media (min-width: 641px) {
  .badges { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; gap: 16px; }
  .badges .logo-badge { width: 100%; }
}
@media (min-width: 641px) {
  .welcome .badge-row { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; gap: 14px; }
  .welcome .badge-row .logo-badge { width: 100%; }
}

/* Focused navigation, compact banners and clear comparisons */
.welcome { padding: clamp(44px, 6vw, 72px) 0; }
.welcome .lead { margin-bottom: 0; }
.page-hero h1 { font-size: clamp(2.6rem, 5vw, 4rem); }
.page-hero .photo { background-position: center 38%; }
.page-hero .photo[data-img*="hero-riding-school"], .page-hero .photo[data-img*="hero-camps"] { background-position: center 28%; }
.tile .photo[data-img*="rda"], .photo[data-img*="riding-school-1"] { background-position: center 42%; }
.included-title { margin: 8px 0 16px; font-family: var(--font-body); font-size: .85rem; }
.livery-options .ticks { margin-bottom: 28px; }
.event-notice { padding: 22px 26px; background: var(--white); border-left: 3px solid var(--gold); }
.event-notice strong { font-family: var(--font-display); font-size: 1.7rem; color: var(--ink); }
.event-notice p { margin: 6px 0 0; }
.regular-events { margin-top: 28px; }
.regular-events > h3 { margin-bottom: 8px; }
.regular-events .card h4 { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.2; }
.first-visit-faq details { border-bottom: 1px solid var(--stone); padding: 20px 0; }
.first-visit-faq details:first-child { border-top: 1px solid var(--stone); }
.first-visit-faq summary { cursor: pointer; font-weight: 500; color: var(--ink); padding-right: 12px; }
.first-visit-faq details p { margin: 14px 0 0; }
.first-visit-faq summary:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 6px; }
@media (max-width: 560px) { .page-hero p { font-size: 1rem; } .event-notice { padding: 20px; } }

/* Keep the homepage information accessible on phones. */
@media (max-width: 1180px) {
  .home-information .wrap { flex-direction: column; align-items: center; gap: 8px; padding: 12px 0; text-align: center; }
  .home-information .wrap > div { white-space: normal; display: flex; flex-direction: column; align-items: center; gap: 4px; }
  .home-information .hide-sm, .home-information .hide-md, .home-information .bhs-flag { display: block; }
  .home-information span + span::before { content: none; }
  .home-information a.hide-sm { margin-right: 0; }
  .home-information { letter-spacing: .03em; line-height: 1.5; }
  .home-information a { display: inline-block; padding: 4px 0; }
  .home-header .main-nav { inset: var(--header-h) 0 0; }
}

@media (max-width: 1180px) {
  .nav-open .home-header { position: fixed; inset: 0 0 auto; backdrop-filter: none; background: var(--black); }
}
