/* =========================================================
   Mini Highland Cow Ranch - local preview stylesheet
   Design system used here will port directly to the WP theme.
   ========================================================= */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    padding-top: 96px; /* clears the fixed floating header */
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); }
ul { padding-left: 1.2em; }

/* ---------- Brand variables ---------- */
:root {
    --bg:        #fbf8f3;
    --surface:   #ffffff;
    --text:      #2a2520;
    --heading:   #1f1a14;
    --muted:     #6f6358;

    --primary:   #3a5a3c;
    --primary-d: #2c4530;
    --secondary: #b88654;
    --accent:    #a04a28;
    --border:    #e6dfd2;
    --footer-bg: #1f1a14;

    --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body:    'Inter', 'Helvetica Neue', Arial, sans-serif;

    --radius: 8px;
    --shadow-sm: 0 2px 8px rgba(31,26,20,.06);
    --shadow:    0 8px 28px rgba(31,26,20,.10);
    --shadow-lg: 0 18px 50px rgba(31,26,20,.18);

    --container: 1200px;
    --gap: 2rem;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    color: var(--heading);
    line-height: 1.18;
    margin: 0 0 .6em;
    font-weight: 600;
    letter-spacing: -0.012em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); }
h4 { font-size: 1.15rem; }
p  { margin: 0 0 1em; }
.eyebrow {
    display: inline-block;
    font-size: .82rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1rem;
}
.lede { font-size: 1.18rem; color: var(--muted); max-width: 60ch; }

/* ---------- Layout ---------- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.25rem;
}
section {
    padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title h2 { margin-bottom: .35em; }
.section-title p  { color: var(--muted); max-width: 56ch; margin: 0 auto; }
.divider {
    width: 60px; height: 3px; background: var(--secondary);
    border: none; margin: 0 auto 1.4rem;
}

.grid { display: grid; gap: var(--gap); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
    .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6em;
    background: var(--primary);
    color: #fff !important;
    padding: 0.95em 2rem;
    border: none;
    border-radius: 30px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
    box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--primary-d); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-secondary { background: var(--secondary); }
.btn-secondary:hover { background: var(--accent); }
.btn-outline {
    background: transparent;
    color: var(--primary) !important;
    border: 2px solid var(--primary);
    padding: calc(0.95em - 2px) calc(2rem - 2px);
}
.btn-outline:hover { background: var(--primary); color: #fff !important; }
.btn-row { display: flex; gap: .8rem; flex-wrap: wrap; }

/* Animated arrow icon inside buttons */
.btn,
.nav-cta {
    position: relative;
}
.btn i.ph-arrow-up-right,
.nav-cta i.ph-arrow-up-right {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35em;
    line-height: 1;
    transition: transform .35s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}
.nav-cta i.ph-arrow-up-right {
    font-size: 1.2em;
}
.btn:hover i.ph-arrow-up-right,
.nav-cta:hover i.ph-arrow-up-right {
    transform: translate(5px, -5px);
}
.btn-outline:hover i.ph-arrow-up-right { transform: translate(5px, -5px); }

/* ---------- Header / Nav (floating pill -> full-width on scroll) ---------- */
.site-header {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 1240px;
    z-index: 100;
    background: #ffffff;
    border-radius: 30px;
    box-shadow: 0 6px 22px rgba(31,26,20,0.08);
    transition:
        top .35s ease,
        width .35s ease,
        max-width .35s ease,
        border-radius .35s ease,
        box-shadow .35s ease,
        left .35s ease;
}
.site-header.scrolled {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 8px 28px rgba(31,26,20,0.12);
}
.nav-wrap {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.7rem 1.5rem;
    max-width: var(--container);
    margin: 0 auto;
    transition: padding .35s ease;
}
.site-header.scrolled .nav-wrap { padding: 0.55rem 1.5rem; }
.nav-collapse {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
    flex-shrink: 0;
}
.logo-img {
    height: 52px;
    width: auto;
    display: block;
    transition: height .35s ease;
}
.site-header.scrolled .logo-img { height: 46px; }

