:root {
    /* Colors from Brand Guide Page 08 */
    --orchard-leaf: #5d634a;
    --wild-sage: #8c8c7a;
    --raw-cotton: #faf6ed;
    --harvest-linen: #e0d5c3;
    --heritage-truffle: #5e483c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--raw-cotton);
    color: var(--heritage-truffle);
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .serif {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    text-transform: uppercase;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* --- NAVIGATION --- */
nav {
    padding: 40px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    width: 100%;
    z-index: 100;
}

.nav-logo img {
    width: 25rem;
}

.nav-links a {
    margin-left: 40px;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: opacity 0.1s ease;
}

/* --- HERO --- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 10%;
    background: linear-gradient(rgba(250,246,237,0.4), rgba(250,246,237,0.4)), url('image.png');
    background-size: cover;
    background-position: center;
}

.hero-tagline {
    font-size: clamp(2rem, 5vw, 2.3rem);
    max-width: 900px;
    margin-bottom: 10px;
    font-size: 3.4rem;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    letter-spacing: 0.1rem;
}

.hero p {
    max-width: 950px;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.btn {
    padding: 18px 40px;
    background: var(--orchard-leaf);
    color: var(--raw-cotton);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    border: none;
    cursor: pointer;
}

/* --- SPRING INTRO --- */
.spring-intro {
    /* padding: 100px 10% 60px; */
    text-align: center;
    background-color: var(--raw-cotton);
}

.intro-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    line-height: 1.5;
    max-width: 920px;
    margin: 0 auto;
    color: var(--heritage-truffle);
}

/* --- MERGED BOX SECTION --- */
.seasonal-box-merged {
    position: relative;
    padding: 100px 5%;
    min-height: 850px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Keeps produce within section bounds */
    background-color: var(--harvest-linen);
}

/* The Background Items */
.floating-produce-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none; /* Allows you to click the card through the images */
}

.produce-item {
    position: absolute;
    width: 160px;
    opacity: 0.7; /* Softens them to keep focus on the card */
    animation: drift 15s ease-in-out infinite;
}

.produce-item img { width: 100%; height: auto; }
.produce-item span { 
    display: block; 
    text-align: center; 
    font-family: 'Playfair Display'; 
    font-style: italic; 
    font-size: 0.85rem;
    margin-top: 8px;
}

/* Positioning & Animation Timing */
.item-1 { top: 10%; left: 5%; animation-delay: 0s; }
.item-2 { top: 5%; left: 80%; animation-delay: -2s; }
.item-3 { top: 55%; left: 5%; animation-delay: -5s; }
.item-4 { top: 5%; left: 25%; animation-delay: -3s; }
.item-5 { top: 20%; left: 65%; animation-delay: -8s; }
.item-6 { top: 50%; left: 80%; animation-delay: -10s; }

