/* ===================================
   CUMBRIA ARABIANS — MAIN STYLESHEET
   =================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* === VARIABLES === */
:root {
  color-scheme: light only;
  --cream:       #FBFAF7;
  --surface:     #FFFFFF;
  --cream-dark:  #F1EEE7;
  --green-deep:  #1B3A2D;
  --green-mid:   #2D5C42;
  --gold:        #7B2D2D;
  --gold-light:  #9E4141;
  --accent-on-dark: #E8A9A9;
  --text:        #2A2A25;
  --text-mid:    #5C5850;
  --border:      #E2DDD1;
  --heading:     #1B3A2D;
  --link:        #2D5C42;
  --gold-text:   #7B2D2D;
  --logo-invert: 0;   /* 1 in dark themes: turns the black horse logo white */
  --serif:      'Playfair Display', Georgia, serif;
  --sans:        'Inter', -apple-system, sans-serif;
  --max-w:       1240px;   /* running text keeps its own ~68-character measure */
  --pad:         6rem 1.5rem;
}

/* === BASE === */
html { background: var(--cream); }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
}
h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem,   5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.1rem; }
h1, h2, h3, h4 { text-wrap: balance; }  /* even line lengths, no lone last word */
p  { margin-bottom: 1rem; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
em { font-style: italic; }
strong { font-weight: 600; }  /* a real Inter semibold is loaded, so bold text isn't browser-faked */

/* Type roles: Playfair Display (--serif) for display text only — headings,
   titles, wordmark, stat numbers, lead paragraphs, side notes, pull quotes,
   drop caps. Inter (--sans) for everything read or scanned — paragraphs,
   lists, tables, labels, buttons, captions. Don't switch typeface mid-sentence. */

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* === NAVIGATION === */
/* Light header so the logo can be a black horse (black Arabians); in dark
   themes the colours are dark and --logo-invert turns the horse white.
   Background: a warm, paper-like off-white a shade deeper than the page,
   mixed from the theme's own creams so every theme gets a matching tone. */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream);
  background: color-mix(in srgb, var(--cream) 70%, var(--cream-dark));
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px rgba(0,0,0,0.05);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo { display: flex; align-items: center; gap: 0.8rem; }
.nav-logo img { height: 48px; width: auto; filter: invert(var(--logo-invert)); }
.nav-wordmark {
  font-family: var(--serif); font-size: 1.4rem; line-height: 1;
  color: var(--heading); white-space: nowrap;
}

.nav-links {
  display: flex; gap: 1.8rem;
}
.nav-links a {
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-mid); transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-text); }

/* Hamburger */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--heading); margin: 5px 0; transition: 0.3s;
}
.nav-mobile { display: none; border-top: 1px solid var(--border); }
.nav-mobile.open { display: block; }
.nav-mobile ul { padding: 0.75rem 1.5rem 1.25rem; }
.nav-mobile a {
  display: block; padding: 0.65rem 0;
  font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:hover { color: var(--gold-text); }

/* === HERO === */
/* The hero stays pinned just below the header while the rest of the page
   scrolls up over it. --header-h is the header's height including its border. */
:root { --header-h: 69px; }
.hero {
  position: sticky; top: var(--header-h); min-height: 520px;
  display: flex; align-items: flex-end; overflow: hidden;
}
.hero ~ * { position: relative; z-index: 1; }
.hero + * { box-shadow: 0 -12px 32px rgba(0,0,0,0.28); }
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,18,13,0.92) 0%, rgba(8,18,13,0.7) 30%, rgba(8,18,13,0.25) 60%, rgba(8,18,13,0.1) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: var(--max-w); margin: 0 auto; padding: 3rem 1.5rem;
  color: white; width: 100%;
}
.hero-eyebrow {
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent-on-dark); margin-bottom: 0.75rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.hero-content h1 { font-weight: 300; margin-bottom: 0.75rem; }
.hero-content p {
  font-family: var(--serif); font-size: 1.15rem;
  opacity: 1; color: rgba(255,255,255,0.95);
  max-width: 580px; line-height: 1.7;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.hero-content .btn { margin-top: 1.5rem; }

/* === PAGE HEADER === */
.page-header {
  background: var(--green-deep); padding: 3.5rem 1.5rem 3rem;
  color: white; text-align: center;
}
.page-header .eyebrow {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent-on-dark); margin-bottom: 0.75rem;
}
.page-header h1 { font-weight: 300; }

/* === SECTIONS === */
.section     { padding: var(--pad); background: var(--cream); color: var(--text); }
.section-alt { background: var(--cream-dark); color: var(--text); }
.section-white { background: var(--surface); color: var(--text); }

