/* ============================================
   Red Truck Peanut Brittle — Stylesheet
   Forest Green + Off-White Palette
   ============================================ */

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

:root {
    --green-900: #0B2A1A;
    --green-800: #1B4332;
    --green-700: #2D6A4F;
    --green-600: #40916C;
    --green-500: #52B788;
    --green-100: #D8F3DC;
    --green-50:  #F0FFF4;

    --cream:     #FAF9F6;
    --cream-dark:#F2F0EB;
    --warm-white:#FFFDF8;
    --sand:      #E8E4DB;
    --gold:      #C9A84C;
    --gold-light:#E8D5A0;

    --text-dark:  #1A1A1A;
    --text-mid:   #3D3D3D;
    --text-light: #6B6B6B;

    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --radius-sm:  6px;
    --radius-md:  12px;
    --radius-lg:  20px;

    --shadow-sm:  0 1px 3px rgba(27,67,50,0.08), 0 1px 2px rgba(27,67,50,0.06);
    --shadow-md:  0 4px 16px rgba(27,67,50,0.10), 0 2px 4px rgba(27,67,50,0.06);
    --shadow-lg:  0 12px 40px rgba(27,67,50,0.14), 0 4px 12px rgba(27,67,50,0.08);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.65;
    font-size: 16px;
    overflow-x: hidden;
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--green-800);
}

.accent {
    color: var(--gold);
}

.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--green-600);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 540px;
    line-height: 1.7;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--green-800);
    color: #fff;
    border-color: var(--green-800);
}
.btn-primary:hover {
    background: var(--green-700);
    border-color: var(--green-700);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.6);
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.12);
    border-color: #fff;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.82rem;
}

/* ============================================
   Header / Navigation
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250,249,246,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(27,67,50,0.08);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    width: 42px;
    height: 42px;
    background: var(--green-800);
    color: var(--gold);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--green-800);
    line-height: 1.2;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.main-nav a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-mid);
    transition: color 0.2s ease;
    position: relative;
}

.main-nav a:not(.btn):hover {
    color: var(--green-700);
}

.main-nav a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.25s ease;
}

.main-nav a:not(.btn):hover::after {
    width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    padding: 0;
}

.hamburger {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    width: 22px;
    height: 2px;
    background: var(--green-800);
    box-shadow: 0 -7px 0 var(--green-800), 0 7px 0 var(--green-800);
    transition: all 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .hamburger {
    box-shadow: 0 0 0 transparent;
    transform: translate(-50%, -50%) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 22px;
    height: 2px;
    background: var(--green-800);
    transform: rotate(90deg);
}
.nav-toggle[aria-expanded="true"] .hamburger::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 22px;
    height: 2px;
    background: var(--green-800);
    transform: rotate(0deg);
}

/* ============================================
   Hero
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--green-900);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(11,42,26,0.88) 0%,
        rgba(27,67,50,0.78) 50%,
        rgba(45,106,79,0.60) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding-top: 72px;
}

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 24px;
}

.hero-headline {
    font-size: clamp(2.25rem, 6vw, 4.25rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.12;
    margin-bottom: 24px;
}

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

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: rgba(255,255,255,0.82);
    line-height: 1.75;
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: float 2.5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================
   Features Strip
   ============================================ */
.features-strip {
    background: var(--green-800);
    padding: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 36px 28px;
    border-right: 1px solid rgba(255,255,255,0.08);
    transition: background 0.25s ease;
}

.feature-item:last-child {
    border-right: none;
}

.feature-item:hover {
    background: rgba(255,255,255,0.04);
}