.nav-menu {
    display: flex;
    gap: 1.4rem;
    list-style: none;
    margin: 0; padding: 0;
    align-items: center;
    justify-content: center;
    flex: 1;
}
.nav-menu > li { position: relative; }
.nav-menu a,
.nav-menu .nav-parent {
    color: var(--text);
    font-weight: 500;
    font-size: .92rem;
    font-family: var(--font-body);
    text-decoration: none;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    line-height: 1;
}
.nav-menu a.active,
.nav-menu a:hover,
.nav-menu .nav-parent.active,
.nav-menu .nav-parent:hover { color: var(--primary); }
.nav-menu .nav-parent svg { transition: transform .2s ease; }
.has-dropdown:hover .nav-parent svg,
.has-dropdown.open .nav-parent svg { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: -10px;
    min-width: 220px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    list-style: none;
    margin: 0;
    padding: .5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 110;
}
.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown li { display: block; }
.dropdown a {
    display: block;
    padding: .6rem .9rem;
    border-radius: 4px;
    font-size: .92rem;
    color: var(--text);
}
.dropdown a:hover { background: var(--bg); color: var(--primary); }

.nav-cta {
    display: inline-flex; align-items: center; gap: .35rem;
    background: var(--primary); color: #fff !important;
    padding: .55rem 1.15rem;
    border-radius: 30px;
    font-weight: 600; font-size: .9rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s ease;
}
.nav-cta:hover { background: var(--primary-d); }

.menu-toggle {
    display: none;
    background: transparent; border: none;
    padding: .5rem; cursor: pointer;
}
.menu-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--heading); margin: 5px 0;
    transition: transform .25s ease, opacity .25s ease;
}

/* Mobile header + drawer */
@media (max-width: 980px) {
    body { padding-top: 72px; }

    /* Mobile pill always sits flush — full width with bottom-only rounding */
    .site-header {
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0 0 24px 24px !important;
    }
    /* When drawer is open, square the header bottom so it merges with the drawer.
       The drawer keeps the rounded bottom for a unified shape. */
    .site-header.menu-open {
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    .nav-wrap {
        padding: .55rem .75rem;
        justify-content: space-between;
        gap: .5rem;
    }
    .logo-img { height: 42px; }
    .site-header.scrolled .logo-img { height: 42px; }

    .menu-toggle {
        display: block;
        padding: .6rem;
        z-index: 2;
    }
    /* Animate hamburger -> X */
    .menu-toggle span {
        transform-origin: center;
        transition: transform .3s ease, opacity .3s ease;
    }
    .site-header.menu-open .menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .site-header.menu-open .menu-toggle span:nth-child(2) {
        opacity: 0;
    }
    .site-header.menu-open .menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-collapse { display: none; }

    .site-header.menu-open .nav-collapse {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: #fff;
        border-radius: 0 0 24px 24px;
        padding: .25rem 0 1.25rem;
        box-shadow: 0 14px 36px rgba(31,26,20,0.18);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    .site-header.menu-open .nav-menu {
        flex-direction: column;
        gap: 0;
        flex: none;
        align-items: stretch;
    }
    .site-header.menu-open .nav-menu > li {
        border-bottom: 1px solid var(--border);
    }
    .site-header.menu-open .nav-menu > li:last-child { border-bottom: none; }
    .site-header.menu-open .nav-menu a,
    .site-header.menu-open .nav-menu .nav-parent {
        padding: 1rem 1.5rem;
        font-size: 1.02rem;
        width: 100%;
        justify-content: space-between;
        min-height: 48px;  /* tap target */
    }
    .site-header.menu-open .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--bg);
        border-radius: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
    }
    .site-header.menu-open .has-dropdown.open .dropdown { max-height: 400px; }
    .site-header.menu-open .dropdown a {
        padding: .9rem 2.25rem;
        min-height: 44px;
    }
    .site-header.menu-open .nav-cta {
        margin: 1rem 1.5rem 0;
        justify-content: center;
        padding: .95rem 1.2rem;
        font-size: 1rem;
    }

    /* Mobile menu backdrop */
    .site-header.menu-open::before {
        content: "";
        position: fixed;
        inset: 70px 0 0 0;
        background: rgba(31,26,20,0.35);
        z-index: -1;
        animation: backdropFade .25s ease;
    }
    @keyframes backdropFade {
        from { opacity: 0; }
        to { opacity: 1; }
    }
}

