/* ================================================================
   Little Luna — minimal, warm, moonlit.
   Palette & fonts arrive as CSS custom properties from PHP.
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    transition: background .35s ease, color .35s ease;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.15;
    margin: 0 0 .5em;
    letter-spacing: -0.015em;
    font-weight: 600;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.subtle { color: var(--muted); }
.small { font-size: .85rem; }
.prose { max-width: 58ch; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 56ch; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
    color: var(--muted); margin: 0 0 14px;
}
.text-link {
    color: var(--brand); font-weight: 500;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 1px;
    transition: color .2s ease;
}
.text-link:hover { color: var(--ink); }

/* ---------------- the moon: signature element ---------------- */
.moon {
    display: inline-block;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--accent);
    position: relative;
    flex: none;
}
.moon.crescent::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--paper);
    transform: translateX(-26%) scale(.92);
    transition: background .35s ease;
}
.site-header .moon.crescent::after,
.site-footer .moon.crescent::after { background: var(--card); }
.moon.sm { width: 12px; height: 12px; }
.moon.lg { width: 44px; height: 44px; }
.moon.xl { width: 96px; height: 96px; }
.moon.full { background: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent); }

/* footer moon-phase divider */
.moon-phases { display: flex; gap: 14px; justify-content: center; margin-bottom: 18px; opacity: .9; }
.moon-phases .moon { width: 14px; height: 14px; }
.moon-phases .p1::after,
.moon-phases .p2::after,
.moon-phases .p4::after,
.moon-phases .p5::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    background: var(--paper);
}
.moon-phases .p1::after { transform: translateX(-18%) scale(.95); }
.moon-phases .p2::after { transform: translateX(-42%) scale(.95); }
.moon-phases .p3 { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
.moon-phases .p4::after { transform: translateX(42%) scale(.95); }
.moon-phases .p5::after { transform: translateX(18%) scale(.95); }

/* ---------------- buttons ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }
.btn-accent { background: var(--accent); color: #2B2410; }
.btn-accent:hover { box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 45%, transparent); color: #2B2410; }
.btn-brand { background: var(--brand); color: var(--paper); }
.btn-brand:hover { box-shadow: 0 8px 24px color-mix(in srgb, var(--brand) 40%, transparent); color: var(--paper); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* ---------------- header ---------------- */
.site-header {
    position: sticky; top: 0; z-index: 60;
    background: color-mix(in srgb, var(--card) 88%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
    color: var(--ink); letter-spacing: -0.01em;
}
.main-nav { display: flex; gap: 22px; margin-left: auto; }
.main-nav a {
    color: var(--muted); font-size: .92rem; font-weight: 500;
    padding: 4px 0; border-bottom: 2px solid transparent;
    transition: color .18s ease, border-color .18s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
    background: none; border: 1.5px solid var(--line); border-radius: 999px;
    width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer;
    transition: border-color .18s ease;
}
.theme-toggle:hover { border-color: var(--accent); }
.toggle-moon { width: 16px; height: 16px; }
[data-theme="light"] .toggle-moon::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    background: var(--card); transform: translateX(-30%) scale(.9);
}
.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }

/* ---------------- hero ---------------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 56px); }
.hero-grid {
    display: grid; grid-template-columns: 1.05fr .95fr;
    gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero h1 strong { color: var(--brand); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 34px; }
.hero-info {
    display: grid; grid-template-columns: repeat(3, auto); gap: clamp(18px, 3vw, 40px);
    font-size: .9rem; color: var(--ink);
    border-top: 1px solid var(--line); padding-top: 22px;
}
.hero-info .label {
    display: block; font-size: .7rem; text-transform: uppercase;
    letter-spacing: .14em; color: var(--muted); margin-bottom: 4px;
}
.hero-media img {
    border-radius: 28px;
    aspect-ratio: 4 / 4.6;
    object-fit: cover;
    width: 100%;
    box-shadow: 0 24px 60px color-mix(in srgb, var(--ink) 14%, transparent);
}

/* ---------------- quick actions ---------------- */
.quick-actions { border-block: 1px solid var(--line); background: var(--card); }
.qa-row {
    display: flex; flex-wrap: wrap; gap: 6px 28px;
    justify-content: center; padding: 14px 24px;
}
.qa-row a {
    color: var(--muted); font-size: .88rem; font-weight: 500;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 0;
}
.qa-row a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.qa-row a:hover { color: var(--ink); }

/* ---------------- story ---------------- */
.story-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 56px; align-items: center; }
.story-moons { text-align: center; display: grid; justify-items: center; gap: 20px; }
.story-moons .moon.crescent::after { background: var(--paper); }
.moons-caption { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0; }

