/*
Theme Name: Carlisle Market (Modern)
Theme URI: http://carlislefarmersmarket.org/
Author: Antigravity
Description: A modern, clean, image-rich theme inspired by premium farmers markets.
Version: 4.0
*/

:root {
    --primary: #2b5c3f; /* Deep farm green */
    --primary-light: #3c7d56;
    --secondary: #d35400; /* Harvest orange */
    --bg-color: #fcfcfc;
    --surface: #ffffff;
    --text-main: #333333;
    --text-muted: #666666;
    --border: #e0e0e0;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
    color: var(--primary);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary);
}

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

/* Navigation */
.main-navigation {
    background-color: var(--surface);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.brand a {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

ul.nav-links, .nav-links ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

ul.nav-links li, .nav-links ul li {
    margin: 0;
    padding: 0;
}

ul.nav-links a, .nav-links ul a {
    font-weight: 600;
    color: var(--text-main);
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    display: block;
}

ul.nav-links a:hover, .nav-links ul a:hover {
    color: var(--secondary);
}

/* Menu Toggle Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    position: relative;
    transition: background-color 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    left: 0;
    transition: transform 0.3s, top 0.3s;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* Menu Toggle Active State */
.menu-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent;
}
.menu-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}
.menu-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(43, 92, 63, 0.7), rgba(43, 92, 63, 0.7)), url('images/banner1.jpg') center/cover no-repeat;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 2rem;
}

.hero-content {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.hero-content .subtitle {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
}

/* Sections */
section {
    padding: 6rem 0;
}

section h2 {
    font-size: 2.8rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary);
    border-radius: 2px;
}

/* About / Local Grown */
.about-section {
    background-color: var(--surface);
    text-align: center;
}

.about-section p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-muted);
}

/* Info Section */
.info-section {
    padding: 4rem 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background: var(--primary);
    color: white;
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(43, 92, 63, 0.2);
}

.info-card h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* Products */
.products-section {
    background-color: var(--bg-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--surface);
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border-color: var(--primary-light);
}

.product-card .icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.product-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.product-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Events */
.events-section {
    background-color: var(--surface);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.event-card {
    background: var(--bg-color);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: box-shadow 0.3s ease;
}

.event-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.event-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.event-card .event-date {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 4px 12px;
    background: rgba(211, 84, 0, 0.1);
    border-radius: 20px;
}

.event-card .event-excerpt p {
    color: var(--text-muted);
}

/* Newsletter */
.newsletter-section {
    background-color: var(--primary);
    color: white;
    text-align: center;
    padding: 5rem 0;
}

.newsletter-section h2 {
    color: white;
}

.newsletter-section h2::after {
    background-color: white;
}

.newsletter-section p {
    margin-bottom: 2.5rem;
    font-size: 1.2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1;
    min-width: 250px;
    padding: 1.2rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.newsletter-form input:focus {
    outline: 2px solid var(--secondary);
}

.newsletter-form button {
    padding: 1.2rem 2.5rem;
    background-color: var(--secondary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(211, 84, 0, 0.3);
}

.newsletter-form button:hover {
    background-color: #e65c00;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(211, 84, 0, 0.4);
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: white;
    text-align: center;
    padding: 4rem 0;
    flex-shrink: 0;
}

.footer .social-links {
    margin-bottom: 2rem;
}

.social-links a {
    color: white;
    margin: 0 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.social-links a:hover {
    color: var(--secondary);
}

footer p {
    color: #888;
    font-size: 0.95rem;
    margin-top: 2rem;
}

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

    ul.nav-links, .nav-links {
        display: none;
        width: 100%;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border);
    }
    
    ul.nav-links.toggled, .nav-links.toggled {
        display: block;
    }

    ul.nav-links, .nav-links ul {
        flex-direction: column;
        gap: 0;
    }

    ul.nav-links li, .nav-links ul li {
        width: 100%;
        text-align: center;
        padding: 0.8rem 0;
        border-bottom: 1px solid #f0f0f0;
    }

    ul.nav-links li:last-child, .nav-links ul li:last-child {
        border-bottom: none;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    section h2 {
        font-size: 2.2rem;
    }
}