/* ---------- Hero (full-bleed wallpaper + overlay) ---------- */
.hero {
    position: relative;
    min-height: 88vh;
    margin-top: -96px;
    padding: calc(96px + clamp(3rem, 7vw, 5rem)) 0 clamp(4rem, 8vw, 6rem);
    background-image: url('../public/MINI-LIVESTOCK-FARM.jpg');
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
    color: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg,
            rgba(15,12,8,0.78) 0%,
            rgba(15,12,8,0.45) 45%,
            rgba(15,12,8,0.22) 100%),
        linear-gradient(180deg, rgba(0,0,0,0.18) 0%, transparent 30%, rgba(0,0,0,0.32) 100%);
    z-index: 1;
}
.hero .container {
    position: relative;
    z-index: 2;
}
.hero .eyebrow {
    color: var(--secondary);
    font-weight: 600;
    text-shadow: 0 2px 14px rgba(0,0,0,0.45);
}
.hero h1 {
    color: #fff;
    font-size: clamp(2.8rem, 7vw, 5.6rem);
    line-height: 1.05;
    margin-bottom: 0.5em;
    max-width: 14ch;
    text-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.hero h1 em {
    color: var(--secondary);
    font-style: italic;
}
.hero .lede {
    color: rgba(255,255,255,0.95);
    font-size: clamp(1.1rem, 1.6vw, 1.35rem);
    text-shadow: 0 2px 18px rgba(0,0,0,0.5);
    margin-bottom: 2.2rem;
    max-width: 40ch;
}
.hero .btn-outline {
    color: #fff !important;
    border-color: rgba(255,255,255,0.9);
    background: transparent;
}
.hero .btn-outline:hover {
    background: #fff;
    color: var(--primary) !important;
    border-color: #fff;
}
@media (max-width: 980px) {
    .hero {
        margin-top: -84px;
        padding-top: calc(84px + clamp(2.5rem, 6vw, 4rem));
        min-height: 80vh;
    }
}

/* ---------- Sub page hero ---------- */
.page-hero {
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
    background:
        radial-gradient(circle at 80% 0%, rgba(184,134,84,0.10), transparent 50%),
        linear-gradient(180deg, #f8f1e3 0%, var(--bg) 100%);
    text-align: center;
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: .4em; }
.page-hero p { color: var(--muted); max-width: 60ch; margin: 0 auto; font-size: 1.1rem; }

/* ---------- Cards ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card-img {
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); }

/* ---------- Calf cards (product) ---------- */
.calf-card { position: relative; }
.calf-card .price {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.3rem;
    margin: .3em 0 .8em;
}
.calf-card ul.specs {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    font-size: .9rem;
    color: var(--muted);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .35rem .8rem;
}
.calf-card ul.specs li::before {
    content: ""; display: inline-block;
    width: 5px; height: 5px; background: var(--secondary);
    border-radius: 999px;
    margin-right: .5em; vertical-align: middle;
}
.tag {
    position: absolute; top: 1rem; left: 1rem;
    background: var(--accent); color: #fff;
    font-size: .75rem; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase;
    padding: .35em .8em;
    border-radius: 999px;
    z-index: 2;
}
.tag.tag-reserved { background: var(--muted); }
.tag.tag-available { background: var(--primary); }

/* ---------- Feature boxes ---------- */
.feature-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease;
}
.feature-box:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-icon {
    width: 64px; height: 64px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(58,90,60,.12), rgba(184,134,84,.20));
    color: var(--primary);
    display: grid; place-items: center;
    margin: 0 auto 1.2rem;
    font-size: 32px; /* sizes Phosphor icon */
}
.feature-icon i { font-size: 32px; line-height: 1; color: var(--primary); }

/* ---------- Two-col text + image ---------- */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) {
    .split { grid-template-columns: 1fr; gap: 2rem; }
    .split.reverse > :first-child { order: 0; }
}
.split-image {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.split-image img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Stats row ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2.5rem;
}
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.stat strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary);
    line-height: 1;
    margin-bottom: .35em;
}
.stat span { font-size: .9rem; color: var(--muted); }

