/* ═══════════════════════════════════════════════════════════════
   Lindsay Beer Eventing — "Sophisticated Stable" design system
   Palette: Midnight Navy · Crisp White · Warm Sand · Antique Gold
   Type:    Cormorant Garamond · Montserrat · Inter
   ═══════════════════════════════════════════════════════════════ */

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

:root {
    --navy: #0F1E2E;
    --navy-deep: #0A1520;
    --navy-fog: #1C2E42;
    --white: #FAFAF7;
    --cream: #F4EFE4;
    --sand: #E8DCC4;
    --sand-deep: #D9C9A8;
    --gold: #B8924A;
    --gold-deep: #8F6F33;
    --gold-soft: #D4B678;
    --ink: #1A1F2B;
    --muted: #6B6B6B;
    --line: rgba(15, 30, 46, 0.12);
    --line-soft: rgba(15, 30, 46, 0.06);

    /* Back-compat aliases for any inline styles still referencing old vars */
    --primary-color: var(--gold);
    --secondary-color: var(--gold);
    --accent-color: var(--gold-soft);
    --dark: var(--navy-deep);
    --dark-text: var(--ink);
    --light: var(--cream);
    --gray: var(--muted);

    --serif: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
    --sans:  'Montserrat', system-ui, -apple-system, sans-serif;
    --body:  'Inter', system-ui, -apple-system, sans-serif;
    --mono:  'JetBrains Mono', ui-monospace, Menlo, monospace;
}

html, body {
    background: var(--white);
}

body {
    font-family: var(--body);
    font-weight: 300;
    color: var(--ink);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
::selection { background: rgba(184, 146, 74, 0.3); color: var(--navy); }

/* ─── Navigation ─────────────────────────────────────────────── */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(250, 250, 247, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    padding: 0;
}

.nav-content {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 28px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    min-width: 0;
}

.nav-brand img {
    height: 42px;
    width: auto;
}

.nav-brand-text {
    font-family: var(--serif);
    font-size: 19px;
    line-height: 1.05;
    font-weight: 500;
    font-style: italic;
    color: var(--navy);
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.nav-brand-text small {
    display: block;
    font-family: var(--sans);
    font-style: normal;
    font-size: 8px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--gold);
    opacity: 0.85;
    margin-top: 3px;
}

.nav-links {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-shrink: 1;
    min-width: 0;
}

.nav-link {
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--navy);
    padding-bottom: 4px;
    border-bottom: 1.5px solid transparent;
    transition: border-color 0.2s;
    white-space: nowrap;
}

.nav-link:hover { border-bottom-color: rgba(184, 146, 74, 0.4); }
.nav-link.active { border-bottom-color: var(--gold); }

.nav-link.nav-login {
    color: var(--navy);
    border: 1px solid var(--line);
    padding: 8px 14px;
}

.nav-link.nav-cta {
    background: var(--gold);
    color: var(--white);
    padding: 11px 16px;
    font-weight: 600;
    border: none;
    transition: background 0.15s;
}

.nav-link.nav-cta:hover {
    background: var(--gold-deep);
    border-bottom-color: transparent;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    width: 22px;
    height: 1.5px;
    background: var(--navy);
    transition: all 0.3s;
}

/* ─── Page hero ──────────────────────────────────────────────── */
.page-hero {
    position: relative;
    min-height: 560px;
    padding: 180px 40px 100px;
    color: var(--white);
    background: var(--navy);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 40%, rgba(15, 30, 46, 0.35) 0%, rgba(10, 21, 32, 0.85) 90%);
    z-index: 1;
}

.page-hero .container { position: relative; z-index: 2; max-width: 960px; }

.page-hero .eyebrow { justify-content: center; color: var(--gold-soft); margin-bottom: 28px; }

.page-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(44px, 7vw, 84px);
    line-height: 1.02;
    letter-spacing: -1px;
    color: var(--white);
    margin: 0;
}

.page-title em {
    font-style: italic;
    color: var(--gold-soft);
}

.page-subtitle {
    font-family: var(--body);
    font-size: clamp(15px, 1.6vw, 18px);
    font-weight: 300;
    line-height: 1.6;
    color: rgba(250, 250, 247, 0.85);
    max-width: 620px;
    margin: 28px auto 0;
}

/* ─── Sections & containers ──────────────────────────────────── */
.section {
    padding: 120px 40px;
    background: var(--white);
}