.feature-icon {
    width: 28px;
    height: 28px;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-item strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.feature-item span {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.55;
}

/* ============================================
   Sections (general)
   ============================================ */
.section {
    padding: 100px 0;
}

/* ============================================
   Story
   ============================================ */
.story {
    background: var(--warm-white);
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.story-image-wrap {
    position: relative;
}

.story-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.story-img-main img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.story-img-accent {
    position: absolute;
    bottom: -32px;
    right: -24px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--warm-white);
}

.story-img-accent img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.story-content {
    padding: 20px 0;
}

.story-content p {
    color: var(--text-mid);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.story-stats {
    display: flex;
    gap: 40px;
    margin-top: 36px;
    padding-top: 36px;
    border-top: 1px solid var(--sand);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--green-800);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

/* ============================================
   Products
   ============================================ */
.products {
    background: var(--cream);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.product-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-img {
    overflow: hidden;
    height: 260px;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-body {
    padding: 28px;
}

.product-name {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--green-800);
}

.product-desc {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ============================================
   Process
   ============================================ */
.process {
    background: var(--green-800);
    color: #fff;
}

.process .section-eyebrow {
    color: var(--gold-light);
}

.process .section-title {
    color: #fff;
}

.process .section-subtitle {
    color: rgba(255,255,255,0.65);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.process-step {
    position: relative;
    padding: 28px 24px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    transition: background 0.25s ease;
}

.process-step:hover {
    background: rgba(255,255,255,0.09);
}

.step-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(201,168,76,0.25);
    line-height: 1;
    margin-bottom: 16px;
}

.step-img {
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 20px;
    height: 160px;
}

.step-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.process-step h3 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 10px;
}

.process-step p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
}

/* ============================================
   Visit / Contact
   ============================================ */
.visit {
    background: var(--cream-dark);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.visit-intro {
    font-size: 1.05rem;
    color: var(--text-mid);
    line-height: 1.75;
    margin-bottom: 36px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 36px;
}

.contact-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    width: 22px;
    height: 22px;
    color: var(--green-700);
    flex-shrink: 0;
    margin-top: 3px;
}

.contact-row dt {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--green-800);
    margin-bottom: 4px;
}

.contact-row dd {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.65;
}

.contact-row a {
    color: var(--green-700);
    transition: color 0.2s ease;
}

.contact-row a:hover {
    color: var(--green-600);
    text-decoration: underline;
}

.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-height: 460px;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 460px;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--green-900);
    color: rgba(255,255,255,0.6);
    padding: 60px 0 32px;
}

.footer-top {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.footer-brand .logo-mark {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
}

.footer-brand .logo-text {
    color: #fff;
    font-size: 1.05rem;
}

.footer-tagline {
    font-size: 0.92rem;
    line-height: 1.7;
    max-width: 360px;
    margin-top: 10px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
}

.footer-bottom a {
    color: var(--gold-light);
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: var(--gold);
    text-decoration: underline;
}

/* ============================================
   Scroll-reveal (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: content always visible if JS disabled or reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .feature-item {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .feature-item:nth-child(odd) {
        border-right: 1px solid rgba(255,255,255,0.08);
    }
    .feature-item:nth-child(4) {
        border-bottom: none;
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(250,249,246,0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(27,67,50,0.1);
        padding: 0 24px 24px;
        transform: translateY(-110%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .main-nav li {
        border-bottom: 1px solid var(--sand);
    }
    .main-nav li:last-child {
        border-bottom: none;
    }

    .main-nav a {
        display: block;
        padding: 16px 0;
        font-size: 1rem;
    }

    .main-nav a:not(.btn)::after {
        display: none;
    }

    .main-nav .btn {
        text-align: center;
        margin-top: 16px;
    }

    .hero-headline {
        font-size: clamp(1.75rem, 8vw, 2.75rem);
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
    .feature-item {
        border-right: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    }
    .feature-item:last-child {
        border-bottom: none !important;
    }

    .story-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .story-img-accent {
        right: 0;
        bottom: -20px;
    }

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

    .process-steps {
        grid-template-columns: 1fr;
    }

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

    .visit-map {
        min-height: 300px;
        order: -1;
    }

    .map-placeholder {
        min-height: 300px;
    }

    .footer-top {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .section {
        padding: 72px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-content {
        padding-top: 60px;
    }

    .story-img-main img {
        height: 320px;
    }

    .story-img-accent img {
        height: 160px;
    }

    .story-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}