/* ---------- Testimonial cards ---------- */
.testimonial {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--secondary);
    border-radius: var(--radius);
    padding: 1.8rem;
    box-shadow: var(--shadow-sm);
}
.testimonial p { font-style: italic; color: var(--text); }
.testimonial .who {
    display: flex; align-items: center; gap: .8rem;
    margin-top: 1.2rem;
    font-size: .9rem;
    color: var(--muted);
}
.testimonial .who strong { color: var(--heading); font-style: normal; }
.avatar {
    width: 44px; height: 44px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: #fff;
    display: grid; place-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
}
.stars { color: var(--secondary); margin-bottom: .6rem; display: inline-flex; gap: 2px; }
.stars i { font-size: 16px; line-height: 1; }

/* ---------- Steps ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    counter-reset: step;
}
.steps.steps-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1000px) { .steps, .steps.steps-5 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px)  { .steps, .steps.steps-5 { grid-template-columns: 1fr; } }
.step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.7rem;
    position: relative;
}
.step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute; top: -16px; left: 1.7rem;
    width: 36px; height: 36px;
    background: var(--primary);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: 999px;
    display: grid; place-items: center;
    box-shadow: var(--shadow-sm);
}
.step h4 { margin-top: .4em; color: var(--heading); }

/* ---------- Forms ---------- */
.form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 700px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1rem; }
.field label {
    display: block;
    font-weight: 500;
    color: var(--heading);
    margin-bottom: .35em;
    font-size: .92rem;
}
.field input, .field textarea, .field select {
    width: 100%;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius);
    padding: .8em .95em;
    font-family: var(--font-body);
    font-size: .98rem;
    color: var(--text);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(58,90,60,.14);
}

/* ---------- CTA band ---------- */
.cta-band {
    background:
        linear-gradient(135deg, rgba(58,90,60,.94), rgba(44,69,48,.96)),
        radial-gradient(circle at 80% 30%, rgba(184,134,84,.6), transparent 60%);
    color: #fff;
    text-align: center;
    padding: clamp(3rem, 6vw, 5rem) 1rem;
    border-radius: var(--radius);
}
.cta-band h2 { color: #fff; margin-bottom: .5em; }
.cta-band p  { color: rgba(255,255,255,0.85); max-width: 56ch; margin: 0 auto 1.6rem; font-size: 1.1rem; }
.cta-band .btn { background: #fff; color: var(--primary) !important; }
.cta-band .btn:hover { background: var(--bg); }

/* ---------- FAQ ---------- */
.faq-group { max-width: 800px; margin: 0 auto; }
.faq-group h3 {
    margin-top: 2.5rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--border);
    color: var(--primary);
}
details.faq {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem 1.4rem;
    margin: .65rem 0;
    transition: box-shadow .2s ease;
}
details.faq[open] { box-shadow: var(--shadow-sm); }
details.faq summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--heading);
    list-style: none;
    position: relative;
    padding-right: 2rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
    content: "+";
    position: absolute; right: 0; top: -2px;
    font-size: 1.5rem; color: var(--primary);
    transition: transform .25s ease;
}
details.faq[open] summary::after { content: "\2013"; }
details.faq p { margin: .8rem 0 0; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--footer-bg);
    color: #d8cfbf;
    padding: 4rem 0 1.5rem;
    margin-top: 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.5rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
    color: #fff;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: .6rem; }