.section--cream { background: var(--cream); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy-deep { background: var(--navy-deep); color: var(--white); }
.section-dark { background: var(--navy-deep); color: var(--white); }

.section-dark .section-subtitle,
.section--navy .section-subtitle,
.section--navy-deep .section-subtitle {
    color: rgba(250, 250, 247, 0.72);
}

.container {
    max-width: 1320px;
    margin: 0 auto;
}

.content-wrapper { max-width: 880px; }

/* ─── Eyebrow label ──────────────────────────────────────────── */
.eyebrow {
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: currentColor;
}

.eyebrow--center { justify-content: center; }

/* ─── Serif display headings ─────────────────────────────────── */
.section-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.04;
    letter-spacing: -0.5px;
    color: var(--navy);
    text-align: center;
    margin-bottom: 16px;
}

.section--navy .section-title,
.section--navy-deep .section-title,
.section-dark .section-title { color: var(--white); }

.section-title em {
    font-style: italic;
    color: var(--gold-deep);
}

.section--navy .section-title em,
.section--navy-deep .section-title em,
.section-dark .section-title em { color: var(--gold-soft); }

.section-subtitle {
    font-family: var(--body);
    font-size: 17px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--muted);
    text-align: center;
    max-width: 620px;
    margin: 0 auto 56px;
}

.gold-rule {
    width: 60px;
    height: 1px;
    background: var(--gold);
    border: 0;
    margin: 24px 0;
}

.gold-rule--center { margin-left: auto; margin-right: auto; }

/* ─── Prose body copy ────────────────────────────────────────── */
.content-text p {
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.8;
    font-weight: 300;
    color: var(--ink);
    margin-bottom: 20px;
}

.lead-text {
    font-family: var(--serif) !important;
    font-size: 26px !important;
    font-style: italic;
    font-weight: 400 !important;
    line-height: 1.45 !important;
    color: var(--navy) !important;
    margin-bottom: 32px !important;
}

.attribution {
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 40px;
}

/* ─── CTA buttons ────────────────────────────────────────────── */
.cta-button,
.btn-solid {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 600;
    background: var(--gold);
    color: var(--white);
    border: none;
    padding: 18px 32px;
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
}

.cta-button:hover,
.btn-solid:hover {
    background: var(--gold-deep);
    transform: translateY(-1px);
}

.cta-button::after,
.btn-solid::after {
    content: '→';
    font-family: var(--body);
    font-size: 14px;
    letter-spacing: 0;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 600;
    background: transparent;
    color: var(--navy);
    border: 1px solid var(--navy);
    padding: 17px 32px;
    text-decoration: none;
    transition: all 0.15s;
}

.btn-ghost:hover { border-color: var(--gold); color: var(--gold-deep); }
.btn-ghost::after { content: '→'; font-family: var(--body); font-size: 14px; letter-spacing: 0; }
.btn-ghost--light { color: var(--white); border-color: var(--white); }
.btn-ghost--light:hover { color: var(--gold-soft); border-color: var(--gold-soft); }

/* ─── Layout helpers ─────────────────────────────────────────── */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-top: 56px;
    align-items: stretch;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 56px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 56px;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.two-col--photo-left { grid-template-columns: 1fr 1fr; }
.two-col--photo-lead { grid-template-columns: 1.3fr 1fr; align-items: end; }

/* ─── Feature card ───────────────────────────────────────────── */
.card {
    background: var(--white);
    padding: 40px 36px;
    box-shadow: 0 2px 10px rgba(15, 30, 46, 0.05);
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px -20px rgba(15, 30, 46, 0.2);
}

.card h3 {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.3px;
    color: var(--navy);
    margin-bottom: 16px;
    line-height: 1.15;
}

.card p {
    font-family: var(--body);
    font-size: 14px;
    line-height: 1.7;
    font-weight: 300;
    color: var(--ink);
    margin-bottom: 24px;
    flex: 1;
}

.card .cta-button { align-self: flex-start; margin-top: auto; }

/* ─── Pillar / feature card with number ──────────────────────── */
.pillar-card {
    background: var(--white);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 10px rgba(15, 30, 46, 0.05);
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.pillar-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px -20px rgba(15, 30, 46, 0.25);
}

.pillar-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--navy);
}

.pillar-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.pillar-card:hover .pillar-media img { transform: scale(1.04); }

