/* =========================================================
   Boundary Line Bison Ranch — Stylesheet
   Palette: bison brown, bone cream, rust, prairie gold
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Oldenburg&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Bebas+Neue&display=swap');

:root {
    --ink: #1f1611;
    --bison: #2b1e15;
    --bone: #f4ead5;
    --bone-2: #ece0c4;
    --rust: #a0522d;
    --rust-dark: #7a3d20;
    --gold: #c89836;
    --moss: #5b6240;
    --line: rgba(31, 22, 17, 0.18);
    --line-light: rgba(244, 234, 213, 0.25);
}

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

html, body { overflow-x: hidden; max-width: 100%; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Lora', Georgia, serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--bone);
    -webkit-font-smoothing: antialiased;
}

/* ---- TYPOGRAPHY ---- */
.display {
    font-family: 'Oldenburg', 'Georgia', serif;
    font-weight: normal;
    letter-spacing: 0.01em;
    line-height: 1.05;
}

.eyebrow {
    font-family: 'Bebas Neue', 'Impact', sans-serif;
    letter-spacing: 0.25em;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--rust);
}

h1, h2, h3 { font-family: 'Oldenburg', 'Georgia', serif; font-weight: normal; }
h1 { font-size: clamp(2.5rem, 6vw, 5.5rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; margin-bottom: 1.2rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }

p { margin-bottom: 1.2rem; }
p.lead { font-size: 1.2rem; line-height: 1.6; font-style: italic; color: var(--bison); }

a { color: var(--rust-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--bison); }

/* ---- NAV ---- */
.site-header {
    background: var(--bison);
    color: var(--bone);
    border-bottom: 4px double var(--gold);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: transform 0.3s ease;
}

/* Mobile/tablet (matches hamburger breakpoint): fix the header so we can
   translate it offscreen on scroll-down */
@media (max-width: 980px) {
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
    }
    body {
        padding-top: var(--header-height, 70px);
    }
    .site-header.header-hidden {
        transform: translateY(-100%);
    }
}

.nav-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.brand {
    font-family: 'Oldenburg', serif;
    font-size: 1.4rem;
    color: var(--bone);
    text-decoration: none;
    letter-spacing: 0.03em;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}
.brand:hover { color: var(--gold); }
.brand span { color: var(--gold); }
.brand-logo {
    height: 3rem;
    width: auto;
    display: block;
    flex-shrink: 0;
}
@media (max-width: 520px) {
    .brand { font-size: 1.15rem; gap: 0.55rem; }
    .brand-logo { height: 2.4rem; }
}

.nav-links {
    display: flex;
    gap: 2.2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-family: 'Bebas Neue', sans-serif;
    color: var(--bone);
    text-decoration: none;
    letter-spacing: 0.18em;
    font-size: 0.95rem;
    text-transform: uppercase;
    padding: 0.4rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); border-bottom-color: var(--gold); }

.nav-phone {
    background: var(--rust);
    color: var(--bone) !important;
    padding: 0.55rem 1.1rem !important;
    border-radius: 2px;
    border: none !important;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.15em;
}
.nav-phone:hover { background: var(--gold); color: var(--bison) !important; }

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--bone);
    color: var(--bone);
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.15em;
}

/* 6 nav items now, so hamburger kicks in a little earlier */
@media (max-width: 980px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bison);
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1.2rem;
        border-bottom: 4px double var(--gold);
    }
    .nav-links.open { display: flex; }
    .menu-toggle { display: block; }
}

/* Tighten gap between nav items between 980px and ~1080px */
@media (min-width: 981px) and (max-width: 1080px) {
    .nav-links { gap: 1.4rem; }
    .nav-links a { font-size: 0.88rem; letter-spacing: 0.14em; }
}

/* ---- HERO ---- */
.hero {
    background:
            linear-gradient(rgba(31, 22, 17, 0.35), rgba(31, 22, 17, 0.70)),
            url('Bison/7.jpg') center 30%/cover;
    color: var(--bone);
    padding: 7rem 2rem 6rem;
    position: relative;
    overflow: hidden;
}

/* On laptop-sized screens the bison's head sits near the top of the photo,
   so anchor the focus higher and pull right to keep him in frame */
@media (min-width: 721px) and (max-width: 1400px) {
    .hero {
        background:
                linear-gradient(rgba(31, 22, 17, 0.35), rgba(31, 22, 17, 0.70)),
                url('Bison/7.jpg') right 30%/cover;
    }
}

@media (max-width: 720px) {
    .hero {
        /* On mobile: lighter overlay so you can actually see the bison,
           and focus the image on the right portion where the subject sits */
        background:
                linear-gradient(rgba(31, 22, 17, 0.25), rgba(31, 22, 17, 0.75)),
                url('Bison/7.jpg') right center/cover;
        padding: 4.5rem 1.5rem 4rem;
        min-height: 70vh;
        display: flex;
        align-items: center;
    }
}

.hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero .eyebrow { color: var(--gold); }

