/* Icon Racing — editorial thoroughbred aesthetic
   Inspired by farm sites like Three Chimneys: photography-first, restrained type,
   generous whitespace, gold accent, dark base.
*/

:root {
  --c-bg: #0a0c0b;
  --c-bg-2: #14171a;
  --c-surface: #1a1d1f;
  --c-line: #2a2e30;
  --c-text: #eae4d4;
  --c-text-dim: #a8a298;
  --c-cream: #f5f1e8;
  --c-cream-2: #ebe5d4;
  --c-ink: #15171a;
  --c-gold: #c8a24b;
  --c-gold-2: #b58f3a;
  --c-green: #1c3a2e;

  --f-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --f-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --maxw: 1240px;
  --maxw-narrow: 760px;
  --pad-x: clamp(20px, 4vw, 48px);
  --section-y: clamp(64px, 10vw, 128px);

  --radius: 4px;
  --shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-gold); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--c-cream); }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.05rem; font-family: var(--f-sans); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }

p { margin: 0 0 1em; }
.eyebrow {
  font-family: var(--f-sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-gold);
  font-weight: 600;
  margin: 0 0 1rem;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.container--narrow {
  max-width: var(--maxw-narrow);
}

.section { padding: var(--section-y) 0; }
.section--tight { padding: calc(var(--section-y) * 0.55) 0; }
.section--cream { background: var(--c-cream); color: var(--c-ink); }
.section--cream h1, .section--cream h2, .section--cream h3 { color: var(--c-ink); }
.section--cream a { color: var(--c-gold-2); }
.section--cream a:hover { color: var(--c-ink); }
.section--cream .eyebrow { color: var(--c-gold-2); }
.section--green { background: var(--c-green); color: var(--c-cream); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 12, 11, 0.85);
  backdrop-filter: saturate(120%) blur(10px);
  -webkit-backdrop-filter: saturate(120%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__brand img {
  height: 72px;
  width: auto;
  display: block;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__link {
  color: var(--c-text);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.nav__link:hover, .nav__link.is-active {
  color: var(--c-gold);
  border-bottom-color: var(--c-gold);
}
.nav__cta {
  display: inline-block;
  padding: 10px 22px;
  border: 1px solid var(--c-gold);
  color: var(--c-gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.25s ease;
}
.nav__cta:hover, .nav__cta.is-active {
  background: var(--c-gold);
  color: var(--c-ink);
}
.nav__link--cta { display: none; } /* mobile-menu version, hidden on desktop */
.nav__toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 40px;
  height: 36px;
  cursor: pointer;
  padding: 8px 6px;
  flex-direction: column;
  justify-content: space-between;
}
.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--c-cream);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
@media (max-width: 1024px) {
  .nav__brand img { height: 56px; }

  /* Slide-down dropdown for the regular nav links only. translateY uses vh so it
     is guaranteed fully offscreen regardless of how tall the menu becomes. */
  .nav__links {
    position: fixed;
    top: 86px;
    left: 0;
    right: 0;
    background: var(--c-bg-2);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 0;
    transform: translateY(-150vh);
    transition: transform 0.3s ease;
    border-bottom: 1px solid var(--c-line);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__link {
    padding: 16px var(--pad-x);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    text-align: left;
  }

  /* Pull the desktop CTA off the mobile header entirely. The same call-to-action
     is exposed inside the dropdown menu as .nav__link--cta. */
  .nav__cta { display: none; }
  .nav__link--cta {
    display: block;
    color: var(--c-gold);
    border-top: 1px solid var(--c-gold);
    margin-top: 4px;
  }

  .nav__toggle { display: flex; }
}
@media (max-width: 380px) {
  .nav__brand img { height: 44px; }
}

/* ---------- Hero (homepage) ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: var(--c-cream);
}
.hero--page { min-height: 56vh; }
/* Group/portrait photos: anchor crop to the top so faces stay in view. */
.page-team .hero { background-position: center 22%; }
.hero__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px var(--pad-x);
  width: 100%;
}
.hero__inner > * { max-width: 760px; }
.hero__title {
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  font-weight: 500;
  line-height: 0.98;
  margin: 0.2em 0 0.4em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero__sub {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: rgba(245,241,232,0.92);
  max-width: 640px;
  margin-bottom: 2rem;
}
.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--f-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn--gold {
  background: var(--c-gold);
  color: var(--c-ink);
}
.btn--gold:hover { background: var(--c-gold-2); color: var(--c-ink); }
.btn--ghost {
  background: transparent;
  border-color: var(--c-cream);
  color: var(--c-cream);
}
.btn--ghost:hover {
  background: var(--c-cream);
  color: var(--c-ink);
}
.btn--dark {
  background: var(--c-ink);
  color: var(--c-cream);
}
.btn--dark:hover { background: var(--c-green); }

/* ---------- Marquee / proof bar ---------- */
.proof {
  background: var(--c-bg-2);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  padding: 22px 0;
}
.proof__row {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 28px;
  text-align: center;
}
.proof__item span {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--c-gold);
  line-height: 1;
}
.proof__item small {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  margin-top: 6px;
}

/* ---------- Two-column editorial blocks ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.split--narrow { gap: 48px; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split__media--frame {
  position: relative;
  padding: 14px;
}
.split__media--frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--c-gold);
  transform: translate(16px, 16px);
}
.split__media--frame img { position: relative; z-index: 1; }
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
}

/* ---------- Pillars / mission ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 3rem;
}
.pillar {
  padding: 28px 24px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}
.pillar h4 { color: var(--c-gold); margin-bottom: 8px; }
.pillar p { color: var(--c-text-dim); font-size: 0.96rem; margin: 0; }

/* ---------- Track record ---------- */
.record__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 3rem;
}
.record__card {
  border-top: 1px solid var(--c-gold);
  padding-top: 20px;
}
.record__card h3 {
  font-family: var(--f-display);
  font-size: 1.6rem;
  color: var(--c-cream);
  margin: 0 0 6px;
}
.record__card p {
  color: var(--c-text-dim);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Horse cards ---------- */
.horse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}
.horse-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.horse-card:hover { transform: translateY(-4px); border-color: var(--c-gold); }
.horse-card__media {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--c-bg-2);
}
.horse-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.horse-card:hover .horse-card__media img { transform: scale(1.04); }
.horse-card__body {
  padding: 22px 22px 26px;
}
.horse-card__name {
  font-family: var(--f-display);
  font-size: 1.55rem;
  color: var(--c-cream);
  margin: 0 0 6px;
  letter-spacing: -0.005em;
}
.horse-card__meta {
  color: var(--c-text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.horse-card__link {
  color: var(--c-gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- Horse detail ---------- */
.horse-detail {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}
.horse-detail__media img { box-shadow: var(--shadow); }
.horse-detail__spec {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  border-top: 1px solid var(--c-line);
}
.horse-detail__spec li {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--c-line);
  font-size: 0.96rem;
}
.horse-detail__spec li strong {
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--c-text-dim);
  align-self: center;
}
.horse-detail__spec li span { color: var(--c-cream); text-align: right; }
@media (max-width: 800px) {
  .horse-detail { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 36px;
}
.team-card { text-align: left; }
.team-card__photo {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--c-bg-2);
  margin-bottom: 18px;
}
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(15%); }
.team-card__name {
  font-family: var(--f-display);
  font-size: 1.5rem;
  color: var(--c-cream);
  margin: 0 0 4px;
}
.team-card__role {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin: 0 0 12px;
}
.team-card__bio {
  color: var(--c-text-dim);
  font-size: 0.95rem;
  margin: 0 0 14px;
}
.team-card__links {
  display: flex;
  gap: 14px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- FAQ accordion ---------- */
.faq {
  max-width: 840px;
  margin: 0 auto;
}
.faq__item {
  border-top: 1px solid var(--c-line);
  padding: 24px 0;
}
.faq__item:last-child { border-bottom: 1px solid var(--c-line); }
.faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
  font-family: var(--f-display);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  color: var(--c-cream);
  cursor: pointer;
  padding: 4px 0;
}
.section--cream .faq__q { color: var(--c-ink); }
.faq__q::after {
  content: '';
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--c-gold);
  border-bottom: 2px solid var(--c-gold);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-right: 4px;
}
.faq__item.is-open .faq__q::after { transform: rotate(-135deg); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq__a-inner {
  padding-top: 18px;
  color: var(--c-text-dim);
  font-size: 1rem;
  line-height: 1.7;
}
.section--cream .faq__a-inner { color: #4a4a4a; }
.faq__a-inner p:last-child { margin-bottom: 0; }
.faq__a-inner ul { padding-left: 1.2em; }
.faq__a-inner li { margin-bottom: 0.4em; }

/* ---------- Quote / testimonial ---------- */
.testimonial {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.testimonial blockquote {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-style: italic;
  line-height: 1.4;
  margin: 0 0 20px;
  position: relative;
}
.testimonial blockquote::before {
  content: '\201C';
  display: block;
  font-size: 4rem;
  color: var(--c-gold);
  line-height: 0.6;
  margin-bottom: 10px;
}
.testimonial cite {
  display: block;
  font-style: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--c-text-dim);
}
.section--cream .testimonial cite { color: #555; }

/* ---------- Form ---------- */
.form {
  max-width: 620px;
  margin: 0 auto;
}
.form__row { margin-bottom: 22px; }
.form__row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  margin-bottom: 8px;
}
.form input[type=text],
.form input[type=email],
.form input[type=tel],
.form input[type=number],
.form select,
.form textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--f-sans);
  font-size: 1rem;
  color: var(--c-cream);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 2px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.section--cream .form input,
.section--cream .form select,
.section--cream .form textarea {
  background: #fff;
  color: var(--c-ink);
  border-color: #d8d2c2;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--c-gold);
}
.form textarea { min-height: 120px; resize: vertical; }
.form__checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--c-text-dim);
  line-height: 1.5;
}
.section--cream .form__checkbox { color: #444; }
.form__checkbox input { margin-top: 4px; flex-shrink: 0; }
.form__honey { position: absolute; left: -9999px; opacity: 0; }
.form__status {
  padding: 14px 18px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: none;
  font-size: 0.95rem;
}
.form__status.is-error {
  display: block;
  background: rgba(180, 70, 70, 0.12);
  border-left: 3px solid #b44646;
  color: #f5b0b0;
}
.form__status.is-success {
  display: block;
  background: rgba(80, 140, 90, 0.12);
  border-left: 3px solid #5d9870;
  color: #aedfb8;
}
.section--cream .form__status.is-error { background: #fdf0f0; color: #8a2222; }
.section--cream .form__status.is-success { background: #f0f8f1; color: #2a6a3a; }

/* ---------- Footer ---------- */
.site-footer {
  background: #060807;
  color: var(--c-text-dim);
  padding: 80px 0 30px;
  border-top: 1px solid var(--c-line);
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 60px;
}
.footer__brand img { margin-bottom: 18px; }
.footer__tag { font-family: var(--f-display); font-size: 1.2rem; color: var(--c-cream); margin-bottom: 14px; }
.footer__contact a { color: var(--c-gold); font-size: 0.95rem; }
.footer__social { margin-top: 18px; display: flex; gap: 14px; }
.footer__social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  color: var(--c-text-dim);
  transition: border-color 0.2s, color 0.2s;
}
.footer__social a:hover { border-color: var(--c-gold); color: var(--c-gold); }
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.footer__cols h4 {
  color: var(--c-cream);
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  margin-bottom: 16px;
}
.footer__cols a {
  display: block;
  font-size: 0.9rem;
  color: var(--c-text-dim);
  padding: 4px 0;
}
.footer__cols a:hover { color: var(--c-gold); }
.footer__bottom {
  max-width: var(--maxw);
  margin: 60px auto 0;
  padding: 24px var(--pad-x) 0;
  border-top: 1px solid var(--c-line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--c-text-dim);
}
.footer__finelegal { max-width: 540px; margin: 0; }
@media (max-width: 800px) {
  .footer__inner { grid-template-columns: 1fr; gap: 36px; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Media gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
.gallery a {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--c-surface);
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s;
}
.gallery a:hover img { transform: scale(1.05); opacity: 0.9; }

/* ---------- Press strip ---------- */
.press {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  align-items: center;
  text-align: center;
  margin-top: 2.5rem;
}
.press img {
  margin: 0 auto;
  max-height: 56px;
  width: auto;
  opacity: 0.7;
  filter: grayscale(100%);
  transition: opacity 0.3s, filter 0.3s;
}
.press img:hover { opacity: 1; filter: none; }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  padding: clamp(64px, 9vw, 120px) var(--pad-x);
  background: linear-gradient(180deg, rgba(10,12,11,0.6), rgba(10,12,11,0.85)), center/cover no-repeat var(--bg);
  color: var(--c-cream);
}
.cta-band h2 { color: var(--c-cream); max-width: 760px; margin: 0 auto 18px; }
.cta-band p { max-width: 620px; margin: 0 auto 28px; color: rgba(245,241,232,0.85); }

/* ---------- Misc ---------- */
.center-text { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.divider {
  width: 60px;
  height: 1px;
  background: var(--c-gold);
  margin: 24px auto;
  border: 0;
}

/* ---------- Accessibility focus ---------- */
:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 2px;
}

/* ---------- Skip link ---------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--c-gold);
  color: var(--c-ink);
  padding: 10px 16px;
  z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }
