/* ---------- Nav bar ---------- */
.nav-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: transparent;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 24px 140px;
}
.nav-logo img { height: 48px; width: auto; }
.nav-links { display: flex; gap: 72px; }
.nav-links a {
  color: var(--color-text-light);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}
.nav-burger { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 1080px;
  background: var(--color-bg-dark);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-content {
  position: absolute;
  left: 140px;
  width: 531px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-light);
  text-align: center;
}
.hero-overline { font-family: var(--font-script); font-size: 64px; color: var(--color-accent); margin-bottom: 8px; }
.hero-title { font-family: var(--font-display); font-size: 52px; letter-spacing: 0.04em; color: var(--color-accent); margin-bottom: 24px; }
.hero-subtitle { font-family: var(--font-body); font-size: 24px; color: var(--color-text-light-soft); width: 535px; max-width: 100%;}

/* ---------- Dark / maroon bands ---------- */
.band { padding: 160px 0; }
.band--dark { background: var(--color-bg-dark); color: var(--color-text-light); }
.band--maroon { background: var(--color-bg-maroon); color: var(--color-text-light); }
.band-inner { position: relative; max-width: 1640px; margin: 0 auto; padding: 0 140px; }
.eyebrow { font-size: 18px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 24px; opacity: 0.85; }

.band-bg-quote {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 60px 100px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 100px;
  line-height: 1.3;
  text-align: center;
  color: var(--color-text-light);
  opacity: 0.055;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
#horse-of-a-lifetime h2,
#sir-owens-video,
.body-copy--two-col { position: relative; z-index: 1; }
.body-copy--two-col { display: flex; gap: 60px; margin-top: 40px; }
.body-copy--two-col > div:first-child { flex: 0 0 35%; }
.body-copy--two-col > div:last-child { flex: 1; }
.body-copy--two-col p + p { margin-top: 20px; }
#horse-of-a-lifetime .body-copy--two-col { max-width: 900px; margin: 40px auto 0; }
.body-copy-emphasis { font-weight: 600; font-size: 1.1rem;}
#horse-of-a-lifetime h2 { text-align: center; }
#growing-family .eyebrow, #growing-family h2 { text-align: center; }

#horse-of-a-lifetime h2, #growing-family h2, #veterinary-records h2, .submit-offer h2 {
  font-size: 56px;
  margin-bottom: 40px;
}
#veterinary-records h2, .submit-offer h2, #horse-of-a-lifetime h2 { color: var(--color-accent); }
.submit-offer h2 { text-transform: uppercase; }
#growing-family .eyebrow { font-family: var(--font-script); font-size: 34px; color: var(--color-accent); text-transform: none; }
.offer-deadline { color: var(--color-accent); }
#veterinary-records h2 { font-size: 64px; text-transform: uppercase; }
#veterinary-records .eyebrow { font-family: var(--font-script); font-size: 34px; text-transform: none; }

.intro-columns { display: flex; gap: 80px; align-items: flex-start; }
.intro-heading-col { flex: 0 0 45%; }
.intro-body-col { flex: 1; padding-top: 8px; }
.intro-body-col p { font-size: 20px; margin-bottom: 24px; }
.intro-body-col p:last-child { font-size: 18px; }
#intro .eyebrow { font-family: var(--font-script); font-size: 34px; color: var(--color-text-light); text-transform: none; }
#intro h2 { font-size: 26px; color: var(--color-accent); margin-bottom: 40px; }

/* ---------- Parade video ---------- */
.parade-video-section {
  background: var(--color-bg-cream);
}
.parade-video-pin {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#parade-video {
  width: 66%;
  height: 66vh;
  max-width: none;
  aspect-ratio: auto;
}

/* ---------- At a Glance ---------- */
.at-a-glance { max-width: var(--page-width); margin: 0 auto; padding: 140px; text-align: center; }
.at-a-glance h2 { font-size: 48px; margin-bottom: 80px; color: var(--color-text-muted-heading); }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px 0;
}
.stat-tile { padding: 0 48px; border-left: 1px solid rgba(0,0,0,0.15); }
.stat-tile:nth-child(3n+1) { border-left: none; }
.stat-tile img { width: 120px; height: 100px; object-fit: contain; margin: 0 auto; }

/* ---------- Gallery ---------- */
.gallery { position: relative; overflow: hidden; background: var(--color-bg-dark); }
/* No fixed height anywhere in the gallery: Slick's adaptiveHeight sizes the
   stage to the current photo (see js/carousel.js), so the images set the
   height and never get letterboxed. */
.gallery-stack { position: relative; width: 100%; }
/* Each photo is wrapped in a .gallery-frame div on purpose: Slick writes an
   inline width (and in fade mode position/left/top) onto whatever element is
   the slide, and inline styles beat our rules — so the wrapper takes that hit
   and the <img> inside is free to size itself. */
.gallery-frame img { display: block; width: 100%; height: auto; }

/* ---------- The Racehorse ---------- */
.racehorse { max-width: var(--page-width); margin: 0 auto; padding: 160px 140px 50px; text-align: center; }
.racehorse .body-copy { max-width: 1060px; margin: 0 auto; }
.racehorse h2 { font-size: 48px; margin: 24px auto 40px; max-width: 1060px; color: var(--color-bg-maroon); }
.racehorse .eyebrow { font-family: var(--font-script); font-size: 34px; color: var(--color-text-near-black); text-transform: none; }