/* THE DRIFT ANIMATION */
@keyframes drift {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(20px, -15px) rotate(2deg); }
    66% { transform: translate(-15px, 10px) rotate(-1deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* --- THE PRICING CARD --- */
.box-pricing-card {
    position: relative;
    z-index: 10;
    background-color: var(--raw-cotton);
    padding: 60px 40px;
    width: 100%;
    max-width: 520px;
    border: 1px solid var(--harvest-linen);
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.urgency-tag {
    position: absolute;
    top: -20px;
    left: 28%;
    transform: translateX(-17%);
    background-color: var(--heritage-truffle);
    color: var(--raw-cotton);
    padding: 6px 20px;
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.est-tag {
    display: block;
    font-size: 1rem;
    letter-spacing: 0.2em;
    margin-bottom: 10px;
    color: var(--wild-sage);
}

.box-pricing-card h3 {
    font-size: 2.5rem;
    color: var(--heritage-truffle);
    letter-spacing: 0.2rem;
    line-height: normal;
    margin-top: 20px;
}

.price {
    display: block;
    font-size: 1.5rem;
    color: var(--orchard-leaf);
    font-family: 'Playfair Display', serif;
    margin-bottom: 30px;
}

.box-details {
    list-style: none;
    text-align: left;
    display: inline-block;
    margin-bottom: 40px;
}

.box-details li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    font-size: 1.3rem;
}

.box-details li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--wild-sage);
}

.card-btn {
    width: 81%;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .produce-item { display: none; } /* Hide floating items on mobile for better readability */
    .box-pricing-card { padding: 40px 25px; border: none; }
}

/* --- STAR FARMER (Archway Motif) --- */
.star-farmer {
    padding: 100px 10%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    background-color: var(--raw-cotton);
}

.farmer-image {
    width: 100%;
    height: 600px;
    background: url('/images/silas.jpg') center/cover;
    border-radius: 500px 500px 0 0; /* Mimics the Archway Mark logo */
    border: 1px solid var(--heritage-truffle);
}

.farmer-content span {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.8rem;
    color: var(--orchard-leaf);
}

.farmer-content h2 {
    font-size: 3rem;
    margin: 20px 0;
}

/* --- HOW IT WORKS --- */
.how-works {
    padding: 120px 10%; /* Increased padding for more "breathing room" */
    text-align: center;
    background-color: var(--wild-sage);
}

.how-works h2 {
    font-size: 2.8rem;
    color: var(--raw-cotton);
    margin-bottom: 20px;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px; /* Slightly tighter gap for a more cohesive look */
    margin-top: 60px;
}

.work-card {
    padding: 50px 30px;
    border: 1px solid var(--harvest-linen);
    background-color: var(--raw-cotton);
    transition: transform 0.3s ease;
}

/* New Number Styling */
.step-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 2.5rem;
    color: var(--heritage-truffle);
    margin-bottom: 5px;
    line-height: 1;
}

.work-card h3 {
    margin: 10px 0 20px;
    font-size: 1.4rem;
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--heritage-truffle);
}

.work-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--heritage-truffle);
    font-weight: 300;
}

/* Mobile Tweak */
@media (max-width: 768px) {
    .works-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .work-card {
        padding: 40px 20px;
    }
}

/* --- INSTAGRAM GALLERY --- */
.instagram-sec {
    padding: 100px 10%; 
    background-color: var(--raw-cotton);
}

.insta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.insta-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    filter: grayscale(30%) brightness(0.95);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    border-radius: 2px;
}

/* --- HOVER INTERACTIVITY --- */
.insta-grid img:hover {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.03);
    box-shadow: 0 15px 35px rgba(94, 72, 60, 0.15);
    z-index: 10;
    position: relative;
}

/* --- FOOTER --- */
footer {
    background-color: var(--orchard-leaf);
    color: var(--raw-cotton);
    padding: 80px 10% 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 2fr;
    gap: 50px;
    margin-bottom: 80px;
    text-align: center;
}