.site-footer a { color: #d8cfbf; }
.site-footer a:hover { color: var(--secondary); }
.site-footer .footer-brand p { color: #b9ad99; font-size: .92rem; }
.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.08);
    color: #978a78;
    font-size: .85rem;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-legal { display: inline-flex; gap: .65rem; align-items: center; }
.footer-legal a { color: #978a78; }
.footer-legal a:hover { color: var(--secondary); }
.footer-legal .dot { opacity: 0.6; }

/* Footer accordion (mobile only) */
@media (max-width: 768px) {
    .footer-grid { gap: 0; }
    .footer-section {
        border-bottom: 1px solid rgba(255,255,255,0.10);
        padding: 1rem 0;
    }
    .footer-section:last-of-type { border-bottom: none; }
    .footer-section .footer-heading {
        cursor: pointer;
        position: relative;
        padding-right: 2.5rem;
        margin-bottom: 0;
        user-select: none;
    }
    .footer-section .footer-heading::after {
        content: "+";
        position: absolute;
        right: 0;
        top: 0;
        font-size: 1.7rem;
        line-height: 1;
        font-weight: 300;
        color: #fff;
        transition: transform .3s ease, content .2s ease;
    }
    .footer-section.open .footer-heading::after { content: "−"; }
    .footer-section ul {
        max-height: 0;
        overflow: hidden;
        margin-top: 0;
        transition: max-height .35s ease, margin-top .35s ease, padding-top .35s ease;
    }
    .footer-section.open ul {
        max-height: 320px;
        margin-top: .85rem;
    }
}

/* ---------- Utility helpers ---------- */
.bg-cream    { background: var(--bg); }
.bg-surface  { background: var(--surface); }
.bg-primary  { background: var(--primary); color: #fff; }
.bg-primary h1, .bg-primary h2, .bg-primary h3 { color: #fff; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 1rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 1rem; }
.text-muted { color: var(--muted); }

/* Notes block */
.note {
    background: rgba(184,134,84,0.08);
    border-left: 4px solid var(--secondary);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    color: var(--text);
}

/* Map embed */
.map-embed {
    margin-top: 1.25rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.map-embed iframe { display: block; }

/* ---------- Section divider (ornamental) ---------- */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 0;
    max-width: 600px;
    margin: 0 auto;
    pointer-events: none;
}
.section-divider::before,
.section-divider::after {
    content: "";
    flex: 0 1 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(184,134,84,0.55), transparent);
}
.section-divider .ornament {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--secondary);
    box-shadow: 0 0 0 5px rgba(184,134,84,0.18);
}

/* ---------- Notice / heads-up banner ---------- */
.notice-section {
    padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2rem);
}
.notice-banner {
    background:
        radial-gradient(circle at 90% 0%, rgba(184,134,84,0.16), transparent 55%),
        linear-gradient(135deg, rgba(184,134,84,0.10), rgba(58,90,60,0.06));
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: clamp(2rem, 4vw, 3rem);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.notice-header {
    text-align: center;
    margin-bottom: 2.25rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px dashed var(--border);
}
.notice-header .notice-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--accent);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: .45rem 1rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}
.notice-header .notice-pill i { font-size: 14px; }
.notice-header h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    margin-bottom: .35em;
    line-height: 1.2;
}
.notice-header p {
    color: var(--muted);
    margin: 0;
    font-size: 1.02rem;
}
.notice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
}
@media (max-width: 800px) {
    .notice-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}
.notice-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.85rem;
    box-shadow: var(--shadow-sm);
}
.notice-item .notice-icon {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(58,90,60,.14), rgba(184,134,84,.22));
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
}
.notice-item .notice-icon i {
    font-size: 26px;
    color: var(--primary);
}
.notice-item h3 {
    font-size: 1.25rem;
    margin-bottom: .65em;
    color: var(--heading);
}
.notice-item p {
    color: var(--text);
    font-size: .95rem;
    line-height: 1.65;
    margin-bottom: .9em;
}
.notice-item p:last-child { margin-bottom: 0; }
.notice-emphasis {
    background: rgba(58, 90, 60, 0.07);
    border-left: 3px solid var(--primary);
    padding: .85rem 1rem;
    border-radius: 6px;
    margin-top: 1rem !important;
    color: var(--heading);
    font-weight: 500;
}
.notice-footer {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    text-align: center;
    color: var(--text);
    font-size: .98rem;
    flex-wrap: wrap;
}
.notice-footer i {
    color: var(--accent);
    font-size: 26px;
    flex-shrink: 0;
}
.notice-footer strong { color: var(--heading); }

/* ---------- Wizard / multi-step form ---------- */
.wizard-form {}