.pillar-number {
    position: absolute;
    top: 20px;
    left: 20px;
    font-family: var(--serif);
    font-style: italic;
    font-size: 52px;
    line-height: 1;
    color: var(--white);
    opacity: 0.9;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.pillar-body {
    padding: 34px 32px 36px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pillar-tag {
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 14px;
}

.pillar-title {
    font-family: var(--serif);
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -0.3px;
    line-height: 1.1;
    color: var(--navy);
    margin-bottom: 18px;
}

.pillar-body p {
    font-family: var(--body);
    font-size: 14px;
    line-height: 1.7;
    font-weight: 300;
    color: var(--ink);
    margin-bottom: 22px;
    flex: 1;
}

.pillar-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--navy);
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.pillar-cta::after {
    content: '→';
    font-family: var(--body);
    font-size: 16px;
    color: var(--gold);
    letter-spacing: 0;
    transition: transform 0.3s;
}

.pillar-card:hover .pillar-cta::after { transform: translateX(6px); }

/* ─── Team cards ─────────────────────────────────────────────── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 32px;
}

.team-card {
    text-align: left;
    background: transparent;
    padding: 0;
    box-shadow: none;
    transition: none;
}

.team-card:hover { box-shadow: none; transform: none; }

.team-photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: var(--sand);
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 0;
    display: block;
    position: relative;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.team-card:hover .team-photo img { transform: scale(1.04); }

.team-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--white);
    padding: 6px 12px;
    font-family: var(--sans);
    font-size: 9px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--gold);
}

.team-name {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -0.2px;
    color: var(--navy);
    margin-bottom: 6px;
}

.team-role {
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 10px;
}

.team-cred {
    font-family: var(--body);
    font-size: 13px;
    font-weight: 300;
    color: var(--muted);
}

/* ─── Horse cards ────────────────────────────────────────────── */
.horse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.horse-card {
    background: var(--white);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(15, 30, 46, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.horse-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 50px -20px rgba(15, 30, 46, 0.25);
}

.horse-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--navy);
}

.horse-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.horse-card:hover .horse-image img { transform: scale(1.04); }

.horse-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--white);
    padding: 6px 12px;
    font-family: var(--sans);
    font-size: 9px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
}

.horse-content {
    padding: 28px 28px 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.horse-name {
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 500;
    letter-spacing: -0.2px;
    color: var(--navy);
    margin-bottom: 4px;
}

.horse-nickname {
    font-family: var(--serif);
    font-size: 15px;
    font-style: italic;
    color: var(--muted);
    margin-bottom: 18px;
}

.horse-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 18px;
}

.horse-meta-item { text-align: left; }

.horse-meta-label {
    font-family: var(--sans);
    font-size: 9px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 4px;
}

.horse-meta-value {
    font-family: var(--serif);
    font-size: 15px;
    color: var(--navy);
}

.horse-details {
    font-family: var(--body);
    font-size: 14px;
    line-height: 1.7;
    font-weight: 300;
    color: var(--ink);
    flex: 1;
}

.horse-details p { margin-bottom: 10px; }
.horse-details p:last-child { margin-bottom: 0; }
.horse-details strong { font-weight: 500; color: var(--navy); }

/* ─── Stat strip ─────────────────────────────────────────────── */
.stat-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 64px;
    padding: 72px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.stat-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.stat-item + .stat-item { padding-left: 64px; border-left: 1px solid var(--line); }

.stat-fig {
    font-family: var(--serif);
    font-size: 72px;
    font-weight: 400;
    font-style: italic;
    line-height: 0.95;
    color: var(--navy);
}

.stat-unit {
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 10px;
}

.stat-text {
    font-family: var(--body);
    font-size: 15px;
    line-height: 1.55;
    font-weight: 300;
    color: var(--ink);
    max-width: 240px;
}

/* ─── Facility tiles (on-dark) ───────────────────────────────── */
.facility-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
}

.facility-tile {
    padding-left: 18px;
    border-left: 1px solid var(--gold-soft);
}

.facility-tile-fig {
    font-family: var(--serif);
    font-size: 28px;
    font-style: italic;
    color: var(--white);
    margin-bottom: 6px;
}

.facility-tile-label {
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold-soft);
    font-weight: 600;
}

/* ─── Photo gallery ──────────────────────────────────────────── */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
    margin: 48px 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    background: var(--sand);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img { transform: scale(1.06); }

.featured-image {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    margin: 32px 0;
}

/* ─── Filter chips ───────────────────────────────────────────── */
.filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    padding: 28px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--line);
}

