:root {
  --blue: #204359;
  --blue-deep: #142d3d;
  --cream: #f5efe3;
  --cream-2: #fbf8f1;
  --white: #ffffff;
  --ink: #20313b;
  --muted: #6e7779;
  --gold: #b99655;
  --sage: #778573;
  --leather: #7b583b;
  --line: rgba(32, 67, 89, 0.18);
  --shadow: 0 24px 70px rgba(20, 45, 61, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream-2);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.65;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  margin: 0;
  color: var(--blue);
  font-family: Cinzel, "Libre Baskerville", serif;
  line-height: 1.12;
  font-weight: 600;
}

h1 { font-size: clamp(2.7rem, 7vw, 6.6rem); }
h2 { font-size: clamp(2rem, 4vw, 4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
  padding: 0 5vw;
  background: rgba(251, 248, 241, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  width: clamp(200px, 17vw, 230px);
  height: auto;
  max-height: 52px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 2vw, 1.8rem);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.main-nav a {
  padding: 0.5rem 0;
  color: rgba(32, 67, 89, 0.78);
  border-bottom: 1px solid transparent;
}

.main-nav a:hover,
.main-nav a.active { color: var(--blue); border-color: var(--gold); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--blue);
}

.tri-hero {
  display: grid;
  grid-template-columns: 0.88fr 1.25fr 0.88fr;
  gap: clamp(0.75rem, 1.6vw, 1.3rem);
  min-height: calc(100vh - 76px);
  padding: clamp(1rem, 2vw, 1.6rem);
  background: linear-gradient(180deg, var(--cream-2), var(--cream));
}

.hero-panel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid rgba(185, 150, 85, 0.45);
  box-shadow: var(--shadow);
}

.hero-side {
  background-size: cover;
  background-position: center;
}

.hero-side::after,
.hero-center::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(20, 45, 61, 0.08), rgba(20, 45, 61, 0.34));
}

.hero-center {
  display: grid;
  place-items: center;
  background: var(--blue-deep);
}

.hero-center-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
}

.crest {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: min(86%, 560px);
  min-height: 380px;
  padding: clamp(2rem, 5vw, 4rem);
  text-align: center;
  color: var(--white);
  border: 1px solid rgba(245, 239, 227, 0.78);
  outline: 1px solid rgba(185, 150, 85, 0.5);
  outline-offset: -12px;
  background: rgba(20, 45, 61, 0.44);
}

.crest-logo {
  width: min(88%, 350px);
  margin-bottom: 1.2rem;
  border: 1px solid rgba(245, 239, 227, 0.28);
  box-shadow: 0 20px 55px rgba(38, 62, 92, 0.32);
}

.crest h1 { color: var(--white); text-shadow: 0 4px 18px rgba(0,0,0,0.28); }
.crest p { max-width: 34rem; font-family: "Libre Baskerville", serif; }

