/* FarmTech shared components — header, footer, hero, cards, buttons, motion. */

/* ── Header ── */
.site-header {
    background: rgba(248, 246, 241, 0.85);
    border-bottom: 1px solid transparent;
    position: sticky;
    top: 0;
    z-index: 200;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
/* Scrolled state — JS adds .scrolled class via motion.js */
.site-header.scrolled {
    background: rgba(51, 79, 68, 0.97);
    border-bottom-color: rgba(255,255,255,0.08);
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}
.site-header.scrolled .brand-name,
.site-header.scrolled .site-nav a:not(.btn-nav-demo) {
    color: rgba(255,255,255,0.9);
}
.site-header.scrolled .site-nav a:not(.btn-nav-demo):hover { color: #fff; }
.site-header.scrolled .site-nav a.active { color: #fff; }
.site-header.scrolled .nav-toggle span { background: #fff; }

.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text);
    text-decoration: none;
    flex-shrink: 0;
}
.brand-logo {
    height: 32px;
    width: auto;
}
.brand-name {
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}
.site-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.site-nav a:not(.btn-nav-demo) {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text);
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: color 0.15s ease;
}
.site-nav a:not(.btn-nav-demo):hover { color: var(--green); }
.site-nav a.active { color: var(--green); font-weight: 500; }

/* Nav CTA button */
.btn-nav-demo {
    display: inline-block;
    padding: 0.5rem 1.1rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    background: var(--orange);
    color: #fff !important;
    border: none;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.btn-nav-demo:hover {
    background: var(--orange-soft);
    color: #fff !important;
    transform: translateY(-1px);
}

/* Products dropdown */
.nav-has-dropdown {
    position: relative;
}
.nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.75rem);
    left: -1rem;
    min-width: 520px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 20px 60px -12px rgba(0,0,0,0.22);
    padding: 1rem;
    z-index: 300;
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}
.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown:focus-within .nav-dropdown {
    display: grid;
}
.nav-dropdown-item {
    display: block;
    padding: 0.75rem 0.9rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text) !important;
    font-size: 0.85rem;
    font-weight: 400;
    transition: background 0.12s ease;
    line-height: 1.3;
}
.nav-dropdown-item:hover {
    background: var(--cream);
    color: var(--text) !important;
}
.nav-dropdown-item-name {
    font-weight: 600;
    color: var(--green-dark);
    font-size: 0.88rem;
    margin-bottom: 0.18rem;
}
.nav-dropdown-item-tag {
    font-size: 0.73rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* Hamburger button — hidden on desktop */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
    flex-shrink: 0;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.3s ease;
}

/* Mobile nav */
@media (max-width: 780px) {
    .nav-toggle {
        display: flex;
    }
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--cream);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem 0;
        z-index: 99;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    }
    .site-nav.open {
        display: flex;
    }
    .site-nav a:not(.btn-nav-demo) {
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
        border-bottom: 1px solid var(--border);
        white-space: normal;
    }
    .site-nav a:not(.btn-nav-demo):last-of-type { border-bottom: none; }
    .btn-nav-demo {
        margin: 0.75rem 1.5rem;
        text-align: center;
    }
    .nav-dropdown { display: none !important; }
    /* Animated hamburger → X */
    .nav-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* ── Hero ── */
.hero {
    background: linear-gradient(165deg, var(--green-dark) 0%, var(--green) 40%, var(--green-light) 100%);
    color: #fff;
    padding: clamp(3rem, 8vw, 6rem) 1.5rem;
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.05) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 20%, rgba(233,78,27,0.07) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* Photo-backed hero variant — uses --hero-image set via inline style */
.hero.hero-image {
    background:
        linear-gradient(180deg, rgba(20,30,25,0.45) 0%, rgba(20,30,25,0.55) 50%, rgba(20,30,25,0.85) 100%),
        var(--hero-image) center/cover no-repeat;
    background-attachment: scroll;
    min-height: clamp(55vh, 85vh, 85vh);
}
.hero.hero-image::before {
    background: radial-gradient(ellipse at 20% 80%, rgba(233,78,27,0.15) 0%, transparent 50%);
}
.hero.hero-image .hero-inner { width: 100%; }