.hero h1 {
    font-size: clamp(2.8rem, 7vw, 6.5rem);
    margin: 1rem 0 1.5rem;
    max-width: 18ch;
}

.hero .tagline {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 1.3rem;
    max-width: 50ch;
    color: var(--bone-2);
}

.hero-rule {
    width: 80px;
    height: 3px;
    background: var(--gold);
    margin: 2rem 0;
}

.hero-actions {
    margin-top: 2.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.2em;
    padding: 1rem 2rem;
    text-decoration: none;
    font-size: 1rem;
    border: 2px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
}
.btn-primary { background: var(--rust); color: var(--bone); }
.btn-primary:hover { background: var(--gold); color: var(--bison); }
.btn-ghost { border-color: var(--bone); color: var(--bone); background: transparent; }
.btn-ghost:hover { background: var(--bone); color: var(--bison); }
.btn-dark { background: var(--bison); color: var(--bone); }
.btn-dark:hover { background: var(--rust); }

/* ---- PAGE HEADER (non-home) ---- */
.page-header {
    background: var(--bison);
    color: var(--bone);
    padding: 4.5rem 2rem 3.5rem;
    border-bottom: 4px double var(--gold);
}
.page-header-inner { max-width: 1280px; margin: 0 auto; }
.page-header h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); margin-top: 0.5rem; color: var(--bone); }
.page-header .eyebrow { color: var(--gold); }

/* ---- SECTIONS ---- */
section { padding: 5rem 2rem; }
@media (max-width: 520px) {
    section { padding: 3.5rem 1rem; }
}
.container { max-width: 1180px; margin: 0 auto; }
.narrow { max-width: 760px; margin: 0 auto; }

.section-dark { background: var(--bison); color: var(--bone); }
.section-dark h2 { color: var(--bone); }
.section-dark p { color: var(--bone-2); }
.section-dark .eyebrow { color: var(--gold); }

.section-cream { background: var(--bone-2); }

/* decorative rule */
.rule {
    width: 60px;
    height: 2px;
    background: var(--rust);
    margin: 1rem 0 2rem;
}
.rule-center { margin: 1rem auto 2rem; }

/* ---- GRID LAYOUTS ---- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.two-col-uneven {
    display: grid;
    grid-template-columns: 5fr 4fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 820px) {
    .two-col, .two-col-uneven { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ---- STAT BAND ---- */
.stat-band {
    background: var(--bone-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 3rem 2rem;
}
.stat-row {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}
.stat-row-3 { grid-template-columns: repeat(3, 1fr); }
.stat-num {
    font-family: 'Oldenburg', serif;
    font-size: clamp(1.8rem, 5vw, 3rem);
    color: var(--rust);
    line-height: 1;
    display: block;
    word-break: break-word;
}
.stat-label {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    color: var(--bison);
    margin-top: 0.6rem;
    display: block;
}
@media (max-width: 720px) {
    .stat-row,
    .stat-row-3 { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
    .stat-label { font-size: 0.75rem; letter-spacing: 0.15em; }
}
@media (max-width: 420px) {
    .stat-row,
    .stat-row-3 { grid-template-columns: 1fr; gap: 1.8rem; }
}

/* ---- PRODUCT CARDS ---- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.product-card {
    background: var(--bone);
    border: 1px solid var(--line);
    padding: 2rem 1.5rem;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(31, 22, 17, 0.12);
}
.product-card::before {
    content: "";
    position: absolute;
    top: 8px; left: 8px; right: 8px; bottom: 8px;
    border: 1px solid var(--line);
    pointer-events: none;
}
.product-card h3 {
    font-family: 'Oldenburg', serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.product-card p {
    font-size: 0.95rem;
    color: var(--ink);
    margin: 0;
}
.product-card .num {
    font-family: 'Bebas Neue', sans-serif;
    color: var(--rust);
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* ---- CALLOUT / PULL QUOTE ---- */
.pullquote {
    border-top: 3px double var(--gold);
    border-bottom: 3px double var(--gold);
    padding: 3rem 2rem;
    margin: 3rem 0;
    text-align: center;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}
.pullquote p {
    font-family: 'Oldenburg', serif;
    font-size: 1.6rem;
    line-height: 1.35;
    color: var(--bison);
}
.pullquote cite {
    display: block;
    margin-top: 1rem;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    color: var(--rust);
    font-style: normal;
}

/* ---- CONTACT CARDS ---- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}
.contact-card {
    background: var(--bone);
    border: 1px solid var(--line);
    padding: 2rem;
}
.contact-card .eyebrow { margin-bottom: 0.8rem; }
.contact-card .big {
    font-family: 'Oldenburg', serif;
    font-size: 1.4rem;
    color: var(--bison);
    text-decoration: none;
    display: block;
    word-break: break-word;
}
.contact-card .big:hover { color: var(--rust); }
.contact-card p { font-size: 0.95rem; margin-top: 0.5rem; color: var(--ink); }

/* ---- TIMELINE ---- */
.timeline { margin: 3rem 0; position: relative; }
.timeline::before {
    content: "";
    position: absolute;
    left: 140px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--line);
}
.tl-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 2rem;
    padding: 1.2rem 0;
    position: relative;
}
.tl-item::before {
    content: "";
    position: absolute;
    left: 134px;
    top: 1.8rem;
    width: 14px;
    height: 14px;
    background: var(--rust);
    border-radius: 50%;
    border: 3px solid var(--bone-2);
}
.tl-year {
    font-family: 'Oldenburg', serif;
    font-size: 1.4rem;
    color: var(--rust);
    text-align: right;
    padding-right: 1.5rem;
}
.tl-body { padding-left: 1.5rem; }
.tl-body h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.tl-body p { margin: 0; }

