:root {
    --navy: #001a3d;
    --navy-light: #0f2f57;
    --gold: #c5a059;
    --gold-dark: #a3803f;
    --text: #1a1a1a;
    --text-muted: #666666;
    --bg: #ffffff;
    --bg-alt: #f6f4f1;
    --border: #e5e2dc;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Montserrat', system-ui, -apple-system, sans-serif;
    --max-width: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

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

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1, h2, h3 {
    font-family: var(--serif);
    line-height: 1.2;
    font-weight: 700;
}

h2 {
    font-size: 2.1rem;
    margin-bottom: .75rem;
}

.eyebrow {
    display: block;
    font-size: .78rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold-dark);
    font-weight: 600;
    margin-bottom: .6rem;
}

.section {
    padding: 4.5rem 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}

.section-header p {
    color: var(--text-muted);
}

.btn {
    display: inline-block;
    font-family: var(--sans);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .95rem 2.1rem;
    border-radius: 2px;
    border: 1px solid transparent;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--navy);
    color: #fff;
}

.btn-primary:hover {
    background: var(--navy-light);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .6);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, .12);
}

.btn-gold {
    background: var(--gold);
    color: var(--navy);
}

.btn-gold:hover {
    background: var(--gold-dark);
    color: #fff;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 84px;
}

.logo img {
    height: 56px;
}

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

.nav a {
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--navy);
    position: relative;
    padding: .3rem 0;
}

.nav a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform .2s ease;
}

.nav a:hover::after,
.nav a.active::after {
    transform: scaleX(1);
}

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

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--navy);
}

/* Hero */
.hero {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 26, 61, .55), rgba(0, 26, 61, .78));
}

.hero .container {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.hero h1 {
    font-size: 3.4rem;
    margin-bottom: 1.2rem;
}

.hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, .9);
    margin-bottom: 2.2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Intro / about teaser */
.intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.intro img {
    border-radius: 3px;
}

.intro p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

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

.horse-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 3px;
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
}

.horse-card:hover {
    box-shadow: 0 12px 28px rgba(0, 26, 61, .12);
    transform: translateY(-3px);
}

.horse-card .photo {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.horse-card .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.horse-card .body {
    padding: 1.4rem 1.5rem 1.6rem;
}

.horse-card h3 {
    font-size: 1.3rem;
    margin-bottom: .3rem;
}

.horse-card .meta {
    font-size: .82rem;
    color: var(--text-muted);
    margin-bottom: .9rem;
}

.horse-card .pedigree {
    font-size: .82rem;
    color: var(--text-muted);
    margin-bottom: 1.1rem;
}

.horse-card .pedigree strong {
    color: var(--text);
    font-weight: 600;
}

.link-arrow {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--gold-dark);
}

.link-arrow:hover {
    color: var(--navy);
}

/* Horse detail */
.horse-detail {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3.5rem;
    align-items: start;
}

.horse-detail .photo img {
    border-radius: 3px;
}

.horse-detail h1 {
    font-size: 2.4rem;
    margin-bottom: .4rem;
}

.horse-detail .meta {
    color: var(--text-muted);
    margin-bottom: 1.8rem;
}

.pedigree-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.pedigree-table tr {
    border-bottom: 1px solid var(--border);
}

.pedigree-table td {
    padding: .7rem 0;
}

.pedigree-table td:first-child {
    font-size: .76rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-muted);
    width: 40%;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-muted);
}

.back-link:hover {
    color: var(--navy);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
}

.contact-info dl {
    margin-top: 1.5rem;
}

.contact-info dt {
    font-size: .76rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 1.2rem;
}

.contact-info dd {
    font-size: 1.05rem;
    margin-top: .2rem;
}

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

.contact-form label {
    font-size: .78rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: .35rem;
    display: block;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: .8rem .9rem;
    border: 1px solid var(--border);
    border-radius: 2px;
    font-family: var(--sans);
    font-size: .95rem;
}

.contact-form textarea {
    min-height: 130px;
    resize: vertical;
}

.map-frame {
    border: 0;
    width: 100%;
    height: 320px;
    border-radius: 3px;
    margin-top: 2rem;
}

/* Footer */
.site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, .85);
    padding: 3.5rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}

.footer-grid .logo img {
    height: 46px;
    margin-bottom: 1rem;
}

.footer-grid p {
    color: rgba(255, 255, 255, .6);
    font-size: .9rem;
}

.footer-grid h4 {
    font-family: var(--sans);
    font-size: .8rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-grid ul {
    list-style: none;
}

.footer-grid li {
    margin-bottom: .6rem;
    font-size: .92rem;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 1.3rem 0;
    font-size: .78rem;
    color: rgba(255, 255, 255, .5);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
}

/* Responsive */
@media (max-width: 860px) {
    .intro,
    .horse-detail,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .nav {
        position: absolute;
        top: 84px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
        gap: 1.2rem;
        display: none;
    }

    .nav.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 2.4rem;
    }
}
