/* style.css */

/* ========================================================================== */
/* ROOT & GLOBAL */
/* ========================================================================== */
:root {
    --accent-color: #3b5d50;
    --accent-alt: #b0894f;
    --bg-color: #fdfaf5;
    --bg-band: #f6efe4;
    --text-color: #333333;
    --border-soft: #e2d5c4;
    --error-color: #b74b4b;
    --success-color: #3b7d4f;
    --shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.05);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 14px;

    --spacing-xs: 0.35rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1.25rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    --font-heading: "Playfair Display", "Times New Roman", serif;
    --font-body: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --transition-fast: 0.2s ease;
}

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

html,
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

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

a:hover {
    text-decoration: none;
}

body {
    line-height: 1.6;
}

/* ========================================================================== */
/* LAYOUT HELPERS */
/* ========================================================================== */

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-tight {
    padding-top: var(--spacing-md);
    padding-bottom: var(--spacing-md);
}

.section-band {
    background: linear-gradient(to bottom, var(--bg-band), var(--bg-color));
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: #666;
    font-size: 0.95rem;
    max-width: 36rem;
}

/* ========================================================================== */
/* TOP BAR & HEADER */
/* ========================================================================== */

.top-bar {
    background-color: var(--accent-color);
    color: #fdfdfd;
    font-size: 0.85rem;
    padding: 0.4rem 0;
}

.top-bar p {
    margin: 0;
    text-align: center;
}

.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    letter-spacing: 0.04em;
    color: var(--accent-color);
}

/* Brand: logo space + farm name */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
}

.brand-logo {
    width: 45px;
    height: 45px;
    border-radius: 999px;
    /* makes it perfectly round */
    overflow: hidden;
    flex-shrink: 0;
    background: #eee;
    /* fallback color */
}

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


.brand-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    letter-spacing: 0.04em;
    color: var(--accent-color);
}


/* Nav */

.main-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-fast);
}

.main-nav.open {
    max-height: 260px;
}