.section-title {
  font-family: var(--serif); font-size: clamp(1.4rem,3vw,2rem);
  font-weight: 400; color: var(--heading); margin-bottom: 1.5rem;
}
.section-title::after {
  content: ''; display: block; width: 48px; height: 2px;
  background: var(--gold); margin: 0.7rem 0 0;
}

.lead {
  color: var(--text);
  font-family: var(--serif); font-size: 1.1rem;
  line-height: 1.8; max-width: 760px;
}

/* === STATS BAR === */
.stats-bar {
  display: grid; gap: 1px; background: var(--border);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
@media (min-width: 600px) { .stats-bar { grid-template-columns: repeat(3, 1fr); } .stats-bar-2 { grid-template-columns: repeat(2, 1fr); } }
.stats-bar-2 .stat-num { font-size: clamp(2.4rem, 5vw, 4rem) !important; }
.stat-cell { background: var(--cream); padding: 1.75rem 1.5rem; text-align: center; }
.stat-num {
  font-family: var(--serif); font-size: 2.8rem; color: var(--heading);
  line-height: 1; display: block; margin-bottom: 0.3rem;
}
.stat-lbl { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mid); }

/* === ABOUT GRID === */
.about-grid {
  display: grid; gap: 3rem; align-items: start;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .about-grid { grid-template-columns: 1fr 1fr; } }

.about-intro { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; margin-bottom: 1rem; line-height: 1.7; }

/* === HISTORY CARDS === */
.history-grid {
  display: grid; gap: 1.5rem; grid-template-columns: 1fr;
}
@media (min-width: 640px) { .history-grid { grid-template-columns: repeat(3, 1fr); } }

.history-card {
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.history-card img { width: 100%; height: auto; }  /* full portrait: never trim heads or hooves */
.history-card-body { padding: 1.25rem; flex: 1; }
.history-card .card-label {
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-text); margin-bottom: 0.4rem;
}
.history-card h4 { font-family: var(--serif); color: var(--heading); font-size: 1.15rem; margin-bottom: 0.6rem; }
.history-card p { font-size: 0.88rem; color: var(--text-mid); line-height: 1.65; }

/* === HORSE PROFILES === */
.horse-profile { margin-bottom: 4.5rem; }
.horse-profile:last-child { margin-bottom: 0; }

.horse-header { border-left: 3px solid var(--gold); padding-left: 1.1rem; margin-bottom: 1.5rem; }
.horse-header .horse-tag {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-text); margin-bottom: 0.3rem;
}
.horse-header h2 { font-family: var(--serif); color: var(--heading); }

blockquote {
  border-left: 3px solid var(--gold-light); padding: 1rem 1.5rem;
  font-family: var(--serif); font-style: italic; font-size: 1.05rem;
  color: var(--text-mid); margin: 1.5rem 0; background: var(--surface);
  line-height: 1.75;
}
blockquote cite { display: block; margin-top: 0.75rem; font-size: 0.85rem; font-style: normal; color: var(--gold-text); }

/* === PEDIGREE ===
   4-generation tree: 8 rows; columns span 8 / 4 / 2 / 1 rows so each
   ancestor sits level with the two parents to its right. */