/* Full-viewport homepage hero */
.hero.hero-fullvp {
    min-height: 100vh;
    padding: clamp(6rem, 12vw, 9rem) 1.5rem clamp(4rem, 8vw, 6rem);
    align-items: flex-end;
    background:
        linear-gradient(
            to bottom,
            rgba(20,30,25,0.18) 0%,
            rgba(20,30,25,0.42) 50%,
            rgba(20,30,25,0.88) 100%
        ),
        var(--hero-image) center/cover no-repeat;
}
.hero.hero-fullvp .hero-inner {
    max-width: 860px;
}
.hero.hero-fullvp h1 {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
}

/* Portrait variant — anchor face at top of frame */
.hero.hero-image.hero-portrait {
    background:
        linear-gradient(180deg, rgba(20,30,25,0.35) 0%, rgba(20,30,25,0.55) 60%, rgba(20,30,25,0.92) 100%),
        var(--hero-image) center 20% / cover no-repeat;
    min-height: 80vh;
}

.hero-inner {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    width: 100%;
}
.hero h1 {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    margin-bottom: 1.2rem;
    line-height: 1.1;
}
.hero .lede {
    font-size: clamp(1rem, 1.7vw, 1.25rem);
    max-width: 720px;
    opacity: 0.95;
    font-weight: 300;
    line-height: 1.6;
}
.hero a { color: #fff; text-decoration: underline; }
.hero .eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    margin-bottom: 1.2rem;
    padding: 0.35rem 0.9rem;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 100px;
}

/* ── Detection showcase ── */
.detection-showcase {
    background: #1a1f1c;
    color: #fff;
    padding: 5rem 1.5rem;
    overflow: hidden;
}
.detection-showcase .inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
}
@media (max-width: 900px) {
    .detection-showcase .inner { grid-template-columns: 1fr; }
}
.detection-showcase .eyebrow {
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 1rem;
}
.detection-showcase h2 {
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    color: #fff;
    margin-bottom: 1.2rem;
    line-height: 1.15;
}
.detection-showcase p {
    color: rgba(255,255,255,0.75);
    font-size: 0.98rem;
    line-height: 1.7;
    font-weight: 300;
}
.detection-showcase .image-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
    aspect-ratio: 4/5;
    background: #0d1110;
}
.detection-showcase .image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.detection-showcase .corner-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0,0,0,0.65);
    color: var(--orange);
    padding: 0.35rem 0.8rem;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

/* ── Stat counters ── */
.stats-band {
    background: var(--green-dark);
    color: #fff;
    padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
}
.stats-band .inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
    gap: 1.5rem;
    text-align: center;
}

/* Tally variant — scoreboard look for live cumulative metrics */
.stats-band.stats-band-tally {
    background: #0d1110;
    padding-top: 5rem;
}
.stats-band-tally .inner-header {
    max-width: 720px;
    margin: 0 auto 3rem;
    text-align: center;
    padding: 0 1.5rem;
}
.stats-band-tally .inner-header .eyebrow {
    display: inline-block;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    font-weight: 500;
    margin-bottom: 1rem;
}
.stats-band-tally .inner-header h2 {
    color: #fff;
    margin-bottom: 0.8rem;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
}
.stats-band-tally .inner-header p {
    color: rgba(255,255,255,0.55);
    font-weight: 300;
    font-size: 0.95rem;
}
.stats-band-tally .inner {
    grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
}
.stats-band-tally .stat .number {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
}
.stats-band-tally .stat .label {
    color: rgba(255,255,255,0.9);
}
.stat {
    padding: 1rem;
}
.stat .number {
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 600;
    color: var(--orange);
    line-height: 1;
    letter-spacing: -0.02em;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.1rem;
}
.stat .unit {
    font-size: 0.5em;
    color: rgba(255,255,255,0.65);
    font-weight: 400;
}
.stat .label {
    margin-top: 0.8rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 400;
}
.stat .sub {
    margin-top: 0.4rem;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    font-weight: 300;
}