/* ---------------- featured ---------------- */
.featured { background: var(--card); border-block: 1px solid var(--line); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.featured-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.feature-card {
    background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
    padding: 26px;
    transition: transform .22s ease, box-shadow .22s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px color-mix(in srgb, var(--ink) 10%, transparent); }
.feature-card h3 { margin-top: 4px; }
.feature-card p { color: var(--muted); font-size: .92rem; margin: 0; }
.feature-img { border-radius: 14px; overflow: hidden; margin-bottom: 16px; }
.feature-img img { aspect-ratio: 16/11; object-fit: cover; width: 100%; }

/* ---------------- menu ---------------- */
.menu-columns { columns: 2; column-gap: 64px; }
.menu-cat { break-inside: avoid; margin-bottom: 44px; }
.menu-cat-name { display: flex; align-items: center; gap: 10px; }
.menu-cat-note { color: var(--muted); font-size: .88rem; margin: -4px 0 16px; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.menu-list li:last-child { border-bottom: 0; }
.menu-item-name { display: block; font-weight: 600; font-size: .98rem; }
.menu-item-desc { display: block; color: var(--muted); font-size: .88rem; margin-top: 2px; }

/* ---------------- gallery ---------------- */
.gallery { background: var(--card); border-block: 1px solid var(--line); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-grid figure { margin: 0; border-radius: 16px; overflow: hidden; }
.gallery-grid img {
    aspect-ratio: 1; object-fit: cover; width: 100%;
    transition: transform .35s ease;
}
.gallery-grid figure:hover img { transform: scale(1.04); }
.ig-embed iframe { max-width: 100%; }

/* ---------------- order issue banner ---------------- */
.issue-card {
    background: var(--brand); color: var(--paper);
    border-radius: 24px; padding: clamp(28px, 4vw, 48px);
    display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.issue-card h2 { color: inherit; }
.issue-card .prose { color: color-mix(in srgb, var(--paper) 82%, transparent); margin: 0; }
.issue-card a:not(.btn) { color: var(--accent); }
.issue-card .btn-brand { background: var(--accent); color: #2B2410; }

/* ---------------- page head (inner pages) ---------------- */
.page-head { padding-bottom: 0; }

/* ---------------- brunch locations ---------------- */
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.loc-card {
    background: var(--card); border: 1px solid var(--line); border-radius: 24px;
    padding: clamp(26px, 3.5vw, 44px);
}
.loc-mark { margin-bottom: 18px; }
.loc-meta { color: var(--muted); }
.loc-note { font-weight: 600; color: var(--brand); }
.loc-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.loc-photo { margin: 26px 0 0; border-radius: 16px; overflow: hidden; }
.loc-photo img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }

/* ---------------- FAQ ---------------- */
.faq-list details {
    border: 1px solid var(--line); border-radius: 16px;
    background: var(--card);
    padding: 4px 22px; margin-bottom: 12px;
}
.faq-list summary {
    cursor: pointer; font-weight: 600; padding: 14px 0;
    list-style: none; position: relative;
}
.faq-list summary::after {
    content: "+"; position: absolute; right: 0; top: 12px;
    color: var(--accent); font-size: 1.3rem; font-weight: 400;
    transition: transform .2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { margin-top: 0; color: var(--muted); }

/* ---------------- forms ---------------- */
.catering-grid, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.form-card {
    background: var(--card); border: 1px solid var(--line); border-radius: 24px;
    padding: clamp(24px, 3vw, 40px);
}
.stack-form { display: grid; gap: 14px; }
.stack-form label { font-size: .85rem; font-weight: 600; display: grid; gap: 6px; }
.stack-form input, .stack-form textarea {
    font: inherit; color: var(--ink);
    background: var(--paper);
    border: 1.5px solid var(--line); border-radius: 12px;
    padding: 11px 14px;
    transition: border-color .18s ease;
    width: 100%;
}
.stack-form input:focus, .stack-form textarea:focus { border-color: var(--brand); outline: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-ok { color: #2E6B3E; font-weight: 600; }
[data-theme="dark"] .form-ok { color: #8FCB9B; }
.form-ok.big { font-size: 1.05rem; }
.catering-photo { margin: 0; }
.catering-photo img { border-radius: 24px; aspect-ratio: 4/4.4; object-fit: cover; width: 100%; }
.catering-photo figcaption { font-size: .82rem; color: var(--muted); margin-top: 10px; font-style: italic; }

/* ---------------- footer ---------------- */
.site-footer { background: var(--card); border-top: 1px solid var(--line); padding: clamp(44px, 6vw, 72px) 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 44px; }
.footer-brand { font-size: 1.05rem; }
.footer-tag { color: var(--muted); font-size: .9rem; }
.footer-col h4 { margin-top: 22px; }
.footer-col h4:first-child { margin-top: 0; }
.footer-col p { font-size: .92rem; margin-top: 4px; }
.socials { display: flex; gap: 18px; margin-top: 14px; font-size: .9rem; }
.subscribe-form { display: flex; gap: 10px; margin: 8px 0 4px; }
.subscribe-form input {
    flex: 1; font: inherit; color: var(--ink); background: var(--paper);
    border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 18px;
}
.subscribe-form input:focus { border-color: var(--brand); outline: none; }
.footer-base { text-align: center; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }

/* ---------------- mobile order bar ---------------- */
.mobile-order-bar {
    display: none;
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70;
    box-shadow: 0 10px 30px color-mix(in srgb, var(--ink) 25%, transparent);
}

/* ---------------- scroll reveal (moderate) ---------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
    .btn, .feature-card, .gallery-grid img { transition: none; }
}

/* ---------------- responsive ---------------- */
@media (max-width: 960px) {
    .hero-grid, .story-grid, .loc-grid, .catering-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero-media { order: -1; }
    .hero-media img { aspect-ratio: 16/10; }
    .menu-columns { columns: 1; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .story-moons { display: none; }
}
@media (max-width: 860px) {
    .main-nav {
        position: fixed; inset: 68px 0 auto 0;
        background: var(--card);
        border-bottom: 1px solid var(--line);
        flex-direction: column; gap: 0;
        padding: 12px 24px 20px;
        transform: translateY(-120%);
        transition: transform .3s ease;
        z-index: 55;
    }
    .main-nav.open { transform: none; }
    .main-nav a { padding: 12px 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
    .nav-burger { display: block; }
    .header-order { display: none; }
    .mobile-order-bar { display: inline-flex; }
    body { padding-bottom: 76px; }
    .hero-info { grid-template-columns: 1fr; gap: 14px; }
}
