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

:root {
    --gold: #C9A84C;
    --gold-light: #E8D5A3;
    --gold-pale: #F7F1E3;
    --dark: #1A1510;
    --dark-mid: #2E2618;
    --mid: #6B5B3E;
    --text: #3A2F20;
    --text-light: #7A6B55;
    --border: rgba(201,168,76,0.5);
    --white: #FDFAF4;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Jost', sans-serif;
    background: var(--white);
    color: var(--text);
    font-weight: 300;
    line-height: 1.7;
    min-height: 100vh;
}

/* ---- HEADER ---- */
header {
    background: var(--dark);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--gold-light);
    text-decoration: none;
    letter-spacing: 0.05em;
}

.logo span {
    color: var(--gold);
    font-style: italic;
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    font-family: 'Jost', sans-serif;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(232,213,163,0.65);
    text-decoration: none;
    transition: color 0.2s;
}

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

nav a.contact-btn {
    border: 1px solid rgba(201,168,76,0.4);
    padding: 0.45rem 1.1rem;
    color: var(--gold-light);
    transition: background 0.2s, color 0.2s;
}

nav a.contact-btn:hover {
    background: var(--gold);
    color: var(--dark);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--gold-light);
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--dark);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
    }

    nav.open { display: flex; }

    nav a {
        padding: 0.9rem 2rem;
        width: 100%;
        border-bottom: 1px solid var(--border);
        color: rgba(232,213,163,0.65);
    }

    nav a:last-child { border-bottom: none; }

    nav a.contact-btn {
        border: none;
        border-bottom: 1px solid var(--border);
        padding: 0.9rem 2rem;
    }
}

/* ---- HERO ---- */
.hero {
    background: var(--dark);
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 60%, rgba(201,168,76,0.08) 0%, transparent 70%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 60px,
            rgba(201,168,76,0.03) 60px,
            rgba(201,168,76,0.03) 61px
        );
}

.hero-ornament {
    font-size: 1.2rem;
    letter-spacing: 0.5em;
    color: var(--gold);
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: 2rem;
}

.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    color: var(--gold-light);
    line-height: 1.05;
    letter-spacing: 0.02em;
    margin-bottom: 0.3rem;
}

.hero h1 em {
    font-style: italic;
    color: var(--gold);
    display: block;
}

.hero-sub {
    font-size: 0.8rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(232,213,163,0.45);
    margin-top: 1.2rem;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--dark);
    background: var(--gold);
    padding: 0.85rem 2.5rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.hero-cta:hover {
    background: var(--gold-light);
}

/* ---- PAGE WRAPPER ---- */
.page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

/* ---- SECTION TITLES ---- */
.section-label {
    font-size: 0.72rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
    font-weight: bold;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 300;
    color: var(--dark);
    line-height: 1.15;
}

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

.divider {
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 1.5rem 0 2rem;
}

/* ---- HOME PAGE ---- */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.intro-text p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.intro-visual-inner {
    text-align: center;
}

.intro-visual {
    background: var(--dark);
    aspect-ratio: 4/5;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.horse-icon {
    width: 100%;
    height: 100%;
    object-fit: fit;
    object-position: center;
    position: absolute;
    inset: 0;
}

.intro-visual-caption {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--gold-light);
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
    padding: 1rem 1.25rem;
    background: rgba(26,21,16,0.55);
    width: 100%;
}

.intro-visual-border {
    position: absolute;
    inset: 12px;
    border: 2px solid var(--border);
    pointer-events: none;
    z-index: 1;
}

/* Stats bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
    margin-top: 5rem;
}

.stat {
    padding: 2rem;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 300;
    color: var(--gold);
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-light);
}

.badge {
    display: inline-block;
    font-family: 'Jost', sans-serif;
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(201,168,76,0.08);
    border: 1px solid rgba(201,168,76,0.3);
    padding: 0.2rem 0.65rem;
}

/* ---- ABOUT PAGE ---- */
.about-hero-text {
    max-width: 680px;
}

.about-hero-text p {
    font-size: 1.2rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    color: var(--mid);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.about-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 1px solid var(--border);
}

.about-body p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.about-values { list-style: none; }

.about-values li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.about-values li:first-child { border-top: 1px solid var(--border); }

