/* ==========================================================================
   Foal to the Finish — Racehorse Syndicate
   Shared stylesheet
   ========================================================================== */

:root {
  --green:        #0f3d2e;
  --green-dark:   #0a2a20;
  --green-light:  #1c5a44;
  --gold:         #c9a227;
  --gold-light:   #e0c25a;
  --cream:        #faf7f0;
  --cream-dark:   #f0ead9;
  --ink:          #1d221f;
  --muted:        #5c6660;
  --white:        #ffffff;
  --line:         #e4ddc9;
  --shadow:       0 10px 30px rgba(15, 61, 46, 0.10);
  --shadow-lg:    0 20px 50px rgba(15, 61, 46, 0.18);
  --radius:       14px;
  --maxw:         1180px;
  --font-head:    "Playfair Display", Georgia, serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; color: var(--green); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p  { color: var(--muted); }
a  { color: var(--green-light); text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.text-center { text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--font-body); font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; font-size: .78rem;
  color: var(--gold); margin-bottom: 14px;
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 640px; }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head p { margin-top: 14px; }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: .98rem; padding: 14px 28px;
  border-radius: 50px; cursor: pointer; border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--green-dark); }
.btn--gold:hover { background: var(--gold-light); box-shadow: 0 10px 24px rgba(201,162,39,.35); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--green { background: var(--green); color: var(--white); }
.btn--green:hover { background: var(--green-light); box-shadow: var(--shadow); }

/* Header / Nav ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 61, 46, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 44px; width: auto; }
.brand-text { font-family: var(--font-head); font-weight: 700; color: var(--white); font-size: 1.15rem; line-height: 1; }
.brand-text span { display: block; font-family: var(--font-body); font-weight: 500; font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-light); margin-top: 4px; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,.85); font-weight: 500; font-size: .95rem;
  padding: 8px 14px; border-radius: 8px; transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); background: rgba(255,255,255,.10); }
.nav-links .btn { margin-left: 8px; padding: 10px 22px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: .3s; }

/* Hero -------------------------------------------------------------------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: flex-end;
  color: var(--white); text-align: center; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(10,42,32,.30) 0%, rgba(10,42,32,.30) 40%, rgba(10,42,32,.66) 72%, rgba(10,42,32,.93) 100%),
    url("../images/adonius/win-6.jpg") center 50%/cover no-repeat;
}
.hero .container { position: relative; z-index: 2; padding-bottom: 7vh; }
.hero h1 { color: var(--white); max-width: 900px; margin: 0 auto; text-shadow: 0 2px 16px rgba(0,0,0,.5); }
.hero p { color: rgba(255,255,255,.95); font-size: 1.2rem; max-width: 620px; margin: 22px auto 34px; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.hero .eyebrow { text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 48px; justify-content: center; margin-top: 60px; flex-wrap: wrap; }
.hero-stats .num { font-family: var(--font-head); font-size: 2.4rem; color: var(--gold-light); }
.hero-stats .label { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.75); }

/* Page banner (interior pages) ------------------------------------------- */
.page-banner {
  background: linear-gradient(135deg, var(--green-dark), var(--green-light));
  color: var(--white); padding: 72px 0; text-align: center;
}
.page-banner h1 { color: var(--white); }
.page-banner p { color: rgba(255,255,255,.85); max-width: 620px; margin: 16px auto 0; }

/* Grid & cards ------------------------------------------------------------ */
.grid { display: grid; gap: 30px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--gold); color: var(--green-dark); font-weight: 700;
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 50px;
}
.badge--sold { background: var(--muted); color: var(--white); }
.card-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: 4px; }
.card-meta { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.card-body p { font-size: .96rem; margin-bottom: 18px; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); }
.card-price { font-family: var(--font-head); font-size: 1.15rem; color: var(--green); }
.card-price span { display: block; font-family: var(--font-body); font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.card-link { font-weight: 600; font-size: .9rem; color: var(--green-light); }

/* Feature rows ------------------------------------------------------------ */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature img { border-radius: var(--radius); box-shadow: var(--shadow); }
.feature.reverse .feature-text { order: 2; }

/* Steps ------------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 28px; box-shadow: var(--shadow); }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%; background: var(--green); color: var(--gold-light);
  font-family: var(--font-head); font-size: 1.3rem; margin-bottom: 18px;
}

/* Bands ------------------------------------------------------------------- */
.band-green { background: var(--green); color: var(--white); }
.band-green h2, .band-green h3 { color: var(--white); }
.band-green p { color: rgba(255,255,255,.85); }
.band-cream { background: var(--cream-dark); }

/* CTA --------------------------------------------------------------------- */
.cta {
  background: linear-gradient(135deg, var(--green), var(--green-light));
  border-radius: 20px; padding: 60px 40px; text-align: center; color: var(--white);
  box-shadow: var(--shadow-lg);
}
.cta h2 { color: var(--white); }
.cta p { color: rgba(255,255,255,.9); max-width: 560px; margin: 14px auto 28px; }

/* Results table ----------------------------------------------------------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
table.results { width: 100%; border-collapse: collapse; background: var(--white); min-width: 620px; }
table.results th { background: var(--green); color: var(--white); font-weight: 600; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; text-align: left; padding: 15px 18px; }
table.results td { padding: 15px 18px; border-bottom: 1px solid var(--line); font-size: .95rem; }
table.results tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 11px; border-radius: 50px; }
.pill-win { background: #e7f3ec; color: #1c7a48; }
.pill-place { background: #fbf3d9; color: #9a7b12; }
.pill-ran { background: #eef0ef; color: var(--muted); }
.watch-link { display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; font-weight: 700; color: var(--green); text-decoration: none; border: 1px solid var(--gold); border-radius: 50px; padding: 4px 12px; transition: all .15s ease; white-space: nowrap; }
.watch-link:hover { background: var(--green); color: var(--white); border-color: var(--green); }
.watch-link::before { content: "▶"; font-size: .7rem; color: var(--gold); }
.watch-link:hover::before { color: var(--gold-light); }

/* Video / media ----------------------------------------------------------- */
.video-slot {
  aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: var(--green-dark) url("../images/video-placeholder.svg") center/cover;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
}
.video-slot .play { width: 76px; height: 76px; border-radius: 50%; background: rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center; }
.video-slot .play::after { content: ""; border-left: 22px solid var(--green); border-top: 13px solid transparent; border-bottom: 13px solid transparent; margin-left: 6px; }
/* Lightbox — click a photo to enlarge */
.lightbox { position: fixed; inset: 0; background: rgba(6,20,15,.93); display: flex; align-items: center; justify-content: center; padding: 26px; z-index: 200; cursor: zoom-out; opacity: 0; visibility: hidden; transition: opacity .2s ease; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 94vw; max-height: 92vh; border-radius: 8px; box-shadow: 0 24px 70px rgba(0,0,0,.55); }
.lightbox .lb-close { position: absolute; top: 14px; right: 26px; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; }

/* Responsive YouTube / Vimeo embed */
.video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Forms ------------------------------------------------------------------- */
.form-card { background: var(--white); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: block; font-weight: 600; font-size: .88rem; color: var(--green); margin: 16px 0 7px; }
input, select, textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--font-body); font-size: 1rem; background: var(--cream); color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); background: var(--white); }
textarea { min-height: 130px; resize: vertical; }

