/* ==========================================================================
   WINDFLOWER FARM - MASTER STYLESHEET
   ==========================================================================
   
   Version: Feb 10 2026
   
   TABLE OF CONTENTS:
   1.  Variables & Fonts
   2.  Base Styles & Reset
   3.  Typography
   4.  Header & Navigation
       - Top Banner
       - Main Header (Logo, Title, Menu)
       - Navigation (Visible & Dropdown)
   5.  Global Components
       - Buttons
       - Image Carousel
       - Photo Grids
   6.  Page Layouts & Sections
       - Welcome & Home
       - Content Sections (CSA, Library, etc.)
       - Checkerboard & Features
       - News & Archive
       - Subpages
   7.  Footer
   8.  Utilities (Honeypot, Animations)
   9.  Mobile Responsiveness
   10. Modifications
   ========================================================================== */

/* =========================================
   1. VARIABLES & FONTS
   ========================================= */
:root {
    --farm-green:   #3A5F40;
    --farm-ltgreen: #CFDFD9;
    --farm-blue:    #0C384C;
    --farm-soil:    #5D4037;
    --highlight:    #E8F5E9;
    --text-dark:    #2C3E50;
    --paper-white:  #FCFCFA;
    --accent-red:   #68976d;
}

@font-face {
    font-family: 'JandaAppleCobbler';
    src: url('fonts/JandaAppleCobbler.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-feature-settings: "ss01" 1, "calt" 0;
    font-kerning: none;
    font-variant-ligatures: none;
}

/* =========================================
   2. BASE STYLES & RESET
   ========================================= */
html {
    background-color: #f5f5f5; /* Gutter color */
}

body {
    max-width: 1000px;
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    padding-left: 40px;
}

a {
    text-decoration: none;
    color: var(--farm-soil);
    transition: 0.3s;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

a:hover {
    color: var(--farm-green);
}

.responsive-video {
    width: 100%;          /* Force it to fit the container width */
    height: auto;         /* Let height adjust automatically */
    aspect-ratio: 16 / 9; /* Lock it to Widescreen format */
    max-width: 100%;      /* Ensure it never overflows */
    display: block;       /* Removes annoying gap at bottom */
}

/* =========================================
   3. TYPOGRAPHY
   ========================================= */
h1 {
    font-family: 'JandaAppleCobbler', sans-serif;
    font-weight: normal;
    text-shadow: none;
    -webkit-text-stroke: 0;
    font-size: 2rem;
    letter-spacing: 1px;
    color: var(--farm-green);
}

h2 {
    font-family: 'Goudy Bookletter 1911', serif;
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: 1px;
    color: var(--farm-blue);
}

h3 {
    font-family: 'Georgia', serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: var(--farm-blue);
}

h4 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 1px;
    color: var(--farm-blue);
}

/* =========================================
   4. HEADER & NAVIGATION
   ========================================= */

/* --- Top Banner (Email & Alerts) --- */
.top-banner {
    background-color: var(--farm-ltgreen);
    padding: 8px 0;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
}

.banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.banner-link {
    color: var(--farm-green);
    text-decoration: none;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.banner-link:hover {
    color: var(--farm-green);
    text-decoration: underline;
}

.banner-link.highlight {
    font-weight: bold;
    color: var(--farm-blue);
    letter-spacing: 0.5px;
}

/* --- Main Header Container --- */
.main-header {
    background-color: white;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding-bottom: 10px;
}

/* --- Top Row: Logo | Title --- */
.header-top {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
}

.logo-area {
    flex: 0 0 280px;
    text-align: left;
    z-index: 5;
}

.farm-logo {
    height: 90px;
    width: auto;
}

.title-area {
    position: absolute;
    left: 50%;
    right: 50%;
    transform: translate(-50%, -50%);
    width: max-content;
    margin-top: 50px;
    text-align: center;
    z-index: 1;
}

.title-area h1 {
    font-size: 2rem;
    font-weight: normal !important;
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1;
    padding-bottom: 2px;
    color: var(--farm-green);
}

.title-area p {
    font-family: 'Amatic SC', cursive;
    font-size: 1.2rem;
    color: var(--farm-soil);
    margin: -5px 0 0 0;
}

.menu-area {
    flex: 0 0 280px;
    text-align: right;
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    pointer-events: none;
}

.menu-btn {
    pointer-events: auto;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--farm-green);
    line-height: 0.5;
    padding: 10px;
    transition: transform 0.2s;
}

.menu-btn:hover {
    transform: scale(1.1);
}

/* --- Bottom Row: Visible Links --- */
.visible-nav {
    margin-top: 5px;
}

.nav-top, .nav-bottom {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 5px 0;
    gap: 20px;
}

.visible-nav a {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--text-dark);
    font-family: 'Lato', sans-serif;
    font-weight: bold;
}