.crest-kicker,
.eyebrow {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.rider-duo {
  position: absolute;
  z-index: 2;
  bottom: 12%;
  left: 50%;
  width: 190px;
  height: 260px;
  transform: translateX(-50%);
  opacity: 0.72;
  filter: drop-shadow(0 16px 25px rgba(0,0,0,0.45));
}

.rider {
  position: absolute;
  bottom: 0;
  width: 74px;
  height: 190px;
  border-radius: 38px 38px 12px 12px;
  background: linear-gradient(180deg, #241f1b, #090a0b);
}

.rider::before {
  position: absolute;
  top: -42px;
  left: 13px;
  width: 48px;
  height: 28px;
  content: "";
  border-radius: 50%;
  background: #111;
  box-shadow: 0 -10px 0 4px #17120f;
}

.rider-one { left: 32px; transform: rotate(-2deg); }
.rider-two { right: 32px; height: 178px; transform: rotate(2deg); }
.in-image { bottom: 8%; transform: translateX(-50%) scale(0.9); }

.section {
  padding: clamp(4rem, 8vw, 7rem) 5vw;
}

.cream { background: var(--cream); }

.section-heading {
  max-width: 760px;
  margin-bottom: 2.4rem;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.85fr);
  gap: 3rem;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-copy { display: grid; gap: 1.4rem; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--blue);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.button.primary { color: var(--white); background: var(--blue); }
.button.ghost { color: var(--blue); background: transparent; }
.button.discord { color: var(--white); background: #5865f2; border-color: #5865f2; }
.button:hover { transform: translateY(-1px); }

.horse-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.horse-card {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(20, 45, 61, 0.08);
}

.horse-card figure { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; }
.horse-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.horse-card:hover img { transform: scale(1.04); }
.horse-card-body { padding: 1.2rem; }

.status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.25rem 0.65rem;
  color: var(--white);
  background: var(--sage);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

figcaption.status { position: absolute; left: 0.8rem; top: 0.8rem; }
.status.reserved { background: var(--leather); }
.status.sold { background: #717171; }

dl { display: grid; gap: 0.42rem; margin: 1rem 0 0; }
dl div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid rgba(32,67,89,0.1); }
dt { color: var(--muted); font-size: 0.82rem; }
dd { margin: 0; font-weight: 700; text-align: right; }

.service-grid,
.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-grid article,
.values article,
.service-list article,
.contact-card,
.contact-form {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
}

.service-grid span { color: var(--gold); font-family: Cinzel, serif; font-weight: 700; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.split.reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); }
.split-image { position: relative; min-height: 540px; background-size: cover; background-position: center; border: 1px solid rgba(185,150,85,0.45); }
.split-copy { display: grid; gap: 1.2rem; }
.text-link { color: var(--blue); font-weight: 800; border-bottom: 1px solid var(--gold); width: fit-content; }

.page-hero {
  min-height: 440px;
  display: grid;
  align-content: end;
  gap: 1rem;
  padding: 7rem 5vw 4rem;
  color: var(--white);
  background: linear-gradient(180deg, rgba(20,45,61,0.58), rgba(20,45,61,0.88)), url("../assets/images/hero-left.jpg") center/cover;
}

.page-hero h1,
.page-hero p:not(.eyebrow) { color: var(--white); max-width: 720px; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 2rem;
}

.chip {
  min-height: 40px;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--blue);
  font-weight: 800;
}

.chip.active { background: var(--blue); color: var(--white); }

.profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  min-height: calc(100vh - 76px);
  background: var(--cream);
}

.profile-media img { width: 100%; height: 100%; min-height: 580px; object-fit: cover; }
.profile-summary { display: grid; align-content: center; gap: 1.2rem; padding: clamp(2rem, 5vw, 5rem); }
.profile-details { grid-template-columns: 1fr; max-width: 560px; }

.gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 1rem;
}

.gallery img { width: 100%; height: 440px; object-fit: cover; border: 1px solid var(--line); }
.gallery img:first-child { height: 560px; grid-row: span 2; }

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.fancy-list { padding-left: 1.1rem; margin: 0; }
.fancy-list li::marker { color: var(--gold); }

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.45fr);
  gap: 1.5rem;
  background: var(--cream);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

label { display: grid; gap: 0.4rem; font-weight: 800; color: var(--blue); }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 0.9rem 1rem;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.contact-card { display: grid; align-content: start; gap: 1rem; }
.contact-meta { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.2rem 5vw;
  color: var(--white);
  background: var(--blue-deep);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer p { color: rgba(255,255,255,0.72); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.22s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto; transition: none !important; animation: none !important; }
}

@media (max-width: 1000px) {
  .tri-hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-panel { min-height: 520px; }
  .hero-side { min-height: 360px; }
  .horse-grid, .service-grid, .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro-band, .split, .split.reverse, .profile-hero, .contact-layout { grid-template-columns: 1fr; }
  .profile-media img { max-height: 680px; }
}

@media (max-width: 760px) {
  .site-header { min-height: 68px; padding-inline: 1rem; }
  .brand-logo { width: clamp(145px, 45vw, 175px); max-height: 38px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--cream-2);
    border-bottom: 1px solid var(--line);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.8rem 0.4rem; }
  .section { padding: 3.2rem 1rem; }
  .tri-hero { padding: 0.75rem; }
  .hero-panel { min-height: 520px; }
  .hero-side { min-height: 300px; }
  .crest { min-height: 330px; width: 92%; }
  .horse-grid, .service-grid, .values, .service-list, .gallery { grid-template-columns: 1fr; }
  .gallery img, .gallery img:first-child { height: 360px; grid-row: auto; }
  .split-image { min-height: 420px; }
  .page-hero { min-height: 360px; padding: 5rem 1rem 3rem; }
  .site-footer { flex-direction: column; }
}
