/* =========================================================
   MAIN.CSS — Global utilities, component classes, page-level
   styles for single.php, archive.php, horse templates, and
   Contact Form 7 overrides.
   Mick Appleby Racing
   ========================================================= */

/* =========================================================
   SINGLE POST (single.php)
   ========================================================= */

/* Hero */
.post-hero {
  position: relative;
  height: 72vh;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
}

.post-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  animation: heroZoom 8s ease forwards;
}

.post-hero-ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,1) 0%, rgba(10,10,10,0.6) 45%, rgba(10,10,10,0.1) 100%);
}

.post-hero-c {
  position: relative;
  z-index: 2;
  padding: 0 clamp(24px, 6vw, 80px) clamp(40px, 5vw, 60px);
  max-width: 900px;
  width: 100%;
}

.post-hero-cat {
  font-family: var(--condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.post-hero-cat::before { content: ''; width: 30px; height: 1px; background: var(--red); }

.post-hero-title {
  font-family: var(--display);
  font-size: clamp(32px, 5.5vw, 72px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.post-hero-title em { font-style: italic; color: var(--red); }

.post-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.post-meta-item {
  font-family: var(--condensed);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-meta-item span { color: #ffffff; }
.post-meta-dot { width: 3px; height: 3px; background: rgba(255,255,255,0.25); border-radius: 50%; }

/* Post layout */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: clamp(40px, 5vw, 80px);
  padding: clamp(40px, 5vw, 60px) clamp(24px, 6vw, 80px);
  max-width: 1300px;
  margin: 0 auto;
  align-items: start;
}

.post-article { min-width: 0; }

.post-featured-img {
  margin-bottom: 40px;
  overflow: hidden;
}

.post-featured-img-el { width: 100%; height: auto; }

/* Post tags */
.post-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.post-tag {
  font-family: var(--condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--charcoal);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 7px 14px;
  text-decoration: none;
  transition: all 0.3s;
}

.post-tag:hover { border-color: var(--red); color: var(--white); }

/* Post navigation */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.post-nav-label {
  font-family: var(--condensed);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}

.post-nav-title {
  font-family: var(--display);
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  line-height: 1.3;
  display: block;
  transition: color 0.3s;
}

.post-nav-title:hover { color: var(--red); }
.post-nav-next { text-align: right; }
.post-back-link { margin-top: 28px; }

/* Sidebar */
.post-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.sidebar-widget {
  margin-bottom: 32px;
}

.sidebar-widget-title {
  font-family: var(--condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Share buttons */
.post-share { display: flex; gap: 10px; }

.share-btn {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-family: var(--condensed);
  font-weight: 700;
  transition: all 0.3s;
}

.share-btn:hover { border-color: var(--red); background: var(--red); color: var(--white); }

/* Related posts */
.related-posts { display: flex; flex-direction: column; gap: 16px; }

.related-post {
  display: flex;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
  align-items: flex-start;
}

.related-post-img { flex-shrink: 0; width: 60px; height: 60px; overflow: hidden; }
.related-post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.related-post:hover .related-post-img img { transform: scale(1.07); }

.related-post-title {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  transition: color 0.3s;
}

.related-post:hover .related-post-title { color: var(--red); }

.related-post-meta {
  font-family: var(--condensed);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

/* Author box */
.author-box { background: var(--charcoal); padding: 22px; }

.author-box-name {
  font-family: var(--condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.author-box-bio {
  font-size: 15px;
  color: #ffffff;
  line-height: 1.7;
  margin-bottom: 14px;
}

/* Sidebar categories */
.sidebar-cats { list-style: none; padding: 0; margin: 0; }

.sidebar-cats li { margin-bottom: 8px; }

.sidebar-cats a {
  font-family: var(--condensed);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  transition: color 0.3s;
}

.sidebar-cats a:hover { color: var(--white); }
.sidebar-cats .count { color: var(--red); }

/* Sidebar result items */
.sidebar-result-item {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
  color: var(--white);
  transition: color 0.3s;
}

.sidebar-result-item:hover { color: var(--red); }
.sri-title { font-family: var(--display); font-size: 14px; font-weight: 600; line-height: 1.3; }
.sri-date { font-family: var(--condensed); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

/* Horse list in sidebar */
.sidebar-horse-list { list-style: none; padding: 0; margin: 0; }
.sidebar-horse-list li { border-bottom: 1px solid rgba(255,255,255,0.05); }
.sidebar-horse-list a { display: block; padding: 9px 0; font-family: var(--condensed); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: #ffffff; text-decoration: none; transition: color 0.3s; }
.sidebar-horse-list a:hover { color: var(--white); }

/* =========================================================
   ARCHIVE / NEWS PAGE
   ========================================================= */

.news-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.post-card-featured {
  grid-column: 1 / -1;
}

.post-card-featured .post-card-img img { height: 380px; }

.news-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nf-btn {
  font-family: var(--condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 8px 18px;
  cursor: pointer;
  transition: all 0.3s;
}

.nf-btn:hover,
.nf-btn.active {
  color: var(--white);
  border-color: var(--red);
  background: var(--red);
}

.nf-btn.hidden { display: none; }

/* sidebar newsletter */
.sidebar-newsletter { background: var(--dark); padding: 20px; }

/* =========================================================
   HORSE SINGLE (single-horse.php)
   ========================================================= */

.horse-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--nav-h));
  background: var(--charcoal);
}

.horse-hero-gallery {
  position: relative;
  overflow: hidden;
}

.horse-hero-gallery > img {
  width: 100%;
  height: 100%;
  min-height: 550px;
  object-fit: cover;
  display: block;
  transition: transform 12s ease;
}

.horse-hero-gallery:hover > img { transform: scale(1.03); }

/* Thumbnail strip */
.horse-thumbs {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: flex;
  gap: 8px;
}

.horse-thumb {
  width: 64px;
  height: 64px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s;
}

.horse-thumb img { width: 100%; height: 100%; object-fit: cover; }
.horse-thumb.active { border-color: var(--red); }
.horse-thumb:hover { border-color: #ffffff; }

/* Info panel */
.horse-info-panel {
  padding: clamp(36px, 4vw, 64px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 26px;
  background: var(--charcoal);
}

.horse-type-label {
  font-family: var(--condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
}

.horse-name {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 0;
}

.horse-name em { font-style: italic; color: var(--red); }

/* Stats grid */
.horse-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.horse-stat {
  background: var(--dark);
  padding: 14px 16px;
}

.horse-stat-label {
  font-family: var(--condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}

.horse-stat-value {
  font-family: var(--condensed);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

/* Form guide */
.horse-form-section { }

.horse-form-title {
  font-family: var(--condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 10px;
}

.horse-form { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }

.horse-form-key {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--condensed);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: #ffffff;
}

/* Biography */
.horse-bio-section .section-label { margin-bottom: 10px; }

.horse-bio {
  font-size: clamp(15px, 1.4vw, 16px);
  color: #ffffff;
  line-height: 1.9;
}

/* Pedigree */
.pedigree { }

.pedigree-title {
  font-family: var(--condensed);
  font-size: 14px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.pedigree-table { width: 100%; border-collapse: collapse; }

.pedigree-table tr { border-bottom: 1px solid rgba(255,255,255,0.05); }

.ped-label {
  font-family: var(--condensed);
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffff;
  padding: 10px 0;
  width: 40%;
}

.ped-value {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  padding: 10px 0;
}

/* Actions */
.horse-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }

/* Race results table */
.horse-results-section { background: var(--black); }

.race-results-table-wrap { overflow-x: auto; }

.race-results-table {
  width: 100%;
  border-collapse: collapse;
}

.race-results-table th {
  font-family: var(--condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffffff;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.race-results-table td {
  font-size: 15px;
  color: #ffffff;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.race-results-table tr:hover td { color: var(--white); background: rgba(255,255,255,0.02); }

/* Horse navigation */
.horse-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(24px, 6vw, 80px);
  border-top: 1px solid rgba(255,255,255,0.06);
  background: var(--charcoal);
}

.horse-nav-label {
  font-family: var(--condensed);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 5px;
}

.horse-nav-name {
  font-family: var(--display);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  display: block;
  transition: color 0.3s;
}

.horse-nav-name:hover { color: var(--red); }

.horse-nav-all {
  font-family: var(--condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
  border: 1px solid rgba(204,0,0,0.4);
  padding: 10px 20px;
  transition: all 0.3s;
}

.horse-nav-all:hover { background: var(--red); color: var(--white); border-color: var(--red); }

.horse-nav-next { text-align: right; }

/* Horses intro */
.horses-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  padding: var(--section-pad) clamp(24px, 6vw, 80px);
  background: var(--charcoal);
}
.horses-intro p {
  font-size: clamp(15px, 1.4vw, 17px);
  color: #ffffff;
  line-height: 1.85;
  margin-top: 18px;
}

/* =========================================================
   CONTACT PAGE
   ========================================================= */

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 80vh;
}

.contact-info {
  padding: clamp(50px, 7vw, 90px) clamp(24px, 6vw, 80px);
  background: var(--charcoal);
  position: relative;
}

.contact-info::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: rgba(255,255,255,0.06);
}

.contact-info-title {
  font-family: var(--display);
  font-size: clamp(34px, 4.5vw, 58px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.contact-info-title em { font-style: italic; color: var(--red); }

.contact-info-intro {
  font-size: 16px;
  color: #ffffff;
  line-height: 1.8;
  margin-bottom: 36px;
}

.contact-detail-list { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-direction: column; gap: 20px; }

.contact-detail { display: flex; gap: 16px; align-items: flex-start; }

.contact-detail-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }

.contact-detail-label {
  font-family: var(--condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 4px;
}

.contact-detail-value {
  font-size: 16px;
  color: #ffffff;
  line-height: 1.6;
  text-decoration: none;
  display: block;
}

.contact-detail-value:hover { color: var(--white); }

.contact-socials { display: flex; gap: 10px; margin-top: 8px; }

/* Form panel */
.contact-form-panel {
  padding: clamp(50px, 7vw, 90px) clamp(24px, 6vw, 80px);
  background: var(--black);
}

.contact-form-title {
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.contact-form-title em { font-style: italic; color: var(--red); }

.contact-form-sub {
  font-size: 15px;
  color: #ffffff;
  margin-bottom: 32px;
  line-height: 1.7;
}

/* Map strip */
.contact-map-strip {
  min-height: 200px;
  background: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.contact-map-placeholder {
  text-align: center;
  padding: 60px 24px;
}

/* CF7 notice */
.cf7-notice {
  background: var(--dark);
  border: 1px solid rgba(204,0,0,0.25);
  padding: 24px;
  margin-bottom: 24px;
}

.cf7-notice-title {
  font-family: var(--condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}

.cf7-notice p { font-size: 14px; color: #ffffff; margin-bottom: 16px; }

/* =========================================================
   FORM ELEMENTS (native + CF7)
   ========================================================= */

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group { margin-bottom: 16px; }

.form-label {
  font-family: var(--condensed);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
  display: block;
  margin-bottom: 8px;
}

.form-req { color: var(--red); }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  font-family: var(--body);
  font-size: 15px;
  font-weight: 400;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--red);
  background: rgba(204,0,0,0.04);
}

.form-input::placeholder,
.form-textarea::placeholder { color: #ffffff; }

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23CC0000' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 10px;
  padding-right: 40px;
}

.form-select option { background: var(--charcoal); color: var(--white); }

.form-textarea { resize: vertical; min-height: 130px; }

.form-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.form-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--red);
  margin-top: 2px;
  cursor: pointer;
}

.form-check label {
  font-size: 14px;
  color: #ffffff;
  line-height: 1.6;
  cursor: pointer;
}

.form-check label a { color: var(--red); text-decoration: none; }
.form-check label a:hover { text-decoration: underline; }

.form-submit-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.form-note {
  font-family: var(--condensed);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: #ffffff;
  line-height: 1.6;
}

/* ── CF7 overrides — match our design ────────────────────── */

/* Safety net: hide the hidden-fields-container fieldset shell even if PHP strip misses it */
fieldset.hidden-fields-container { display: none !important; border: 0; padding: 0; margin: 0; }

.contact-cf7-wrap .wpcf7 { width: 100%; }
.contact-cf7-wrap .wpcf7-form { display: flex; flex-direction: column; gap: 0; }

/* CF7 wraps each input in <label>text<span.wpcf7-form-control-wrap>input</span></label>.
   The span is set to block so the input sits on its own line below the label text.
   margin-bottom on the label creates the inter-field gap. */
.contact-cf7-wrap .wpcf7-form-control-wrap { display: block; width: 100%; margin-top: 6px; }

/* Labels — condensed uppercase, dim; margin-bottom = space between fields */
.contact-cf7-wrap label {
  display: block;
  font-family: var(--condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 18px;
}

/* Inputs, textarea, select */
.contact-cf7-wrap input[type="text"],
.contact-cf7-wrap input[type="email"],
.contact-cf7-wrap input[type="tel"],
.contact-cf7-wrap input[type="number"],
.contact-cf7-wrap input[type="url"],
.contact-cf7-wrap select,
.contact-cf7-wrap textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  font-family: var(--body);
  font-size: 14px;
  font-weight: 300;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
  appearance: none;
  -webkit-appearance: none;
  margin-bottom: 0;
  border-radius: 0;
  box-sizing: border-box;
}
.contact-cf7-wrap input:focus,
.contact-cf7-wrap select:focus,
.contact-cf7-wrap textarea:focus {
  border-color: var(--red);
  background: rgba(204,0,0,0.04);
  box-shadow: 0 0 0 1px rgba(204,0,0,0.2);
}
.contact-cf7-wrap input:hover:not(:focus),
.contact-cf7-wrap select:hover:not(:focus),
.contact-cf7-wrap textarea:hover:not(:focus) {
  border-color: #ffffff;
}
.contact-cf7-wrap input::placeholder,
.contact-cf7-wrap textarea::placeholder { color: #ffffff; font-style: italic; }
.contact-cf7-wrap textarea { resize: vertical; min-height: 140px; }

/* Select custom arrow */
.contact-cf7-wrap select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23CC0000' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 10px;
  background-color: #ffffff;
  padding-right: 40px;
  cursor: pointer;
}
.contact-cf7-wrap select option { background: var(--charcoal); color: var(--white); }

/* Validation — invalid field state */
.contact-cf7-wrap .wpcf7-not-valid {
  border-color: var(--red) !important;
  background: rgba(204,0,0,0.06) !important;
}
.contact-cf7-wrap .wpcf7-not-valid-tip {
  color: var(--red);
  font-family: var(--condensed);
  font-size: 14px;
  letter-spacing: 0.08em;
  margin-top: -14px;
  margin-bottom: 12px;
  display: block;
}

/* Submit button */
.contact-cf7-wrap .wpcf7-submit {
  font-family: var(--condensed) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  color: var(--white) !important;
  background: var(--red) !important;
  border: none !important;
  padding: 16px 38px !important;
  cursor: pointer !important;
  transition: background 0.3s, opacity 0.3s !important;
  width: auto !important;
  display: inline-block !important;
  margin-top: 6px;
}
.contact-cf7-wrap .wpcf7-submit:hover { background: #e60000 !important; }
.contact-cf7-wrap .wpcf7-submit[aria-disabled="true"],
.contact-cf7-wrap .wpcf7-form.submitting .wpcf7-submit {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

/* CF7 spinner (hide — we use button opacity instead) */
.contact-cf7-wrap .wpcf7-spinner { display: none !important; }

/* Acceptance / checkbox */
.contact-cf7-wrap .wpcf7-acceptance { margin-bottom: 16px; }
.contact-cf7-wrap .wpcf7-acceptance input[type="checkbox"] { accent-color: var(--red); width: 15px; height: 15px; cursor: pointer; }
.contact-cf7-wrap .wpcf7-acceptance .wpcf7-list-item { display: flex; gap: 10px; align-items: flex-start; }
.contact-cf7-wrap .wpcf7-acceptance .wpcf7-list-item-label { font-size: 14px; color: #ffffff; line-height: 1.65; }

/* Response output (all states) */
.contact-cf7-wrap .wpcf7-response-output {
  font-family: var(--condensed);
  font-size: 14px;
  letter-spacing: 0.1em;
  padding: 14px 18px;
  border: none !important;
  margin-top: 14px;
  line-height: 1.6;
}
.contact-cf7-wrap .wpcf7-mail-sent-ok {
  background: rgba(34,197,94,0.08);
  color: #4ade80;
  border-left: 3px solid #4ade80 !important;
}
.contact-cf7-wrap .wpcf7-mail-sent-ng,
.contact-cf7-wrap .wpcf7-aborted,
.contact-cf7-wrap .wpcf7-validation-errors,
.contact-cf7-wrap .wpcf7-acceptance-missing,
.contact-cf7-wrap .wpcf7-spam-blocked {
  background: rgba(204,0,0,0.08);
  color: var(--red);
  border-left: 3px solid var(--red) !important;
}

/* =========================================================
   PAGINATION
   ========================================================= */

.mar-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 48px 0;
  flex-wrap: wrap;
}

.mar-pagination .page-numbers {
  font-family: var(--condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 10px 16px;
  text-decoration: none;
  transition: all 0.3s;
}

.mar-pagination .page-numbers:hover,
.mar-pagination .page-numbers.current {
  color: var(--white);
  border-color: var(--red);
  background: var(--red);
}

.mar-pagination .page-numbers.dots { border: none; color: var(--muted); }

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {
  .news-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
  .news-sidebar { position: static; }
  .post-layout { grid-template-columns: 1fr; }
  .horse-hero { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .horse-stats { grid-template-columns: repeat(2, 1fr); }
  .horses-intro { grid-template-columns: 1fr; }
  .contact-split { grid-template-columns: 1fr; }
  .contact-info::after { display: none; }
}

@media (max-width: 768px) {
  .news-grid { grid-template-columns: 1fr; }
  .post-card-featured { grid-column: 1; }
  .post-card-featured .post-card-img img { height: 220px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .horse-nav { flex-direction: column; text-align: center; gap: 20px; }
}

/* =========================================================
   HOMEPAGE SECTIONS (front-page.php)
   ========================================================= */

/* About / Trainer intro */
.home-about {
  padding: var(--section-pad) clamp(24px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(50px, 7vw, 110px);
  align-items: center;
}
.home-about-body { font-size: clamp(14px,1.4vw,16px); color: #ffffff; line-height: 1.9; margin: 20px 0 32px; }
.home-about-img { position: relative; }
.home-about-img img { width: 100%; height: clamp(380px, 50vw, 560px); object-fit: cover; display: block; }
.home-about-img::before { content: ''; position: absolute; inset: -12px; border: 1px solid rgba(204,0,0,0.15); z-index: -1; }
.home-about-badge {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--red); padding: 24px 28px; text-align: center;
}
.home-about-badge-num { font-family: var(--condensed); font-size: 42px; font-weight: 800; line-height: 1; }
.home-about-badge-text { font-family: var(--condensed); font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.85; margin-top: 4px; }

/* Home horses grid */
.home-horses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: clamp(30px, 4vw, 50px);
}
.home-horse-card { position: relative; overflow: hidden; display: block; text-decoration: none; color: var(--white); cursor: pointer; }
.home-horse-card img { width: 100%; height: clamp(280px, 32vw, 420px); object-fit: cover; display: block; transition: transform 0.7s ease, filter 0.4s; filter: brightness(0.8) saturate(0.85); }
.home-horse-card:hover img { transform: scale(1.06); filter: brightness(1) saturate(1); }
.home-horse-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,10,0.88) 0%, transparent 55%); display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; }
.home-horse-name { font-family: var(--display); font-size: clamp(18px, 2vw, 26px); font-weight: 600; margin-bottom: 4px; }
.home-horse-detail { font-family: var(--condensed); font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; color: #ffffff; }

/* Gallops full-width */
.home-gallops {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  background: var(--charcoal);
  overflow: hidden;
}
.home-gallops-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(0.35); }
.home-gallops-content { position: relative; z-index: 2; padding: var(--section-pad) clamp(24px, 6vw, 80px); max-width: 620px; }

/* Home Racing Club */
.home-club {
  padding: var(--section-pad) clamp(24px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(50px, 7vw, 100px);
  align-items: center;
  background: var(--black);
}
.home-club-img { position: relative; }
.home-club-img img { width: 100%; height: clamp(380px, 48vw, 560px); object-fit: cover; display: block; }
.home-club-perks { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0 36px; }
.home-club-perk { padding: 18px; border: 1px solid rgba(255,255,255,0.06); transition: border-color 0.3s, background 0.3s; }
.home-club-perk:hover { border-color: rgba(204,0,0,0.3); background: rgba(204,0,0,0.04); }
.home-club-perk-icon { font-size: 22px; margin-bottom: 10px; }
.home-club-perk-title { font-family: var(--condensed); font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px; }
.home-club-perk-text { font-size: 14px; color: #ffffff; line-height: 1.6; }

/* Home News grid */
.home-news { padding: var(--section-pad) clamp(24px, 6vw, 80px); background: var(--charcoal); }
.home-news-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2px; margin-top: clamp(30px, 4vw, 50px); }
.home-news-card { position: relative; overflow: hidden; display: block; text-decoration: none; color: var(--white); background: var(--dark); transition: background 0.3s; }
.home-news-card:hover { background: rgba(22,20,20,1); }
.home-news-card-img { overflow: hidden; }
.home-news-card-img img { width: 100%; height: 240px; object-fit: cover; display: block; transition: transform 0.6s ease, filter 0.4s; filter: brightness(0.85) saturate(0.85); }
.home-news-card:hover .home-news-card-img img { transform: scale(1.06); filter: brightness(1) saturate(1); }
.home-news-card-body { padding: 22px 22px 26px; }
.home-news-cat { font-family: var(--condensed); font-size: 14px; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; color: var(--white); background: var(--red); padding: 4px 10px; display: inline-block; margin-bottom: 12px; }
.home-news-title { font-family: var(--display); font-size: clamp(17px, 2vw, 22px); font-weight: 600; line-height: 1.25; margin-bottom: 10px; transition: color 0.3s; }
.home-news-card:hover .home-news-title { color: #ffffff; }
.home-news-date { font-family: var(--condensed); font-size: 14px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }

/* Home gallery strip */
.home-gallery-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
.home-gallery-cell { position: relative; overflow: hidden; cursor: pointer; }
.home-gallery-cell img { width: 100%; height: clamp(200px, 24vw, 320px); object-fit: cover; display: block; transition: transform 0.7s ease, filter 0.4s; filter: brightness(0.85) saturate(0.85); }
.home-gallery-cell:hover img { transform: scale(1.08); filter: brightness(1) saturate(1); }
.home-gallery-cell-overlay { position: absolute; inset: 0; background: rgba(10,10,10,0); display: flex; align-items: center; justify-content: center; transition: background 0.4s; }
.home-gallery-cell:hover .home-gallery-cell-overlay { background: rgba(10,10,10,0.3); }
.home-gallery-plus { font-size: 30px; color: var(--white); opacity: 0; transition: opacity 0.3s; line-height: 1; }
.home-gallery-cell:hover .home-gallery-plus { opacity: 1; }

/* Home video */
.home-video { padding: var(--section-pad) clamp(24px, 6vw, 80px); background: var(--black); text-align: center; }
.home-video-wrap { position: relative; max-width: 900px; margin: 40px auto 0; padding-bottom: 50.6%; height: 0; }
.home-video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Home sponsors */
.home-sponsors { padding: 50px clamp(24px, 6vw, 80px); background: var(--charcoal); border-top: 1px solid rgba(255,255,255,0.05); }
.home-sponsors-label { font-family: var(--condensed); font-size: 14px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: 28px; }
.home-sponsors-row { display: flex; gap: 40px; flex-wrap: wrap; justify-content: center; align-items: center; }
.home-sponsor-item { font-family: var(--condensed); font-size: 14px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: #ffffff; transition: color 0.3s; }
.home-sponsor-item:hover { color: #ffffff; }

/* =========================================================
   FACILITIES PAGE (page-facilities.php)
   ========================================================= */
.stats-bar { background: var(--charcoal); display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid rgba(255,255,255,0.05); }
.stat-item { padding: 36px 24px; border-right: 1px solid rgba(255,255,255,0.06); text-align: center; position: relative; transition: background 0.3s; }
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(204,0,0,0.06); }
.stat-item::before { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background: var(--red); transition: width 0.5s ease; }
.stat-item:hover::before { width: 80%; }
.stat-num { font-family: var(--condensed); font-size: clamp(36px, 4vw, 54px); font-weight: 800; color: var(--white); line-height: 1; }
.stat-num span { color: var(--red); }
.stat-label { font-family: var(--condensed); font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.fac-intro { padding: var(--section-pad) clamp(24px,6vw,80px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(50px,7vw,110px); align-items: center; }
.fac-intro-body { font-size: clamp(14px,1.4vw,16px); color: #ffffff; line-height: 1.9; margin: 20px 0 32px; }
.fac-intro-img { position: relative; }
.fac-intro-img img { width: 100%; height: clamp(380px,50vw,580px); object-fit: cover; display: block; }
.fac-intro-img::before { content: ''; position: absolute; inset: -12px; border: 1px solid rgba(204,0,0,0.15); z-index: -1; }
.fac-features { background: var(--charcoal); padding: var(--section-pad) 0; }
.fac-feature { display: grid; grid-template-columns: 1fr 1fr; min-height: 500px; margin-bottom: 3px; }
.fac-feature.reverse { direction: rtl; }
.fac-feature.reverse > * { direction: ltr; }
.fac-feature-img { position: relative; overflow: hidden; }
.fac-feature-img img { width: 100%; height: 100%; min-height: 400px; object-fit: cover; transition: transform 0.8s ease; display: block; }
.fac-feature:hover .fac-feature-img img { transform: scale(1.04); }
.fac-feature-body { background: var(--dark); padding: clamp(40px,5vw,70px); display: flex; flex-direction: column; justify-content: center; }
.fac-feature-num { font-family: var(--condensed); font-size: 80px; font-weight: 800; color: #ffffff; line-height: 1; margin-bottom: -20px; }
.fac-feature-icon { font-size: 28px; margin-bottom: 16px; }
.fac-feature-title { font-family: var(--display); font-size: clamp(26px,3vw,40px); font-weight: 600; line-height: 1.1; margin-bottom: 16px; }
.fac-feature-title em { font-style: italic; color: var(--red); }
.fac-feature-text { font-size: clamp(14px,1.3vw,15px); color: #ffffff; line-height: 1.85; margin-bottom: 28px; }
.fac-feature-bullets { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.fac-feature-bullets li { font-family: var(--condensed); font-size: 14px; letter-spacing: 0.08em; color: #ffffff; display: flex; align-items: center; gap: 10px; }
.fac-feature-bullets li::before { content: ''; width: 18px; height: 1px; background: var(--red); flex-shrink: 0; }
.fac-panoramic { position: relative; height: clamp(350px,45vw,560px); overflow: hidden; }
.fac-panoramic img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; display: block; filter: brightness(0.65); transition: transform 12s ease; }
.fac-panoramic:hover img { transform: scale(1.03); }
.fac-panoramic-label { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); font-family: var(--display); font-size: clamp(28px,4vw,52px); font-weight: 300; font-style: italic; color: #ffffff; letter-spacing: 0.05em; text-align: center; white-space: nowrap; text-shadow: 0 4px 30px rgba(0,0,0,0.5); }
.fac-amenities { padding: var(--section-pad) clamp(24px,6vw,80px); background: var(--black); }
.amenities-header { text-align: center; max-width: 600px; margin: 0 auto clamp(40px,5vw,64px); }
.amenities-header .section-label { justify-content: center; }
.amenities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.amenity-card { background: var(--charcoal); padding: 40px 32px; position: relative; overflow: hidden; transition: all 0.4s; }
.amenity-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--red); transform: scaleX(0); transition: transform 0.4s ease; }
.amenity-card:hover { background: rgba(30,30,30,1); transform: translateY(-4px); }
.amenity-card:hover::after { transform: scaleX(1); }
.amenity-icon { font-size: 32px; margin-bottom: 18px; display: block; }
.amenity-title { font-family: var(--condensed); font-size: 16px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; }
.amenity-text { font-size: 14px; color: #ffffff; line-height: 1.7; }
.fac-cta { background: var(--red); padding: 70px clamp(24px,6vw,80px); display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.fac-cta-text h3 { font-family: var(--display); font-size: clamp(28px,3.5vw,48px); font-weight: 600; font-style: italic; margin-bottom: 8px; }
.fac-cta-text p { font-family: var(--condensed); font-size: 14px; letter-spacing: 0.1em; opacity: 0.85; }

/* =========================================================
   STAFF PAGE (page-staff.php)
   ========================================================= */
.mick-feature { display: grid; grid-template-columns: 1fr 1fr; min-height: 85vh; }
.mick-img { position: relative; overflow: hidden; }
.mick-img img { width: 100%; height: 100%; min-height: 500px; object-fit: cover; object-position: center top; display: block; transition: transform 10s ease; }
.mick-feature:hover .mick-img img { transform: scale(1.03); }
.mick-img-label { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, transparent 100%); padding: 40px 32px 28px; }
.mick-img-label-role { font-family: var(--condensed); font-size: 14px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.mick-img-label-name { font-family: var(--display); font-size: 38px; font-weight: 600; }
.mick-body { background: var(--charcoal); padding: clamp(50px,6vw,90px) clamp(40px,5vw,80px); display: flex; flex-direction: column; justify-content: center; }
.mick-quote { font-family: var(--display); font-size: clamp(18px,2.2vw,26px); font-style: italic; font-weight: 400; color: #ffffff; line-height: 1.7; border-left: 2px solid var(--red); padding-left: 24px; margin: 28px 0 36px; }
.mick-text { font-size: clamp(14px,1.3vw,15px); color: #ffffff; line-height: 1.9; margin-bottom: 16px; }
.mick-achievements { display: flex; gap: 32px; margin: 32px 0; flex-wrap: wrap; }
.mick-ach { display: flex; flex-direction: column; gap: 4px; }
.mick-ach-num { font-family: var(--condensed); font-size: 32px; font-weight: 800; color: var(--red); line-height: 1; }
.mick-ach-label { font-family: var(--condensed); font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.team-section { padding: var(--section-pad) clamp(24px,6vw,80px); background: var(--black); }
.team-section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: clamp(40px,5vw,60px); flex-wrap: wrap; gap: 20px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-card { position: relative; cursor: pointer; }
.team-card-img { position: relative; overflow: hidden; }
.team-card-img img { width: 100%; height: 380px; object-fit: cover; object-position: center top; display: block; transition: transform 0.7s ease, filter 0.5s; filter: saturate(0.8) brightness(0.9); }
.team-card:hover .team-card-img img { transform: scale(1.06); filter: saturate(1) brightness(1); }
.team-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.1) 60%, transparent 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 28px 24px; transition: background 0.4s; }
.team-card:hover .team-card-overlay { background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.2) 70%, transparent 100%); }
.team-card-role { font-family: var(--condensed); font-size: 14px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.team-card-name { font-family: var(--display); font-size: 24px; font-weight: 600; margin-bottom: 10px; }
.team-card-bio { font-size: 14px; color: #ffffff; line-height: 1.6; max-height: 0; overflow: hidden; transition: max-height 0.5s ease, opacity 0.4s; opacity: 0; }
.team-card:hover .team-card-bio { max-height: 100px; opacity: 1; }
.values-strip { background: var(--dark); padding: var(--section-pad) clamp(24px,6vw,80px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.value-item { background: var(--charcoal); padding: 44px 32px; text-align: center; transition: background 0.3s, transform 0.3s; position: relative; overflow: hidden; }
.value-item::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--red); transform: scaleX(0); transition: transform 0.4s; }
.value-item:hover { background: rgba(30,28,28,1); transform: translateY(-3px); }
.value-item:hover::before { transform: scaleX(1); }
.value-icon { font-size: 32px; margin-bottom: 16px; }
.value-title { font-family: var(--condensed); font-size: 16px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; }
.value-text { font-size: 14px; color: #ffffff; line-height: 1.7; }
.careers-strip { background: var(--black); padding: 80px clamp(24px,6vw,80px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,6vw,100px); align-items: center; }
.careers-img { position: relative; overflow: hidden; }
.careers-img img { width: 100%; height: 400px; object-fit: cover; display: block; }
.careers-img::after { content: 'JOIN US'; position: absolute; bottom: 20px; right: 20px; font-family: var(--condensed); font-size: 14px; font-weight: 700; letter-spacing: 0.3em; color: var(--white); background: var(--red); padding: 8px 16px; }
.careers-roles { display: flex; flex-direction: column; gap: 12px; margin: 20px 0 28px; }
.careers-role { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border: 1px solid rgba(255,255,255,0.07); font-family: var(--condensed); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: #ffffff; transition: all 0.3s; cursor: default; }
.careers-role:hover { border-color: var(--red); color: var(--white); background: rgba(204,0,0,0.06); }
.careers-role span { font-size: 18px; color: var(--red); }

/* =========================================================
   GALLERY PAGE (page-gallery.php)
   ========================================================= */
.gallery-filter { background: var(--charcoal); padding: 0 clamp(24px,6vw,80px); display: flex; align-items: center; gap: 0; border-bottom: 1px solid rgba(255,255,255,0.05); overflow-x: auto; }
.filter-btn { font-family: var(--condensed); font-size: 14px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: #ffffff; background: none; border: none; padding: 20px 24px; cursor: pointer; white-space: nowrap; border-bottom: 2px solid transparent; transition: color 0.3s, border-color 0.3s; position: relative; }
.filter-btn:hover { color: #ffffff; }
.filter-btn.active { color: var(--white); border-bottom-color: var(--red); }
.filter-count { font-size: 14px; color: var(--red); margin-left: 6px; font-weight: 800; }
.gallery-container { padding: 0; background: var(--black); }
.gallery-hero { position: relative; overflow: hidden; cursor: pointer; }
.gallery-hero img { width: 100%; height: clamp(400px,55vw,680px); object-fit: cover; display: block; transition: transform 10s ease, filter 0.4s; filter: brightness(1); }
.gallery-hero:hover img { transform: scale(1.04); filter: brightness(1.05); }
.gallery-hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0); display: flex; align-items: center; justify-content: center; transition: background 0.4s; }
.gallery-hero:hover .gallery-hero-overlay { background: rgba(0,0,0,0.2); }
.gallery-zoom-icon { width: 70px; height: 70px; background: rgba(255,255,255,0.12); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; opacity: 0; transform: scale(0.5); transition: opacity 0.3s, transform 0.3s; }
.gallery-hero:hover .gallery-zoom-icon { opacity: 1; transform: scale(1); }
.gallery-hero-caption { position: absolute; bottom: 28px; left: 28px; font-family: var(--condensed); font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; color: #ffffff; background: rgba(10,10,10,0.6); backdrop-filter: blur(6px); padding: 8px 14px; }
.gallery-row { display: grid; gap: 3px; }
.gallery-row-2 { grid-template-columns: 1.6fr 1fr; }
.gallery-row-2r { grid-template-columns: 1fr 1.6fr; }
.gallery-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.gallery-row-3a { grid-template-columns: 1.4fr 1fr 1fr; }
.gallery-item { position: relative; overflow: hidden; cursor: pointer; background: var(--charcoal); }
.gallery-item img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; display: block; transition: transform 0.7s ease, filter 0.4s; filter: brightness(1) saturate(1); }
.gallery-item:hover img { transform: scale(1.07); filter: brightness(1.04) saturate(1.1); }
.gallery-item-overlay { position: absolute; inset: 0; background: rgba(10,10,10,0); display: flex; align-items: center; justify-content: center; transition: background 0.4s; }
.gallery-item:hover .gallery-item-overlay { background: rgba(10,10,10,0.25); }
.gallery-item-icon { width: 54px; height: 54px; background: rgba(204,0,0,0.85); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; opacity: 0; transform: scale(0.5) rotate(-30deg); transition: opacity 0.35s, transform 0.35s; }
.gallery-item:hover .gallery-item-icon { opacity: 1; transform: scale(1) rotate(0deg); }
.gallery-item-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 14px 16px 12px; background: linear-gradient(to top, rgba(10,10,10,0.85) 0%, transparent 100%); font-family: var(--condensed); font-size: 14px; letter-spacing: 0.15em; text-transform: uppercase; color: #ffffff; opacity: 0; transform: translateY(8px); transition: opacity 0.3s, transform 0.3s; }
.gallery-item:hover .gallery-item-caption { opacity: 1; transform: translateY(0); }
.lightbox { position: fixed; inset: 0; background: rgba(5,5,5,0.96); z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.4s; backdrop-filter: blur(10px); }
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-img { max-width: 90vw; max-height: 85vh; object-fit: contain; display: block; box-shadow: 0 30px 100px rgba(0,0,0,0.8); transform: scale(0.92); transition: transform 0.4s ease; }
.lightbox.open .lightbox-img { transform: scale(1); }
.lightbox-close { position: absolute; top: 24px; right: 28px; font-size: 28px; color: #ffffff; cursor: pointer; background: none; border: none; transition: color 0.3s; line-height: 1; }
.lightbox-close:hover { color: var(--red); }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); font-family: var(--condensed); font-size: 28px; color: #ffffff; cursor: pointer; background: none; border: none; padding: 16px; transition: color 0.3s; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-prev:hover, .lightbox-next:hover { color: var(--white); }
.lightbox-counter { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); font-family: var(--condensed); font-size: 14px; letter-spacing: 0.2em; color: #ffffff; }
.lightbox-caption { position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%); font-family: var(--condensed); font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; color: #ffffff; text-align: center; max-width: 80%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Masonry gallery grid */
.gallery-masonry { columns: 3; column-gap: 3px; padding: 3px 0; }
.gallery-masonry .gallery-item { break-inside: avoid; margin-bottom: 3px; display: block; }
.gallery-masonry .gallery-item img { width: 100%; height: auto; min-height: 0; display: block; }
@media (max-width: 900px) { .gallery-masonry { columns: 2; } }
@media (max-width: 560px) { .gallery-masonry { columns: 1; } }

/* =========================================================
   RACING CLUB PAGE (page-racing-club.php)
   ========================================================= */
#club-hero { position: relative; height: 100vh; min-height: 600px; display: flex; align-items: center; overflow: hidden; }
.club-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; animation: heroZoom 18s ease-out forwards; }
.club-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.65) 55%, rgba(10,10,10,0.25) 100%); }
.club-hero-content { position: relative; z-index: 2; padding: 0 clamp(24px,6vw,80px); max-width: 680px; }
.club-hero-badge { display: inline-flex; align-items: center; gap: 12px; background: var(--red); padding: 10px 20px; margin-bottom: 28px; animation: fadeUp 0.8s 0.3s ease forwards; opacity: 0; }
.club-hero-badge span { font-family: var(--condensed); font-size: 14px; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; }
.club-hero-title { font-family: var(--display); font-size: clamp(52px,9vw,110px); font-weight: 600; line-height: 0.92; letter-spacing: -0.02em; margin-bottom: 24px; animation: fadeUp 0.9s 0.5s ease forwards; opacity: 0; }
.club-hero-title em { font-style: italic; color: var(--red); }
.club-hero-sub { font-size: clamp(15px,1.7vw,18px); color: #ffffff; line-height: 1.75; max-width: 460px; margin-bottom: 44px; animation: fadeUp 0.9s 0.7s ease forwards; opacity: 0; }
.club-hero-btns { display: flex; gap: 16px; flex-wrap: wrap; animation: fadeUp 0.9s 0.9s ease forwards; opacity: 0; }
.club-tiers { padding: var(--section-pad) clamp(24px,6vw,80px); background: var(--charcoal); }
.tiers-header { text-align: center; max-width: 640px; margin: 0 auto clamp(50px,6vw,80px); }
.tiers-header .section-label { justify-content: center; }
.tiers-body { color: #ffffff; font-size: .95rem; line-height: 1.7; margin-top: 16px; }
.tiers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; max-width: 1100px; margin: 0 auto; }
/* Single-offer layout: pricing card + Racing Post info panel */
.tiers-single-layout { display: grid; grid-template-columns: 1fr 420px; gap: 2px; max-width: 980px; margin: 0 auto; align-items: stretch; }
.tier-main { transform: none; }
.rp-info-block { background: var(--dark); display: flex; align-items: center; padding: 50px 44px; }
.rp-info-inner { display: flex; flex-direction: column; gap: 18px; }
.rp-info-icon { font-size: 36px; line-height: 1; }
.rp-info-title { font-family: var(--display); font-size: clamp(20px,2vw,28px); font-weight: 600; color: var(--white); line-height: 1.25; margin: 0; }
.rp-info-body { font-size: .9rem; color: #ffffff; line-height: 1.7; margin: 0; }
.rp-info-btn { display: inline-block; margin-top: 8px; }
@media (max-width: 860px) { .tiers-single-layout { grid-template-columns: 1fr; max-width: 520px; } }
.tier-card { background: var(--dark); padding: 44px 36px 50px; position: relative; transition: transform 0.4s, background 0.3s; overflow: hidden; }
.tier-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: rgba(255,255,255,0.08); transition: background 0.3s; }
.tier-card.featured { background: var(--black); transform: translateY(-8px); }
.tier-card.featured::before { background: var(--red); }
.tier-card:hover { background: rgba(22,20,20,1); }
.tier-card:not(.featured):hover::before { background: rgba(204,0,0,0.4); }
.tier-badge { font-family: var(--condensed); font-size: 14px; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; color: var(--red); margin-bottom: 20px; display: block; }
.tier-name { font-family: var(--display); font-size: clamp(26px,2.8vw,38px); font-weight: 600; margin-bottom: 6px; }
.tier-name em { font-style: italic; color: var(--red); }
.tier-price { font-family: var(--condensed); font-size: clamp(36px,3.5vw,52px); font-weight: 800; color: var(--white); line-height: 1; margin-bottom: 6px; }
.tier-price sub { font-size: 16px; font-weight: 400; color: var(--muted); margin-right: 4px; }
.tier-price sup { font-size: 16px; vertical-align: top; margin-top: 8px; display: inline-block; color: var(--muted); }
.tier-period { font-family: var(--condensed); font-size: 14px; letter-spacing: 0.15em; color: var(--muted); margin-bottom: 28px; }
.tier-divider { height: 1px; background: rgba(255,255,255,0.07); margin-bottom: 24px; }
.tier-features { list-style: none; display: flex; flex-direction: column; gap: 13px; margin-bottom: 36px; }
.tier-features li { font-size: 14px; color: #ffffff; display: flex; align-items: flex-start; gap: 10px; line-height: 1.4; }
.tier-features li .tick { color: var(--red); font-size: 14px; flex-shrink: 0; margin-top: 2px; }
.tier-features li.muted { color: #ffffff; }
.tier-features li.muted .tick { color: #ffffff; }
.club-experience { padding: var(--section-pad) clamp(24px,6vw,80px); background: var(--black); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(50px,7vw,110px); align-items: center; }
.exp-img { position: relative; }
.exp-img img { width: 100%; height: clamp(400px,52vw,600px); object-fit: cover; display: block; }
.exp-img-accent { position: absolute; top: -14px; right: -14px; width: 100px; height: 100px; border: 1px solid rgba(204,0,0,0.25); }
.exp-img-quote { position: absolute; bottom: -24px; left: -24px; background: var(--red); padding: 24px 26px; max-width: 260px; }
.exp-img-quote p { font-family: var(--display); font-size: 17px; font-style: italic; line-height: 1.5; margin-bottom: 10px; }
.exp-img-quote cite { font-family: var(--condensed); font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; font-style: normal; opacity: 0.85; }
.exp-list { display: flex; flex-direction: column; gap: 20px; margin: 32px 0; }
.exp-item { display: flex; gap: 18px; align-items: flex-start; padding: 20px; border: 1px solid rgba(255,255,255,0.05); transition: border-color 0.3s, background 0.3s; }
.exp-item:hover { border-color: rgba(204,0,0,0.3); background: rgba(204,0,0,0.04); }
.exp-icon { font-size: 24px; flex-shrink: 0; }
.exp-title { font-family: var(--condensed); font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.exp-text { font-size: 14px; color: #ffffff; line-height: 1.65; }
.club-faq { padding: var(--section-pad) clamp(24px,6vw,80px); background: var(--charcoal); max-width: 800px; margin: 0 auto; }
.club-faq-header { text-align: center; margin-bottom: 48px; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.07); overflow: hidden; }
.faq-q { width: 100%; background: none; border: none; text-align: left; padding: 22px 0; font-family: var(--condensed); font-size: 15px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; transition: color 0.3s; }
.faq-q:hover { color: var(--red); }
.faq-q span { font-size: 20px; color: var(--red); transition: transform 0.4s; flex-shrink: 0; }
.faq-item.open .faq-q span { transform: rotate(45deg); }
.faq-a { font-size: 14px; color: #ffffff; line-height: 1.85; max-height: 0; overflow: hidden; transition: max-height 0.5s ease, padding 0.4s; }
.faq-item.open .faq-a { max-height: 200px; padding-bottom: 22px; }
.club-join-cta { position: relative; background: var(--red); padding: clamp(50px,5vw,80px) clamp(24px,6vw,80px); text-align: center; overflow: hidden; }
.club-join-cta::before { content: 'JOIN'; position: absolute; font-family: var(--display); font-size: 16vw; font-weight: 700; font-style: italic; color: rgba(255,255,255,0.15); top: 50%; left: 50%; transform: translate(-50%,-50%); white-space: nowrap; pointer-events: none; }
.club-join-cta h2 { font-family: var(--display); font-size: clamp(38px,6vw,80px); font-weight: 600; font-style: italic; margin-bottom: 18px; position: relative; }
.club-join-cta p { font-size: clamp(14px,1.5vw,17px); opacity: 0.85; max-width: 520px; margin: 0 auto 40px; line-height: 1.7; position: relative; }
.btn-white-lg { font-family: var(--condensed); font-weight: 800; font-size: 14px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--red); background: var(--white); padding: 20px 50px; text-decoration: none; display: inline-block; transition: all 0.3s; position: relative; }
.btn-white-lg:hover { background: var(--black); color: var(--white); }

/* =========================================================
   NEWS PAGE (page-news.php)
   ========================================================= */
.news-layout { display: grid; grid-template-columns: 1fr 320px; gap: clamp(32px,4vw,56px); padding: var(--section-pad) clamp(24px,6vw,80px); align-items: start; }
.news-main { min-width: 0; }
.featured-post { display: grid; grid-template-columns: 1fr 1fr; background: var(--charcoal); text-decoration: none; color: var(--white); margin-bottom: 3px; transition: background 0.3s; }
.featured-post:hover { background: rgba(22,20,20,1); }
.featured-post-img { overflow: hidden; }
.featured-post-img img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; display: block; transition: transform 0.6s ease; filter: brightness(0.9); }
.featured-post:hover .featured-post-img img { transform: scale(1.04); filter: brightness(1); }
.featured-post-body { padding: clamp(28px,3vw,44px); display: flex; flex-direction: column; justify-content: center; }
.fp-tag { margin-bottom: 12px; }
.fp-tag span { font-family: var(--condensed); font-size: 14px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--white); background: var(--red); padding: 4px 10px; display: inline-block; }
.fp-date { font-family: var(--condensed); font-size: 14px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.fp-title { font-family: var(--display); font-size: clamp(22px,2.8vw,34px); font-weight: 600; line-height: 1.2; margin-bottom: 14px; }
.fp-excerpt { font-size: 14px; color: #ffffff; line-height: 1.8; margin-bottom: 20px; }
.fp-read { font-family: var(--condensed); font-size: 14px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); }
.posts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin-top: 3px; }
.news-sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-widget { background: var(--charcoal); padding: 24px 26px; border-top: 2px solid rgba(204,0,0,0.5); }
.sw-title { font-family: var(--condensed); font-size: 14px; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; color: var(--white); padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,0.07); margin-bottom: 18px; }
.result-mini { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.result-mini:last-child { border-bottom: none; }
.rm-pos { font-family: var(--condensed); font-size: 14px; font-weight: 800; letter-spacing: 0.1em; width: 32px; text-align: center; flex-shrink: 0; }
.rm-1 { color: var(--red); }
.rm-2 { color: #ffffff; }
.rm-horse { font-family: var(--condensed); font-size: 14px; font-weight: 700; letter-spacing: 0.06em; }
.rm-race { font-size: 14px; color: var(--muted); margin-top: 2px; }
.cat-list { display: flex; flex-direction: column; gap: 8px; }
.cat-list a { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: #ffffff; text-decoration: none; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.04); transition: color 0.3s; }
.cat-list a:hover { color: var(--red); }
.cat-list a span { font-family: var(--condensed); font-size: 14px; color: var(--red); }
.newsletter-widget { }
.nw-title { font-family: var(--condensed); font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; }
.nw-sub { font-size: 14px; color: #ffffff; line-height: 1.7; margin-bottom: 16px; }
.nw-input { width: 100%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 12px 14px; color: var(--white); font-family: var(--body); font-size: 14px; margin-bottom: 10px; }
.nw-input::placeholder { color: #ffffff; }
.nw-btn { width: 100%; background: var(--red); color: var(--white); border: none; padding: 13px; font-family: var(--condensed); font-size: 14px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; transition: background 0.3s; }
.nw-btn:hover { background: var(--red-bright); }
.news-filter { background: var(--charcoal); padding: 0 clamp(24px,6vw,80px); display: flex; align-items: center; gap: 0; border-bottom: 1px solid rgba(255,255,255,0.05); overflow-x: auto; }
.nf-btn { font-family: var(--condensed); font-size: 14px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: #ffffff; background: none; border: none; padding: 20px 24px; cursor: pointer; white-space: nowrap; border-bottom: 2px solid transparent; transition: color 0.3s, border-color 0.3s; }
.nf-btn:hover { color: #ffffff; }
.nf-btn.active { color: var(--white); border-bottom-color: var(--red); }
.nf-count { font-family: var(--condensed); font-size: 14px; letter-spacing: 0.15em; color: var(--muted); margin-left: auto; white-space: nowrap; }
.news-pagination { padding: 50px clamp(24px,6vw,80px); display: flex; gap: 8px; justify-content: center; }
.pag-btn { font-family: var(--condensed); font-size: 14px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: #ffffff; background: var(--charcoal); border: 1px solid rgba(255,255,255,0.06); padding: 12px 20px; text-decoration: none; transition: all 0.3s; }
.pag-btn:hover, .pag-btn.active { color: var(--white); background: var(--red); border-color: var(--red); }

/* =========================================================
   RESPONSIVE — page-specific
   ========================================================= */
@media (max-width: 1024px) {
  .home-news-grid { grid-template-columns: 1fr 1fr; }
  .news-layout { grid-template-columns: 1fr; }
  .news-sidebar { display: none; }
}
@media (max-width: 900px) {
  .home-about { grid-template-columns: 1fr; }
  .home-club { grid-template-columns: 1fr; }
  .home-horses-grid { grid-template-columns: 1fr 1fr; }
  .home-gallery-strip { grid-template-columns: repeat(3, 1fr); }
  .fac-intro { grid-template-columns: 1fr; }
  .fac-feature, .fac-feature.reverse { grid-template-columns: 1fr; direction: ltr; }
  .amenities-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .fac-cta { flex-direction: column; text-align: center; align-items: center; }
  .mick-feature { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .values-strip { grid-template-columns: 1fr 1fr; }
  .careers-strip { grid-template-columns: 1fr; }
  .tiers-grid { grid-template-columns: 1fr; max-width: 440px; }
  .tier-card.featured { transform: none; }
  .club-experience { grid-template-columns: 1fr; }
  .exp-img-quote { bottom: 0; left: 0; }
  .featured-post { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .home-news-grid { grid-template-columns: 1fr; }
  .home-horses-grid { grid-template-columns: 1fr; }
  .home-gallery-strip { grid-template-columns: 1fr 1fr; }
  .home-club-perks { grid-template-columns: 1fr; }
  .amenities-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .values-strip { grid-template-columns: 1fr; }
  .gallery-row-2, .gallery-row-2r, .gallery-row-3, .gallery-row-3a { grid-template-columns: 1fr; }
  .gallery-item img { min-height: 240px; }
}

/* =========================================================
   FRONT PAGE — HERO
   ========================================================= */
#hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0 clamp(24px, 6vw, 80px);
  margin-top: calc(var(--nav-h) + 34px);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a0505 0%, #1a0808 50%, #0d0d0d 100%);
  background-size: cover;
  background-position: center;
  animation: heroZoom 18s ease-out forwards;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.65) 55%, rgba(10,10,10,0.2) 100%);
}
.hero-overlay-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(10,10,10,1) 0%, transparent 100%);
}
.hero-left {
  position: relative;
  z-index: 2;
  max-width: 680px;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-family: var(--condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  animation: fadeUp 0.9s 0.2s ease forwards;
  opacity: 0;
}
.hero-eyebrow-line { width: 30px; height: 1px; background: var(--red); }
.hero-title {
  font-family: var(--display);
  font-size: clamp(52px, 8vw, 110px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  animation: fadeUp 0.9s 0.4s ease forwards;
  opacity: 0;
}
.hero-title em { font-style: italic; color: var(--red); }
.hero-sub {
  font-size: clamp(14px, 1.6vw, 18px);
  color: #ffffff;
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 38px;
  animation: fadeUp 0.9s 0.6s ease forwards;
  opacity: 0;
}
.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 0.9s 0.8s ease forwards;
  opacity: 0;
}
.hero-stats {
  position: absolute;
  right: clamp(24px, 6vw, 80px);
  bottom: clamp(60px, 8vw, 100px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 28px;
  animation: fadeUp 1s 1s ease forwards;
  opacity: 0;
}
.hero-stat { text-align: right; }
.hero-stat-num {
  font-family: var(--display);
  font-size: clamp(36px, 4.5vw, 54px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-stat-label {
  font-family: var(--condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: clamp(24px, 6vw, 80px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--condensed);
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #ffffff;
  animation: fadeUp 1s 1.2s ease forwards;
  opacity: 0;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -40%; left: 0;
  width: 100%; height: 40%;
  background: var(--red);
  animation: scrollSlide 1.8s ease-in-out infinite;
}

/* =========================================================
   FRONT PAGE — ABOUT
   ========================================================= */
#about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  padding: var(--section-pad) clamp(24px, 6vw, 80px);
  background: var(--charcoal);
}
.about-label {
  font-family: var(--condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.about-label::before { content: ''; width: 30px; height: 1px; background: var(--red); }
.about-headline {
  font-family: var(--display);
  font-size: clamp(36px, 4.8vw, 64px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.about-headline em { font-style: italic; color: var(--red); }
.about-body {
  font-size: clamp(14px, 1.4vw, 16px);
  color: #ffffff;
  line-height: 1.85;
  margin-bottom: 16px;
}
.about-img-wrap {
  position: relative;
  min-height: 480px;
}
.about-img-accent {
  position: absolute;
  top: -20px; right: -20px;
  width: 60%; height: 60%;
  border: 1px solid rgba(204,0,0,0.2);
  z-index: 0;
  pointer-events: none;
}
.about-img-badge {
  position: absolute;
  bottom: 28px; left: -28px;
  background: var(--red);
  padding: 18px 24px;
  z-index: 2;
  text-align: center;
}
.about-img-badge-num {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 600;
  line-height: 1;
}
.about-img-badge-text {
  font-family: var(--condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffffff;
  margin-top: 4px;
}

/* =========================================================
   FRONT PAGE — FEATURED HORSES
   ========================================================= */
#horses {
  padding: var(--section-pad) clamp(24px, 6vw, 80px);
  background: var(--black);
}
.starsong-feature {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2px;
  margin-bottom: 2px;
}
.starsong-main { position: relative; overflow: hidden; min-height: 400px; }
.starsong-side { display: grid; grid-template-rows: 1fr 1fr; gap: 2px; }
.starsong-side-img { position: relative; overflow: hidden; min-height: 200px; }
.img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.3) 50%, transparent 100%);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.horse-badge {
  font-family: var(--condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--red);
  color: var(--white);
  padding: 6px 12px;
  display: inline-flex;
  width: fit-content;
  max-width: max-content;
  align-self: flex-start;
  margin-bottom: 10px;
}
.horse-name {
  font-family: var(--display);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
}
.horse-detail {
  font-family: var(--condensed);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffff;
  margin-top: 6px;
}
#horses .horses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
#horses .horse-card { position: relative; overflow: hidden; cursor: pointer; }

/* =========================================================
   FRONT PAGE — GALLOPS
   ========================================================= */
#gallops-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.gallops-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  background-size: cover;
  background-position: center;
}
.gallops-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.5) 60%, rgba(10,10,10,0.15) 100%);
}
.gallops-content {
  position: relative;
  z-index: 2;
  padding: var(--section-pad) clamp(24px, 6vw, 80px);
  max-width: 620px;
}

/* =========================================================
   FRONT PAGE — RACING CLUB
   ========================================================= */
#racing-club {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70vh;
  background: var(--charcoal);
}
#racing-club .reveal-right {
  padding: var(--section-pad) clamp(24px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.club-perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0 36px;
}
.club-perk {
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: border-color 0.3s, background 0.3s;
}
.club-perk:hover { border-color: rgba(204,0,0,0.3); background: rgba(204,0,0,0.04); }
.club-perk-icon { font-size: 22px; margin-bottom: 10px; }
.club-perk-title {
  font-family: var(--condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.club-perk-text { font-size: 14px; color: #ffffff; line-height: 1.6; }

/* =========================================================
   FRONT PAGE — NEWS
   ========================================================= */
#news {
  padding: var(--section-pad) clamp(24px, 6vw, 80px);
  background: var(--black);
}
#news .news-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2px;
}
.news-card {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
  transition: background 0.3s;
}
.news-card:hover { background: rgba(22,20,20,1); }
.news-card-img-wrap { overflow: hidden; }
.news-category {
  font-family: var(--condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  padding: 16px 18px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.news-category::before { content: ''; width: 14px; height: 1px; background: var(--red); }
.news-title {
  font-family: var(--display);
  font-size: clamp(15px, 1.8vw, 20px);
  font-weight: 600;
  line-height: 1.25;
  padding: 10px 18px 6px;
}
.news-date {
  font-family: var(--condensed);
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 18px 18px;
}

/* =========================================================
   FRONT PAGE — GALLERY TEASER
   ========================================================= */
#gallery-teaser {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 280px;
}
.gallery-cell { position: relative; overflow: hidden; cursor: pointer; }
.gallery-cell-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.4s;
}
.gallery-cell:hover .gallery-cell-overlay { background: rgba(0,0,0,0.45); }
.gallery-plus {
  font-family: var(--display);
  font-size: 48px;
  color: var(--white);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.3s, transform 0.3s;
}
.gallery-cell:hover .gallery-plus { opacity: 1; transform: scale(1); }

/* =========================================================
   FRONT PAGE — VIDEO
   ========================================================= */
#video-section {
  padding: var(--section-pad) clamp(24px, 6vw, 80px);
  background: var(--charcoal);
}
.video-wrap {
  position: relative;
  max-width: 900px;
  margin: 36px auto 0;
  aspect-ratio: 16 / 9;
}
.video-wrap iframe { width: 100%; height: 100%; border: none; }

/* =========================================================
   FRONT PAGE — SPONSORS
   ========================================================= */
#sponsors {
  padding: 50px clamp(24px, 6vw, 80px);
  background: var(--charcoal);
  border-top: 1px solid rgba(255,255,255,0.05);
}
.sponsors-label {
  font-family: var(--condensed);
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 28px;
}
.sponsors-row {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.sponsor-item {
  font-family: var(--condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffff;
  transition: color 0.3s;
}
.sponsor-item:hover { color: #ffffff; }
.sponsor-logo {
  max-height: 42px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.35;
  transition: opacity 0.3s;
  display: block;
}
.sponsor-item:hover .sponsor-logo { opacity: 0.75; }
.sponsor-name { /* fallback text */ }

/* =========================================================
   FRONT PAGE — RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  #about-intro { grid-template-columns: 1fr; }
  #racing-club { grid-template-columns: 1fr; }
  .starsong-feature { grid-template-columns: 1fr; }
  #horses .horses-grid { grid-template-columns: repeat(2, 1fr); }
  #news .news-grid { grid-template-columns: 1fr 1fr; }
  #gallery-teaser { grid-template-columns: repeat(3, 1fr); height: 220px; }
  .hero-stats { display: none; }
}
@media (max-width: 640px) {
  #horses .horses-grid { grid-template-columns: 1fr; }
  #news .news-grid { grid-template-columns: 1fr; }
  #gallery-teaser { grid-template-columns: repeat(2, 1fr); height: 180px; }
  .club-perks { grid-template-columns: 1fr; }
  .about-img-badge { left: 0; }
}

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  background: var(--charcoal);
}
.contact-info {
  padding: var(--section-pad) clamp(24px, 5vw, 70px);
  border-right: 1px solid rgba(255,255,255,0.05);
}
.contact-info-intro {
  font-size: 15px;
  color: #ffffff;
  line-height: 1.85;
  margin: 20px 0 36px;
}
.contact-methods { display: flex; flex-direction: column; gap: 24px; margin-bottom: 36px; }
.contact-method { display: flex; gap: 18px; align-items: flex-start; }
.contact-method-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.contact-method-label {
  font-family: var(--condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 4px;
}
.contact-method-value { font-size: 15px; color: #ffffff; line-height: 1.6; }
.contact-method-value a { color: #ffffff; text-decoration: none; transition: color 0.3s; }
.contact-method-value a:hover { color: var(--white); }
.contact-hours-title {
  font-family: var(--condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.contact-hours { display: flex; flex-direction: column; gap: 0; }
.contact-hour {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: #ffffff;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.contact-hour-day { font-family: var(--condensed); font-size: 14px; letter-spacing: 0.05em; }
.contact-hour-time { color: #ffffff; }
.contact-hour-time.closed { color: var(--red); }
.contact-form-panel { padding: var(--section-pad) clamp(24px, 5vw, 70px); }
.contact-form-title {
  font-family: var(--display);
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.contact-form-title em { font-style: italic; color: var(--red); }
.contact-form-sub { font-size: 14px; color: #ffffff; margin-bottom: 36px; }

/* Form elements */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-family: var(--condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 8px;
}
.form-label span { color: var(--red); }
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  font-family: var(--body);
  font-size: 14px;
  padding: 14px 16px;
  transition: border-color 0.3s, background 0.3s;
  outline: none;
  appearance: none;
  border-radius: 0;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--red);
  background: rgba(204,0,0,0.03);
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23cc0000' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.form-select option { background: var(--charcoal); color: var(--white); }
.form-textarea { min-height: 140px; resize: vertical; }
.form-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 14px;
  color: #ffffff;
  line-height: 1.6;
}
.form-check input[type="checkbox"] { flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; accent-color: var(--red); cursor: pointer; }
.form-check a { color: var(--red); }
.form-submit-row { display: flex; align-items: center; gap: 24px; margin-top: 26px; }
.form-note {
  font-family: var(--condensed);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.6;
}
.form-success { display: none; margin-top: 20px; padding: 20px; background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.25); }
.form-success.visible { display: block; }
.form-success-title { font-family: var(--condensed); font-size: 14px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: #4ade80; margin-bottom: 6px; }
.form-success-text { font-size: 14px; color: #ffffff; }

/* Map section */
.contact-map-section { position: relative; height: 420px; overflow: hidden; background: var(--dark); }
.contact-map-iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; filter: grayscale(30%) contrast(1.05); }
.map-overlay-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(204,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(20px,4vw,48px);
  gap: 16px;
}
.map-overlay-bar-left { display: flex; align-items: center; gap: 12px; }
.map-pin-small { font-size: 18px; }
.map-address { font-family: var(--condensed); font-size: 14px; letter-spacing: 0.15em; text-transform: uppercase; color: #ffffff; }
.map-directions-btn {
  font-family: var(--condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  border: 1px solid var(--red);
  padding: 10px 22px;
  text-decoration: none;
  transition: background .2s, border-color .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.map-directions-btn:hover { background: transparent; border-color: #ffffff; }

/* Social strip */
.contact-social-strip {
  padding: 60px clamp(24px, 6vw, 80px);
  background: var(--black);
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.contact-social-strip h3 { font-family: var(--display); font-size: clamp(26px, 3vw, 40px); font-weight: 600; margin-bottom: 28px; }
.social-icons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.social-icon-link {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s;
}
.social-icon-link:hover { border-color: var(--red); color: var(--red); }

/* Contact responsive */
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-info { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); }
}
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .form-submit-row { flex-direction: column; align-items: flex-start; }
  .contact-map-section { height: 260px; }
}

/* =========================================================
   SHARED SHORT-HAND ALIASES (used across inner page templates)
   ========================================================= */
/* Page hero — short classes */
.ph {
  position: relative;
  height: 55vh;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: calc(var(--nav-h) + 34px);
}
.ph-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a0505 0%, #1a0808 100%);
  background-size: cover;
  background-position: center;
  animation: heroZoom 8s ease forwards;
}
.ph-ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,10,10,0.88) 0%, rgba(10,10,10,0.5) 60%, rgba(10,10,10,0.2) 100%);
}
.ph-bot {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(10,10,10,1) 0%, transparent 100%);
}
.ph-c {
  position: relative;
  z-index: 2;
  padding: clamp(40px,5vw,70px) clamp(24px,6vw,80px);
}
.ey {
  font-family: var(--condensed);
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ey::before { content: ''; width: 30px; height: 1px; background: var(--red); }
.ph-t {
  font-family: var(--display);
  font-size: clamp(42px,7vw,90px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.ph-t em { font-style: italic; color: var(--red); }

/* Section label/title aliases */
.sl {
  font-family: var(--condensed);
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sl::before { content: ''; width: 30px; height: 1px; background: var(--red); }
.st {
  font-family: var(--display);
  font-size: clamp(34px,4.5vw,60px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.st em { font-style: italic; color: var(--red); }

/* =========================================================
   HORSES LISTING PAGE
   ========================================================= */
.horses-section {
  padding: var(--section-pad) clamp(24px,6vw,80px);
  background: var(--black);
}
.horses-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(30px,4vw,52px);
  flex-wrap: wrap;
  gap: 16px;
}
.horse-meta-pill {
  font-family: var(--condensed);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(255,255,255,0.06);
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.1);
}
.horses-cta {
  padding: clamp(40px,6vw,70px) clamp(24px,6vw,80px);
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.horses-cta h3 {
  font-family: var(--display);
  font-size: clamp(24px,3.5vw,42px);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 8px;
}
.horses-cta p { font-size: 15px; color: #ffffff; }
@media (max-width: 768px) {
  .horses-cta { flex-direction: column; text-align: center; }
}

/* =========================================================
   404 BLOCK
   ========================================================= */
.error-404 {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--section-pad) clamp(24px,6vw,80px);
  background: var(--black);
  margin-top: calc(var(--nav-h) + 34px);
}
.error-404-code {
  font-family: var(--display);
  font-size: clamp(80px, 18vw, 200px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--charcoal);
  margin-bottom: 0;
}
.error-404-title {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 600;
  margin: 0 0 16px;
}
.error-404-title em { font-style: italic; color: var(--red); }
.error-404-subtitle {
  color: #ffffff;
  font-size: 15px;
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.75;
}
.error-404-btns { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.error-404-icon { margin-top: 60px; opacity: 0.15; }

/* =========================================================
   INNER PAGE HERO (.page-hero)
   Used by Facilities, Staff, Gallery, Contact pages
   ========================================================= */
.page-hero {
  position: relative;
  min-height: clamp(300px, 42vh, 500px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: calc(var(--nav-h) + 34px);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a0505, #1a0808, #0d0d0d);
  background-size: cover;
  background-position: center center;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}
.page-hero-overlay-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 140px;
  background: linear-gradient(to top, var(--black), transparent);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 clamp(24px, 6vw, 80px) clamp(40px, 5vw, 60px);
  width: 100%;
}
.page-hero-eyebrow {
  font-family: var(--condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-hero-eyebrow::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--red);
}
.page-hero-title {
  font-family: var(--display);
  font-size: clamp(42px, 7vw, 90px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 0;
}
.page-hero-title em { font-style: italic; color: var(--red); }

/* =========================================================
   HORSES LISTING PAGE — CARD GRID
   ========================================================= */
.horses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.horse-card {
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: var(--white);
  cursor: pointer;
  background: var(--charcoal);
}
.horse-card-img {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}
.horse-card-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.7s ease;
}
.horse-card:hover .horse-card-img img { transform: scale(1.06); }
.horse-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.28) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 20px 20px;
  transition: background 0.3s;
}
.horse-card:hover .horse-card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.96) 0%, rgba(0,0,0,0.5) 55%, rgba(0,0,0,0.1) 100%);
}
.horse-card-line { width: 30px; height: 2px; background: var(--red); margin-bottom: 10px; }
.horse-card-type {
  font-family: var(--condensed);
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--red); margin-bottom: 6px;
}
.horse-card-name {
  font-family: var(--display);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 600; line-height: 1.1;
  margin-bottom: 10px;
}
.horse-card-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.horse-form { display: flex; gap: 4px; margin-bottom: 12px; }
.fd {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--condensed);
  font-size: 14px; font-weight: 700;
}
.fw { background: var(--red); color: #fff; }
.fp { background: rgba(255,255,255,0.15); color: #ffffff; }
.fu { background: rgba(255,255,255,0.07); color: #ffffff; }
.horse-card-cta {
  font-family: var(--condensed);
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: #ffffff;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s;
}
.horse-card:hover .horse-card-cta { opacity: 1; transform: translateY(0); }
@media (max-width: 1100px) {
  .horses-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .horses-grid { grid-template-columns: 1fr; }
  .horse-card-img { aspect-ratio: 4/3; }
}

/* ── WooCommerce shop integration ─────────────────────────────────────────── */
.mar-wc-page-wrap {
  background: var(--black);
  padding: 0 0 80px;
}
.mar-wc-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
}

/* Reset WooCommerce defaults to match dark theme */
.woocommerce,
.woocommerce-page {
  background: transparent;
  color: var(--white);
}

/* Product grid */
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  background: var(--charcoal);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color .3s, transform .3s;
  margin: 0;
}
.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
  border-color: var(--red);
  transform: translateY(-3px);
}
.woocommerce ul.products li.product img,
.woocommerce-page ul.products li.product img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--condensed);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--white);
  padding: 12px 16px 4px;
  margin: 0;
}
.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price {
  color: var(--red);
  font-family: var(--condensed);
  font-size: 16px;
  font-weight: 700;
  padding: 0 16px 8px;
  display: block;
}
.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-family: var(--condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 10px 20px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background .3s;
  margin: 0 16px 16px;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce ul.products li.product .button:hover {
  background: #a00;
}

/* Breadcrumbs */
.woocommerce .woocommerce-breadcrumb {
  color: var(--muted);
  font-family: var(--condensed);
  font-size: 14px;
  letter-spacing: .1em;
  padding: 0 0 24px;
}
.woocommerce .woocommerce-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}
.woocommerce .woocommerce-breadcrumb a:hover { color: var(--red); }

/* Notices */
.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
  background: var(--charcoal);
  border-top-color: var(--red);
  color: var(--white);
  padding: 16px 20px;
  margin-bottom: 24px;
  border-radius: 0;
}

/* Result count / ordering */
.woocommerce .woocommerce-result-count {
  color: var(--muted);
  font-family: var(--condensed);
  font-size: 14px;
  letter-spacing: .08em;
}
.woocommerce .woocommerce-ordering select {
  background: var(--charcoal);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.1);
  padding: 8px 12px;
  font-family: var(--condensed);
  font-size: 14px;
}

/* Pagination */
.woocommerce nav.woocommerce-pagination ul {
  display: flex;
  gap: 6px;
  list-style: none;
  padding: 40px 0 0;
  margin: 0;
  justify-content: center;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--charcoal);
  color: var(--white);
  font-family: var(--condensed);
  font-size: 14px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.06);
  transition: background .2s, border-color .2s;
}
.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li a:hover {
  background: var(--red);
  border-color: var(--red);
}

@media (max-width: 768px) {
  .mar-wc-content { padding: 32px 16px; }
  .woocommerce ul.products,
  .woocommerce-page ul.products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 480px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products { grid-template-columns: 1fr; }
}

/* ─── About Bio Block ───────────────────────────────────────────────────── */

/* Hero split */
.about-bio-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
}
.about-bio-photo {
  position: relative;
  overflow: hidden;
  background: #111;
}
.about-bio-photo img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 10s ease;
}
.about-bio-hero:hover .about-bio-photo img { transform: scale(1.03); }
.about-bio-photo-placeholder {
  width: 100%;
  min-height: 560px;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.about-bio-photo-placeholder span { color: #ffffff; font-family: var(--condensed); font-size: 14px; letter-spacing: .15em; text-transform: uppercase; }
.about-bio-photo-placeholder small { color: #ffffff; font-size: 14px; letter-spacing: .1em; }
.about-bio-photo-badge {
  position: absolute;
  bottom: 28px;
  right: 28px;
  background: var(--red);
  padding: 16px 22px;
  text-align: center;
  z-index: 2;
}
.about-bio-badge-num { font-family: var(--display); font-size: 34px; font-weight: 600; line-height: 1; color: #fff; }
.about-bio-badge-text { font-family: var(--condensed); font-size: 14px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #ffffff; margin-top: 4px; }

.about-bio-intro {
  background: var(--charcoal);
  padding: clamp(50px,7vw,100px) clamp(36px,6vw,80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-bio-title {
  font-family: var(--display);
  font-size: clamp(32px,4vw,58px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 16px 0 28px;
}
.about-bio-title em { font-style: italic; color: var(--red); }
.about-bio-p {
  font-size: clamp(14px,1.3vw,16px);
  color: #ffffff;
  line-height: 1.82;
  margin-bottom: 14px;
}
.about-bio-p--quote {
  border-left: 2px solid var(--red);
  padding-left: 18px;
  color: #ffffff;
  font-style: italic;
}

/* Career two-column */
.about-bio-career {
  background: #111;
  padding: clamp(48px,6vw,88px) clamp(20px,5vw,80px);
}
.about-bio-career-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px,5vw,80px);
}
.about-bio-career-label {
  font-family: var(--condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.about-bio-career-label::before { content: ''; width: 24px; height: 1px; background: var(--red); }
.about-bio-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.about-bio-list li {
  position: relative;
  padding-left: 20px;
  font-size: clamp(13px,1.2vw,15px);
  color: #ffffff;
  line-height: 1.75;
}
.about-bio-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

/* Stats bar */
.about-bio-stats {
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: clamp(36px,5vw,60px) clamp(20px,5vw,60px);
  flex-wrap: wrap;
}
.about-bio-stat {
  text-align: center;
  padding: 0 clamp(28px,4vw,64px);
}
.about-bio-stat-num {
  font-family: var(--display);
  font-size: clamp(36px,4.5vw,60px);
  font-weight: 600;
  line-height: 1;
  color: #fff;
}
.about-bio-stat-label {
  font-family: var(--condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #ffffff;
  margin-top: 6px;
}
.about-bio-stat-divider {
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,0.3);
  flex-shrink: 0;
}

/* Achievements list */
.about-bio-achievements {
  background: #0d0d0d;
  padding: clamp(48px,6vw,80px) clamp(20px,5vw,80px);
}
.about-bio-achievements-inner {
  max-width: 800px;
  margin: 0 auto;
}
.about-bio-list--achievements { gap: 20px; }
.about-bio-list--achievements li {
  font-size: clamp(13px,1.3vw,15px);
  color: #ffffff;
  padding-left: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 20px;
}
.about-bio-list--achievements li:last-child { border-bottom: none; padding-bottom: 0; }

/* Ethos */
.about-bio-ethos {
  background: #141414;
  padding: clamp(60px,8vw,110px) clamp(20px,5vw,80px);
}
.about-bio-ethos-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.about-bio-ethos-quote {
  font-family: var(--display);
  font-size: clamp(20px,2.8vw,34px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--offwhite);
  margin: 0 0 28px;
  position: relative;
}
.about-bio-ethos-quote::before {
  content: '"';
  position: absolute;
  top: -30px; left: -20px;
  font-size: 120px;
  color: rgba(204,0,0,0.12);
  font-family: var(--display);
  line-height: 1;
  pointer-events: none;
}
.about-bio-ethos-body {
  font-size: clamp(14px,1.3vw,16px);
  color: #ffffff;
  line-height: 1.85;
  max-width: 640px;
}

/* Map responsive */
@media (max-width: 680px) {
  .map-overlay-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .contact-map-section { height: 320px; }
}

/* About bio responsive */
@media (max-width: 900px) {
  .about-bio-hero { grid-template-columns: 1fr; min-height: auto; }
  .about-bio-photo img, .about-bio-photo-placeholder { min-height: 340px; }
  .about-bio-photo-badge { bottom: 16px; right: 16px; }
  .about-bio-career-inner { grid-template-columns: 1fr; gap: 36px; }
  .about-bio-stats { gap: 0; }
  .about-bio-stat-divider { display: none; }
  .about-bio-stat { padding: 16px 24px; }
  .about-bio-ethos-quote::before { display: none; }
}