.pedigree-wrap { overflow-x: auto; margin: 1.5rem 0 2rem; }
.pedigree-table {
  border-collapse: collapse; table-layout: fixed;
  width: 100%; min-width: 600px; font-size: 0.85rem; line-height: 1.35;
}
.pedigree-table th {
  background: var(--green-deep); color: rgba(255,255,255,0.9); padding: 0.5rem 0.75rem;
  text-align: left; font-family: var(--sans); font-weight: 400;
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.pedigree-table td {
  padding: 0.45rem 0.75rem; vertical-align: middle;
  border: 1px solid var(--border); background: var(--surface);
}
/* All one typeface; generations are told apart by weight and colour */
.pedigree-table td.ped-subject {
  font-weight: 600; font-size: 0.98rem; color: var(--heading); background: var(--cream-dark);
}
.pedigree-table td.ped-parent { font-weight: 600; font-size: 0.92rem; color: var(--heading); }
.pedigree-table td.ped-gp { font-weight: 500; }
.pedigree-table td.ped-ggp { color: var(--text-mid); }
.pedigree-table tr.ped-dam-start td { border-top: 2px solid var(--gold); }

/* === TEXT + PHOTO SIDE BY SIDE ===
   Keeps each photo next to the paragraph it illustrates (stacks on mobile). */
.split { display: grid; gap: 1.5rem 2rem; align-items: center; margin: 2rem 0; }
@media (min-width: 768px) {
  .split { grid-template-columns: 1fr 1fr; }
  /* The photo gets the bigger share (~58%), on whichever side it sits */
  .split:not(.split-portrait):has(> img:first-child, > figure:first-child) { grid-template-columns: 1.38fr 1fr; }
  .split:not(.split-portrait):has(> img:last-child, > figure:last-child) { grid-template-columns: 1fr 1.38fr; }
}
.split img { width: auto; max-width: 100%; max-height: 560px; margin: 0 auto; }
/* Landscape photos fill their column at their own shape (no height cap, so
   nothing is ever trimmed), lining up with their caption rule */
.split:not(.split-portrait) img { width: 100%; max-height: none; }
.split figure { margin: 0; }
.split > div > p:last-child { margin-bottom: 0; }
/* Portrait photo: shrink its column to the photo so it lines up with the
   right-hand edge of the landscape photos above and below */
@media (min-width: 768px) { .split-portrait { grid-template-columns: 1fr auto; } }

/* Long-form text pages (privacy) */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.35rem, 2.5vw, 1.7rem); color: var(--heading); margin: 2.25rem 0 0.75rem; }
.prose a:not(.btn) { color: var(--link); text-decoration: underline; }
.prose-list { list-style: disc; padding-left: 1.25rem; margin: 0 0 1rem; }
.prose-list li { margin-bottom: 0.5rem; }
[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }  /* anchor targets clear the sticky header */

.two-col { display: grid; gap: 0 2.5rem; margin: 1.5rem 0; }
@media (min-width: 768px) { .two-col { grid-template-columns: 1fr 1fr; } }

/* "Offered for sale" badge, linking to the contact page */
.offered {
  display: inline-block; margin-top: 1.1rem; padding: 0.6rem 1rem;
  font-family: var(--sans); font-size: 0.68rem; font-weight: 600; line-height: 1;
  letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
  color: white; background: var(--gold); transition: background 0.2s;
}
.offered:hover { background: var(--gold-light); }

/* Short text beside a photo: larger serif, like a magazine side note, so a
   line or two balances the photo instead of looking lost beside it */
.photo-note::before {
  content: ""; display: block; width: 2.5rem; height: 2px;
  background: var(--gold); margin-bottom: 1.1rem;
}
.photo-note p {
  font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  line-height: 1.4; color: var(--heading); max-width: 20em; text-wrap: balance;
}
.photo-note p.note-sub {
  font-family: var(--sans); font-size: 1rem; line-height: 1.7;
  color: var(--text-mid); margin-top: 0.9rem;
}

/* === PHOTO GRIDS === */
.photo-pair {
  display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; margin: 1.5rem 0;
}
.photo-pair img { width: 100%; height: auto; }  /* natural shape: nothing trimmed */

.caption { font-size: 0.82rem; color: var(--text-mid); text-align: center; padding: 0.5rem 0; font-style: italic; }

/* === FOR SALE === */
.sale-listing { background: var(--surface); border: 1px solid var(--border); margin-bottom: 3rem; }
.sale-listing:last-child { margin-bottom: 0; }
.sale-listing-body { padding: 1.75rem; }
.sale-badge {
  display: inline-block; background: var(--green-deep); color: rgba(255,255,255,0.9);
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.3rem 0.85rem; margin-bottom: 1rem;
}
.sale-listing h3 { font-family: var(--serif); color: var(--heading); margin-bottom: 0.75rem; }
.sold-badge {
  display: inline-block; background: var(--gold); color: white;
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.3rem 0.85rem; margin-bottom: 1rem;
}
.sale-group-heading { font-family: var(--serif); color: var(--heading); margin: 0 0 1rem; }
.sale-group-photo { width: 100%; max-width: 720px; height: auto; margin: 0 0 2rem; }
/* Justified photo rows: each item sets --ar (width / height) and grows in
   proportion to it, so every photo in a line shares one height and the line
   fills its container. Items wrap once a line would shrink below --row-h; the
   row's --row-ar (sum of its items' --ar) caps rows of tall portraits at --max-h.
   An item can be a <figure> with a caption: its image keeps the shared height. */
.photo-row {
  --row-h: 200px; --max-h: 420px;
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.5rem; margin: 1rem 0;
  max-width: calc(var(--row-ar, 99) * var(--max-h) + 1.5rem);
}
.photo-row > * {
  /* grow is scaled up so a lone portrait (--ar < 1) still fills its line:
     flex lines whose grow factors sum below 1 only take part of the free space */
  flex: calc(var(--ar) * 10) 1 calc(var(--ar) * var(--row-h));
  min-width: 0; margin: 0;
}
.photo-row > img, .photo-row > .video-wrap, .photo-row figure img { aspect-ratio: var(--ar); }
.photo-row img { width: 100%; height: auto; object-fit: cover; }
.photo-row .video-wrap { position: relative; overflow: hidden; background: #000; }
.photo-row .video-wrap iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}

