/* Jack's Market on the Green - public site theme
   Bright, warm market palette with smooth, fluid motion. */

:root {
    --bg: #fbfaf5;
    --surface: #ffffff;
    --surface-alt: #f3f1e8;
    --text: #2b2f26;
    --text-muted: #6b7266;
    --primary: #2f8f4e;
    --primary-dark: #236b3a;
    --accent: #f3a712;
    --accent-dark: #d88f00;
    --border: #e7e2d4;
    --shadow: rgba(47, 68, 34, 0.1);
    --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Nunito', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    opacity: 0;
    transition: opacity 0.35s ease;
}

body.page-ready { opacity: 1; }
body.fade-out { opacity: 0; }

#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { color: var(--primary-dark); }

/* Header / navigation */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 28px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px var(--shadow);
}

.brand {
    font-size: 1.4em;
    font-weight: 800;
    color: var(--primary-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand span { font-weight: 600; color: var(--text-muted); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4em;
    color: var(--primary-dark);
    cursor: pointer;
}

.navbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.navbar a {
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 999px;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.navbar a:hover,
.navbar a.active {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
}

/* Layout */
.page-content {
    flex: 1;
    width: 100%;
}

.hero {
    text-align: center;
    padding: 56px 20px 36px;
    background: linear-gradient(180deg, var(--surface-alt), var(--bg));
}

.hero h1 {
    margin: 0 0 8px;
    font-size: 2.4em;
    color: var(--primary-dark);
}

.hero p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.15em;
}

.container {
    background: var(--surface);
    max-width: 900px;
    margin: 30px auto;
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: 0 10px 25px var(--shadow);
}

.container h2 {
    color: var(--primary-dark);
    border-bottom: 3px solid var(--accent);
    display: inline-block;
    padding-bottom: 4px;
    margin-top: 36px;
}

.container h2:first-child { margin-top: 0; }

/* Reveal-on-scroll animation */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Category / special cards */
.category-title {
    font-size: 1.5em;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 34px 0 14px;
}

.special-card {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 18px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.special-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px var(--shadow);
}

.special-card h3 {
    margin: 0 0 8px;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.special-card .price {
    color: var(--accent-dark);
    font-weight: 800;
}

.special-card .subdescription {
    margin-top: 8px;
    font-style: italic;
    color: var(--text-muted);
}

.size-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.size-list span {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.9em;
}

.special-card img {
    max-width: 100%;
    height: auto;
    margin-top: 12px;
    border-radius: 10px;
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 10px;
}

.empty-state i { font-size: 2em; color: var(--accent); display: block; margin-bottom: 10px; }

/* Menu page */
.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.menu-item:last-child { border-bottom: none; }

.menu-item .name { font-weight: 700; }

.menu-item .price { color: var(--accent-dark); font-weight: 800; white-space: nowrap; }

.menu-item .description {
    flex-basis: 100%;
    font-size: 0.9em;
    color: var(--text-muted);
    font-style: italic;
}

.menu-note {
    margin-top: 24px;
    font-size: 0.85em;
    color: var(--text-muted);
    text-align: center;
}

/* About page */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}

.map-image {
    display: block;
    border-radius: var(--radius);
    width: 100%;
    height: auto;
    box-shadow: 0 10px 20px var(--shadow);
    transition: transform 0.3s ease;
}

.map-image:hover { transform: scale(1.02); }

.button-link {
    display: inline-block;
    margin-top: 14px;
    padding: 10px 22px;
    background: var(--accent);
    color: #2b2f26;
    font-weight: 800;
    text-decoration: none;
    border-radius: 999px;
    box-shadow: 0 6px 14px var(--shadow);
    transition: background-color 0.25s ease, transform 0.2s ease;
}

.button-link:hover {
    background: var(--accent-dark);
    color: #fff;
    transform: translateY(-2px);
}

/* Footer */
.site-footer {
    background: var(--primary-dark);
    color: #f1f5ed;
    padding: 36px 24px 20px;
    margin-top: 48px;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.footer-col { flex: 1; min-width: 220px; }

.footer-col h3 {
    color: var(--accent);
    margin-top: 0;
    margin-bottom: 10px;
}

.footer-col a { color: #f1f5ed; }

.copyright {
    text-align: center;
    margin: 28px 0 0;
    font-size: 0.85em;
    color: rgba(241, 245, 237, 0.7);
}

@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; }
    .nav-toggle { display: block; }
    .navbar {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 4px;
        padding-top: 10px;
    }
    .navbar.open { display: flex; }
    .navbar a { width: 100%; text-align: center; }
    .container { padding: 22px; margin: 18px auto; }
    .hero h1 { font-size: 1.8em; }
}