.nav-links {
    list-style: none;
    padding: 0.75rem 1.25rem 1rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.nav-links a {
    display: block;
    padding: 0.45rem 0.3rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

.nav-links a:hover {
    background-color: rgba(59, 93, 80, 0.06);
}

.nav-links a.active {
    color: var(--accent-color);
    background-color: rgba(59, 93, 80, 0.08);
}

/* Hamburger */

.nav-toggle {
    width: 40px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    padding: 0;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background-color: #333;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
}

/* ========================================================================== */
/* HERO (HOME) */
/* ========================================================================== */

.hero {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
}

.hero-grid {
    display: grid;
    gap: var(--spacing-lg);
    align-items: center;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    margin-bottom: var(--spacing-md);
    color: #555;
    max-width: 34rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: var(--spacing-sm);
}

.hero-trust-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

.hero-trust-points span {
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.3rem 0.7rem;
    background-color: #fffdf9;
}

.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    object-fit: cover;
}

/* ========================================================================== */
/* BUTTONS */
/* ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform 0.1s ease-in-out, box-shadow 0.1s ease-in-out;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 93, 80, 0.25);
}

.btn-primary:hover {
    background-color: #324d43;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(59, 93, 80, 0.3);
}

.btn-secondary {
    background-color: #ffffff;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-secondary:hover {
    background-color: rgba(59, 93, 80, 0.06);
}

.btn-outline {
    background-color: #ffffff;
    border-color: var(--accent-alt);
    color: var(--accent-alt);
}

.btn-outline:hover {
    background-color: rgba(176, 137, 79, 0.07);
}

.btn-text {
    display: inline-flex;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--accent-color);
    margin-top: 0.75rem;
}

.btn-text:hover {
    text-decoration: underline;
}

/* ========================================================================== */
/* HOME SECTIONS */
/* ========================================================================== */

.season-strip {
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    background: #fffdfa;
}

.season-strip-inner {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.about-grid {
    display: grid;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.csa-teaser {
    display: grid;
    gap: var(--spacing-lg);
    align-items: flex-start;
}

.csa-benefits ul {
    padding-left: 1.1rem;
    margin-top: 0;
    margin-bottom: var(--spacing-md);
}

.visit-teaser {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.visit-hours-placeholder span {
    font-weight: 600;
}

/* ========================================================================== */
/* PAGE TITLES */
/* ========================================================================== */

.page-title {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    margin-bottom: 0.3rem;
}

.page-intro {
    color: #555;
    max-width: 40rem;
}

/* ========================================================================== */
/* FARM PAGE */
/* ========================================================================== */

.farm-hero-image img {
    border-radius: var(--radius-lg);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.story-grid {
    display: grid;
    gap: var(--spacing-lg);
    align-items: flex-start;
}

.story-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.values-list {
    padding-left: 1.1rem;
    margin-top: 0.75rem;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--accent-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
}


/* ========================================================================== */
/* CARDS & GRIDS */
/* ========================================================================== */

.card-grid {
    display: grid;
    gap: var(--spacing-md);
}

.card {
    background-color: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 360px;
    /* taller = see more of the image */
    object-fit: cover;
    object-position: top;
    /* show more of the top of the crate */
    display: block;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}


.card-body {
    padding: var(--spacing-md);
}

.card-body h3 {
    margin-top: 0;
    margin-bottom: 0.35rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.card-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(59, 93, 80, 0.08);
    border: 1px solid rgba(59, 93, 80, 0.25);
    margin-bottom: 0.65rem;
}

/* Grow cards */

.grow-cards .card {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border-style: dashed;
}

/* ========================================================================== */
/* PRODUCTS PAGE */
/* ========================================================================== */

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background-color: #ffffff;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: #444;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.filter-btn.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #ffffff;
}

.filter-btn:hover:not(.active) {
    background-color: rgba(59, 93, 80, 0.05);
}

.product-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.2rem;
}

.product-tags {
    font-size: 0.85rem;
    color: #444;
    margin-bottom: 0.35rem;
}

.product-note {
    font-size: 0.9rem;
}

/* In-season table */

.season-table {
    margin-top: 1.2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    overflow: hidden;
    background-color: #fffdf9;
}

.season-row {
    display: grid;
    grid-template-columns: 1fr;
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.season-row:last-child {
    border-bottom: none;
}

.season-name {
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: var(--accent-color);
}

.season-crops {
    font-size: 0.9rem;
    color: #555;
}

/* CTA box */

.cta-box {
    background: linear-gradient(135deg, rgba(59, 93, 80, 0.05), rgba(176, 137, 79, 0.08));
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    box-shadow: var(--shadow-soft);
}

/* ========================================================================== */
/* CSA PAGE */
/* ========================================================================== */

.steps-grid {
    display: grid;
    gap: var(--spacing-md);
}

.step-card {
    background-color: #ffffff;
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
}

.step-icon-circle {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background-color: var(--accent-color);
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.share-card .card-body {
    padding-bottom: 1.2rem;
}

.share-price {
    font-weight: 700;
    color: var(--accent-alt);
    margin-bottom: 0.45rem;
}

.share-list {
    padding-left: 1.1rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.share-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.7rem;
}

/* FAQ */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.faq-item {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    background-color: #ffffff;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 0.8rem 1rem;
    font-size: 0.98rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-toggle-indicator::before {
    content: "+";
    display: inline-block;
    font-weight: 700;
    color: var(--accent-color);
}

.faq-item.open .faq-toggle-indicator::before {
    content: "–";
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1rem;
    transition: max-height 0.22s ease, padding-bottom 0.22s ease;
}

.faq-item.open .faq-answer {
    max-height: 160px;
    padding-bottom: 0.75rem;
}

/* CSA cards – show more of the image */
.csa-card img {
    width: 100%;
    height: 260px;
    /* increase this number to see even more */
    object-fit: cover;
    display: block;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* Optionally make them a bit shorter on small screens */
@media (max-width: 700px) {
    .csa-card img {
        height: 210px;
    }
}


/* ========================================================================== */
/* VISIT PAGE & CONTACT FORM */
/* ========================================================================== */

.visit-grid {
    display: grid;
    gap: var(--spacing-lg);
    align-items: center;
}

.visit-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.visit-list {
    padding-left: 1.1rem;
    margin-top: 0.75rem;
}

.map-box {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    max-width: 640px;
}

.map-text {
    margin-top: 0.75rem;
    color: #555;
}

.contact-grid {
    display: grid;
    gap: var(--spacing-xl);
    align-items: flex-start;
}

.form-field {
    margin-bottom: 0.9rem;
}

.form-field label,
.form-field legend {
    display: block;
    font-size: 0.93rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.required {
    color: var(--accent-alt);
    margin-left: 0.1rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid #c9bda8;
    padding: 0.45rem 0.55rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
    background-color: #fffdf9;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(59, 93, 80, 0.18);
}

textarea {
    resize: vertical;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.9rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.form-error {
    display: block;
    font-size: 0.8rem;
    color: var(--error-color);
    min-height: 0.9rem;
}

input.input-error,
textarea.input-error {
    border-color: var(--error-color);
    background-color: #fff5f5;
}

.form-success {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--success-color);
}

/* Contact info block */

.contact-info-block {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    background-color: #fffaf0;
    border: 1px solid var(--border-soft);
}

.contact-info-block a {
    color: var(--accent-color);
}

/* ========================================================================== */
/* NEW FOOTER */
/* ========================================================================== */

.site-footer {
    background-color: #251e16;
    color: #f4efe7;
    padding-top: 2.5rem;
    padding-bottom: 1.5rem;
    margin-top: 3rem;
}

/* Top area: logo/name + nav + contact */
.footer-top {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* --------------------------------------- */
/* Brand with logo */
/* --------------------------------------- */

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #f4efe7;
}

.footer-logo {
    width: 45px;
    height: 45px;
    border-radius: 999px;
    overflow: hidden;
    flex-shrink: 0;
    background: #eee;
    /* in case logo doesn’t load */
}

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

.footer-brand-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 0.03em;
}


/* --------------------------------------- */
/* Footer navigation */
/* --------------------------------------- */

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    font-size: 0.95rem;
}

.footer-nav a {
    color: #f4efe7;
    opacity: 0.85;
    text-decoration: none;
}

.footer-nav a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* --------------------------------------- */
/* Contact info block */
/* --------------------------------------- */

.footer-contact {
    font-size: 0.9rem;
    color: #e4d9c8;
    max-width: 260px;
}

.footer-contact p {
    margin: 0 0 0.4rem;
}

.footer-contact a {
    color: #e4d9c8;
    text-decoration: underline;
}

/* --------------------------------------- */
/* Bottom row */
/* --------------------------------------- */

.footer-bottom {
    margin-top: 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: #d0c7ba;
}

.footer-credit {
    opacity: 0.85;
}

/* --------------------------------------- */
/* Desktop layout */
/* --------------------------------------- */

@media (min-width: 900px) {
    .footer-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}


/* ========================================================================== */
/* RESPONSIVE */
/* ========================================================================== */

@media (min-width: 640px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    }

    .season-strip-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .about-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    }

    .story-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    }

    .visit-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    }

    .contact-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    }

    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .season-row {
        grid-template-columns: 0.8fr 2fr;
    }
}

@media (min-width: 900px) {
    .site-header {
        position: sticky;
    }

    .nav-toggle {
        display: none;
    }

    .main-nav {
        position: static;
        border-bottom: none;
        max-height: none;
        overflow: visible;
    }

    .nav-links {
        flex-direction: row;
        padding: 0;
        gap: 0.5rem;
    }

    .nav-links a {
        padding: 0.35rem 0.9rem;
    }

    .hero {
        padding-top: var(--spacing-xl);
        padding-bottom: var(--spacing-xl);
    }

    .hero-title {
        font-size: 2.6rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .share-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .steps-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media (min-width: 1100px) {
    .hero-title {
        font-size: 2.8rem;
    }
}