@media (max-width: 640px) {
    .timeline::before { left: 8px; }
    .tl-item { grid-template-columns: 1fr; gap: 0.3rem; padding-left: 30px; }
    .tl-item::before { left: 2px; top: 0.4rem; }
    .tl-year { text-align: left; padding-right: 0; font-size: 1.1rem; }
    .tl-body { padding-left: 0; }
}

/* ---- FACEBOOK EMBED WRAP ---- */
.fb-wrap {
    max-width: 380px;
    margin: 2rem auto 0;
    text-align: center;
    overflow: hidden;
}
.fb-wrap p {
    font-size: 0.9rem;
    color: var(--ink);
    margin-bottom: 1rem;
}
.fb-wrap iframe {
    width: 340px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    border: 0;
}
@media (max-width: 520px) {
    .fb-wrap {
        margin: 1.5rem auto 0;
        max-width: 100%;
    }
    .fb-wrap iframe {
        height: 600px;
    }
    .fb-wrap p {
        padding: 0 0.5rem;
    }
}

/* ---- FOOTER ---- */
.site-footer {
    background: var(--ink);
    color: var(--bone-2);
    padding: 4rem 2rem 2rem;
    border-top: 4px double var(--gold);
}
.footer-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
}
.footer-grid h4 {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.2em;
    color: var(--gold);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}
.footer-grid a { color: var(--bone-2); text-decoration: none; display: block; padding: 0.3rem 0; }
.footer-grid a:hover { color: var(--gold); }
.footer-brand {
    font-family: 'Oldenburg', serif;
    font-size: 1.6rem;
    color: var(--bone);
    margin-bottom: 0.8rem;
}
.footer-brand span { color: var(--gold); }
.footer-bottom {
    max-width: 1180px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(244, 234, 213, 0.15);
    font-size: 0.85rem;
    color: rgba(244, 234, 213, 0.6);
    text-align: center;
}
@media (max-width: 980px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 720px) {
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---- LISTS ---- */
.clean-list { list-style: none; padding: 0; }
.clean-list li {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: baseline;
    gap: 1rem;
}
.clean-list li::before {
    content: "✦";
    color: var(--rust);
    font-size: 0.8rem;
}

/* ---- BADGES ---- */
.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.5rem 0;
}
.badge {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--rust);
    color: var(--rust);
    background: transparent;
}

/* ---- RANCH PHOTOS ---- */
.ranch-photo {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--line);
}
.ranch-photo.tall { aspect-ratio: 3 / 4; }
.ranch-photo.wide { aspect-ratio: 16 / 9; }
.ranch-photo.square { aspect-ratio: 1 / 1; }
.ranch-photo.portrait { aspect-ratio: 4 / 5; }

/* ---- IMAGE PLACEHOLDERS ---- */
.img-placeholder {
    background: var(--bone-2);
    border: 1px dashed var(--rust);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rust);
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    text-align: center;
    padding: 2rem;
    position: relative;
    aspect-ratio: 4 / 3;
}
.img-placeholder::before {
    content: "";
    position: absolute;
    top: 10px; left: 10px; right: 10px; bottom: 10px;
    border: 1px dashed var(--rust);
    opacity: 0.4;
    pointer-events: none;
}
.img-placeholder.tall { aspect-ratio: 3 / 4; }
.img-placeholder.wide { aspect-ratio: 16 / 9; }
.img-placeholder.square { aspect-ratio: 1 / 1; }

/* ---- GALLERY ---- */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}
@media (max-width: 720px) {
    .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ---- HERB GALLERY (captioned figures) ---- */
.herb-gallery { gap: 1.5rem; }
.herb-gallery figure { margin: 0; }
.herb-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border: 1px solid var(--line-light);
}
.herb-gallery figcaption {
    font-family: 'Bebas Neue', 'Impact', sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.95rem;
    color: var(--gold);
    text-align: center;
    margin-top: 0.6rem;
}

/* ---- HOURS / INFO BLOCKS ---- */
.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
    font-family: 'Lora', serif;
}
.info-row strong { font-family: 'Bebas Neue', sans-serif; letter-spacing: 0.15em; color: var(--bison); }