/* Stack: one full-width photo on top, pair below matching its width */
.photo-stack {
  max-width: 720px; margin: 1rem 0;
}
.photo-stack .stack-top img {
  width: 100%; height: auto; display: block;
}
.photo-stack .stack-pair {
  display: flex; gap: 0.5rem; margin-top: 0.5rem;
}
.photo-stack .stack-pair img {
  width: calc(50% - 0.25rem); height: auto; display: block;
}


/* === PROGENY (Al Sood page) === */
.progeny-section { margin: 2rem 0; }
.progeny-section h3 {
  font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold-text); border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem; margin-bottom: 1rem; font-family: var(--sans);
}
.progeny-item { margin-bottom: 0.85rem; font-size: 0.94rem; }
.progeny-item strong { font-weight: 600; color: var(--heading); }  /* names stay in the sentence's typeface */
.progeny-list { font-size: 0.9rem; color: var(--text-mid); }

/* Progeny text with a column of photos alongside (as on the original site) */
.progeny-with-photos { display: grid; gap: 2rem; align-items: start; margin: 2rem 0; }
@media (min-width: 900px) { .progeny-with-photos { grid-template-columns: 2fr 1fr; } }
.progeny-with-photos .progeny-section:first-child { margin-top: 0; }
.progeny-cols { columns: 2 300px; column-gap: 2.5rem; }
.progeny-cols .progeny-item { break-inside: avoid; }
.photo-column { display: flex; flex-direction: column; gap: 0.75rem; }
.photo-column img { width: 100%; height: auto; }
/* Wider photo column, first photo full width, the rest two-up: for a long run
   of photos beside a short block of text */
@media (min-width: 900px) {
  .progeny-with-photos.photos-2up { grid-template-columns: 3fr 2fr; }
  .photos-2up .photo-column { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; align-items: start; }
  .photos-2up .photo-column img:first-child { grid-column: 1 / -1; }
}
.name-list { columns: 2 200px; column-gap: 2rem; font-size: 0.95rem; color: var(--text); }
.name-list li { padding: 0.15rem 0; break-inside: avoid; }

/* === AL SOOD STAT BAND === */
.alsood-band {
  background: var(--green-deep); color: white; padding: 2.5rem 1.5rem; text-align: center;
}
.alsood-band p { font-size: 1.02rem; line-height: 1.8; max-width: 700px; margin: 0 auto; opacity: 0.9; }
.alsood-band h2 { font-weight: 300; margin-bottom: 0.5rem; }
.alsood-band .band-sub {
  font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent-on-dark); opacity: 1; margin-bottom: 2rem;
}
.band-cols { display: grid; gap: 0 2.5rem; text-align: left; max-width: 960px; margin: 0 auto; }
@media (min-width: 768px) { .band-cols { grid-template-columns: 1fr 1fr; } }
.band-cols p { font-size: 1.02rem; line-height: 1.75; max-width: none; margin: 0 0 1rem; }

/* === CTA STRIP === */
.cta-strip {
  background: var(--green-mid); padding: 3.5rem 1.5rem; text-align: center; color: white;
}
.cta-strip h2 { font-weight: 300; margin-bottom: 0.75rem; }
.cta-strip p { font-size: 1rem; opacity: 0.85; margin-bottom: 1.5rem; }
/* Closing feature: a photo filling one half, the enquiry text on green in the
   other (stacked on phones). The photo shows at its own shape, never cropped. */
.cta-photo { display: grid; padding: 0; text-align: left; align-items: center; }
@media (min-width: 768px) { .cta-photo { grid-template-columns: 1fr 1fr; } }
.cta-photo > img { width: 100%; height: auto; }
.cta-photo .cta-body { padding: clamp(2.25rem, 5vw, 4.5rem); max-width: 36rem; }
.cta-photo h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.15; }
.cta-photo .btn { margin: 0.75rem 0.75rem 0 0; }  /* buttons line up when they wrap */
.cta-photo .btn + .btn { margin-left: 0; }