.wizard-progress {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}
.wizard-step-marker {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-weight: 600;
    flex-shrink: 0;
}
.wizard-step-marker .num {
    width: 28px; height: 28px;
    border-radius: 999px;
    background: var(--border);
    color: var(--muted);
    display: grid; place-items: center;
    font-size: 0.78rem;
    font-weight: 700;
    transition: background .3s ease, color .3s ease, box-shadow .3s ease;
}
.wizard-step-marker .label { display: none; }
@media (min-width: 600px) { .wizard-step-marker .label { display: inline; } }
.wizard-step-marker.active { color: var(--heading); }
.wizard-step-marker.active .num {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(58,90,60,0.12);
}
.wizard-step-marker.completed .num {
    background: var(--secondary);
    color: #fff;
}
.wizard-progress-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    border-radius: 2px;
    transition: background .3s ease;
    min-width: 12px;
}
.wizard-progress-line.completed { background: var(--secondary); }

.wizard-step {
    display: none;
    animation: wizardFadeIn .35s ease;
    min-height: 240px;
}
.wizard-step.active { display: block; }
@keyframes wizardFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}
.wizard-step h3 { margin: 0 0 0.25em; font-size: 1.3rem; }
.wizard-step .step-subtitle {
    color: var(--muted);
    margin-bottom: 1.25rem;
    font-size: 0.94rem;
}

/* Option cards (radio replacements) */
.option-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
    margin-bottom: 0.4rem;
}
@media (max-width: 700px) { .option-grid { grid-template-columns: 1fr; } }
.option-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem 1rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
    background: var(--surface);
}
.option-card:hover {
    border-color: var(--secondary);
    background: rgba(184,134,84,0.05);
}
.option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.option-card .option-icon {
    width: 36px; height: 36px;
    border-radius: 999px;
    background: rgba(58,90,60,0.10);
    display: grid; place-items: center;
    color: var(--primary);
    flex-shrink: 0;
    transition: background .18s ease, color .18s ease;
}
.option-card .option-icon i { font-size: 18px; }
.option-card .option-text { line-height: 1.3; }
.option-card .option-text strong {
    display: block;
    font-weight: 600;
    color: var(--heading);
    font-size: 0.96rem;
}
.option-card .option-text small {
    color: var(--muted);
    font-size: 0.8rem;
}
.option-card:has(input:checked) {
    border-color: var(--primary);
    background: rgba(58,90,60,0.06);
    box-shadow: 0 0 0 3px rgba(58,90,60,0.10);
}
.option-card:has(input:checked) .option-icon {
    background: var(--primary);
    color: #fff;
}

/* Wizard nav buttons */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 1.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border);
    gap: 1rem;
}
.wizard-nav .btn-prev {
    background: transparent !important;
    color: var(--muted) !important;
    border: 1px solid var(--border);
    box-shadow: none;
}
.wizard-nav .btn-prev:hover {
    background: var(--bg) !important;
    color: var(--heading) !important;
    border-color: var(--muted);
}
.wizard-nav .nav-spacer { flex: 1; }

/* ---------- Calves grid (flexible layout for any count) ---------- */
.calves-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
}
.calves-grid .card-img,
.calf-card .card-img { aspect-ratio: 4 / 5; }

