/* ==========================================================================
   Mobile-First Styling Strategy
   ========================================================================== */

:root {
    --primary-green: #1b4d3e;
    --accent-green: #3a7d5c;
    --ochre: #b9812f;
    --ochre-light: #f3e6cf;
    --bg-cream: #fdfbf7;
    --bg-cream-alt: #f4efe6;
    --text-espresso: #2c1a14;
    --card-bg: #ffffff;
    --gray-light: #e5e0d8;
    --gray-text: #63594f;

    /* Display face: warm, characterful serif for headings/tagline moments */
    --font-display: 'Fraunces', serif;
    /* Body face: even, readable sans for paragraphs and UI copy */
    --font-body: 'Lexend', sans-serif;
    /* Label face: condensed uppercase for eyebrows, nav, badges, prices */
    --font-label: 'Oswald', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-cream);
    color: var(--text-espresso);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-espresso);
    line-height: 1.15;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--accent-green);
    outline-offset: 3px;
}

/* --- Header / Nav --- */
.site-header {
    background-color: var(--bg-cream);
    position: sticky;
    top: 0;
    z-index: 90;
    border-bottom: 1px solid var(--gray-light);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.brand-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo span {
    color: var(--accent-green);
    font-style: italic;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* Mobile: collapsible panel anchored under the header */
.nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background-color: var(--bg-cream);
    border-bottom: 1px solid var(--gray-light);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease;
}

.nav-links.open {
    max-height: 240px;
    opacity: 1;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-espresso);
    font-family: var(--font-label);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    font-weight: 600;
    padding: 0.9rem 1.5rem;
    border-top: 1px solid var(--gray-light);
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--accent-green);
}

.hamburger-btn {
    background: none;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
}

.hamburger-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background-color: var(--text-espresso);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger-btn.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.cart-btn {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 0.5rem 0.9rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.cart-btn:hover {
    background: var(--accent-green);
}

.cart-count {
    background: var(--accent-green);
    border-radius: 50%;
    padding: 0.1rem 0.5rem;
    font-size: 0.8rem;
    font-family: var(--font-label);
}

.cart-btn:hover .cart-count {
    background: var(--primary-green);
}

/* --- Hero --- */
.hero {
    padding: 2.5rem 0 0 0;
    text-align: center;
}

.tagline {
    display: inline-block;
    font-family: var(--font-label);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-green);
    font-weight: 600;
}

.hero h1 {
    font-size: 2.4rem;
    margin: 0.8rem 0;
    color: var(--primary-green);
}

.hero h1 em {
    font-style: italic;
    color: var(--accent-green);
}

.hero p {
    font-family: var(--font-body);
    color: var(--gray-text);
    max-width: 550px;
    margin: 0 auto 1.5rem auto;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.6rem;
    border-radius: 30px;
    text-decoration: none;
    font-family: var(--font-label);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: var(--primary-green);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-green);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-green);
    border: 1.5px solid var(--primary-green);
}

.btn-secondary:hover {
    background-color: var(--primary-green);
    color: white;
}

.btn-sm {
    padding: 0.55rem 1rem;
    font-size: 0.75rem;
    background-color: var(--primary-green);
    color: white;
}

.btn-sm:hover {
    background-color: var(--accent-green);
}

.full-width {
    width: 100%;
}

.hero-img, .rounded-img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
}

/* Quick Info Bar — styled like a receipt strip */
.quick-info-bar {
    background-color: var(--primary-green);
    color: white;
    margin-top: 2rem;
    padding: 1.5rem 0;
    border-top: 3px dashed rgba(253, 251, 247, 0.35);
}

.quick-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    text-align: center;
}

.info-item strong {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-label);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
}

.info-item span {
    font-family: var(--font-body);
    font-size: 0.85rem;
    opacity: 0.9;
}

