/* ==========================================================================
   Enzo Worldwide — site styles
   Fonts: Playfair Display (headings) + Source Sans 3 (text), loaded in <head>.
   ========================================================================== */

:root {
  --ink: #16181c;
  --ink-2: #23262c;
  --ivory: #faf7f2;
  --paper: #ffffff;
  --sand: #f1ebe1;
  --line: #e3dbcd;
  --text: #1d1f23;
  --muted: #5a5d64;
  --gold: #b48c4f;        /* decorative / large text */
  --gold-ink: #7a5a26;    /* accessible gold for small text on light */
  --gold-light: #d8b77f;  /* accessible gold on dark */
  --sale: #2f6b45;
  --sold: #8a2f2f;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(22,24,28,.06), 0 8px 24px rgba(22,24,28,.08);
  --shadow-lg: 0 2px 4px rgba(22,24,28,.08), 0 18px 48px rgba(22,24,28,.16);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; overflow-x: clip; background: var(--ivory); color: var(--text);
  font-family: var(--sans); font-size: 18px; line-height: 1.65; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.2em; }
.screen-reader-text, .sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 6px; font-weight: 600; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--white { background: var(--paper); }
.section--sand { background: var(--sand); }
.section--dark { background: var(--ink); color: #e9e6e0; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark a:not(.btn) { color: var(--gold-light); }
.eyebrow { display: inline-block; font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: .9rem; }
.section--dark .eyebrow, .hero .eyebrow { color: var(--gold-light); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); line-height: 1.6; }
.section--dark .lead { color: #cfcac1; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 { margin: 0; }
.section-head p { margin: .4em 0 0; color: var(--muted); max-width: 60ch; }
.center { text-align: center; }
.rule { width: 56px; height: 2px; background: var(--gold); border: 0; margin: 0 0 1.4rem; }
.center .rule { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: .02em; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #c79c5a; color: var(--ink); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(180,140,79,.35); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; color: #fff; transform: translateY(-1px); }
.btn--outline { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.section--dark .btn--outline, .hero .btn--outline { color: #fff; }
.section--dark .btn--outline:hover, .hero .btn--outline:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .4em; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--ink); color: #fff; border-bottom: 1px solid rgba(255,255,255,.06); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; padding: 4px 0; }
.brand__logo { height: 60px; width: auto; max-width: none; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav a { display: block; padding: 10px 12px; color: #e9e6e0; text-decoration: none; font-size: 16px; font-weight: 600; letter-spacing: .02em; border-radius: 6px; position: relative; }
.nav a:hover { color: #fff; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .2s; transform-origin: left; }
.nav a:hover::after, .nav .current-menu-item > a::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .current-menu-item > a, .nav a[aria-current="page"] { color: #fff; }
.nav .nav-cta { margin-left: 10px; }
.nav .nav-cta a, .nav a.nav-cta-link { background: var(--gold); color: var(--ink); padding: 10px 20px; border-radius: 999px; }
.nav .nav-cta a::after { display: none; }
.nav .nav-cta a:hover { background: #c79c5a; color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; width: 48px; height: 48px; margin-right: -10px; cursor: pointer; border-radius: 8px; align-items: center; justify-content: center; }
.nav-toggle svg { width: 28px; height: 28px; }
.nav-toggle .i-close { display: none; }
.nav-open .nav-toggle .i-close { display: block; }
.nav-open .nav-toggle .i-menu { display: none; }
.header-phone { display: none; }

@media (max-width: 1080px) {
  :root { --header-h: 68px; }
  .brand__logo { height: 50px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--ink); flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 12px var(--gutter) 32px; overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .nav-open .nav { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li { border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav a { font-family: var(--serif); font-size: 24px; font-weight: 500; padding: 16px 4px; }
  .nav a::after { display: none; }
  .nav .current-menu-item > a, .nav a[aria-current="page"] { color: var(--gold-light); }
  .nav .nav-cta { margin: 24px 0 0; border: 0; }
  .nav .nav-cta a { text-align: center; font-family: var(--sans); font-size: 18px; font-weight: 700; padding: 15px; }
  .header-phone { display: flex; flex-direction: column; gap: 6px; margin-top: 28px; color: #cfcac1; font-size: 16px; }
  .header-phone a { color: #fff; font-family: var(--sans); font-size: 20px; font-weight: 600; text-decoration: none; padding: 4px 0; }
  .nav-open { overflow: hidden; }
}

/* ---------- Hero (home) ---------- */
.hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: stretch; min-height: min(86vh, 760px); }
.hero__copy { padding: clamp(48px, 7vw, 96px) clamp(16px, 5vw, 72px) clamp(48px, 7vw, 96px) max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); display: flex; flex-direction: column; justify-content: center; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5.2vw, 4.4rem); margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: var(--gold-light); font-weight: 500; }
.hero p { color: #d9d4ca; font-size: clamp(1.1rem, 1.5vw, 1.3rem); max-width: 34em; margin-bottom: 2rem; }
.hero__media { position: relative; min-height: 420px; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.hero__media::before { content: none; }
.hero__caption { position: absolute; z-index: 2; right: 20px; bottom: 20px; background: rgba(22,24,28,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 10px 16px; border-radius: 8px; font-size: 14px; color: #e9e6e0; }
.hero__caption strong { color: #fff; font-family: var(--serif); font-size: 16px; letter-spacing: .04em; }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__media { order: -1; min-height: 0; aspect-ratio: 4 / 4.2; }
  .hero__media::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(0deg, var(--ink) 0%, rgba(22,24,28,0) 22%); }
  .hero__copy { padding: 8px var(--gutter) 56px; }
  .hero .btn-row .btn { flex: 1 1 200px; }
}

/* Stats strip */
.stats { background: var(--ink-2); color: #e9e6e0; border-top: 1px solid rgba(255,255,255,.06); }
.stats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.stats li { padding: 26px 20px; text-align: center; border-left: 1px solid rgba(255,255,255,.08); }
.stats li:first-child { border-left: 0; }
.stats strong { display: block; font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: var(--gold-light); font-weight: 600; line-height: 1.2; }
.stats span { font-size: 15px; color: #cfcac1; }
@media (max-width: 700px) { .stats ul { grid-template-columns: 1fr; } .stats li { border-left: 0; border-top: 1px solid rgba(255,255,255,.08); padding: 18px; } .stats li:first-child { border-top: 0; } }

/* ---------- Page banner ---------- */
.page-banner { background: var(--ink); color: #fff; padding: clamp(44px, 7vw, 84px) 0 clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.page-banner::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border: 1px solid rgba(216,183,127,.18); border-radius: 50%; pointer-events: none; }
.page-banner h1 { color: #fff; margin: 0; }
.page-banner p { color: #cfcac1; margin: .8rem 0 0; font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 46em; }
.breadcrumbs { font-size: 15px; color: #a9a49b; margin-bottom: 14px; }
.breadcrumbs a { color: #d9d4ca; text-decoration: none; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.breadcrumbs span[aria-hidden] { margin: 0 8px; color: #6f6b64; }

/* ---------- Horse cards ---------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1080px) { .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .grid--4, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .grid--4, .grid--3 { gap: 12px; } }

.card { position: relative; display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; color: inherit; text-decoration: none; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: inherit; }
.card__media { position: relative; aspect-ratio: 4 / 5; background: var(--sand); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; transition: transform .6s ease; }
.card:hover .card__media img { transform: scale(1.03); transform-origin: 50% 20%; }
.card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card__name { font-family: var(--serif); font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 600; color: var(--ink); line-height: 1.2; margin: 0; letter-spacing: .01em; }
.card__meta { font-size: 15px; color: var(--muted); margin: 0; }
.card__ped { font-size: 14px; color: var(--muted); margin: 6px 0 0; padding-top: 10px; border-top: 1px solid var(--line); letter-spacing: .02em; }
.card__ped b { color: var(--text); font-weight: 600; }
.card__link { color: inherit; text-decoration: none; }
.card__link:hover { color: var(--gold-ink); }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 3; }
@media (max-width: 520px) { .card__body { padding: 12px 12px 14px; } .card__ped { font-size: 13px; } .card__meta { font-size: 14px; } }

.no-photo { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; background: linear-gradient(160deg, #23262c, #16181c); color: var(--gold-light); font-family: var(--serif); text-align: center; padding: 16px; }
.no-photo img { width: 64%; max-width: 220px; height: auto; opacity: .9; }
.no-photo span { font-family: var(--sans); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #a9a49b; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; }
.card .badge { position: absolute; top: 12px; left: 12px; z-index: 2; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.badge--available { background: var(--sale); color: #fff; }
.badge--sold { background: var(--sold); color: #fff; }
.badge--deceased { background: #3b3e45; color: #fff; }
.badge--exported { background: #2d4c74; color: #fff; }
.badge--featured { background: var(--gold); color: var(--ink); }

/* ---------- Filters ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); color: var(--text); font: 600 15px/1.2 var(--sans); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: all .15s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip small { font-size: 12px; font-weight: 700; opacity: .65; }
.search { position: relative; flex: 1 1 260px; max-width: 360px; }
.search input { width: 100%; min-height: 48px; padding: 10px 16px 10px 44px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); font: 17px var(--sans); color: var(--text); }
.search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(180,140,79,.2); }
.search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.result-count { color: var(--muted); font-size: 15px; margin: -12px 0 20px; }
.empty-state { text-align: center; padding: 48px 16px; color: var(--muted); }
@media (max-width: 700px) {
  .toolbar { display: block; }
  .search { display: block; max-width: none; margin-top: 12px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; min-width: 0; max-width: none; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}

/* ---------- Single horse ---------- */
.horse-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .horse-top { grid-template-columns: minmax(0, 1fr); } }
.horse-top > *, .two-col > *, .feature > *, .contact-grid > * { min-width: 0; }
.gallery-main { position: relative; background: var(--sand); border-radius: var(--radius); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.gallery-main button { all: unset; cursor: zoom-in; display: block; width: 100%; }
.gallery-main img { width: 100%; max-height: min(78vh, 820px); object-fit: contain; margin: 0 auto; }
.gallery-main .zoom-hint { position: absolute; right: 12px; bottom: 12px; background: rgba(22,24,28,.7); color: #fff; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; pointer-events: none; display: inline-flex; gap: 6px; align-items: center; }
.gallery-main .zoom-hint svg { width: 15px; height: 15px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; margin-top: 12px; }
.thumbs button { all: unset; cursor: pointer; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--sand); outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .15s, opacity .15s; }
.thumbs button:hover { opacity: .85; }
.thumbs button[aria-current="true"] { outline-color: var(--gold); }
.thumbs button:focus-visible { outline-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
@media (max-width: 900px) {
  .thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px; }
  .thumbs::-webkit-scrollbar { display: none; }
  .thumbs button { flex: 0 0 68px; width: 68px; height: 68px; }
}
.horse-info { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 900px) { .horse-info { position: static; } }
.horse-info h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 10px 0 6px; }
.horse-info .subtitle { color: var(--muted); font-size: 1.1rem; margin-bottom: 24px; }
.facts { margin: 0 0 28px; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; font-size: 18px; font-weight: 600; color: var(--ink); }
.facts dd a { color: var(--gold-ink); }
.inquire { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.inquire p { margin: 0 0 14px; color: var(--muted); font-size: 16px; }
.inquire .btn-row .btn { flex: 1 1 180px; }
.prose { font-size: 1.1rem; line-height: 1.75; max-width: 70ch; }
.prose p:first-child::first-letter { font-family: var(--serif); float: left; font-size: 3.4em; line-height: .9; padding: 6px 10px 0 0; color: var(--gold); }
.highlights { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.highlights li { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; font-weight: 600; }
.highlights li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b48c4f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 21h8M12 17v4M7 4h10v5a5 5 0 0 1-10 0V4z'/%3E%3Cpath d='M17 5h3v2a3 3 0 0 1-3 3M7 5H4v2a3 3 0 0 0 3 3'/%3E%3C/svg%3E"); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.info-box { background: var(--paper); border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0; padding: 20px 24px; }
.info-box p:last-child { margin: 0; }
.horse-nav { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 28px; margin-top: 8px; }
.horse-nav a { text-decoration: none; display: flex; flex-direction: column; font-family: var(--serif); font-size: 1.15rem; color: var(--ink); max-width: 48%; }
.horse-nav a small { font-family: var(--sans); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.horse-nav a:hover { color: var(--gold-ink); }
.horse-nav .next { text-align: right; margin-left: auto; }

/* ---------- Pedigree ---------- */
.pedigree-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px; }
.pedigree { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); grid-template-rows: repeat(16, minmax(36px, auto)); gap: 4px 10px; min-width: 760px; }
.ped { display: flex; align-items: center; padding: 6px 12px; border-radius: 6px; font-size: 15px; font-weight: 600; letter-spacing: .02em; line-height: 1.25; background: var(--paper); border: 1px solid var(--line); position: relative; min-width: 0; }
.ped--s { border-left: 3px solid #4d6a8a; }
.ped--d { border-left: 3px solid #b0587a; }
.ped--g1 { grid-column: 1; grid-row: span 8; font-size: 18px; font-family: var(--serif); }
.ped--g2 { grid-column: 2; grid-row: span 4; font-size: 16px; }
.ped--g3 { grid-column: 3; grid-row: span 2; }
.ped--g4 { grid-column: 4; grid-row: span 1; font-size: 14px; font-weight: 500; padding: 4px 10px; }
.ped a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; border-bottom: 1.5px solid var(--gold); padding-bottom: 1px; }
.ped a::after { content: "↗"; font-size: .8em; color: var(--gold-ink); }
.ped a:hover { color: var(--gold-ink); }
.ped .ped-label { position: absolute; top: 6px; left: 12px; font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ped--g1 .ped-name { margin-top: 10px; }
.ped--empty { color: #a7a29a; font-weight: 400; font-style: italic; }
.ped-legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.ped-legend span { display: inline-flex; align-items: center; gap: 8px; }
.ped-legend i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.ped-hint { display: none; font-size: 14px; color: var(--muted); margin: 0 0 8px; }
@media (max-width: 820px) {
  .ped-hint { display: block; }
  .pedigree { grid-template-columns: repeat(4, minmax(128px, 1fr)); min-width: 580px; gap: 3px 6px; grid-template-rows: repeat(16, minmax(32px, auto)); }
  .ped { font-size: 13.5px; padding: 5px 9px; }
  .ped--g1 { font-size: 16px; } .ped--g2 { font-size: 14.5px; } .ped--g4 { font-size: 13px; padding: 3px 8px; }
}

/* ---------- Video ---------- */
.video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video button { all: unset; position: absolute; inset: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; color: #fff; background: radial-gradient(circle at center, #2a2d34, #101113); font-weight: 600; }
.video button .play { width: 76px; height: 76px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; transition: transform .2s; }
.video button:hover .play { transform: scale(1.06); }
.video button .play svg { width: 30px; height: 30px; margin-left: 4px; color: var(--ink); }
.video button small { color: #a9a49b; font-weight: 400; font-size: 14px; }
.videos { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }

/* ---------- Gallery (masonry) ---------- */
.masonry { columns: 4 260px; column-gap: 14px; }
.masonry figure { margin: 0 0 14px; break-inside: avoid; border-radius: 8px; overflow: hidden; background: var(--sand); }
.masonry button { all: unset; display: block; cursor: zoom-in; position: relative; }
.masonry img { width: 100%; height: auto; transition: transform .5s, filter .3s; }
.masonry button:hover img { transform: scale(1.03); filter: brightness(1.05); }
.masonry button:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
@media (max-width: 560px) { .masonry { columns: 2; column-gap: 10px; } .masonry figure { margin-bottom: 10px; } }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 1000; background: rgba(10,11,13,.96); display: none; flex-direction: column; color: #fff; touch-action: pan-y; }
.lb.is-open { display: flex; animation: lbIn .2s ease; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb__bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-size: 15px; color: #cfcac1; gap: 12px; }
.lb__title { font-family: var(--serif); font-size: 18px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb__stage { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 64px 24px; }
.lb__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; user-select: none; -webkit-user-drag: none; transition: opacity .2s; }
.lb__btn { all: unset; cursor: pointer; width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: rgba(255,255,255,.08); transition: background .15s; }
.lb__btn:hover { background: rgba(255,255,255,.18); }
.lb__btn:focus-visible { outline: 2px solid var(--gold); }
.lb__btn svg { width: 24px; height: 24px; }
.lb__prev, .lb__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb__prev { left: 10px; } .lb__next { right: 10px; }
@media (max-width: 640px) { .lb__stage { padding: 0 8px 16px; } .lb__prev, .lb__next { top: auto; bottom: 24px; transform: none; background: rgba(0,0,0,.5); } }

/* ---------- Split feature ---------- */
.feature { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature--rev { grid-template-columns: 1.1fr .9fr; }
.feature--rev .feature__media { order: 2; }
.feature__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; background: var(--sand); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
@media (max-width: 860px) { .feature, .feature--rev { grid-template-columns: 1fr; } .feature--rev .feature__media { order: 0; } .feature__media { max-width: 520px; } }
.titles { list-style: none; padding: 0; margin: 0 0 28px; }
.titles li { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); display: flex; gap: 16px; align-items: baseline; }
.titles li b { font-family: var(--serif); color: var(--gold-light); font-size: 1.15rem; min-width: 3.2em; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--sand); }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 .3em; }
.cta-band p { margin: 0; color: var(--muted); max-width: 42em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.panel { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(22px, 3.5vw, 40px); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: 16px; margin-bottom: 6px; color: var(--ink); }
.field label .opt { font-weight: 400; color: var(--muted); font-size: 14px; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; font: 17px/1.4 var(--sans); color: var(--text); transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(180,140,79,.2); }
.hp-field { position: absolute !important; left: -9999px !important; }
.form-note { font-size: 14px; color: var(--muted); margin: 0; }
.notice { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-weight: 600; }
.notice--ok { background: #e7f3eb; color: #1f5133; border: 1px solid #bcdcc7; }
.notice--err { background: #f8e9e9; color: #7a2323; border: 1px solid #e7c2c2; }
.contact-cards { display: grid; gap: 16px; }
.contact-card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; }
.contact-card h3 { font-size: 1.2rem; margin-bottom: .2em; }
.contact-card .small-caps { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.contact-card address { font-style: normal; margin: 6px 0 12px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.contact-list li { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.contact-list svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.contact-list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--gold-ink); text-decoration: underline; }
.contact-list .lbl { color: var(--muted); font-size: 15px; min-width: 52px; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 7; background: var(--sand); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 700px) { .map { aspect-ratio: 4 / 3; } }

/* ---------- Foals list / timeline ---------- */
.foal-year { margin-bottom: 40px; }
.foal-year h3 { display: flex; align-items: center; gap: 16px; }
.foal-year h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.foal-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.foal-list li { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; }
.foal-list b { display: block; font-family: var(--serif); font-size: 1.1rem; color: var(--ink); }
.foal-list span { font-size: 15px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #bdb8af; font-size: 16px; }
.site-footer .wrap { padding-top: clamp(48px, 7vw, 80px); padding-bottom: 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--sans); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: #e9e6e0; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer address { font-style: normal; line-height: 1.6; }
.footer-about .brand__logo { height: 66px; }
.footer-about p { margin: 16px 0 0; max-width: 34ch; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 14px; color: #8e8a83; }

/* Back to top */
.to-top { position: fixed; right: 16px; bottom: 16px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; border: 1px solid rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s; cursor: pointer; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 22px; height: 22px; }

/* WordPress content helpers */
.entry-content > * { max-width: 70ch; }
.entry-content > .alignwide, .entry-content > .alignfull, .entry-content > figure, .entry-content > .wp-block-gallery, .entry-content > .wp-block-columns { max-width: none; }
.entry-content img { border-radius: 8px; }
.alignleft { float: left; margin: 0 1.5em 1em 0; } .alignright { float: right; margin: 0 0 1em 1.5em; } .aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); font-weight: 600; padding: 0 12px; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Breeding program page text (foal records etc.) */
.program-content h2 { margin-top: 1.4em; }
.program-content h2:first-child { margin-top: 0; }
.program-content ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; max-width: none; }
.program-content li { background: var(--ivory); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; font-size: 16px; }
.program-content li strong { display: block; font-family: var(--serif); font-size: 1.08rem; color: var(--ink); }

.program-content details { margin-top: 2em; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ivory); padding: 0 20px; }
.program-content summary { cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 17px; color: var(--ink); list-style-position: inside; }
.program-content details[open] { padding-bottom: 16px; }
.program-content details h3 { font-size: 1.15rem; margin-top: 1.2em; }
