:root {
    --acorn-light: #f0dfc0;
    --acorn-base: #c4893d;
    --acorn-dark: #7a4f20;
    --bg-deep: #faf4ea;
    --bg-surface: #f0e2c8;
    --text-main: #1c1008;
    --text-muted: #6b4c2a;
    --border: rgba(122, 79, 32, 0.2);
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Montserrat", sans-serif;
    line-height: 1.6;
    color: var(--text-muted);
    background-color: var(--bg-deep);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: "Lora", serif;
    color: var(--text-main);
    font-weight: 600;
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

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

/* ── Header ──────────────────────────────────────── */

header {
    background: rgba(20, 13, 6, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 163, 115, 0.2);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background 0.4s ease;
}

header.scrolled {
    background: rgba(20, 13, 6, 0.97);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
}

.logo-img {
    height: 70px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #f5f1ed;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    transition:
        color 0.2s,
        opacity 0.2s;
}

.nav-links a:hover {
    color: var(--acorn-base);
    opacity: 1;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #f5f1ed;
    border-radius: 2px;
    transition: var(--transition);
}

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

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

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

/* ── Hero ────────────────────────────────────────── */

.hero {
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    overflow: hidden;
    background-color: #2d1f14;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8) contrast(1.05);
    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(20, 13, 6, 0.15),
        var(--bg-deep)
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: #f5f1ed;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 14px 32px;
    background: var(--acorn-base);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.cta-button:hover {
    background: var(--acorn-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ── Sections ────────────────────────────────────── */

.section {
    padding: 6rem 2rem;
    max-width: 1300px;
    margin: 0 auto;
}

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

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--acorn-base);
    margin: 1rem auto 0;
}

.section-title h2,
.about-grid h2 {
    color: var(--acorn-dark);
    font-size: 2.5rem;
}

.section-title h2 {
    margin-bottom: 1rem;
}

.about-grid h2 {
    margin-bottom: 1.5rem;
}

.brunch-note {
    color: var(--acorn-base);
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

/* ── About ───────────────────────────────────────── */

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
    align-items: center;
}

.about-grid p + p {
    margin-top: 1rem;
}

.about-grid .gallery-img {
    transition-delay: 0.2s;
}

.about-hours {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(122, 79, 32, 0.08);
    border-left: 3px solid var(--acorn-base);
    border-radius: 0 6px 6px 0;
}

.about-hours h4 {
    color: var(--acorn-dark);
    margin-bottom: 0.6rem;
}

.about-hours p {
    color: var(--text-main);
    font-size: 1.15rem;
    line-height: 1.9;
}

/* ── Feature cards ───────────────────────────────── */

.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-top: 2px solid var(--acorn-base);
    border-radius: 8px;
    padding: 1.75rem;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: var(--transition);
}

a.feature-card:hover {
    background: var(--acorn-light);
    border-top-color: var(--acorn-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(122, 79, 32, 0.15);
}

.feature-card h3 {
    color: var(--acorn-dark);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

/* ── Menu ────────────────────────────────────────── */

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.menu-cat {
    background: var(--bg-surface);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.menu-cat.full-width {
    grid-column: 1 / -1;
}

.menu-cat h3 {
    color: var(--acorn-dark);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    position: relative;
}

.menu-item-name {
    color: var(--text-main);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding-right: 4rem; /* Space for absolute price */
}

.menu-item-price {
    color: var(--acorn-dark);
    font-weight: 700;
    white-space: nowrap;
    position: absolute;
    top: 0;
    right: 0;
}

.menu-subcat-items li .menu-item-price,
.menu-subcat-items-priced .menu-item .menu-item-price {
    top: 0.4rem;
    right: 0.75rem;
}

.menu-item-desc {
    flex-basis: 100%;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    color: var(--text-muted);
}

.diet-label {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    font-family: "Montserrat", sans-serif;
    background: var(--acorn-base);
    color: #fff;
    padding: 1px 5px;
    border-radius: 3px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    vertical-align: middle;
}

/* ── Menu sub-categories ─────────────────────────── */

.menu-subcat {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.menu-subcat:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.menu-subcat-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 1.1rem;
    color: var(--acorn-dark);
    margin-bottom: 0.5rem;
}

.menu-subcat-price {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--acorn-dark);
    white-space: nowrap;
    margin-left: 1rem;
}

.menu-cat h3 em,
.menu-subcat-title em {
    font-size: 0.8rem;
    font-weight: 400;
    font-style: italic;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.menu-subcat-items,
.menu-subcat-items-priced {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.5rem;
}

.menu-subcat-items {
    list-style: none;
}

.menu-subcat-items li,
.menu-subcat-items-priced .menu-item {
    padding: 0.4rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
}

.menu-subcat-items li {
    font-size: 0.9rem;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.allergen-group {
    display: flex;
    gap: 3px;
    align-items: center;
    flex-shrink: 0;
}

.menu-subcat-items-priced .allergen-group {
    flex-basis: 100%;
    justify-content: flex-end;
    margin-top: 0.15rem;
}

/* ── Allergen icons ──────────────────────────────── */

.allergen-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    cursor: help;
}

.allergen-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--acorn-dark);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.2s,
        visibility 0.2s;
    z-index: 10;
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}

/* ── Gallery ─────────────────────────────────────── */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.gallery-img {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid var(--border);
}

.gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-img:hover img {
    transform: scale(1.05);
}

/* ── Map ─────────────────────────────────────────── */

.map-box {
    border-radius: 12px;
    overflow: hidden;
    height: 400px;
    border: 1px solid var(--border);
}

.map-box iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: sepia(0.2) contrast(1.05);
}

/* ── Footer ──────────────────────────────────────── */

address {
    font-style: normal;
}

footer {
    background: #130f09;
    padding: 4rem 2rem 2rem;
    border-top: 2px solid var(--acorn-base);
}

.footer-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
}

.footer-logo {
    height: 80px;
    margin-bottom: 1rem;
}

.footer-col h4 {
    color: var(--acorn-base);
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.footer-col p,
.footer-col a {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #a09080;
    text-decoration: none;
    display: block;
}

.footer-col a:hover {
    color: var(--acorn-base);
}

.footer-hours p {
    color: #f0e2c8;
    font-size: 1.05rem;
    line-height: 1.9;
}

.copyright {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 163, 115, 0.1);
    font-size: 0.8rem;
    color: #6b5a45;
}

/* ── Responsive ──────────────────────────────────── */

@media (max-width: 768px) {
    nav {
        padding: 0.75rem 1.25rem;
    }

    .logo-img {
        height: 54px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(20, 13, 6, 0.98);
        border-bottom: 1px solid rgba(212, 163, 115, 0.2);
        padding: 0.5rem 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        border-bottom: 1px solid rgba(212, 163, 115, 0.15);
    }

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

    .nav-links a {
        display: block;
        padding: 0.9rem 1.5rem;
        font-size: 0.85rem;
    }

    .section {
        padding: 4rem 1.25rem;
    }

    .about-grid {
        gap: 2rem;
    }

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

    .menu-grid {
        grid-template-columns: 1fr;
    }

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

    .map-box {
        height: 300px;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .features {
        grid-template-columns: 1fr;
    }
}
