/* =============================================================================
   The Cereal Boom Coffee — public site
   Editorial / boutique design. Theme colours come in as CSS variables from
   resources/views/partials/theme.blade.php (admin-editable).
   ============================================================================= */

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

:root {
    /* Injected by theme.blade.php; these are fallbacks. */
    --primary:   #556B2F;
    --secondary: #8A9A5B;
    --accent:    #D9C89E;

    --ink:    #23241c;
    --ink-soft:#4a4c40;
    --muted:  #7c7d70;
    --cream:  #f6f2e8;
    --cream-2:#efe9db;
    --paper:  #fffdf8;
    --line:   rgba(35,36,28,.12);

    --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --sans:  'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --radius: 18px;
    --radius-lg: 30px;
    --shadow-sm: 0 4px 16px rgba(40,45,25,.08);
    --shadow: 0 18px 50px -18px rgba(40,45,25,.35);
    --maxw: 1200px;
    --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Dark mode (opt-in via data-theme, default is light) ---------- */
:root[data-theme="dark"] {
    --ink:    #ece9df;
    --ink-soft:#cbc8bc;
    --muted:  #9a988c;
    --cream:  #14160e;
    --cream-2:#1c1f14;
    --paper:  #191b11;
    --line:   rgba(255,255,255,.13);
    --shadow-sm: 0 4px 16px rgba(0,0,0,.45);
    --shadow: 0 18px 50px -18px rgba(0,0,0,.72);
}
:root[data-theme="dark"] body { background: var(--cream); }
:root[data-theme="dark"] body::before { opacity:.22; mix-blend-mode: overlay; }
:root[data-theme="dark"] .site-header.scrolled { background: rgba(20,22,14,.86); }
:root[data-theme="dark"] body.solid .site-header { background: rgba(20,22,14,.92); }
:root[data-theme="dark"] .site-footer { background:#0e100a; }
:root[data-theme="dark"] .btn-light { background: var(--cream-2); color: var(--ink); }
:root[data-theme="dark"] .lang-switch { background: rgba(255,255,255,.08); }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Subtle paper grain over the whole page */
body::before {
    content:"";
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: .5;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
}
main, header, footer { position: relative; z-index: 2; }

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }

h1,h2,h3 { font-family: var(--serif); font-weight: 600; line-height: 1.05; letter-spacing: -.015em; margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 44px); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    text-transform: uppercase; letter-spacing: .28em;
    font-size: .72rem; font-weight: 600; color: var(--primary);
    font-family: var(--sans);
}
.eyebrow::before { content:""; width: 26px; height: 1px; background: currentColor; opacity: .6; }
.eyebrow.center { justify-content:center; }

/* ---------- Buttons ---------- */
.btn {
    --btn-bg: var(--primary); --btn-fg:#fff;
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 26px; border-radius: 999px;
    font-family: var(--sans); font-weight: 600; font-size: .95rem;
    letter-spacing: .01em; cursor: pointer; border: 1.5px solid transparent;
    background: var(--btn-bg); color: var(--btn-fg);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .25s, color .25s;
    will-change: transform;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--btn-fg); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-light { background: var(--paper); color: var(--primary); }