/* ---------- Race Replays ---------- */
.race-replays { padding: 50px 0 140px; background: var(--color-bg-cream); text-align: center; }
.race-replays h2 { font-size: 48px; margin-bottom: 64px; color: var(--color-bg-maroon); text-transform: uppercase; }
.carousel { width: 100vw; position: relative; left: 50%; transform: translateX(-50%); }
.carousel-track { min-width: 0; }
.carousel-card { position: relative; margin: 0 16px; }
.carousel-nav { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 32px; }

/* ---------- Pedigree intro / family list ---------- */
.pedigree-intro {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  background: var(--color-bg-cream) url('../assets/images/parchment-texture-bg.jpg') center/cover no-repeat;
  padding: 140px 0 160px;
}
.pedigree-intro-content {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: flex-start;
  gap: 40px;
}
.pedigree-intro-pin {
  flex: 0 0 45%;
  position: sticky;
  top: 60px;
}
.pedigree-intro-pin .eyebrow { font-family: var(--font-script); font-size: 34px; color: var(--color-text-muted-dark); text-transform: none; }
.pedigree-intro-pin h2 { font-size: 48px; margin: 24px 0; color: var(--color-bg-maroon); text-transform: uppercase; }
.pedigree-intro-pin .body-copy p { margin-top: 20px; font-size: 18px; line-height: 1.6; }
.pedigree-intro-pin .body-copy p:first-child { margin-top: 0; }
.pedigree-intro-pin strong { font-weight: 700 !important; }
.family-list { flex: 1; margin-top: 180px; }
.family-entries { max-width: 900px; margin: 0 auto; }
.family-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 64px 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.family-entry:last-child { border-bottom: none; }
.family-text { flex: none; }
.family-relation { font-family: var(--font-script); font-size: 40px; color: var(--color-text-near-black); margin-bottom: 4px; }
.family-name { font-size: 30px; letter-spacing: 0.04em; color: var(--color-bg-maroon); margin-bottom: 12px; }
.family-credential { max-width: 320px; margin: 0 auto; font-size: 18px; }
.family-illustration { flex: none; width: 390px; height: 300px; object-fit: contain; margin-top: 24px; }

/* ---------- Pedigree narrative ---------- */
.pedigree-narrative-content {
  max-width: 1500px;
  margin: 100px auto 0;
  padding: 60px 40px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
}
#pedigree-illustration { display: block; height: 85vh; width: auto; flex: none; }
.pedigree-doc-wrap {
  position: relative;
  height: 85vh;
  width: fit-content;
  padding: 24px;
  background: #fff;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.12);
}
.pedigree-certificate { display: block; height: 100%; width: auto; cursor: zoom-in; }
.pedigree-doc-wrap .wax-seal {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
}

/* ---------- A Growing Family ---------- */
.breeding-cards { display: flex; flex-direction: column; gap: 40px; margin-top: 64px; }
.breeding-card {
  display: flex;
  background: var(--color-bg-cream);
  border-radius: 2px;
  overflow: hidden;
}
.breeding-card-text { flex: 1; padding: 32px 40px; color: var(--color-bg-maroon); text-align: center; }
.breeding-card-text h3 { font-size: 32px; margin: 0 0 8px; color: var(--color-bg-maroon); }
.breeding-card-video { flex: 1; padding: 40px; display: flex; flex-direction: column; }
.breeding-note { font-size: 22px; }
.breeding-caption { margin-top: 16px; text-align: center; color: var(--color-text-near-black); font-family: var(--font-display); font-size: 22px; text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- Quotes ---------- */
.quotes { position: relative; }
.quote-panel {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 320px;
  color: var(--color-text-light);
}
.quote-panel {
  background: var(--color-bg-dark) url('../assets/images/quote-bg.jpg') center/cover no-repeat;
}
.quote-panel--flat {
  background: var(--color-bg-maroon);
}
.quote-panel blockquote { max-width: 1200px; font-size: 46px; line-height: 1.4; margin-bottom: 32px; }
.quote-attribution { font-family: var(--font-script); font-size: 40px; letter-spacing: normal; text-transform: none; color: var(--color-accent); }

/* ---------- Veterinary Records ---------- */
.vet-records { margin-top: 40px; }
.vet-records li { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.2); }
.vet-records a { display: inline-flex; align-items: center; gap: 12px; }
.download-icon { width: 18px; height: 18px; flex: none; color: var(--color-accent); }
.vet-records a { font-size: 18px; }

/* ---------- Submit An Offer ---------- */
.submit-offer { position: relative; }
.offer-deadline { font-size: 22px; max-width: 900px; margin-bottom: 64px; }
.contact-block p { margin-bottom: 8px; font-size: 18px; }
.contact-block p.contact-intro { font-size: 22px; font-weight: 700; }
.contact-block p.contact-name {
  font-size: 28px;
  margin: 32px 0 32px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-accent);
}
.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 8px;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 28px 8px 8px;
  border: 1px solid rgba(225, 185, 36, 0.4);
  border-radius: 999px;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-light);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.contact-link:hover,
.contact-link:focus-visible {
  background-color: rgba(225, 185, 36, 0.1);
  border-color: var(--color-accent);
  text-decoration: none;
}
.contact-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(225, 185, 36, 0.12);
  color: var(--color-accent);
  flex: none;
}
.contact-icon { width: 18px; height: 18px; }

#veterinary-records .band-inner,
.submit-offer .band-inner { text-align: center; }
.vet-records { max-width: 700px; margin: 40px auto 0; }
.vet-records li { text-align: left; }
.offer-deadline { margin-left: auto; margin-right: auto; }
.contact-block { max-width: 720px; margin: 0 auto; }
.submit-offer .wax-seal {
  position: static;
  display: block;
  margin: 48px auto 0;
  width: 120px;
}