/* ── Motion: scroll-triggered reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }

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

/* ── Sections ── */
section.page-section {
    padding: 4rem 1.5rem;
}
section.page-section.alt {
    background: var(--cream-dark);
}
section.page-section .inner {
    max-width: 1100px;
    margin: 0 auto;
}
section.page-section h2 {
    margin-bottom: 1.5rem;
    color: var(--green-dark);
}

/* ── Cards ── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
}
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.6rem;
}
.card h3 {
    color: var(--green-dark);
    margin-bottom: 0.6rem;
}
.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 300;
}

/* ── Product cards — homepage / products overview ── */
/* 3-col grid on desktop, 1-col on mobile */
.product-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
@media (max-width: 960px) {
    .product-card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .product-card-grid { grid-template-columns: 1fr; }
}

.product-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 320px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px -6px rgba(0,0,0,0.18);
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px -10px rgba(0,0,0,0.26);
    color: inherit;
}

/* Per-product identity colours */
.product-card--farmdefender { background: linear-gradient(145deg, #1e3028 0%, #2d4a38 60%, #334f44 100%); }
.product-card--farmiq       { background: linear-gradient(145deg, #1c2e3a 0%, #274259 60%, #2d5470 100%); }
.product-card--soiloptix    { background: linear-gradient(145deg, #3d2a0e 0%, #6b4818 60%, #8a5d22 100%); }
.product-card--farmlink     { background: linear-gradient(145deg, #0e2230 0%, #163345 60%, #1c4060 100%); }
.product-card--farmtag      { background: linear-gradient(145deg, #2a1c35 0%, #42285a 60%, #553570 100%); }
.product-card--messium      { background: linear-gradient(145deg, #1a2e1a 0%, #2b4c2b 60%, #375e37 100%); }

/* Optional: full-bleed image behind gradient */
.product-card[data-bg] {
    background-size: cover;
    background-position: center;
}
.product-card[data-bg]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    z-index: 0;
}

.product-card-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.8rem;
}

.product-card-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(255,255,255,0.55);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 100px;
    padding: 0.28rem 0.75rem;
    margin-bottom: 1.1rem;
    width: fit-content;
}

.product-card h3 {
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    color: #fff;
    margin-bottom: 0.45rem;
    line-height: 1.1;
}

.product-card-tagline {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.75);
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 1.2rem;
    flex: 1;
}

.product-card-specs {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 1rem;
}
.product-card-specs li {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.7);
    font-weight: 300;
    padding: 0.3rem 0 0.3rem 1.2rem;
    position: relative;
    line-height: 1.4;
}
.product-card-specs li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 6px;
    height: 6px;
    background: var(--orange);
    border-radius: 50%;
}

.product-card .btn-card {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
    width: fit-content;
}
.product-card .btn-card:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.55);
    color: #fff;
}

/* ── FAQ accordion ── */
.faq-section {
    padding: 4rem 1.5rem;
    background: var(--cream-dark);
}
.faq-section .inner {
    max-width: 800px;
    margin: 0 auto;
}
.faq-section h2 {
    color: var(--green-dark);
    margin-bottom: 2rem;
}
.faq-item {
    border-bottom: 1px solid var(--border);
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.2rem 2rem 1.2rem 0;
    font-family: inherit;
    font-size: 0.97rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    position: relative;
    line-height: 1.4;
    display: block;
}
.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--green);
    transition: transform 0.2s ease;
    line-height: 1;
}
.faq-item.open .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.2s ease;
}
.faq-item.open .faq-answer {
    max-height: 400px;
    padding-bottom: 1.2rem;
}
.faq-answer p {
    font-size: 0.93rem;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ── Buttons ── */
.btn {
    display: inline-block;
    padding: 0.75rem 1.4rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: all 0.15s ease;
    border: none;
    cursor: pointer;
}
.btn-primary {
    background: var(--orange);
    color: #fff;
}
.btn-primary:hover {
    background: var(--orange-soft);
    color: #fff;
}
.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.6);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.btn-secondary {
    background: transparent;
    color: var(--green);
    border: 1px solid var(--green);
}
.btn-secondary:hover {
    background: var(--green);
    color: #fff;
}
.cta-row {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* ── Feature list ── */
.feature-list {
    list-style: none;
    margin-top: 1rem;
}
.feature-list li {
    padding: 0.6rem 0 0.6rem 1.7rem;
    position: relative;
    border-bottom: 1px solid var(--border);
    font-weight: 300;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.1rem;
    width: 8px;
    height: 8px;
    background: var(--orange);
    border-radius: 50%;
}

/* ── Two-column ── */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
@media (max-width: 800px) {
    .two-col { grid-template-columns: 1fr; gap: 2rem; }
}

/* ── Team grid ── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.team-member {
    text-align: left;
}
.team-member-photo {
    aspect-ratio: 3/4;
    border-radius: 10px;
    overflow: hidden;
    background: var(--cream-dark);
    margin-bottom: 1rem;
}
.team-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.team-member-name {
    font-weight: 600;
    color: var(--green-dark);
    margin-bottom: 0.2rem;
    font-size: 1.05rem;
}
.team-member-role {
    color: var(--orange);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.8rem;
    font-weight: 500;
}
.team-member p {
    font-size: 0.92rem;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.6;
}

/* ── Blog list ── */
.blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}
.blog-card {
    display: block;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.8rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px -16px rgba(42,42,42,0.18);
    border-color: rgba(42,42,42,0.2);
    color: inherit;
}
.blog-card-date {
    display: inline-block;
    color: var(--orange);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 500;
    margin-bottom: 0.7rem;
}
.blog-card h3 {
    color: var(--green-dark);
    margin-bottom: 0.6rem;
    line-height: 1.25;
    font-size: 1.15rem;
}
.blog-card p {
    color: var(--text-muted);
    font-size: 0.93rem;
    font-weight: 300;
    line-height: 1.55;
    margin-bottom: 1rem;
}
.blog-card-readmore {
    color: var(--green);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ── Blog post detail ── */
.blog-post {
    max-width: 760px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}
.blog-back {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
}
.blog-back:hover { color: var(--green); }
.blog-post-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.blog-post-date {
    display: block;
    color: var(--orange);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 500;
    margin: 1.2rem 0 0.8rem;
}
.blog-post-title {
    font-size: clamp(1.7rem, 3.6vw, 2.6rem);
    color: var(--green-dark);
    line-height: 1.15;
}
.blog-post-body {
    line-height: 1.75;
    font-size: 1.02rem;
}
.blog-post-body p {
    margin-bottom: 1.2rem;
}
.blog-post-body h2 {
    font-size: 1.5rem;
    color: var(--green-dark);
    margin-top: 2.5rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}
.blog-post-body h3 {
    font-size: 1.2rem;
    color: var(--green-dark);
    margin-top: 2rem;
    margin-bottom: 0.6rem;
}
.blog-post-body ul,
.blog-post-body ol {
    margin: 1rem 0 1.5rem 1.2rem;
}
.blog-post-body li {
    margin-bottom: 0.5rem;
    line-height: 1.65;
}
.blog-post-body strong {
    color: var(--text);
    font-weight: 600;
}
.blog-post-body blockquote {
    border-left: 3px solid var(--orange);
    padding: 0.2rem 0 0.2rem 1.2rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-style: italic;
}
.blog-post-body .post-figure {
    margin: 2rem -2rem;
    border-radius: 8px;
    overflow: hidden;
}
.blog-post-body .post-figure img {
    width: 100%;
    height: auto;
    display: block;
}
.blog-post-body .post-figure figcaption {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    padding: 0.6rem 1rem;
    background: var(--cream-dark);
}
@media (max-width: 800px) {
    .blog-post-body .post-figure { margin: 1.5rem 0; }
}
.blog-post-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ── Footer ── */
.site-footer {
    background: var(--green-dark);
    color: rgba(255,255,255,0.85);
    padding: 3.5rem 1.5rem 0;
    font-size: 0.85rem;
    font-weight: 300;
}
.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 960px) {
    .site-footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-col-brand { grid-column: 1 / -1; }
}
@media (max-width: 500px) {
    .site-footer-inner { grid-template-columns: 1fr; }
    .footer-col-brand { grid-column: auto; }
}
.site-footer a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color 0.15s ease;
}
.site-footer a:hover { color: #fff; }

.footer-col-brand .footer-brand-name {
    font-weight: 600;
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 0.3rem;
    letter-spacing: 0.02em;
}
.footer-col-brand .footer-brand-tagline {
    color: rgba(255,255,255,0.55);
    font-size: 0.82rem;
    margin-bottom: 1.5rem;
}
.footer-contact-block div {
    margin-bottom: 0.3rem;
    font-size: 0.83rem;
}

.footer-col-heading {
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1rem;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 0.55rem;
}
.footer-links a {
    font-size: 0.88rem;
    font-weight: 300;
}
.footer-link-muted {
    opacity: 0.6;
}

/* Footer bottom bar */
.footer-bottom {
    padding: 1.2rem 1.5rem;
}
.footer-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.footer-bottom .footer-legal {
    font-size: 0.78rem;
    opacity: 0.55;
}
.footer-bim {
    font-size: 0.78rem;
    opacity: 0.55;
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ── Social proof section ── */
.social-proof-section {
    background: var(--cream, #f8f6f1);
    padding: 4rem 1.5rem;
}
.social-proof-section .inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Partner logos row */
.partners-row {
    text-align: center;
}
.partners-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 600;
    color: var(--text-muted, #666);
    margin-bottom: 1.25rem;
}
.partner-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}
.partner-logo-item {
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--text-muted, #666);
    text-transform: uppercase;
}
.partner-logo-divider {
    width: 1px;
    height: 1rem;
    background: rgba(0,0,0,0.18);
    display: inline-block;
    vertical-align: middle;
}

/* Customer quote */
.customer-quote {
    background: #fff;
    border-left: 4px solid var(--green, #426658);
    border-radius: 0 8px 8px 0;
    padding: 2rem 2rem 2rem 1.75rem;
    max-width: 680px;
}
.quote-body {
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text, #1a1a1a);
    margin: 0 0 1.25rem 0;
    border: none;
    padding: 0;
}
.quote-attribution {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}
.quote-avatar-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--green-light, #5a8572);
    flex-shrink: 0;
    /* Empty by default — replaced by real headshot when available */
}
.quote-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.quote-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text, #1a1a1a);
}
.quote-region {
    font-size: 0.8rem;
    color: var(--text-muted, #666);
}

/* Built in Montana badge */
.built-in-montana {
    display: flex;
    justify-content: center;
}
.bim-badge {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--green, #426658);
    color: #fff;
    border-radius: 8px;
    padding: 1.1rem 1.75rem;
}
.bim-icon {
    font-size: 1.8rem;
    line-height: 1;
    opacity: 0.85;
}
.bim-headline {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.bim-sub {
    font-size: 0.82rem;
    opacity: 0.8;
    font-weight: 300;
    margin-top: 0.15rem;
}

@media (min-width: 768px) {
    .social-proof-section .inner {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }
    .partners-row {
        flex: 1 1 100%;
    }
    .customer-quote {
        flex: 1 1 55%;
    }
    .built-in-montana {
        flex: 1 1 35%;
        justify-content: flex-end;
    }
}

/* ============================================================
   Components added 2026-06-20 — these classes were used in page
   HTML but had no styling (sections rendered unstyled). See
   PRE-LAUNCH-AUDIT.md #1.
   ============================================================ */

/* Generic eyebrow (outside .hero / .detection-showcase, which scope their own) */
.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--orange);
    margin-bottom: 0.9rem;
}

/* Section header (eyebrow + h2 + lede) */
.section-header { margin-bottom: 2.5rem; }
.section-header h2 { color: var(--green-dark); margin-bottom: 0.8rem; }

/* ── Homepage customer story cards ── */
.customer-story-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}
.story-card {
    background: #fff;
    border: 1px solid var(--border);
    border-top: 3px solid var(--orange);
    border-radius: 10px;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
}
.story-card-product {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--orange);
    margin-bottom: 1rem;
}
.story-card-customer { margin-bottom: 1.2rem; }
.story-card-name { font-weight: 600; color: var(--green-dark); font-size: 1.05rem; }
.story-card-location { font-size: 0.82rem; color: var(--text-muted); }
.story-card-stat {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 600;
    color: var(--green);
    line-height: 1.05;
}
.story-card-stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0.4rem 0 1.2rem;
}
.story-card-body {
    font-size: 0.92rem;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.65;
    flex: 1;
    margin-bottom: 1.2rem;
}
.story-card .btn-card {
    color: var(--green);
    font-size: 0.85rem;
    font-weight: 500;
    align-self: flex-start;
}
.story-card .btn-card:hover { color: var(--green-dark); }