/* Contact info blocks ----------------------------------------------------- */
.info-list { list-style: none; }
.info-list li { display: flex; gap: 14px; margin-bottom: 22px; }
.info-list .ico { flex: 0 0 44px; height: 44px; border-radius: 12px; background: var(--green); color: var(--gold-light); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.info-list strong { display: block; color: var(--green); }
.info-list span { color: var(--muted); font-size: .95rem; }

/* Footer ------------------------------------------------------------------ */
.site-footer { background: var(--green-dark); color: rgba(255,255,255,.75); padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { color: var(--white); font-family: var(--font-body); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer .brand-text { color: var(--white); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,.72); font-size: .95rem; }
.footer-links a:hover { color: var(--gold-light); }
.footer-desc { font-size: .95rem; max-width: 300px; margin-top: 16px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: .9rem; }
.socials a:hover { background: var(--gold); color: var(--green-dark); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; }

/* Horse profile ----------------------------------------------------------- */
.profile-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.profile-lead-img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; display: block; }
.spec-table { width: 100%; border-collapse: collapse; margin: 22px 0 28px; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .98rem; }
.spec-table th { color: var(--muted); font-weight: 600; width: 42%; }
.spec-table td { color: var(--green); font-weight: 600; }
.avail-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--gold); color: var(--green-dark); font-weight: 700; padding: 8px 16px; border-radius: 50px; font-size: .9rem; }

/* Journey timeline -------------------------------------------------------- */
.stage-head { display: flex; align-items: center; gap: 16px; margin: 0 0 26px; }
.stage-num { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: var(--gold-light); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: 1.4rem; }
.stage-head h2 { margin: 0; }
.stage-head .stage-sub { color: var(--muted); font-size: .95rem; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery a, .gallery .tile { display: flex; align-items: center; justify-content: center; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--cream-dark); }
.gallery img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .35s ease; }
.gallery a:hover img { transform: scale(1.04); }
.stage-soon { background: var(--cream-dark); border: 2px dashed var(--line); border-radius: var(--radius); padding: 48px 24px; text-align: center; color: var(--muted); }

/* Reveal animation -------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .feature, .feature.reverse .feature-text { grid-template-columns: 1fr; order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .profile-head { grid-template-columns: 1fr; gap: 28px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .section { padding: 60px 0; }
  .nav-links {
    position: fixed; top: 74px; left: 0; right: 0; flex-direction: column;
    align-items: stretch; gap: 0; background: var(--green-dark);
    padding: 12px 24px 28px; transform: translateY(-120%); transition: transform .3s ease;
    box-shadow: 0 20px 30px rgba(0,0,0,.3); max-height: calc(100vh - 74px); overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; width: 100%; padding: 18px 12px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 1.08rem; }
  .nav-links .btn { display: block; width: 100%; margin: 18px 0 0; padding: 16px; justify-content: center; font-size: 1.05rem; }
  .nav-toggle { display: block; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 30px; }
}