/* ---------- Breeding pairs section ---------- */
.breeding-section {
    position: relative;
    background:
        radial-gradient(circle at 15% 100%, rgba(58,90,60,0.12), transparent 50%),
        radial-gradient(circle at 85% 0%, rgba(184,134,84,0.14), transparent 55%),
        linear-gradient(180deg, #fbf8f3 0%, #f3eadc 100%);
    padding: clamp(4rem, 9vw, 7rem) 0;
    overflow: hidden;
}

/* Pair product card */
.pair-card-product .card-img {
    aspect-ratio: 5 / 4;  /* landscape — pair photos are wider */
}
.pair-card-product .pair-specs {
    list-style: none;
    padding: 0;
    margin: 0 0 .85rem;
    font-size: .9rem;
    color: var(--text);
}
.pair-card-product .pair-specs li {
    padding: .55rem 0;
    border-bottom: 1px dashed var(--border);
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}
.pair-card-product .pair-specs li:last-child { border-bottom: none; }
.pair-card-product .pair-specs strong {
    color: var(--heading);
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 1rem;
}
.pair-card-product .pair-specs .chondro {
    margin-left: auto;
    font-size: .78rem;
    font-weight: 600;
    padding: .15rem .55rem;
    border-radius: 999px;
    letter-spacing: .03em;
}
.pair-card-product .pair-specs .chondro.pos {
    background: rgba(160,74,40,0.12); color: var(--accent);
}
.pair-card-product .pair-specs .chondro.neg {
    background: rgba(58,90,60,0.12); color: var(--primary);
}
.pair-card-product .pair-meta {
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .8rem;
}

/* SOLD state */
.tag-sold { background: var(--muted); color: #fff; }
.pair-card-product.is-sold .card-img { filter: grayscale(0.5) brightness(0.92); }
.pair-card-product.is-sold .price {
    text-decoration: line-through;
    color: var(--muted);
}
.pair-card-product.is-sold .btn {
    background: var(--muted);
    pointer-events: none;
    opacity: 0.75;
}

/* ---------- Story section (editorial layout) ---------- */
.story-section {
    position: relative;
    background:
        radial-gradient(circle at 90% 10%, rgba(184,134,84,0.18), transparent 55%),
        linear-gradient(180deg, #fbf8f3 0%, #f4ead7 100%);
    padding: clamp(4rem, 9vw, 7rem) 0;
    overflow: hidden;
}
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 5rem;
    align-items: center;
}
@media (max-width: 980px) {
    .story-grid { grid-template-columns: 1fr; gap: 4rem; }
}
.story-content .eyebrow {
    color: var(--accent);
    margin-bottom: 1.4rem;
}
.story-headline {
    font-family: var(--font-heading);
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    line-height: 1.12;
    color: var(--heading);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}
.story-headline em {
    font-style: italic;
    color: var(--primary);
    position: relative;
}
.story-lede {
    font-size: 1.18rem;
    line-height: 1.6;
    color: var(--text);
    border-left: 3px solid var(--secondary);
    padding-left: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Photo cluster */
.story-photos {
    position: relative;
    aspect-ratio: 1 / 1.05;
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
}
.story-photo-main {
    position: absolute;
    top: 0;
    right: 0;
    width: 78%;
    height: 80%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 28px 60px rgba(31,26,20,0.20);
}
.story-photo-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.story-photo-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 52%;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(31,26,20,0.22);
    border: 6px solid #fff;
    transform: rotate(-2deg);
    z-index: 2;
}
.story-photo-accent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.story-est-badge {
    position: absolute;
    top: 4%;
    left: 0;
    width: 110px;
    height: 110px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    display: grid;
    place-items: center;
    text-align: center;
    box-shadow: 0 14px 30px rgba(58,90,60,0.40);
    transform: rotate(-9deg);
    font-family: var(--font-heading);
    z-index: 3;
    border: 3px solid #fff;
}
.story-est-badge .est-text {
    display: block;
    font-size: .72rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0.85;
}
.story-est-badge .est-year {
    display: block;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1;
    margin-top: 2px;
}
@media (max-width: 600px) {
    .story-est-badge { width: 90px; height: 90px; }
    .story-est-badge .est-year { font-size: 1.4rem; }
}

/* ---------- Scroll-reveal animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity .85s cubic-bezier(0.16, 1, 0.3, 1),
        transform .85s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}
.reveal-left  { transform: translate(-40px, 0); }
.reveal-right { transform: translate(40px, 0); }
.reveal-zoom  { transform: scale(0.94); }
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-zoom.is-visible { transform: none; }

@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-left, .reveal-right, .reveal-zoom {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------- Calf card photo gallery ---------- */
.calf-thumbs{ display:flex; flex-wrap:wrap; gap:.5rem; padding:.7rem 1.5rem 0; }
.calf-thumbs .calf-thumb{ width:52px; height:52px; object-fit:cover; border-radius:6px; cursor:pointer; border:2px solid transparent; transition:border-color .15s ease, transform .15s ease; }
.calf-thumbs .calf-thumb:hover{ transform:translateY(-1px); }
.calf-thumbs .calf-thumb.active{ border-color:var(--secondary); }