/* ── Homepage "Your Data. Your Farm." band ── */
.data-philosophy-band {
    background: linear-gradient(145deg, var(--green-dark), var(--green));
    color: #fff;
    padding: clamp(3rem, 7vw, 5rem) 1.5rem;
}
.data-philosophy-band .inner { max-width: 1100px; margin: 0 auto; }
.data-philosophy-content { max-width: 760px; }
.data-philosophy-band h2 { color: #fff; margin-bottom: 1rem; }
.data-philosophy-band p { color: rgba(255,255,255,0.82); font-weight: 300; line-height: 1.7; margin-bottom: 1.5rem; }

/* Outline button on dark backgrounds */
.btn-outline-light {
    display: inline-block;
    padding: 0.75rem 1.4rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.6);
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: #fff; }

/* ── Data-trust badge (appears standalone on 9 pages) ── */
.data-trust-badge {
    max-width: 880px;
    margin: 2.5rem auto;
    padding: 1.1rem 1.5rem;
    background: var(--cream-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 300;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.6;
}
.data-trust-icon { margin-right: 0.4rem; }

/* ── data-philosophy.html ── */
.data-promise-list { list-style: none; margin-top: 1rem; padding: 0; }
.data-promise-list li {
    display: flex;
    gap: 0.9rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}
.data-promise-list li:last-child { border-bottom: none; }
.data-promise-x {
    color: var(--orange);
    font-weight: 700;
    flex-shrink: 0;
    font-size: 1.05rem;
    line-height: 1.6;
}
.data-promise-list strong { color: var(--text); display: block; margin-bottom: 0.25rem; }
.data-promise-list p { font-size: 0.9rem; color: var(--text-muted); font-weight: 300; margin: 0; }

.data-philosophy-context {
    background: var(--cream-dark);
    padding: 4rem 1.5rem;
}
.data-philosophy-context .inner { max-width: 1100px; margin: 0 auto; }
.data-philosophy-context h2 { color: var(--green-dark); }

.data-tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.data-tech-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.8rem;
}
.data-tech-card h3 { color: var(--green-dark); margin-bottom: 0.5rem; }
.data-tech-card p { color: var(--text-muted); font-size: 0.92rem; font-weight: 300; line-height: 1.6; margin: 0; }
.data-tech-icon { font-size: 1.8rem; color: var(--orange); margin-bottom: 0.8rem; line-height: 1; }

.data-philosophy-commitment {
    background: var(--green-dark);
    color: #fff;
    padding: clamp(3rem, 7vw, 5rem) 1.5rem;
}
.data-philosophy-commitment .inner { max-width: 1100px; margin: 0 auto; }
.data-philosophy-commitment h2 { color: #fff; margin-bottom: 1rem; }
.data-philosophy-commitment p { color: rgba(255,255,255,0.82); font-weight: 300; line-height: 1.7; }

/* ── FarmIQ stat row (inside .stats-band, dark) ── */
.stat-number {
    display: block;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 600;
    color: var(--orange);
    line-height: 1;
}
.stat-label {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.8);
    font-weight: 300;
    line-height: 1.4;
}

/* ── Case-studies index status pills (on dark product cards) ── */
.product-card-status {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.32rem 0.75rem;
    border-radius: 100px;
    margin-top: 0.5rem;
    width: fit-content;
}
.product-card-status.running { background: rgba(233,78,27,0.18); color: #ffb38f; border: 1px solid rgba(233,78,27,0.5); }
.product-card-status.completed { background: rgba(90,133,114,0.28); color: #c2e2d2; border: 1px solid rgba(90,133,114,0.6); }
.product-card-status.in-progress { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.85); border: 1px solid rgba(255,255,255,0.3); }

/* ── Case-study pull quote (light bg) ── */
.pull-quote {
    border-left: 4px solid var(--orange);
    padding: 0.4rem 0 0.4rem 1.5rem;
    margin: 2rem 0;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-style: italic;
    font-weight: 300;
    color: var(--green-dark);
    line-height: 1.5;
}

/* ── FarmBoss tally band (uses .stats-band-tally WITHOUT .stats-band) ── */
.stats-band-tally:not(.stats-band) {
    background: #0d1110;
    color: #fff;
    padding: clamp(3rem, 7vw, 5rem) 1.5rem;
}
.stats-band-tally:not(.stats-band) .inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.tally-header {
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.tally-row {
    color: rgba(255,255,255,0.9);
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 300;
    line-height: 1.5;
}

/* ── Contact page cards ── */
.card-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    margin-top: 1.5rem;
}
@media (max-width: 700px) { .card-grid-2x2 { grid-template-columns: 1fr; } }
.contact-card { display: flex; flex-direction: column; }
.contact-card-icon { font-size: 1.8rem; margin-bottom: 0.8rem; line-height: 1; }
.contact-card h3 { color: var(--green-dark); margin-bottom: 0.5rem; }
.contact-card p { flex: 1; }
.contact-card .btn { align-self: flex-start; margin-top: 1rem; }

/* ── Pillars grid (By farmers, for farmers) ── */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.pillar {
    background: var(--cream, #f8f6f1);
    border-radius: 8px;
    padding: 1.75rem 1.5rem;
    border-top: 3px solid var(--green, #426658);
}
.pillar-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    line-height: 1;
}
.pillar-heading {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--green-dark, #334f44);
    margin: 0 0 0.6rem;
}
.pillar p {
    font-size: 0.9rem;
    color: var(--text-muted, #555);
    line-height: 1.6;
    margin: 0;
}
.pillar p a {
    color: var(--green, #426658);
    font-weight: 600;
}
@media (max-width: 900px) {
    .pillars-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .pillars-grid { grid-template-columns: 1fr; }
}

/* ── Choteau brand strip (product page footer before CTA) ── */
.choteau-brand-strip {
    text-align: center;
    padding: 1.5rem 1rem;
    border-top: 1px solid var(--green-light, #c8d8d3);
    border-bottom: 1px solid var(--green-light, #c8d8d3);
    margin: 2.5rem 0;
    background: var(--cream, #f8f6f1);
}
.choteau-brand-strip p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted, #555);
}
.choteau-brand-strip strong {
    color: var(--green-dark, #334f44);
    font-weight: 700;
}
.choteau-brand-strip a {
    color: var(--green, #426658);
    font-weight: 600;
    text-decoration: none;
}
.choteau-brand-strip a:hover {
    text-decoration: underline;
}