/* === BUTTONS === */
.btn {
  display: inline-block; padding: 0.7rem 2rem;
  font-family: var(--sans); font-size: 0.78rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer; border: none; transition: background 0.2s, color 0.2s;
}
.btn-primary { background: var(--green-deep); color: white; }
.btn-primary:hover { background: var(--green-mid); }
.btn-gold { background: var(--gold); color: white; }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline {
  background: transparent; color: white;
  border: 1px solid rgba(255,255,255,0.5);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn + .btn { margin-left: 0.75rem; }

/* === CONTACT === */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 3fr 2fr; } }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.form-group { display: flex; flex-direction: column; gap: 0.3rem; }
.form-group label { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-mid); }
.form-group input, .form-group textarea, .form-group select {
  border: 1px solid var(--border); padding: 0.65rem 0.85rem;
  font-family: var(--sans); font-size: 0.95rem; background: var(--surface);
  transition: border-color 0.2s; width: 100%;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: 2px solid var(--link); outline-offset: 1px; border-color: var(--link);
}
.form-group textarea { min-height: 140px; resize: vertical; }

.contact-aside h3 { font-family: var(--serif); color: var(--heading); margin-bottom: 1rem; }
.contact-aside p { font-size: 0.95rem; margin-bottom: 0.5rem; }
.contact-aside a { color: var(--link); }
.contact-aside .fb-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #1877F2; color: white; padding: 0.5rem 1rem;
  font-size: 0.85rem; margin-top: 1rem;
}

/* === FOOTER === */
.site-footer { background: var(--green-deep); color: rgba(255,255,255,0.82); }
.footer-top {
  max-width: var(--max-w); margin: 0 auto; padding: 3rem 1.5rem;
  display: grid; gap: 2.5rem;
}
@media (min-width: 768px) { .footer-top { grid-template-columns: 2fr 1fr 1fr; } }

.footer-logo, .footer-logo img { height: 56px; width: auto; opacity: 0.75; margin-bottom: 0.75rem; }
.footer-about { font-size: 0.88rem; line-height: 1.7; }

.footer-nav h4, .footer-contact h4 {
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.7); margin-bottom: 1rem; font-family: var(--sans);
}
.footer-nav a {
  display: block; font-size: 0.88rem; color: rgba(255,255,255,0.82);
  padding: 0.3rem 0; transition: color 0.2s;
}
.footer-nav a:hover { color: var(--accent-on-dark); }
.footer-contact p { font-size: 0.88rem; margin-bottom: 0.4rem; }
.footer-contact a { color: var(--accent-on-dark); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  max-width: var(--max-w); margin: 0 auto; padding: 1.25rem 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: center;
  font-size: 0.78rem; color: rgba(255,255,255,0.7);
}
.footer-bottom a { color: rgba(255,255,255,0.7); }
.footer-bottom a:hover { color: var(--accent-on-dark); }

/* === DIVIDER === */
.divider { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }

/* === MOBILE === */
/* Below this width the logo name and full menu don't fit side by side */
@media (max-width: 959px) {
  .nav-links    { display: none; }
  .nav-toggle   { display: block; }
}
@media (max-width: 767px) {
  .hero        { min-height: 380px; }
  :root         { --pad: 2.5rem 1.25rem; }
  .photo-pair   { grid-template-columns: 1fr; }
  .form-row     { grid-template-columns: 1fr; }
  .photo-row { --row-h: 140px; max-width: none; }
}


/* ===================================
   EDITORIAL STYLE
   Magazine-led: large serif display,
   generous whitespace, borderless cards
   =================================== */
body { font-size: 17px; line-height: 1.8; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 400; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.9rem); font-weight: 400; letter-spacing: -0.01em; }

.nav-inner { height: 88px; }
.nav-logo img { height: 60px; }
:root { --header-h: 89px; }
.nav-links a { font-size: 0.7rem; letter-spacing: 0.18em; }

.hero { min-height: 88vh; }
.hero-content { padding: 5rem 1.5rem; }
.hero-eyebrow { font-size: 0.68rem; letter-spacing: 0.26em; max-width: none !important; }
.hero-content p { font-family: var(--sans); font-size: 1.25rem; font-weight: 300; }

.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.section-title::after { width: 80px; height: 1px; margin-top: 1.2rem; }

.stats-bar { border: none; }
.stat-cell { padding: 3rem 1.5rem; }
.stat-num { font-size: 3.6rem; font-weight: 400; }

.history-card { border: none; background: transparent; }
.history-card-body { padding: 1.5rem 0 0; }
.history-card h4 { font-size: 1.5rem; }

.about-intro { font-size: 1.35rem; font-weight: 400; line-height: 1.65; }

.btn { padding: 0.95rem 2.6rem; font-size: 0.7rem; letter-spacing: 0.2em; }