.footer-logo img {
    max-width: 27rem;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-links h4 {
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.newsletter input {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--raw-cotton);
    padding: 10px 0;
    width: 100%;
    color: var(--raw-cotton);
    margin-bottom: 20px;
    outline: none;
}

.copyright {
    border-top: 1px solid rgba(250,246,237,0.1);
    padding-top: 40px;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-align: center;
}

.mobile-sticky-bar {
    display: none;
}

@media (max-width: 768px) {
    .star-farmer, .works-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    .insta-grid {
        grid-template-columns: 1fr 1fr;
    }
    .table-area {
        height: 1200px;
    }
    .produce-item {
        position: relative;
        display: inline-block;
        margin: 20px;
        top: auto !important;
        left: auto !important;
    }

    nav {
        padding: 20px 5%;
        position: relative; 
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .nav-logo {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .nav-logo img {
        width: 90%;
        height: auto;
    }

    .nav-links {
        display: none; 
    }

    .hero {
        height: auto;
        min-height: 80vh;
        padding: 60px 5%;
    }

    .hero img {
        height: 180px !important;
        margin-bottom: 20px;
    }

    .hero-tagline {
        font-size: 2.2rem;
        line-height: 1.1;
        margin-bottom: 15px;
    }

    .hero-title {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .spring-intro {
        padding: 60px 8%;
    }

    .intro-content p {
        font-size: 1.3rem;
        margin-bottom: 40px;
    }

    .farmer-image {
        height: 400px;
    }

    .farmer-content h2 {
        font-size: 2.2rem;
    }

    footer {
        padding: 60px 10% 120px;
    }

    .footer-logo img {
        max-width: 200px;
    }

    .mobile-sticky-bar {
        position: fixed;
        bottom: -100px;
        left: 0;
        width: 100%;
        background: var(--raw-cotton);
        padding: 15px 20px;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
        z-index: 1000;
        transition: bottom 0.4s ease-in-out;
        display: flex;
        justify-content: center;
        border-top: 1px solid var(--harvest-linen);
    }

    .mobile-sticky-bar.active {
        bottom: 0;
    }

    .sticky-btn {
        width: 100%;
        padding: 15px;
        font-size: 0.9rem;
    }

    .btn {
        padding: 18px 10px;
        font-size: 1rem;
    }
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* --- BUTTON ANIMATIONS --- */
.btn {
    padding: 18px 40px;
    background: var(--orchard-leaf);
    color: var(--raw-cotton);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
    display: inline-block;
    z-index: 1;
}

.btn:hover {
    background-color: var(--heritage-truffle);
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(94, 72, 60, 0.15);
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(94, 72, 60, 0.2);
    transition: all 0.1s;
}

.newsletter .btn:hover {
    background-color: var(--wild-sage) !important;
    color: var(--raw-cotton) !important;
}

.nav-links a {
    margin-left: 40px;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -8px;
    left: 0;
    background-color: var(--heritage-truffle);
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-links a:hover {
    opacity: 0.7;
    color: var(--orchard-leaf);
}

.nav-links a:hover::after {
    width: 100%;
}

.footer-links li:hover {
    transform: translateX(5px);
    color: var(--harvest-linen);
    transition: all 0.3s ease;
    cursor: pointer;
}

.dots-container {
    display: none;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(94, 72, 60, 0.2); 
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--heritage-truffle);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .how-works {
        padding: 80px 0;
        background-color: var(--wild-sage);
    }

    .how-works h2 {
        padding: 0 20px;
        margin-bottom: 0px;
        color: var(--raw-cotton);
    }

    .works-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        gap: 0;
        padding: 0;
        margin-top: 10px;
    }

    .works-grid::-webkit-scrollbar { display: none; }

    .work-card {
        flex: 0 0 100%;
        scroll-snap-align: start;
        background: transparent;
        padding: 0 20px;
        box-sizing: border-box;
        display: flex;
        justify-content: center;
        border: none;
    }

    .card-inner {
        background-color: var(--raw-cotton);
        border: 1px solid var(--harvest-linen);
        padding: 60px 30px;
        width: 100%;
        text-align: center;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    .dots-container {
        display: flex;
        justify-content: center;
        gap: 12px;
        margin-top: 30px;
    }
}

@media (max-width: 1024px) {
    .instagram-sec {
        padding: 80px 5%;
    }
}

@media (max-width: 768px) {
    .instagram-sec {
        padding: 60px 20px;
    }
    
    .insta-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .insta-grid img:hover {
        transform: scale(1.01);
    }
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: #fff;
    max-width: 520px;
    width: 100%;
    padding: 32px;
    position: relative;
    border-radius: 12px;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
}

#reserve-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#reserve-form input,
#reserve-form textarea {
    width: 100%;
    padding: 12px;
    font-family: inherit;
}

#reserve-form textarea {
    min-height: 90px;
}

.honeypot {
    display: none;
}

#reserve-message {
    font-size: 0.95rem;
}

.btn {
    display: inline-block;
    text-decoration: none;
}