.value-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--gold);
    line-height: 1;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.value-title {
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.value-desc {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ---- HORSES PAGE ---- */
.filter-bar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.filter-btn {
    font-family: 'Jost', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-light);
    background: transparent;
    border: 1px solid var(--border);
    padding: 0.45rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.filter-btn.active {
    background: var(--gold);
    color: var(--dark);
    border-color: var(--gold);
}

.horses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.horse-card {
    background: var(--white);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.horse-card:hover {
    border-color: var(--gold);
    box-shadow: 0 6px 30px rgba(201,168,76,0.1);
}

.horse-card.hidden { display: none; }

.horse-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.horse-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.horse-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.horse-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--dark);
    line-height: 1.2;
}

.horse-discipline {
    font-size: 0.62rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(201,168,76,0.08);
    border: 1px solid rgba(201,168,76,0.3);
    padding: 0.25rem 0.6rem;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 0.3rem;
}

/* Meta — dot separated, no badges */
.horse-meta {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-bottom: 0.85rem;
    line-height: 1.9;
}

.horse-meta-pill {
    display: inline;
    font-size: 0.78rem;
    color: var(--text-light);
    background: none;
    border: none;
    padding: 0;
}

.horse-meta-pill::after {
    content: ' · ';
    color: var(--gold);
    opacity: 0.5;
}

.horse-meta-pill:last-child::after {
    content: '';
}

.horse-divider {
    width: 30px;
    height: 1px;
    background: var(--border);
    margin-bottom: 0.85rem;
}

.horse-markings {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 0.85rem;
    font-style: italic;
}

.horse-markings span {
    color: var(--gold);
    font-style: normal;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-right: 0.35rem;
}

.horse-desc {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 1.25rem;
    font-style: italic;
}

.horse-btn {
    display: inline-block;
    font-family: 'Jost', sans-serif;
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid rgba(201,168,76,0.4);
    padding: 0.6rem 1.4rem;
    text-decoration: none;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    align-self: flex-start;
    margin-top: auto;
}

.horse-btn:hover {
    background: var(--gold);
    color: var(--dark);
    border-color: var(--gold);
}

.horse-btn:active {
    background: var(--gold-light);
    border-color: var(--gold-light);
}

/* ---- TABLES ---- */
.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

.stats-table th {
    font-family: 'Jost', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 400;
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}

.stats-table td {
    font-size: 0.875rem;
    color: var(--text-light);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}

.stats-table tr:last-child td { border-bottom: none; }

.stats-table tr:hover td {
    background: var(--gold-pale);
    color: var(--text);
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
}

.summary-table td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}

.summary-table tr:last-child td { border-bottom: none; }

.summary-table td:first-child {
    color: var(--gold);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 400;
    width: 40%;
}

.summary-table td:last-child { color: var(--text-light); }

/* ---- STUDS PAGE ---- */
.stud-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 2rem;
}

.sc { border: 1px solid #c9a84c44; border-radius: 4px; overflow: hidden; background: #fffdf7; transition: border-color 0.2s; }
.sc:hover { border-color: #c9a84caa; }

.sc-photo { width: 100%; height: 130px; background: #f5edd8; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #c9a84c66; overflow: hidden; }
.sc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.sc-body { padding: 10px 12px; }
.sc-name { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 1rem; color: #2c1f0e; margin: 0 0 1px; }
.sc-breed { font-size: 0.7rem; color: #8a7355; margin: 0 0 8px; letter-spacing: 0.03em; }

.sc-row { display: flex; gap: 12px; }
.sc-item { display: flex; flex-direction: column; gap: 1px; }
.sc-label { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.07em; color: #b09a72; }
.sc-val { font-size: 0.75rem; color: #2c1f0e; font-weight: 500; }

.sc-foot { border-top: 1px solid #c9a84c22; padding: 7px 12px; display: flex; align-items: center; justify-content: space-between; }
.sc-fee { font-size: 0.75rem; color: #8a7355; }
.sc-fee strong { color: #2c1f0e; }

.sc-btn { font-size: 0.65rem; padding: 3px 10px; border: 1px solid #c9a84c; color: #8a6820; background: transparent; text-decoration: none; letter-spacing: 0.05em; }
.sc-btn:hover { background: #fdf5e0; }

.btn-profile {
    font-size: 0.75rem;
    padding: 5px 14px;
    border: 1px solid #c9a84c;
    color: #8a6820;
    background: transparent;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: background 0.15s;
}
.btn-profile:hover { background: #fdf5e0; }

/* ---- FOOTER ---- */
footer {
    background: var(--dark);
    border-top: 1px solid var(--border);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--gold-light);
    margin-bottom: 0.5rem;
}

.footer-logo em {
    font-style: italic;
    color: var(--gold);
}

.footer-tagline {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(232,213,163,0.3);
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-links a {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(232,213,163,0.4);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-copy {
    font-size: 0.75rem;
    color: rgba(232,213,163,0.2);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .intro-grid, .about-body { grid-template-columns: 1fr; gap: 2.5rem; }
    .horses-grid { grid-template-columns: 1fr; }
    .stats-bar { grid-template-columns: 1fr; }
    nav { gap: 1rem; }
    
    .stud-grid { grid-template-columns: 1fr; }
}