blockquote {
  border-left: none; border-top: 1px solid var(--gold);
  padding: 1.5rem 0 0; font-size: 1.3rem; background: transparent;
}

/* Editorial — mobile tuning */
@media (max-width: 767px) {
  body { font-size: 16px; }
  :root { --pad: 3.25rem 1.25rem; }
  .nav-inner { height: 66px; }
  .nav-logo img { height: 42px; }
  .nav-logo { gap: 0.6rem; }
  .nav-wordmark { font-size: 1.2rem; }
  :root { --header-h: 67px; }
  .hero { min-height: 62vh; }
  .hero-content { padding: 2.5rem 1.25rem; }
  .hero-content p { font-size: 1.05rem; }
  .hero-eyebrow { letter-spacing: 0.22em; }
  .stat-num { font-size: 2.6rem; }
  .stat-cell { padding: 1.75rem 1rem; }
  .about-intro { font-size: 1.15rem; }
  .btn { padding: 0.8rem 1.9rem; }
  blockquote { font-size: 1.1rem; }
}

/* === PHONES === */
@media (max-width: 600px) {
  /* Family trees: drop the subject column (the name is in the heading above)
     so parents, grandparents and great-grandparents all fit on screen */
  .pedigree-table { min-width: 0; font-size: 0.74rem; }
  .pedigree-table th:first-child, .pedigree-table td.ped-subject { display: none; }
  .pedigree-table th { font-size: 0.56rem; letter-spacing: 0.06em; padding: 0.45rem 0.4rem; }
  .pedigree-table td { padding: 0.35rem 0.45rem; }
  .pedigree-table td.ped-parent { font-size: 0.86rem; }

  /* Buttons that wrap onto a second line shouldn't be indented */
  .btn + .btn { margin-left: 0; margin-top: 0.75rem; }

  /* For-sale cards: avoid double padding squeezing the text */
  .sale-listing-body { padding: 1.1rem; }

  /* Photo columns beside long lists become two columns, each photo at its own
     shape (never cropped) */
  .photo-column { display: block; columns: 2; column-gap: 0.5rem; }
  .photo-column img { margin-bottom: 0.5rem; break-inside: avoid; }

  .hero-eyebrow { letter-spacing: 0.18em; }
}

/* === KEYBOARD FOCUS === */
a:focus-visible, button:focus-visible, .btn:focus-visible, img.zoomable:focus-visible {
  outline: 2px solid var(--gold-light); outline-offset: 3px;
}
.site-footer a:focus-visible, .hero a:focus-visible, .cta-strip a:focus-visible {
  outline-color: var(--accent-on-dark);
}

/* === PHOTO LIGHTBOX (lightbox.js) === */
img.zoomable { cursor: zoom-in; }
.lb { position: fixed; inset: 0; z-index: 1000; display: none;
  align-items: center; justify-content: center; background: rgba(5,8,6,0.94); }