/* ---------- Header ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 60;
    transition: background .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
    border-bottom: 1px solid transparent;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 80px; }
.site-header.scrolled {
    background: rgba(246,242,232,.82);
    backdrop-filter: blur(14px) saturate(1.3);
    border-bottom-color: var(--line);
}
/* On the hero, header text is light until scrolled */
.site-header:not(.scrolled) .brand,
.site-header:not(.scrolled) .nav-link { color: #fff; }
.site-header:not(.scrolled) .brand .bean { background:#fff; color: var(--primary); }

.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 600; font-size: 1.25rem; color: var(--ink); letter-spacing: -.02em; transition: color .4s; min-width:0; }
.brand > span:last-child { white-space: nowrap; line-height: 1.05; }
.brand .bean { width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color:#fff; display: grid; place-items: center; font-size: 1.1rem; flex:none; transition: background .4s, color .4s; }
.brand small { display:block; font-family: var(--sans); font-weight: 500; font-size: .6rem; letter-spacing: .3em; text-transform: uppercase; opacity: .7; margin-top: 1px; }
.brand-logo { height: 52px; width: auto; max-width: 240px; display: block; }
.footer-logo { height: 54px; filter: brightness(0) invert(1); }

.nav { display: flex; align-items: center; gap: 22px; }
.nav-collapse { display: flex; align-items: center; gap: 30px; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-links { display: flex; align-items: center; gap: 28px; }

/* Dark-mode toggle */
.theme-toggle { width:40px; height:40px; border-radius:50%; border:1px solid transparent; background:transparent; cursor:pointer; display:grid; place-items:center; font-size:1.05rem; line-height:1; transition: background .2s; }
.theme-toggle:hover { background: rgba(128,128,128,.15); }
.theme-toggle .ico-moon { display:none; }
.theme-toggle .ico-sun { display:inline; }
:root[data-theme="dark"] .theme-toggle .ico-moon { display:inline; }
:root[data-theme="dark"] .theme-toggle .ico-sun { display:none; }
.nav-link { color: var(--ink-soft); font-weight: 500; font-size: .95rem; position: relative; transition: color .3s; }
.nav-link::after { content:""; position:absolute; left:0; bottom:-6px; width:0; height:2px; background: currentColor; transition: width .3s var(--ease); }
.nav-link:hover::after { width:100%; }

/* Language switch */
.lang-switch { display:inline-flex; align-items:center; gap:2px; background: rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.28); border-radius:999px; padding:3px; transition: background .4s, border-color .4s; }
.site-header.scrolled .lang-switch { background: var(--paper); border-color: var(--line); }
.lang-switch a { display:inline-flex; align-items:center; gap:5px; padding:5px 11px; border-radius:999px; font-size:.8rem; font-weight:600; color:#fff; opacity:.85; line-height:1; transition: background .2s, color .2s; }
.site-header.scrolled .lang-switch a { color: var(--muted); }
.lang-switch a .flag { font-size:1rem; }
.lang-switch a:not(.active) { opacity:.6; }
.lang-switch a:not(.active):hover { opacity:1; }
/* Active language: solid, bold, slightly larger pill — unmistakable in every
   header state (transparent hero, scrolled header, light sub-pages). */
.lang-switch a.active {
    background: var(--primary); color:#fff !important; opacity:1; font-weight:700;
    box-shadow: 0 3px 10px -2px color-mix(in srgb, var(--primary) 70%, #000);
    transform: scale(1.04);
}
.site-header:not(.scrolled) .lang-switch a.active {
    background:#fff; color: var(--primary) !important;
    box-shadow: 0 3px 10px -2px rgba(0,0,0,.45);
}

/* Solid header for pages without a hero (legal, privacy) */
body.solid .site-header { background: rgba(246,242,232,.9); backdrop-filter: blur(14px) saturate(1.3); border-bottom-color: var(--line); }
body.solid .site-header .brand, body.solid .site-header .nav-link { color: var(--ink); }
body.solid .site-header .brand .bean { background: var(--primary); color:#fff; }
body.solid .site-header .lang-switch { background: var(--paper); border-color: var(--line); }
body.solid .site-header .lang-switch a { color: var(--muted); }
body.solid .site-header .lang-switch a.active { background: var(--primary); color:#fff !important; }
body.solid .site-header .nav-toggle span { background: var(--ink); }

/* Mobile nav */
.nav-toggle { display:none; width:44px; height:44px; border:none; background:transparent; cursor:pointer; flex-direction:column; gap:5px; justify-content:center; align-items:center; }
.nav-toggle span { width:24px; height:2px; background: currentColor; color: var(--ink); transition: .3s var(--ease); }
.site-header:not(.scrolled) .nav-toggle span { background:#fff; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color:#fff; overflow: hidden; }
.hero-bg { position:absolute; inset:0; z-index:0; }
.hero-slide { position:absolute; inset:0; background-size: cover; background-position: center; opacity:0; transform: scale(1.08); transition: opacity 1.4s var(--ease), transform 7s linear; }
.hero-slide.is-active { opacity:1; transform: scale(1); }
.hero-bg::after { content:""; position:absolute; inset:0; background:
    linear-gradient(180deg, rgba(20,24,12,.35) 0%, rgba(20,24,12,.15) 35%, rgba(20,24,12,.78) 100%); }
/* Fallback when there are no featured photos */
.hero-fallback { position:absolute; inset:0; z-index:0; background:
    radial-gradient(1000px 600px at 75% 10%, color-mix(in srgb, var(--secondary) 60%, transparent), transparent),
    linear-gradient(160deg, color-mix(in srgb, var(--primary) 92%, #000), color-mix(in srgb, var(--primary) 60%, #000)); }

.hero-inner { position: relative; z-index:2; padding: 96px 0 40px; max-width: 900px; }
.hero .eyebrow { color: var(--accent); }
.hero h1 { font-size: clamp(3rem, 9vw, 6.6rem); font-weight: 600; margin: 20px 0 22px; text-shadow: 0 2px 40px rgba(0,0,0,.3); }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p.lead { font-size: clamp(1.05rem, 2.2vw, 1.4rem); max-width: 46ch; color: rgba(255,255,255,.92); margin: 0 0 34px; }
.hero-actions { display:flex; gap:14px; flex-wrap:wrap; }
.hero .btn-ghost { color:#fff; border-color: rgba(255,255,255,.5); }
.hero .btn-ghost:hover { background:#fff; color: var(--ink); border-color:#fff; }

.scroll-cue { position:absolute; left:50%; bottom:18px; transform:translateX(-50%); z-index:2; color:rgba(255,255,255,.75); font-size:.66rem; letter-spacing:.25em; text-transform:uppercase; display:flex; flex-direction:column; align-items:center; gap:7px; pointer-events:none; }
.scroll-cue .line { width:1px; height:30px; background:linear-gradient(#fff, transparent); animation: cue 2s var(--ease) infinite; order:1; }
.scroll-cue span { order:0; }
@media (max-height: 720px) { .scroll-cue { display:none; } }
@keyframes cue { 0%{transform:scaleY(0);transform-origin:top} 40%{transform:scaleY(1);transform-origin:top} 60%{transform:scaleY(1);transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }

/* ---------- Marquee ---------- */
.marquee { background: var(--primary); color: var(--paper); overflow: hidden; border-top:1px solid rgba(255,255,255,.1); }
.marquee-track { display:flex; gap:0; white-space:nowrap; width:max-content; animation: marquee 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--serif); font-size: clamp(1.3rem,3vw,2rem); font-style: italic; padding: 16px 30px; display:inline-flex; align-items:center; gap:30px; }
.marquee span::after { content:"✦"; font-style:normal; font-size:.7em; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 12vh, 140px) 0; }
.section-head { max-width: 720px; margin: 0 auto clamp(40px,6vh,64px); text-align: center; }
.section-head h2 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); margin: 16px 0 14px; color: var(--ink); }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* About — editorial split */
.about { background: var(--paper); }
.about-grid { display:grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.about-text h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); color: var(--ink); margin: 18px 0 20px; }
.about-text .drop { font-size: 1.15rem; color: var(--ink-soft); }
.feature-list { list-style:none; padding:0; margin: 28px 0 34px; display:grid; gap:14px; }
.feature-list li { display:flex; gap:14px; align-items:flex-start; font-weight:500; }
.feature-list .tick { flex:none; width:30px; height:30px; border-radius:50%; background: color-mix(in srgb, var(--secondary) 26%, #fff); color: var(--primary); display:grid; place-items:center; font-weight:700; font-size:.9rem; }

.about-visual { position: relative; }
.about-visual .frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/5; background: var(--cream-2); }
.about-visual .frame img { width:100%; height:100%; object-fit: cover; }
.about-visual .quote-card {
    position:absolute; left:-28px; bottom:-28px; max-width: 260px;
    background: var(--primary); color:#fff; padding: 24px 26px; border-radius: var(--radius);
    box-shadow: var(--shadow); font-family: var(--serif); font-style: italic; font-size:1.15rem; line-height:1.35;
}
.about-visual .badge-round {
    position:absolute; right:-22px; top:-22px; width: 104px; height:104px; border-radius:50%;
    background: var(--accent); color: var(--ink); display:grid; place-items:center; text-align:center;
    font-family: var(--serif); font-weight:600; font-size:.9rem; box-shadow: var(--shadow-sm); transform: rotate(-8deg);
    line-height:1.1;
}

/* ---------- Collections / slideshows ---------- */
.collection + .collection { padding-top: 0; }
.collection-head { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom: 26px; flex-wrap:wrap; }
.collection-head h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); color: var(--ink); text-transform: capitalize; }
.collection-head .count { color: var(--muted); font-size:.9rem; letter-spacing:.05em; }

/* Carousel */
.carousel { position: relative; }
.carousel-track { display:flex; gap: 18px; overflow-x:auto; scroll-snap-type:x mandatory; scroll-behavior:smooth; padding: 8px 4px 22px; -ms-overflow-style:none; scrollbar-width:none; }
.carousel-track::-webkit-scrollbar { display:none; }
/* Show whole slides per view: 1 on phones, 2 on tablets, 3 on desktop (gap 18px). */
.slide { scroll-snap-align:start; flex: 0 0 100%; }
@media (min-width: 640px)  { .slide { flex: 0 0 calc(50% - 9px); } }
@media (min-width: 1000px) { .slide { flex: 0 0 calc(33.333% - 12px); } }
.slide figure { margin:0; position:relative; border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-sm); background: var(--cream-2); aspect-ratio: 4/3; cursor: zoom-in; }
.slide figure img { width:100%; height:100%; object-fit:cover; transition: transform .8s var(--ease); }
.slide figure:hover img { transform: scale(1.05); }
.slide figcaption { position:absolute; inset:auto 0 0 0; padding: 34px 18px 16px; color:#fff; background: linear-gradient(to top, rgba(15,18,8,.82), transparent); }
.slide figcaption strong { display:block; font-family: var(--serif); font-size:1.15rem; }
.slide figcaption span { font-size:.86rem; opacity:.88; }
.slide .zoom-ico { position:absolute; top:12px; right:12px; width:34px; height:34px; border-radius:50%; background:rgba(255,255,255,.85); color:var(--ink); display:grid; place-items:center; opacity:0; transition:opacity .3s; }
.slide figure:hover .zoom-ico { opacity:1; }

.carousel-nav { display:flex; gap:10px; }
.carousel-btn {
    width:48px; height:48px; border-radius:50%; border:1.5px solid var(--line); background: var(--paper);
    color: var(--ink); cursor:pointer; display:grid; place-items:center; font-size:1.1rem;
    transition: background .25s, color .25s, transform .25s, border-color .25s;
}
.carousel-btn:hover { background: var(--primary); color:#fff; border-color: var(--primary); transform: translateY(-2px); }
.carousel-btn:disabled { opacity:.35; cursor:default; transform:none; background:var(--paper); color:var(--ink); border-color:var(--line); }

/* Main gallery (masonry-ish) */
.gallery { background: var(--cream-2); }
.gallery-grid { columns: 3; column-gap: 18px; }
.gallery-grid .g-item { break-inside: avoid; margin-bottom: 18px; border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-sm); position:relative; cursor: zoom-in; background: var(--cream); }
.gallery-grid .g-item img { width:100%; height:auto; display:block; transition: transform .8s var(--ease); }
.gallery-grid .g-item:hover img { transform: scale(1.05); }
.gallery-grid .g-item figcaption { position:absolute; inset:auto 0 0 0; padding: 30px 16px 14px; color:#fff; background:linear-gradient(to top, rgba(15,18,8,.8), transparent); opacity:0; transition:opacity .3s; }
.gallery-grid .g-item:hover figcaption { opacity:1; }
.gallery-grid .g-item figcaption strong { font-family: var(--serif); display:block; }

.gallery-empty { text-align:center; padding: 70px 20px; color: var(--muted); background: var(--paper); border-radius: var(--radius); border:2px dashed var(--line); }
.gallery-empty .big { font-size: 2.6rem; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset:0; z-index: 200; background: rgba(15,17,10,.94); display:none; align-items:center; justify-content:center; padding: 24px; }
.lightbox.open { display:flex; animation: fade .3s var(--ease); }
@keyframes fade { from{opacity:0} to{opacity:1} }
.lightbox img { max-width: min(92vw, 1100px); max-height: 82vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox .lb-cap { position:absolute; bottom: 26px; left:0; right:0; text-align:center; color:#fff; font-family: var(--serif); font-size:1.1rem; padding:0 20px; }
.lightbox button { position:absolute; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.25); color:#fff; width:52px; height:52px; border-radius:50%; cursor:pointer; font-size:1.3rem; display:grid; place-items:center; transition:background .2s; }
.lightbox button:hover { background:rgba(255,255,255,.28); }
.lb-close { top:22px; right:22px; }
.lb-prev { left:22px; top:50%; transform:translateY(-50%); }
.lb-next { right:22px; top:50%; transform:translateY(-50%); }

/* ---------- Contact ---------- */
.contact { background: var(--paper); }
.contact-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(210px,1fr)); gap:18px; margin-top: 8px; }
.contact-card { background: var(--cream); border:1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.contact-card .ico { font-size:1.8rem; }
.contact-card h3 { font-family: var(--serif); font-size:1.15rem; color: var(--ink); margin: 12px 0 6px; }
.contact-card p, .contact-card a { color: var(--muted); margin:0; word-break: break-word; }
.contact-card a:hover { color: var(--primary); }
.ig-cta { text-align:center; margin-top: 44px; }

/* Contact: info + map layout */
.contact-layout { display:grid; grid-template-columns: 1fr 1.15fr; gap: 28px; align-items:stretch; }
.contact-info { display:flex; flex-direction:column; gap: 22px; }
.ci-block { background: var(--cream); border:1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.ci-head { display:flex; align-items:center; gap:10px; margin-bottom: 10px; flex-wrap:wrap; }
.ci-head .ico { font-size:1.4rem; }
.ci-head h3 { font-family: var(--serif); font-size:1.2rem; color: var(--ink); margin:0; }
.ci-block p { color: var(--ink-soft); margin: 0 0 14px; }
.btn-sm { padding:9px 16px; font-size:.86rem; }
.open-badge { display:inline-flex; align-items:center; gap:5px; font-size:.74rem; font-weight:700; padding:4px 10px; border-radius:999px; margin-left:auto; }
.open-badge.open { background: color-mix(in srgb, var(--secondary) 26%, #fff); color: color-mix(in srgb, var(--primary) 80%, #000); }
.open-badge.closed { background:#f3e3df; color: var(--danger, #b3472f); }
.hours-table { width:100%; border-collapse:collapse; }
.hours-table tr { border-bottom:1px solid var(--line); }
.hours-table tr:last-child { border-bottom:0; }
.hours-table th { text-align:left; font-weight:500; color: var(--muted); padding:7px 0; font-size:.92rem; }
.hours-table td { text-align:right; color: var(--ink); padding:7px 0; font-variant-numeric: tabular-nums; }
.hours-table tr.is-today th, .hours-table tr.is-today td { color: var(--primary); font-weight:700; }
.ci-contacts { display:flex; flex-wrap:wrap; gap:10px; }
.ci-chip { display:inline-flex; align-items:center; gap:7px; background: var(--cream); border:1px solid var(--line); border-radius:999px; padding:9px 15px; font-weight:500; font-size:.9rem; color: var(--ink); transition: background .2s, transform .2s; }
.ci-chip:hover { background: var(--primary); color:#fff; transform: translateY(-2px); }

.contact-map { min-height: 360px; }
.map-embed { position:relative; width:100%; height:100%; min-height:360px; border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow); border:1px solid var(--line); }
.map-embed iframe { width:100%; height:100%; min-height:360px; border:0; display:block; }
.map-load {
    position:absolute; inset:0; width:100%; height:100%; cursor:pointer; border:0;
    display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; padding:24px; text-align:center;
    background:
        linear-gradient(160deg, color-mix(in srgb, var(--secondary) 22%, var(--cream)), var(--cream));
    color: var(--ink); font-family: var(--sans); font-weight:600; font-size:1.05rem;
}
.map-load .map-pin { font-size:2.4rem; }
.map-load small { font-weight:400; color: var(--muted); font-size:.82rem; max-width: 34ch; }
.map-load:hover { background: linear-gradient(160deg, color-mix(in srgb, var(--secondary) 34%, var(--cream)), var(--cream)); }

@media (max-width: 860px) {
    .contact-layout { grid-template-columns: 1fr; }
    .contact-map { min-height: 300px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: clamp(56px,9vh,90px) 0 30px; }
.footer-top { display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color:#fff; font-size:1.5rem; }
.site-footer .brand .bean { background: var(--primary); color:#fff; }
.site-footer .f-about { max-width: 34ch; margin: 18px 0 0; color: rgba(255,255,255,.6); }
.footer-col h4 { font-family: var(--sans); text-transform:uppercase; letter-spacing:.16em; font-size:.74rem; color: rgba(255,255,255,.5); margin:0 0 16px; }
.footer-col a, .footer-col p { display:block; color: rgba(255,255,255,.78); margin: 0 0 10px; transition: color .2s; }
.footer-col a:hover { color:#fff; }
.footer-social { display:flex; gap:12px; margin-top: 6px; }
.footer-social a { width:42px; height:42px; border-radius:50%; border:1px solid rgba(255,255,255,.2); display:grid; place-items:center; font-size:1.15rem; color:#fff; transition: background .25s, transform .25s; }
.footer-social a:hover { background: var(--primary); transform: translateY(-3px); }
.footer-bottom { border-top:1px solid rgba(255,255,255,.14); margin-top: 44px; padding-top: 22px; display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap; font-size:.85rem; color: rgba(255,255,255,.55); }
.footer-bottom a { color: rgba(255,255,255,.7); }
.footer-bottom a:hover { color:#fff; }

/* ---------- Legal pages ---------- */
.legal { padding: 150px 0 90px; background: var(--paper); min-height: 70vh; }
.legal .container { max-width: 780px; }
.legal h1 { font-size: clamp(2.2rem,6vw,3.2rem); color: var(--ink); margin-bottom: 10px; }
.legal .updated { color: var(--muted); font-size:.9rem; margin-bottom: 40px; }
.legal h2 { font-size: 1.4rem; color: var(--primary); margin: 38px 0 12px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal a { color: var(--primary); text-decoration: underline; }
.legal .lead { font-size:1.15rem; }
.legal-back { display:inline-flex; margin-top: 40px; }

/* ---------- Menu / carta ---------- */
.menu-hero { padding: 120px 0 30px; text-align: center; background:
    radial-gradient(900px 380px at 50% -30%, color-mix(in srgb, var(--secondary) 26%, transparent), transparent), var(--paper); }
.menu-hero h1 { font-size: clamp(2.4rem, 7vw, 4rem); color: var(--ink); margin: 12px 0 10px; }
.menu-hero h1 em { font-style: italic; color: var(--primary); }
.menu-hero p { color: var(--muted); max-width: 56ch; margin: 0 auto; font-size: 1.08rem; }
.menu-hero .chips { display:flex; gap:9px; justify-content:center; flex-wrap:wrap; margin-top: 24px; }
.menu-hero .chip { padding:9px 18px; border-radius:999px; font-weight:600; font-size:.85rem; color:#fff; box-shadow: 0 8px 20px -10px currentColor; transition: transform .2s var(--ease); }
.menu-hero .chip:hover { transform: translateY(-2px); }

.menu-wrap { background: var(--paper); padding: 6px 0 64px; }
.menu-group { padding: 20px 0 4px; scroll-margin-top: 84px; }
.menu-group-head { display:flex; align-items:center; gap:13px; margin-bottom: 14px; }
.menu-group-head .g-emoji {
    font-size: 1.35rem; width: 46px; height: 46px; border-radius: 13px;
    display:grid; place-items:center; color:#fff; flex:none;
    background: var(--gaccent); box-shadow: 0 8px 18px -8px var(--gaccent);
}
.menu-group-head h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); color: var(--ink); }
.menu-group-head .g-line { flex:1; height:2px; background: linear-gradient(90deg, var(--gaccent), transparent); border-radius:2px; opacity:.4; }

/* Masonry columns keep cards tightly packed (no tall gaps) */
.menu-cats { columns: 2; column-gap: 16px; }
.menu-card {
    break-inside: avoid; margin: 0 0 14px;
    background: var(--cream); border: 1px solid var(--line);
    border-left: 4px solid var(--gaccent); border-radius: 12px;
    padding: 12px 16px; box-shadow: var(--shadow-sm);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.menu-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.menu-card h3 { font-family: var(--serif); font-size: 1.12rem; line-height:1.2; color: var(--ink); display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom: 2px; padding-bottom: 7px; border-bottom: 2px dotted color-mix(in srgb, var(--gaccent) 45%, transparent); }
.menu-note { display:inline-block; font-size:.64rem; font-weight:700; text-transform:uppercase; letter-spacing:.05em; padding:2px 7px; border-radius:999px; background: var(--gaccent); color:#fff; }
.menu-list { margin: 3px 0 0; }
.menu-item { display:flex; align-items:baseline; gap:6px; padding: 4px 0; line-height:1.32; }
.menu-item + .menu-item { border-top: 1px solid var(--line); }
.mi-main { display:flex; flex-direction:column; min-width:0; }
.mi-name { font-weight:500; color: var(--ink); font-size:.92rem; }
.mi-desc { font-size:.76rem; color: var(--muted); line-height:1.35; margin-top:0; }
.mi-tags { display:flex; flex-wrap:wrap; gap:5px; margin-top:5px; }
.mi-tag { font-size:.64rem; font-weight:700; text-transform:uppercase; letter-spacing:.03em; padding:2px 7px; border-radius:999px; background: color-mix(in srgb, var(--gaccent) 16%, #fff); color: var(--gaccent); border:1px solid color-mix(in srgb, var(--gaccent) 30%, transparent); }
.mi-dots { flex:1; align-self:center; border-bottom: 2px dotted var(--line); min-width: 12px; margin: 0 2px; }
.mi-price { font-family: var(--serif); font-weight:600; color: var(--gaccent); white-space:nowrap; font-size:.95rem; }

@media (min-width: 1000px) { .menu-cats { columns: 3; } }
@media (max-width: 720px) { .menu-cats { columns: 1; } }

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 90;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25D366; color:#fff;
    display:grid; place-items:center;
    box-shadow: 0 10px 26px -6px rgba(0,0,0,.4);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.wa-float:hover { transform: translateY(-3px) scale(1.05); color:#fff; box-shadow: 0 14px 30px -6px rgba(0,0,0,.5); }
@media (max-width: 520px) { .wa-float { width:52px; height:52px; right:16px; bottom:16px; } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity:0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity:1; transform:none; }
.reveal.d1{transition-delay:.08s}.reveal.d2{transition-delay:.16s}.reveal.d3{transition-delay:.24s}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity:1; transform:none; transition:none; }
    .hero-slide { transition: opacity .6s; }
    * { scroll-behavior:auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
    .about-grid { grid-template-columns: 1fr; gap: 60px; }
    .about-visual { max-width: 460px; margin: 0 auto; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .gallery-grid { columns: 2; }
}
@media (max-width: 820px) {
    .site-header .container { height: 66px; gap: 12px; }
    .brand { font-size: 1.05rem; }
    .brand .bean { width: 34px; height: 34px; }
    .nav-toggle { display:flex; }
    /* Collapsible menu panel */
    .nav-collapse {
        position:absolute; top:100%; left:0; right:0;
        flex-direction:column; align-items:stretch; gap:0;
        background: var(--paper); border-top:1px solid var(--line); border-bottom:1px solid var(--line);
        box-shadow: var(--shadow); padding:8px 0 14px;
        max-height:0; overflow:hidden; visibility:hidden; opacity:0;
        transition: max-height .3s var(--ease), opacity .25s, visibility .25s;
    }
    .nav.open .nav-collapse { max-height: 80vh; overflow:auto; visibility:visible; opacity:1; }
    .nav-collapse .nav-links { flex-direction:column; align-items:stretch; gap:0; }
    .nav-collapse .nav-link,
    .site-header:not(.scrolled) .nav-collapse .nav-link { color: var(--ink); padding:14px 24px; width:100%; }
    .nav-collapse .nav-link::after { display:none; }
    .nav-collapse .lang-switch { margin:12px 24px 2px; align-self:flex-start; background: var(--cream-2); border-color: var(--line); }
    .nav-collapse .lang-switch a { color: var(--muted); }
    .footer-top { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; }
    .about-visual .quote-card { left:0; right:0; max-width:none; bottom:-20px; }
}
@media (max-width: 480px) {
    .gallery-grid { columns: 1; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .btn { padding: 12px 20px; }
}