.filter-bar-label {
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-right: 16px;
}

.filter-chip {
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 600;
    background: transparent;
    color: var(--navy);
    border: 1px solid var(--line);
    padding: 10px 18px;
    transition: all 0.15s;
}

.filter-chip:hover { border-color: var(--navy); }
.filter-chip.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

.filter-count {
    margin-left: auto;
    font-family: var(--sans);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.05em;
}

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
    background: var(--navy-deep);
    color: var(--sand);
    padding: 80px 40px 36px;
}

.footer-content {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(232, 220, 196, 0.15);
    margin-bottom: 28px;
}

.footer-section h3 {
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-soft);
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.footer-brand img {
    height: 52px;
    width: auto;
    filter: invert(1) brightness(1.08);
}

.footer-wordmark {
    font-family: var(--serif);
    font-size: 22px;
    font-style: italic;
    color: var(--white);
    line-height: 1.1;
}

.footer-wordmark small {
    display: block;
    font-family: var(--sans);
    font-style: normal;
    font-size: 9px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-soft);
    font-weight: 500;
    margin-top: 2px;
}

.footer-section p {
    font-family: var(--body);
    font-size: 13px;
    line-height: 1.75;
    font-weight: 300;
    color: rgba(250, 250, 247, 0.72);
    max-width: 340px;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }

.footer-links a {
    font-family: var(--body);
    font-size: 14px;
    font-weight: 300;
    color: rgba(250, 250, 247, 0.82);
    transition: color 0.15s;
}

.footer-links a:hover { color: var(--gold-soft); }

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 18px;
    color: var(--gold-soft);
}

.social-link {
    font-size: 18px;
    color: inherit;
    transition: color 0.15s;
}

.social-link:hover { color: var(--white); }

.footer-bottom {
    max-width: 1320px;
    margin: 0 auto;
    padding-top: 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    border-top: 0;
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(250, 250, 247, 0.45);
    text-align: left;
}

/* ─── Lightbox ───────────────────────────────────────────────── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 21, 32, 0.96);
    backdrop-filter: blur(6px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox.active { display: flex; }

.lightbox img,
.lightbox-content {
    max-width: 92%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 36px;
    color: var(--white);
    font-size: 40px;
    cursor: pointer;
    transition: color 0.15s;
    z-index: 10001;
    font-family: var(--body);
    line-height: 1;
}

.lightbox-close:hover { color: var(--gold-soft); }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    font-size: 36px;
    cursor: pointer;
    padding: 16px;
    user-select: none;
    opacity: 0.7;
    transition: opacity 0.15s;
}

.lightbox-nav:hover { opacity: 1; }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: 1fr; }
    .two-col,
    .two-col--photo-left,
    .two-col--photo-lead { grid-template-columns: 1fr; gap: 48px; }
    .stat-strip { grid-template-columns: 1fr; gap: 0; padding: 48px 0; }
    .stat-item + .stat-item {
        padding-left: 0; border-left: 0;
        padding-top: 32px; margin-top: 32px; border-top: 1px solid var(--line);
    }
    .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .nav-content { padding: 0 20px; height: 68px; }
    .nav-brand-text { font-size: 16px; }
    .nav-brand-text small { font-size: 7.5px; }
    .hamburger { display: flex; }
    .nav-links {
        position: fixed;
        top: 68px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 68px);
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 32px 24px;
        gap: 0;
        transition: left 0.3s;
        border-top: 1px solid var(--line);
        overflow-y: auto;
    }
    .nav-links.active { left: 0; }
    .nav-link {
        padding: 14px 0;
        border-bottom: 1px solid var(--line);
        font-size: 12px;
    }
    .nav-link.nav-cta { background: var(--gold); color: var(--white); margin-top: 12px; text-align: center; justify-content: center; }
    .nav-link.nav-login { background: transparent; }

    .section { padding: 80px 24px; }
    .page-hero { padding: 140px 24px 80px; min-height: 480px; background-attachment: scroll !important; }

    .grid-4, .grid-3 { grid-template-columns: 1fr; }
    .horse-grid, .team-grid { grid-template-columns: 1fr; }

    .footer { padding: 64px 24px 32px; }
    .footer-content { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
}

/* Enforce scroll (not fixed) on mobile for any page hero using background-attachment: fixed inline */
@media (max-width: 768px) {
    .page-hero { background-attachment: scroll !important; }
    .section[style*="background-attachment"] { background-attachment: scroll !important; }
}