.lb.open { display: flex; }
.lb img { max-width: 92vw; max-height: 84vh; width: auto; height: auto; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.lb-cap { position: absolute; bottom: 1.25rem; left: 0; right: 0; text-align: center;
  color: rgba(255,255,255,0.85); font-size: 0.85rem; padding: 0 4rem; }
.lb button { position: absolute; background: rgba(255,255,255,0.08); color: white; border: 0;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lb button:hover { background: rgba(255,255,255,0.18); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lb-prev, .lb-next { top: auto; bottom: 0.75rem; transform: none; } }
body.lb-lock { overflow: hidden; }

/* === MOTION === */
/* Main photos (data-reveal) gently fade into place as they scroll into view
   (reveal.js adds .reveal only to those below the fold, then .is-visible) */
.reveal {
  opacity: 0; transform: translateY(8px);
  transition: opacity 1.1s ease-out, transform 1.1s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Pages cross-fade when moving between them; the header stays put */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.3s; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* === MAGAZINE LAYOUT & TYPE === */
/* Edge-to-edge: .bleed pulls an element out of the centred column to the full
   window width. Works inside any centred container; overflow-x: clip stops the
   scrollbar's width causing a sideways scroll (and, unlike hidden, keeps the
   sticky header working). */
body { overflow-x: clip; }
.bleed { margin-inline: calc(50% - 50vw); }

/* A single photo across the full width, at its own shape up to 85% of the
   window height (Scheherazade, Mares) */
.photo-band { margin-block: 2.5rem; }
.photo-band img { width: 100%; height: auto; }  /* full photo, edge to edge, nothing trimmed */
.photo-band figcaption { max-width: var(--max-w); margin: 0 auto; padding: 0.6rem 1.5rem 0; border-top: none; }

/* Several photos in one edge-to-edge strip (Al Sood endurance) */
/* Each photo sets --ar (width / height); photos share one height at their own
   shapes, never cropped. Wraps two-and-two on phones. */
.photo-strip { display: flex; flex-wrap: wrap; gap: 4px; margin-block: 2.5rem; }
.photo-strip img {
  flex: calc(var(--ar) * 10) 1 calc(var(--ar) * 120px);
  min-width: 0; width: 100%; height: auto; aspect-ratio: var(--ar);
}

/* Bigger, tighter page titles */
.page-header { padding: 5rem 1.5rem 4.5rem; }
.page-header h1 { font-size: clamp(2.8rem, 7.5vw, 5.75rem); line-height: 1.02; letter-spacing: -0.025em; }

/* Horse names and their opening paragraph */
.horse-header h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.05; letter-spacing: -0.015em; }
.lead { font-size: clamp(1.15rem, 1.9vw, 1.45rem); line-height: 1.6; max-width: 36em; color: var(--heading); }

/* Drop cap on the opening paragraph of a story */
.drop-cap::first-letter {
  float: left; font-family: var(--serif); font-weight: 400;
  font-size: 3.4em; line-height: 0.85; padding: 0.06em 0.12em 0 0;
  color: var(--gold-text);
}

/* Pull quote: a full-width tinted band with an oversized quotation mark;
   the side padding keeps the text in a centred 54rem column */
blockquote.pull-quote {
  position: relative; margin-block: 3rem; border: none;
  background: var(--cream-dark); color: var(--heading);
  padding: 5rem max(1.5rem, calc(50vw - 27rem)) 3.5rem;
  text-align: center; font-size: clamp(1.2rem, 2.3vw, 1.75rem); line-height: 1.55;
  text-wrap: pretty;  /* no lone word on the last line ("balance" stops working past ~6 lines) */
}
blockquote.pull-quote::before {
  content: "\201C"; position: absolute; top: 1.25rem; left: 50%; transform: translateX(-50%);
  font-family: var(--serif); font-style: normal; font-size: 5.5rem; line-height: 1;
  color: var(--gold-text); opacity: 0.45;
}
blockquote.pull-quote cite {
  margin-top: 1.5rem; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
}

/* For Sale: heading beside the colts photo; horse names in the sale cards
   sized to match horse names elsewhere */
.sale-intro { margin: 0 0 3rem; }
.sale-intro .sale-group-photo { margin: 0; max-width: 100%; }
.sale-intro .sale-group-heading { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.2; margin: 0; }
.sale-listing h3 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.1; letter-spacing: -0.01em; }
/* Story beside photos, magazine style (For Sale cards, Stallion's first foals);
   later photos run full width below. Stacks on narrower screens. */
.media-lead { display: grid; gap: 1.5rem 2.5rem; align-items: start; margin-bottom: 1.5rem; }
@media (min-width: 900px) { .media-lead { grid-template-columns: 1fr 1.15fr; } }
.media-lead .photo-row { margin-top: 0; }
.media-lead .lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); margin-bottom: 1rem; }

/* HOME HERO: the horses stand low in the photo, so the whole photo shows and
   the heading sits in the sky above them.
   Wide screens: the hero takes the photo's own shape (1610 x 905) so its full
   width always shows; on very wide screens only sky/grass is trimmed. Title on
   the left, intro and buttons on the right, over a dark fade at the top.
   Below 1100px: the photo shows whole on top, the heading on green beneath. */
@media (min-width: 1100px) {
  .hero { min-height: 0; height: min(56.2vw, calc(100vh - var(--header-h))); align-items: flex-start; }
  .hero-img { object-position: center 72%; }
  .hero-overlay {
    background: linear-gradient(to bottom, rgba(8,18,13,0.78) 0%, rgba(8,18,13,0.55) 22%,
                rgba(8,18,13,0.15) 42%, rgba(8,18,13,0) 55%);
  }
  .hero-content {
    display: grid; grid-template-columns: 1.15fr 1fr; gap: 0.75rem 3.5rem; align-items: end;
    padding: clamp(1.75rem, 3.5vw, 3.25rem) 1.5rem;
  }
  .hero-eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
  .hero-content h1 { font-size: clamp(2.5rem, 4.4vw, 4.4rem); line-height: 1.04; margin: 0; }
  .hero-side p { font-size: clamp(1rem, 1.35vw, 1.2rem); line-height: 1.6; max-width: none; }
  .hero-side .btn { margin-top: 1rem; }
}
@media (max-width: 1099px) {
  .hero { position: relative; top: 0; display: block; min-height: 0; background: var(--green-deep); }
  .hero-img { position: static; height: auto; aspect-ratio: 1610 / 905; }
  .hero-overlay { display: none; }
  .hero-content { padding: 1.75rem 1.25rem 2.25rem; }
  .hero-content p, .hero-eyebrow { text-shadow: none; }
}

