:root {
    --green: #408060;
    --blue: #2C2C80;
    --gold: #D09800;
    --plum: #C80000;
    --ink: #101010;
    --cream: #f7f2e8;
    --white: #ffffff;
    --shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
    --max: 1180px;
    --header-height: 84px;
    font-family: "Open Sans", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    min-width: max-content;
}

.brand img {
    width: 112px;
}

/* Reusable component: header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.header-inner {
    max-width: var(--max);
    height: var(--header-height);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    min-width: max-content;
}

.brand img {
    width: 224px;
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: white;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--green);
    position: relative;
    content: "";
}

.nav-toggle-label span::before {
    position: absolute;
    top: -6px;
}

.nav-toggle-label span::after {
    position: absolute;
    top: 6px;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 0.86rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.primary-nav a {
    color: var(--ink);
    text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a:focus {
    color: var(--green);
}

.dropdown {
    position: relative;
    padding: 28px 0;
}

.dropdown>a::after {
    content: " ▾";
    font-size: 0.75em;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    padding: 12px;
    background: white;
    border-radius: 18px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: 160ms ease;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 700;
}

.dropdown-menu a:hover {
    background: var(--cream);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    background: var(--green);
    color: white;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 8px 24px rgba(0, 100, 56, 0.24);
    transition: transform 160ms ease, box-shadow 160ms ease;
    border: 0;
    cursor: pointer;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(0, 100, 56, 0.32);
}

.button.secondary {
    background: white;
    color: var(--green);
    box-shadow: none;
    border: 2px solid var(--green);
}

.button.gold {
    background: var(--gold);
    color: var(--ink);
    box-shadow: 0 8px 24px rgba(216, 176, 0, 0.22);
}

/* Reusable component: hero slider */
.hero {
    min-height: calc(100vh - var(--header-height));
    display: grid;
    place-items: center;
    text-align: center;
    color: white;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #111;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 40%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
    z-index: 2;
}

.hero-content {
    width: min(980px, calc(100% - 40px));
    padding: 72px 0;
    z-index: 4;
}

.hero-logo {
    width: clamp(112px, 18vw, 190px);
    margin: 0 auto 28px;
}

h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.4rem, 7vw, 5.8rem);
    line-height: 1;
    margin: 0;
    text-wrap: balance;
}

.hero-subtitle {
    max-width: 920px;
    margin: 24px auto 34px;
    font-size: clamp(1.05rem, 2vw, 1.45rem);
    font-weight: 700;
    text-wrap: balance;
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.slider-controls {
    position: absolute;
    z-index: 5;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid white;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.slider-dot[aria-current="true"] {
    background: white;
}

.slider-pause {
    margin-left: 8px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .8);
    background: rgba(0, 0, 0, .2);
    color: white;
    cursor: pointer;
}

section {
    padding: 84px 24px;
}

.section-inner {
    max-width: var(--max);
    margin: 0 auto;
}

.section-kicker {
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 800;
    font-size: 0.82rem;
    margin: 0 0 12px;
}

h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.08;
    margin: 0 0 20px;
    color: var(--blue);
    text-wrap: balance;
}

.lead {
    font-size: 1.1rem;
    margin: 0 auto 26px;
    max-width: 920px;
}

.stallion-intro {
    background: var(--blue);
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
}

.stallion-intro .section-kicker {
    color: var(--gold);
}

.stallion-intro h2 {
    color: white;
}

.stallion-intro .lead {
    color: rgba(255, 255, 255, 0.75);
    max-width: 600px;
    margin-inline: auto;
}

.stallion-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.stallion-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px 28px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 16px;
    align-items: start;
}

.stallion-card h3 {
    color: var(--gold);
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.4rem;
}

.stallion-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

.stallion-card .button {
    justify-self: center;
    margin-top: auto;
}

.program {
    background: white;
    text-align: center;
}

.program p {
    max-width: 980px;
}

/* Reusable component: content slider */
[data-image-slider] {
    position: relative;
    overflow: hidden;
}

.slider-track {
    position: absolute;
    inset: 0;
}

.slider-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.slider-slide.is-active {
    opacity: 1;
}

.horse-slider {
    position: relative;
    margin-top: 40px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #111;
}

.horse-slider-track {
    display: flex;
    transition: transform 450ms ease;
}

.horse-slide {
    min-width: 100%;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    min-height: 480px;
    background: var(--blue);
    color: white;
}

.horse-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.horse-slide-copy {
    padding: clamp(30px, 5vw, 64px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

.horse-slide-copy h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 4rem);
    margin: 0 0 12px;
    color: var(--gold);
}