.visible-nav a:hover,
.visible-nav a.active,
.visible-nav a.active-link {
    color: var(--farm-green) !important;
    text-decoration: underline;
}

/* Specific styling for active link border */
.visible-nav a.active-link {
    border-bottom: 2px solid var(--farm-green);
    text-decoration: none;
}

.nav-bottom {
    border-top: 1px solid #f0f0f0;
    padding-top: 8px;
    width: 60%;
    margin: 5px auto;
}

/* --- Dropdown Nav Menu (Hidden Logic) --- */
.nav-menu {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background-color: white;
    width: 280px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 8px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 10px 0;
}

.nav-menu.show {
    display: block;
    animation: fadeIn 0.2s;
}

/* Scrollbar Styling */
.nav-menu::-webkit-scrollbar { width: 8px; }
.nav-menu::-webkit-scrollbar-thumb { background-color: #ccc; border-radius: 4px; }

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-list li {
    padding: 0 15px;
}

.menu-heading {
    display: block;
    background-color: var(--farm-green);
    color: white;
    font-family: 'Lato', sans-serif;
    font-weight: bold;
    font-size: .8rem;
    padding: 6px 8px;
    margin-top: 8px;
    margin-bottom: 4px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-list a {
    display: block;
    padding: 6px 12px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.nav-list a:hover {
    background-color: #f9f9f9;
    color: var(--farm-green);
    padding-left: 18px;
}

.sub-menu {
    list-style: none;
    padding-left: 0;
    margin-bottom: 5px;
}

.sub-menu li { padding: 0; }
.sub-menu a { border-bottom: none; font-size: 0.9rem; color: #555; }

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
}

.close-btn:hover { color: var(--accent-red); }


/* =========================================
   5. GLOBAL COMPONENTS
   ========================================= */

/* --- Buttons --- */
.btn-green {
    background-color: var(--farm-green);
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: capitalize;
    font-size: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    white-space: nowrap;
}

.btn-green:hover {
    background-color: #2c4730;
    color: white;
    transform: translateY(-2px);
}

/* --- Image Carousel --- */
/* Main Wrapper */
.carousel-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

/* The Window */
.carousel-window {
    width: 100%;
    height: 500px; /* Fixed height */
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.carousel-track {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Controls Area (Below) */
.carousel-controls {
    display: flex;
    justify-content: center; /* Centers buttons */
    gap: 20px; /* Space between buttons */
    padding-top: 15px;
}

/* Buttons */
.carousel-btn {
    background: none;
    border: none;
    color: rgb(175, 175, 175);
    padding: 5px 5px;
    font-size: .9rem;
    cursor: pointer;
    transition: background 0.2s;
}

.carousel-btn:hover {
    color: var(--farm-ltgreen);  /* Color on hover */
}

/* --- Photo Grid --- */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.grid-item img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s ease;
    display: block;
}

.grid-item img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* =========================================
   6. PAGE LAYOUTS & SECTIONS
   ========================================= */

/* --- Welcome Message --- */
.welcome-message {
    text-align: center;
    padding: 40px 20px 10px;
    background-color: white;
    max-width: 900px;
    margin: 0 auto;
}

.welcome-message h2 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--farm-green);
    font-weight: 300;
}

/* --- General Containers --- */
.page-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.page-header {
    text-align: center;
    border-bottom: 1px solid #ddd;
    margin-bottom: 30px;
    padding-bottom: 10px;
}

.page-header h2 {
    font-family: 'Lato', sans-serif;
    color: var(--farm-blue);
    font-size: 1.5rem;
    font-weight: 350;
    margin: 0;
}

/* --- Section Cards --- */
.csa-section {
    margin-bottom: 40px;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.share-type {
    border-left: 4px solid var(--farm-green);
    padding-left: 20px;
    margin-bottom: 30px;
}

.maps-section {
    max-width: 80%;
    margin: 30px auto;
    padding: 20px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Grouping identical section styles */
.library-section,
.flower-section,
.electric-section,
.about-section,
.varieties-section {
    max-width: 90%;
    margin: 30px auto;
    padding: 10px 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature-card {
    background: var(--highlight);
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    border: 1px solid #c8e6c9;
}

/* --- Checkerboard Layout --- */
.checkerboard-section {
    width: 100%;
    margin-top: 30px;
}

.feature-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    border-bottom: 30px solid white;
}

.feature-image, .feature-text {
    flex: 1;
    min-width: 0;
}

.feature-image {
    background-size: cover;
    background-position: center;
    min-height: 100px;
}

.feature-text {
    background-color: #F4F4F4;
    padding: 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.feature-text h3 {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: black;
    margin-bottom: 20px;
}

.feature-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* --- News & Archives --- */
.news-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    margin-top: 40px;
}

.news-archive h3 {
    border-bottom: 2px solid var(--farm-green);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.archive-list {
    list-style: none;
    padding: 0;
}

.archive-btn {
    background: none;
    border: none;
    text-align: left;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    padding: 10px;
    width: 100%;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.archive-btn:hover {
    background-color: #f9f9f9;
    border-left-color: #ccc;
}

.archive-btn.active {
    font-weight: bold;
    color: var(--farm-green);
    border-left-color: var(--farm-green);
    background-color: #f0f8f0;
}

.news-viewer {
    background: #fff;
    padding: 0 10px;
}

/* Content from Word/CMS */
#newsletter-content h1,
#newsletter-content h2,
#newsletter-content h3,
.word-content h1,
.word-content h2,
.word-content h3 {
    font-family: 'Amatic SC', cursive;
    margin-top: 30px;
}

#newsletter-content h1, .word-content h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
}

.word-content h1, .word-content h2, .word-content h3 {
    color: var(--farm-green);
}

.word-content h2 {
    font-size: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

#newsletter-content p, .word-content {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #444;
}

.word-content {
    background: #fff;
    max-width: 900px;
    margin: 0 auto;
    font-family: 'Lato', sans-serif;
}

#newsletter-content img, .word-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.word-content a {
    color: var(--farm-green);
    font-weight: bold;
    text-decoration: underline;
}

.word-content a:hover { color: var(--farm-soil); }

/* --- Subpages --- */
.welcome-subheader {
    text-align: center;
    padding: 20px 0;
    margin: 0;
}

.welcome-subheader h2 {
    font-family: 'Lato', sans-serif;
    color: var(--farm-blue);
    font-size: 1.5rem;
    font-weight: 300;
    margin: 0;
}

/* Banners */
.subpage-banner,
.library-banner,
.news-banner {
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin: 0 auto;
    margin-bottom: 30px;
    width: 100%;
    height: 100%;
    height: 400px;
}

/* CSA Nav */
.csa-nav-links {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.csa-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.csa-nav-list a {
    text-decoration: none;
    color: var(--farm-soil);
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    transition: color 0.2s ease;
    display: inline-block;
}

.csa-nav-list a:hover {
    color: var(--farm-green);
    transform: translateX(5px);
}

.csa-nav-list a.current-page {
    color: var(--farm-green);
    border-left: 3px solid var(--farm-green);
    padding-left: 10px;
}

.subpage-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    max-width: 900px;
}

/* Collages */
.collage-stack {
    width: 100%;
    margin-top: 50px;
    position: static;
}

.wide-collage {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
}

/* Certifications */
.certification-mark {
    text-align: left;
    margin: 40px 0;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.cert-logo {
    width: 150px;
    height: auto;
    display: block;
    margin-bottom: 5px;
}

.cert-caption {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: #666;
    margin: 0;
    font-style: italic;
}

/* =========================================
   7. FOOTER
   ========================================= */
footer {
    background: #222;
    color: #aaa;
    text-align: center;
    padding: 40px 20px;
    margin-top: 50px;
}
footer a { color: #fff; text-decoration: underline; }

.main-footer {
    background-color: #F4F4F4;
    padding: 60px 20px 20px;
    margin-top: 0;
}

.footer-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 40px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    color: #888;
    font-size: 1.2rem;
    text-decoration: none;
}

.footer-links a:hover { color: var(--farm-green); }

.footer-newsletter { max-width: 300px; }

.footer-newsletter h4 {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    color: #888;
    font-size: 1.2rem;
    margin: 0 0 10px 0;
}

.footer-newsletter p {
    color: #999;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.signup-form input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    margin-bottom: 10px;
    font-family: 'Lato', sans-serif;
}

.signup-form button {
    width: 100%;
    cursor: pointer;
    border: none;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #ddd;
    padding-top: 20px;
    color: #aaa;
    font-size: 0.9rem;
}

.quote-heading {
    font-family: 'Amatic SC', cursive;
    font-size: 1.9rem;
    color: var(--farm-green);
    margin-bottom: 5px;
    font-weight: bold;
}

.quote-author {
    font-size: 1rem;
    color: #888;
    font-style: italic;
    margin-top: 0;
    margin-bottom: 30px;
}

.footer-top-centered {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.footer-address {
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 15px;
}

.btn-ig-footer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #444;
    color: white;
    padding: 8px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-ig-footer:hover {
    background-color: var(--farm-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.btn-ig-footer svg { fill: white; }


/* =========================================
   8. UTILITIES & ANIMATIONS
   ========================================= */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

#website-trap {
    position: absolute;
    left: -9999px;
    opacity: 0;
    width: 0;
    height: 0;
}

/* =========================================
   9. MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 768px) {
    /* Carousel */
    .carousel-window {
        width: 90%;
        max-height: 300px;
        overflow: hidden;
        border-radius: 8px;
        margin: 10px auto;
        position: relative;
    }

    /* Banners */
    .banner-content {
        flex-direction: column;
        gap: 5px;
        text-align: center;
        font-size: 1rem;
    }

    /* Checkerboard Layout */
    .feature-row { flex-direction: column; }
    .feature-image { min-height: 250px; }
    .feature-row.reverse { flex-direction: column-reverse; }

    /* Footer & News */
    .footer-container { flex-direction: row; gap: 20px; }
    .footer-newsletter { flex-direction: row; }
    .news-layout { grid-template-columns: 1fr; }
    .news-archive { border-bottom: 1px solid #eee; padding-bottom: 20px; }

    /* Nav */
    .nav-menu a.active-link {
        color: var(--farm-green) !important;
        font-weight: bold;
    }
    .visible-nav { display: none; }
    nav ul { gap: 10px; }

    /* Typography & Header Sizing */

    .hero-text h2 { font-size: 2rem; }

    .header-top {
        flex-direction: row;       /* Keep them side-by-side */
        justify-content: space-between;
        align-items: center;       /* Align them vertically in the middle */
        padding: 10px 15px;        /* Smaller padding */
        min-height: 80px;
        height: auto;
        overflow: visible;
    }

    /* 2. Shrink the Logo Area */
    .logo-area {
        flex: 0 0 auto;            /* Don't force 280px width */
        width: auto;               /* Only take up space needed for image */
        margin-right: 10px;
        padding: 0 0 0 1px;
    }

    .farm-logo {
        height: 50px;              /* Shrink logo image for phone */
        width: auto;
    }    

    /* 3. Adjust Title to Fit in the Middle */
    .title-area {
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin: 0;
        position: static;          /* Turn off absolute positioning */
        transform: none;           /* Reset the centering math */
        flex-grow: 1;              /* Let it fill the middle space */
        text-align: center;        /* Center text */
        min-height: 80px;
        height: auto;
        padding-top: 25px;
        padding-bottom: 10px;
        overflow: visible;
        /* Ensure it doesn't break onto new lines weirdly */
        white-space: nowrap;
    }

    .title-area h1 {
        font-size: 1.5rem;
        margin-top: 0;
        margin-bottom: 0;
        line-height: 1;
        padding-bottom: 2px;
    }

    /* 4. Menu Button Stays on Right */
    .menu-btn {
        /* No absolute positioning needed! */
        /* It will naturally sit on the right because of flexbox */
        display: block;
        font-size: 2.5rem;
        padding: 0 15px 0 15px;
    }

    .welcome-message h2 {
        font-size: 1.2rem;
    }

    /* Photo Grid */
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

.quote-heading {
    font-size: 1.6rem;
}

.quote-author {
    font-size: 1rem;
}

}

/* =========================================
   10. Modifications
   ========================================= */

*, *::before, *::after {
    box-sizing: border-box;
}   