/* --- About --- */
.about {
    padding: 3.5rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.about-text h2 {
    font-size: 1.9rem;
    margin-bottom: 1rem;
}

.about-text em {
    color: var(--accent-green);
    font-style: italic;
}

/* --- Menu --- */
.menu-section {
    padding: 3.5rem 0;
    background-color: var(--bg-cream-alt);
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title h2 {
    font-size: 1.9rem;
    margin-bottom: 0.4rem;
}

.section-title p {
    color: var(--gray-text);
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.menu-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(44, 26, 20, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(44, 26, 20, 0.1);
}

.menu-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.menu-card-body {
    padding: 1.2rem;
}

.menu-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.menu-card-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Price shown as a small ticket-stub tag, echoing a coffee-bag price tag */
.price {
    flex-shrink: 0;
    font-family: var(--font-label);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary-green);
    background: var(--ochre-light);
    border-left: 2px dashed var(--ochre);
    padding: 0.2rem 0.6rem 0.2rem 0.5rem;
    border-radius: 0 6px 6px 0;
    white-space: nowrap;
}

.menu-card p {
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--gray-text);
    margin-bottom: 1rem;
}

.badge {
    display: inline-block;
    background: var(--ochre-light);
    color: var(--ochre);
    font-family: var(--font-label);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* --- Visit / Contact --- */
.visit-section {
    padding: 3.5rem 0;
}

.visit-info h2 {
    font-size: 1.9rem;
}

.visit-info > p {
    color: var(--gray-text);
    margin-top: 0.6rem;
}

.details-list {
    margin-top: 1.2rem;
}

.details-list p {
    margin-bottom: 0.6rem;
    font-family: var(--font-body);
}

.details-list strong {
    font-family: var(--font-label);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    color: var(--primary-green);
}

.contact-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--gray-light);
}

.contact-card h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-family: var(--font-label);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
    font-weight: 500;
    color: var(--gray-text);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    font-family: var(--font-body);
    background-color: var(--bg-cream);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-green);
}

/* --- Cart Slide-out Drawer --- */
.drawer-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(44, 26, 20, 0.5);
    display: none;
    z-index: 99;
}

.cart-drawer {
    position: fixed;
    top: 0; right: -100%;
    width: 100%;
    max-width: 380px;
    height: 100%;
    background: white;
    z-index: 100;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    right: 0;
}

.drawer-overlay.open {
    display: block;
}

.drawer-header {
    padding: 1.2rem;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-header h3 {
    font-size: 1.2rem;
}

.close-drawer {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-espresso);
}

.drawer-body {
    padding: 1.2rem;
    flex-grow: 1;
    overflow-y: auto;
}

.empty-msg {
    color: var(--gray-text);
    font-size: 0.9rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-light);
    font-family: var(--font-body);
}

.drawer-footer {
    padding: 1.2rem;
    border-top: 1px solid var(--gray-light);
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-label);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

footer {
    text-align: center;
    padding: 1.5rem 0;
    background: var(--text-espresso);
    color: var(--bg-cream);
    font-size: 0.85rem;
    font-family: var(--font-body);
}

/* ==========================================================================
   Desktop / Tablet Responsive Overrides
   ========================================================================== */
@media (min-width: 768px) {
    .hamburger-btn {
        display: none;
    }

    .nav-links {
        position: static;
        flex-direction: row;
        gap: 1.75rem;
        max-height: none;
        opacity: 1;
        overflow: visible;
        border-bottom: none;
        background: transparent;
    }

    .nav-links a {
        padding: 0;
        border-top: none;
    }

    .hero h1 {
        font-size: 3.4rem;
    }

    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }

    .quick-info-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-grid, .visit-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

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

/* --- SVG Icon Utilities --- */
svg.icon {
    width: 1.15em;
    height: 1.15em;
    vertical-align: middle;
    margin-right: 0.4rem;
    position: relative;
    top: -1px;
    flex-shrink: 0;
}

.btn svg.icon {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(44, 26, 20, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 1rem;
}

.modal-overlay.open {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 10px; right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-espresso);
}

.modal-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

#modalTitle {
    font-size: 1.3rem;
}

.modal-price {
    font-family: var(--font-label);
    font-weight: 600;
    color: var(--primary-green);
    margin: 0.5rem 0 1rem 0;
    font-size: 1.1rem;
}

#modalDesc {
    font-family: var(--font-body);
    color: var(--gray-text);
    font-size: 0.9rem;
}