/* === COLOUR SECTIONING ===
   Pages read as chapters: sections alternate cream and warm stone, with one
   deep-green feature band per page for the key moment.
   .band: a full-width colour band placed inside the centred column — the
   background runs to the window edges, the content stays in the column. */
.band { margin-inline: calc(50% - 50vw); padding: clamp(3rem, 6vw, 5rem) calc(50vw - 50%); }
.band-cream { background: var(--cream); }
.band-stone { background: var(--cream-dark); }
.band.horse-profile { margin-block: 0; }
.progeny-band { margin-block: 3rem; }
.progeny-band .photo-pair { margin-bottom: 0; }
/* A band at the very top or bottom of a section replaces the section's own padding */
.section:has(> .wrap > .band:first-child) { padding-top: 0; }
.section:has(> .wrap > .band:last-child) { padding-bottom: 0; }

/* Green feature band: home page stats */
.stats-bar { background: var(--green-deep); gap: 0; border-top: 1px solid rgba(255,255,255,0.12); }
.stats-bar .stat-cell { background: transparent; padding-block: clamp(2.25rem, 4vw, 3.5rem); }
.stats-bar .stat-cell + .stat-cell { border-top: 1px solid rgba(255,255,255,0.14); }
@media (min-width: 600px) {
  .stats-bar .stat-cell + .stat-cell { border-top: none; border-left: 1px solid rgba(255,255,255,0.14); }
}
.stats-bar .stat-num { color: #fff; }
.stats-bar .stat-lbl { color: var(--accent-on-dark); }

/* Green feature band: a pull quote */
blockquote.pull-quote.feature { background: var(--green-deep); color: #fff; }
blockquote.pull-quote.feature::before { color: var(--accent-on-dark); opacity: 0.7; }
blockquote.pull-quote.feature cite { color: var(--accent-on-dark); }
.band > blockquote.pull-quote:first-of-type { margin-top: 2.5rem; }

/* Jump links to each horse, pinned under the header (Mares) */
.jump-nav {
  position: sticky; top: var(--header-h); z-index: 90;
  display: flex; justify-content: center; gap: 0.4rem 2rem; flex-wrap: wrap;
  padding: 0.85rem 1.25rem; border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--cream) 70%, var(--cream-dark));
}
.jump-nav a {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-mid); transition: color 0.2s; white-space: nowrap;
}
.jump-nav a:hover { color: var(--gold-text); }
/* Jump targets clear both the header and the pinned jump bar */
.jump-nav ~ .section [id] { scroll-margin-top: calc(var(--header-h) + 4rem); }
@media (max-width: 600px) {  /* the bar wraps onto two lines on phones */
  .jump-nav ~ .section [id] { scroll-margin-top: calc(var(--header-h) + 6rem); }
}

/* Explore cards (home): photo, small label, serif title */
.explore-grid { display: grid; gap: 2rem 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .explore-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .explore-grid { grid-template-columns: repeat(4, 1fr); } }
.explore-card { display: block; color: inherit; }
.explore-card .explore-img { overflow: hidden; margin-bottom: 1rem; }
.explore-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.6s ease; }
.explore-card:hover img { transform: scale(1.035); }
.explore-kicker {
  display: block; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-text); margin-bottom: 0.4rem;
}
.explore-title {
  display: block; font-family: var(--serif); font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: 1.25; color: var(--heading);
}
.explore-card:hover .explore-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
@media (prefers-reduced-motion: reduce) { .explore-card img { transition: none; } .explore-card:hover img { transform: none; } }

/* Comfortable line length for running text (~68 characters); photos stay wide */
.wrap > p, .horse-profile > p, .sale-listing-body > p { max-width: 68ch; }
p.caption { max-width: none; }  /* captions span the photos above them */

/* Captions: small, left-aligned, with a fine rule — like a magazine credit */
.caption {
  text-align: left; font-size: 0.78rem; letter-spacing: 0.01em;
  border-top: 1px solid var(--border); margin-top: 0.6rem; padding: 0.5rem 0 0;
}

@media (max-width: 767px) {
  .page-header { padding: 3.25rem 1.25rem 3rem; }
  blockquote.pull-quote { padding-top: 4.25rem; padding-bottom: 2.75rem; }
  blockquote.pull-quote::before { font-size: 4.5rem; top: 1rem; }
}