.horse-slide-copy p {
    font-size: 1.1rem;
    margin: 0 0 24px;
}

.horse-tagline {
    font-style: italic;
    color: var(--gold);
    margin: 0 0 8px;
}

.horse-slider-buttons {
    position: absolute;
    inset: auto 20px 20px auto;
    display: flex;
    gap: 10px;
}

.icon-button {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .8);
    background: rgba(0, 0, 0, .35);
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
}

/* Reusable component: footer */
.site-footer {
    background: var(--ink);
    color: white;
    padding: 56px 24px;
}

.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 36px;
    align-items: center;
    text-align: center;
}

.footer-logo {
    width: 132px;
    margin: 0 auto 12px;
}

.footer-brand-block strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    color: var(--gold);
}

.footer-membership a {
    color: white;
    font-weight: 700;
}

.footer-membership a:hover {
    color: var(--gold);
}

.footer-membership-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.footer-membership-logos img {
    max-height: 74px;
    width: auto;
}

.footer-links {
    display: grid;
    gap: 12px;
}

.footer-links a {
    color: white;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--gold);
}

.content-section {
    padding: 84px 24px;
    background: white;
}

.content-narrow {
    max-width: 900px;
    margin: 0 auto;
}

.content-narrow p,
.profile-copy p,
.content-narrow li,
.profile-copy li {
    font-size: 1.05rem;
}

.content-narrow h3,
.profile-copy h3 {
    margin-top: 42px;
    color: var(--green);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.8rem;
}

#contact-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

#modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
}

.modal-box {
    position: relative;
    z-index: 1;
    background: white;
    border-radius: 24px;
    padding: clamp(32px, 5vw, 56px);
    width: min(560px, calc(100vw - 40px));
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    box-shadow: var(--shadow);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
}

.modal-box h2 {
    font-size: 1.8rem;
    margin: 0 0 24px;
}

.modal-box input,
.modal-box textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    margin-bottom: 14px;
    box-sizing: border-box;
    transition: border-color 160ms ease;
}

.modal-box input:focus,
.modal-box textarea:focus {
    outline: none;
    border-color: var(--green);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-row input {
    width: 100%;
}

.form-error {
    color: var(--plum);
    font-size: 0.9rem;
    margin: 0 0 14px;
}

.modal-box .button {
    width: 100%;
    min-height: 50px;
    font-size: 1rem;
}

/* ── Home: track record ── */
.track-record {
    background: var(--cream);
    text-align: center;
}

.track-record .lead {
    max-width: 680px;
}

.track-stats {
    list-style: none;
    padding: 0;
    margin: 44px 0 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.track-stat {
    background: white;
    border-radius: 20px;
    padding: 36px 28px 32px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* Small gold rule above each figure, echoing the hero rule */
.track-stat::before {
    content: '';
    width: 40px;
    height: 3px;
    background: var(--gold);
    margin-bottom: 6px;
}

.track-stat-number {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 3.4vw, 2.7rem);
    line-height: 1;
    color: var(--blue);
}

.track-stat-label {
    font-size: 0.98rem;
    line-height: 1.5;
    color: #444;
    max-width: 260px;
}

.track-riders {
    margin: 44px auto 24px;
    font-size: 1.1rem;
}

.track-riders strong {
    color: var(--green);
}

@media (max-width: 768px) {
    .track-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    :root {
        --header-height: 74px;
    }

    .header-inner {
        height: 74px;
    }

    .nav-toggle-label {
        display: inline-flex;
    }

    .primary-nav {
        position: absolute;
        top: 74px;
        left: 0;
        right: 0;
        display: grid;
        gap: 0;
        padding: 14px 24px 24px;
        background: white;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        transform: translateY(-130%);
        transition: transform 180ms ease;
        box-shadow: var(--shadow);
    }

    .primary-nav a {
        padding: 14px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

    .primary-nav .button {
        margin-top: 16px;
        border-bottom: 0;
    }

    .nav-toggle:checked~.primary-nav {
        transform: translateY(0);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        box-shadow: none;
        padding: 0 0 8px 16px;
    }

    .dropdown>a::after {
        content: "";
    }

    .stallion-cards,
    .footer-inner,
    .horse-slide {
        grid-template-columns: 1fr;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-logo {
        margin: 0 auto;
    }

    .horse-slide {
        min-height: auto;
    }

    .horse-slide img {
        height: 320px;
    }
}

@media (max-width: 560px) {
    section {
        padding: 64px 20px;
    }

    .hero-content {
        padding: 54px 0 84px;
    }
}

@media (max-width: 768px) {
    .stallion-cards {
        grid-template-columns: 1fr;
    }
}