/* Equi+Poise brand stylesheet — derived from the equi-poise.ai design system
   (marketing/equi-poise-ai/public/css/site.css). Same palette and typography;
   extended with multi-page header, page heroes, prose, cards and gallery. */
:root {
  --slate: #4D516C;
  --indigo: #858BBD;
  --body: #3F3F3F;
  --watermark: #F3FAFB;
  --page-w: 1440px;
  --content-w: 1010px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  color: var(--body); background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { display: block; }
a { color: var(--slate); }

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; text-decoration: none; cursor: pointer;
  font-size: 13px; letter-spacing: 0.12em; font-weight: 500;
}
.pill-outline { border: 1px solid #fff; color: #fff; padding: 10px 34px; background: transparent; }
.pill-outline:hover { background: rgba(255,255,255,0.12); }
.pill-slate { background: var(--slate); color: #fff; border: none; padding: 11px 36px; margin-top: 8px; }
.pill-slate:hover { background: #3d4157; }

/* ---------- header ---------- */
.site-head { background: var(--slate); }
.head-inner {
  max-width: var(--page-w); margin: 0 auto; padding: 20px 5.5% 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.head-logo img { width: 218px; height: auto; }
.head-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.head-nav a {
  color: #fff; text-decoration: none; font-size: 13px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.head-nav a:hover { border-bottom-color: rgba(255,255,255,0.55); }
.head-nav a.active { border-bottom-color: #fff; }

/* ---------- page hero ---------- */
.page-hero { position: relative; background: #14141c; overflow: hidden; min-height: 320px; max-height: 46vh; display: flex; }
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.page-hero-overlay {
  position: relative; width: 100%; align-self: stretch;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 76px 20px;
  background: linear-gradient(180deg, rgba(18,18,30,0.5) 0%, rgba(18,18,30,0.25) 50%, rgba(18,18,30,0.4) 100%);
}
.page-hero-h1 {
  text-align: center; color: #fff;
  font-size: clamp(30px, 4.98vw, 64px); font-weight: 300; letter-spacing: -0.008em; line-height: 1.05;
}
.hero-sub { color: rgba(255,255,255,0.88); font-size: 17px; letter-spacing: 0.06em; text-align: center; }

/* ---------- sections ---------- */
.intro { position: relative; padding: 72px 20px 8px; }
.section-heading {
  text-align: center; color: var(--slate);
  font-size: 33px; font-weight: 500; letter-spacing: 0.02em; line-height: 1.45;
  margin: 48px 0 28px; position: relative;
}
.intro .section-heading { margin: 0; }
.features { position: relative; max-width: var(--page-w); margin: 0 auto; padding: 64px 5.5% 30px; overflow: hidden; }
.watermarks { position: absolute; inset: 0; color: var(--watermark); pointer-events: none; }
.wm { position: absolute; fill: currentColor; }
.wm-shoe-r { width: 620px; height: 620px; right: -240px; top: 40%; transform: rotate(-18deg); }
.wm-plus-r { width: 190px; height: 190px; right: -40px; top: 78%; }
.feature-row, .feature-row-flip { position: relative; }
.feature-row {
  display: grid; grid-template-columns: 385px 1fr; gap: 100px;
  align-items: center; margin-bottom: 84px;
}
.feature-row-flip { grid-template-columns: 1fr 385px; }
.feature-copy .feature-icon { width: 52px; margin-bottom: 24px; }
.feature-copy h3 {
  color: var(--slate); font-size: 23px; font-weight: 500;
  letter-spacing: 0.015em; line-height: 1.35; margin-bottom: 20px;
}
.feature-copy p { font-size: 16px; line-height: 1.72; margin-bottom: 18px; }
.feature-image { width: 100%; height: auto; border-radius: 2px; }

/* ---------- testimonials ---------- */
.quotes { max-width: var(--content-w); margin: 0 auto; padding: 30px 20px 70px; }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 14px; }
.quote-grid blockquote {
  background: var(--watermark); border-radius: 8px; padding: 26px 24px;
  color: var(--slate); font-size: 15px; line-height: 1.7;
}
.quote-note { text-align: center; color: var(--indigo); font-size: 14px; letter-spacing: 0.1em; margin-top: 26px; text-transform: uppercase; }

/* ---------- prose pages ---------- */
.prose { max-width: 780px; margin: 0 auto; padding: 58px 20px 30px; }
.prose-wide { max-width: var(--content-w); }
.prose p { font-size: 16.5px; line-height: 1.75; margin-bottom: 20px; }
.prose .section-heading { text-align: left; font-size: 24px; margin: 44px 0 18px; }
.fact-list { list-style: none; margin: 0 0 24px; }
.fact-list li {
  position: relative; padding: 10px 0 10px 34px; font-size: 16px; line-height: 1.6;
  border-bottom: 1px solid #ececf1;
}
.fact-list li::before {
  content: '+'; position: absolute; left: 4px; top: 8px;
  color: var(--indigo); font-size: 20px; font-weight: 500;
}
.legal-fold { border: 1px solid #dcdce4; border-radius: 8px; padding: 0 22px; margin-top: 34px; }
.legal-fold summary {
  cursor: pointer; list-style: none; font-weight: 500; color: var(--slate);
  font-size: 15px; padding: 18px 0; position: relative;
}
.legal-fold summary::-webkit-details-marker { display: none; }
.legal-fold summary::after { content: '+'; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 300; }
.legal-fold[open] summary::after { content: '\2212'; }
.legal-fold p { font-size: 14px; color: #666; line-height: 1.65; margin-bottom: 16px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin: 10px 0 26px; }
.contact-card { background: var(--watermark); border-radius: 8px; padding: 30px 28px; }
.contact-card h3 { color: var(--slate); font-size: 17px; letter-spacing: 0.12em; margin-bottom: 16px; }
.contact-card p { font-size: 15.5px; margin-bottom: 12px; }
.emergency { text-align: center; color: var(--slate); font-weight: 500; }

/* ---------- gallery ---------- */
.gal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; border-radius: 4px; }
.gal-item:hover img { opacity: 0.85; }

/* ---------- CTA band (register-style) ---------- */
.cta-band { position: relative; background: var(--slate); padding: 78px 20px 74px; overflow: hidden; text-align: center; margin-top: 40px; }
.cta-watermark {
  position: absolute; right: -60px; top: 50%; transform: translateY(-50%);
  width: 480px; height: 480px; fill: rgba(255,255,255,0.05); pointer-events: none;
}
.cta-heading { color: #fff; font-size: 33px; font-weight: 500; letter-spacing: 0.02em; margin-bottom: 16px; position: relative; }
.cta-sub { color: rgba(255,255,255,0.8); font-size: 16px; margin-bottom: 34px; position: relative; }
.cta-sub a { color: #fff; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ---------- footer ---------- */
.site-foot { position: relative; background: #3d4157; padding: 56px 20px 40px; overflow: hidden; }
.foot-wm { position: absolute; right: -50px; bottom: -70px; width: 300px; height: 300px; fill: rgba(255,255,255,0.05); }
.foot-inner { max-width: var(--content-w); margin: 0 auto; text-align: center; position: relative; }
.foot-logo { width: 200px; margin: 0 auto 24px; }
.foot-contact p { color: rgba(255,255,255,0.85); font-size: 14.5px; margin-bottom: 8px; }
.foot-contact a { color: #fff; text-decoration: none; }
.foot-links { display: flex; gap: 24px; justify-content: center; margin: 22px 0 18px; flex-wrap: wrap; }
.foot-links a { color: rgba(255,255,255,0.7); font-size: 13px; letter-spacing: 0.08em; text-decoration: none; text-transform: uppercase; }
.foot-links a:hover { color: #fff; }
.foot-copy { color: rgba(255,255,255,0.5); font-size: 12.5px; }

/* ---------- .ai landing sections (biomechanics page) ---------- */
.hero { position: relative; width: 100%; aspect-ratio: 1440 / 681; background: #14141c; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,18,30,0.42) 0%, rgba(18,18,30,0.18) 45%, rgba(18,18,30,0.28) 100%);
}
.hero-topbar { display: flex; align-items: flex-start; justify-content: space-between; padding: 4.03vw 5.9vw 0; }
.hero .pill-outline { font-size: 0.9vw; letter-spacing: 0.12em; width: 9.1vw; padding: 0.66vw 0; border-width: 1px; justify-content: center; }
.hero-headline {
  position: absolute; left: 0; right: 0; top: 40.5%;
  text-align: center; color: #fff;
  font-size: 4.98vw; font-weight: 300; letter-spacing: -0.008em; line-height: 1.0;
}
.wm-intro { position: absolute; left: -10px; top: 149px; width: 220px; height: auto; pointer-events: none; }
.intro-horses { width: 330px; margin: 0 auto 44px; position: relative; }
.film { position: relative; height: min(56.25vw, 92vh); background: #14141c; }
.film.playing { height: 100vh; height: 100svh; }
.film-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.film-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 7vw; height: 7vw; min-width: 64px; min-height: 64px; border: none; background: transparent; cursor: pointer;
  transition: transform 0.15s ease;
}
.film-play:hover { transform: translate(-50%, -50%) scale(1.06); }
.film-play svg { width: 100%; height: 100%; }
.play-ring { fill: rgba(255,255,255,0.26); stroke: #fff; stroke-width: 3; }
.play-tri { fill: #fff; }
.faq { max-width: var(--content-w); margin: 0 auto; padding: 92px 20px 60px; }
.faq .section-heading { margin-bottom: 64px; }
.faq-list details { border-bottom: 1px solid #c9c9c9; }
.faq-list details:first-child { border-top: 1px solid #c9c9c9; }
.faq-list summary {
  list-style: none; cursor: pointer; position: relative;
  font-size: 17px; color: #000; font-weight: 500;
  padding: 20px 44px 20px 0;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 27px; font-weight: 300; color: #000;
}
.faq-list details[open] summary::after { content: '\2212'; }
.faq-list details p { color: var(--indigo); font-size: 16px; line-height: 1.68; padding: 0 60px 22px 0; }
.footer img { width: 100%; height: auto; }
.bio-page .cta-band { margin-top: 0; }



/* ---------- split rows (text beside image, from the original site layout) ---------- */
.split { max-width: var(--content-w); margin: 0 auto; padding: 26px 20px; display: grid; grid-template-columns: 1fr 400px; gap: 56px; align-items: center; }
.split.flip { grid-template-columns: 400px 1fr; }
.split img { width: 100%; height: auto; border-radius: 6px; }
.split .section-heading { text-align: left; font-size: 24px; margin: 0 0 18px; }
.split p { font-size: 16.5px; line-height: 1.75; margin-bottom: 18px; }
@media (max-width: 900px) { .split, .split.flip { grid-template-columns: 1fr; gap: 24px; } .split.flip img { order: 2; } }

/* ---------- photo strip ---------- */
.photo-strip {
  max-width: var(--content-w); margin: 26px auto 10px; padding: 0 20px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px;
}
.photo-strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }

/* ---------- fee table ---------- */
.fee-table { width: 100%; border-collapse: collapse; margin: 6px 0 24px; }
.fee-table th {
  background: var(--slate); color: #fff; text-align: left;
  font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500;
  padding: 12px 16px;
}
.fee-table td { padding: 12px 16px; font-size: 16px; border-bottom: 1px solid #ececf1; }
.fee-table tr:nth-child(even) td { background: var(--watermark); }


/* ---------- consent banner (epz-couk.js) ---------- */
.pill-solid { background: #fff; color: var(--slate); border: none; padding: 10px 40px; }
.pill-solid:hover { background: #e9eaf2; }
.epz-consent {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 60; background: var(--slate); color: #fff;
  max-width: 620px; width: calc(100% - 40px);
  padding: 20px 24px; border-radius: 8px; box-shadow: 0 8px 30px rgba(20,20,30,0.35);
}
.epz-consent p { font-size: 14px; line-height: 1.55; margin-bottom: 14px; color: #fff; }
.epz-consent-actions { display: flex; gap: 12px; }
.epz-consent .pill { font-family: inherit; border: none; cursor: pointer; }
.epz-ghost { background: transparent; border: 1px solid rgba(255,255,255,0.55) !important; color: #fff; padding: 10px 24px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .head-inner { justify-content: center; }
  .feature-row, .feature-row-flip { grid-template-columns: 1fr; gap: 40px; margin-bottom: 56px; }
  .feature-row-flip .feature-image { order: 2; }
  .section-heading, .cta-heading { font-size: 24px; }
  .quote-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .gal-grid { grid-template-columns: repeat(2, 1fr); }
  .wm-intro { display: none; }
  .intro-horses { width: 230px; }
  .film-play { width: 64px; height: 64px; }
  .hero .pill-outline { font-size: 11px; width: auto; padding: 8px 20px; }
}
