/* ============================================================
   Os Cucos — Landing Page
   Mobile-first. CSS custom properties. No frameworks.
   ============================================================ */

:root {
    --bg-stone: #F1EDE1;
    --bg-stone-warm: #ECE6DA;
    --primary-forest: #43663C;
    --primary-forest-dark: #344f2e;
    --secondary-wood: #A87645;
    --secondary-wood-dark: #8a5f35;
    --text-charcoal: #2C302C;
    --text-muted: #5b605b;
    --accent-brick: #BA4E3D;
    --accent-brick-dark: #9a3e30;
    --surface: #ffffff;
    --surface-soft: #faf7f1;
    --border: rgba(44, 48, 44, 0.12);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --shadow-sm: 0 2px 6px rgba(44, 48, 44, 0.06);
    --shadow-md: 0 10px 30px rgba(44, 48, 44, 0.10);
    --shadow-lg: 0 24px 60px rgba(44, 48, 44, 0.18);

    --font-serif: "Inika", "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --font-display: "Inika", "Playfair Display", "Cormorant Garamond", Georgia, serif;
    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --container: 1180px;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.75rem;
    --space-lg: 3rem;
    --space-xl: 5rem;

    --header-height: 80px;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    /* JS handles smooth scroll for anchor links (setupSmoothScroll in app.js).
       scroll-padding-top reserves space below the sticky header for native scrolls. */
    scroll-padding-top: var(--header-height);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text-charcoal);
    background: var(--bg-stone);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ---------- Site loader (preloader) ---------- */
#site-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-stone);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.45s var(--ease), visibility 0s linear 0.45s;
}
#site-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.site-loader-spinner {
    width: 52px;
    height: 52px;
    border: 4px solid rgba(67, 102, 60, 0.18);
    border-top-color: var(--primary-forest);
    border-radius: 50%;
    animation: site-loader-spin 0.9s linear infinite;
}

@keyframes site-loader-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .site-loader-spinner { animation: none; border-top-color: rgba(67, 102, 60, 0.6); }
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
    font-family: var(--font-serif);
    color: var(--text-charcoal);
    line-height: 1.12;
    margin: 0 0 var(--space-sm);
    font-weight: 700;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 5vw + 1rem, 4.6rem); }
h2 { font-size: clamp(1.9rem, 2.4vw + 1rem, 2.7rem); color: var(--primary-forest); }
h3 { font-size: 1.4rem; color: var(--primary-forest); }

p { margin: 0 0 var(--space-sm); }

a { color: var(--primary-forest); text-decoration: none; transition: color 0.3s var(--ease); }
a:hover { color: var(--secondary-wood); }

ul { list-style: none; padding: 0; margin: 0; }
address { font-style: normal; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--primary-forest);
    color: #fff;
    padding: 0.75rem 1rem;
    z-index: 999;
}
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible {
    outline: 2px solid var(--secondary-wood);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-stone);
    transition: box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.brand {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}
.brand-logo {
    height: 56px;
    width: auto;
    transition: transform 0.4s var(--ease);
}
.brand:hover .brand-logo { transform: scale(1.05); }

/* Nav toggle (mobile) */
.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    margin: 0 auto;
    background: var(--text-charcoal);
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    background: var(--bg-stone);
    border-bottom: 1px solid var(--border);
    padding: var(--space-md) 1.25rem var(--space-lg);
    transform: translateY(calc(-100% - var(--header-height)));
    transition: transform 0.35s var(--ease);
    box-shadow: var(--shadow-md);
}
.primary-nav.is-open { transform: translateY(0); }

.primary-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: var(--space-md);
}

.primary-nav a {
    display: block;
    padding: 0.6rem 0;
    color: var(--text-charcoal);
    font-weight: 500;
    border-bottom: 1px solid var(--border);
}
.primary-nav a:hover { color: var(--primary-forest); }

/* Lang switcher — custom dropdown with flags */
.lang-switcher {
    position: relative;
    display: inline-flex;
}

.flag-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }

.flag {
    width: 22px;
    height: 15px;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(44, 48, 44, 0.08);
    flex-shrink: 0;
    display: block;
}

.lang-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.42rem 0.7rem 0.42rem 0.55rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-charcoal);
    font: 600 0.78rem/1 var(--font-sans);
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all 0.25s var(--ease);
}
.lang-trigger:hover {
    border-color: var(--primary-forest);
    color: var(--primary-forest);
    background: rgba(255, 255, 255, 0.4);
}
.lang-trigger[aria-expanded="true"] {
    background: var(--surface);
    border-color: var(--primary-forest);
    color: var(--primary-forest);
}
.lang-trigger:focus-visible {
    outline: 2px solid var(--secondary-wood);
    outline-offset: 2px;
}

.lang-chevron {
    width: 10px;
    height: 7px;
    color: var(--text-muted);
    transition: transform 0.25s var(--ease);
    flex-shrink: 0;
}
.lang-trigger[aria-expanded="true"] .lang-chevron {
    transform: rotate(180deg);
    color: var(--primary-forest);
}

.lang-switcher .lang-menu {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 0;
    right: auto;
    min-width: 200px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 0.4rem;
    margin: 0;
    z-index: 200;
    list-style: none;
    display: block;
    flex-direction: initial;
    gap: 0;
    animation: langMenuIn 0.18s var(--ease);
}
.lang-switcher .lang-menu[hidden] { display: none; }

@keyframes langMenuIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.lang-menu li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-charcoal);
    font-size: 0.9rem;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.lang-menu li:hover,
.lang-menu li:focus-visible {
    background: var(--surface-soft);
    outline: none;
}
.lang-menu li[aria-selected="true"] {
    background: rgba(67, 102, 60, 0.08);
}
.lang-menu li[aria-selected="true"] .lang-name {
    color: var(--primary-forest);
    font-weight: 600;
}

.lang-name {
    flex: 1;
    font-family: var(--font-sans);
}
.lang-code-small {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    font-weight: 600;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.8rem;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s var(--ease);
}

.btn-primary {
    background: var(--primary-forest);
    color: #fff;
    border-color: var(--primary-forest);
}
.btn-primary:hover {
    background: var(--primary-forest-dark);
    border-color: var(--primary-forest-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary-forest);
    border-color: var(--primary-forest);
}
.btn-outline:hover {
    background: var(--primary-forest);
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.85);
}
.btn-outline-light:hover {
    background: #fff;
    color: var(--primary-forest);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-brick {
    background: var(--accent-brick);
    color: #fff;
    border-color: var(--accent-brick);
    box-shadow: var(--shadow-sm);
}
.btn-brick:hover {
    background: var(--accent-brick-dark);
    border-color: var(--accent-brick-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-wood {
    background: var(--secondary-wood);
    color: #fff;
    border-color: var(--secondary-wood);
    box-shadow: var(--shadow-sm);
}
.btn-wood:hover {
    background: var(--secondary-wood-dark);
    border-color: var(--secondary-wood-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-block { display: flex; width: 100%; margin-top: var(--space-md); }

.btn-with-icon {
    gap: 0.55rem;
}
.btn-icon {
    flex-shrink: 0;
    transition: transform 0.3s var(--ease);
}
.btn-with-icon:hover .btn-icon {
    transform: rotate(-12deg) scale(1.05);
}

/* ---------- Hero (light, two-column: text left, illustration right) ---------- */
.hero {
    padding: 3.5rem 0 5rem;
    background: var(--bg-stone);
}

.hero-grid {
    align-items: center;
}

/* Mobile + tablet: hero text centered (stacked layout) */
.hero-grid .two-col-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.hero-grid .hero-actions {
    justify-content: center;
}

.two-col-text .hero-eyebrow {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-charcoal);
    margin: 0 0 1.5rem;
    line-height: 1.4;
}

.hero h1 {
    color: var(--text-charcoal);
    margin: 0 0 1.25rem;
    font-weight: 700;
    line-height: 1.05;
    font-size: clamp(3.2rem, 4.5vw + 1rem, 4.5rem);
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: clamp(1rem, 0.5vw + 0.9rem, 1.15rem);
    line-height: 1.65;
    max-width: 46ch;
    margin: 0 0 2.25rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 0;
}

.hero-illustration {
    background: none;
    padding: 0;
}
.hero-illustration img {
    width: 100%;
    height: auto;
    max-width: 600px;
    mix-blend-mode: normal;
    filter: drop-shadow(0 14px 22px rgba(67, 102, 60, 0.10));
}

/* ---------- Section base ---------- */
section { padding: var(--space-xl) 0; }

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--secondary-wood);
    margin-bottom: 0.85rem;
}

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto var(--space-lg);
}

.section-lead {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ---------- História ---------- */
.historia { padding-top: 0.4rem; }

.historia-content {
    text-align: left;
}
.historia-content > div {
    max-width: 720px;
    margin: 0;
}
.historia-content p {
    color: var(--text-charcoal);
    font-size: 1.05rem;
    line-height: 1.75;
}

.about-story {
    position: relative;
}
.about-story p { margin: 0 0 1rem; }
.about-story p:last-child { margin-bottom: 0; }
.about-story p:empty { display: none; }

.about-story.is-collapsed {
    max-height: 16.5rem;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
            mask-image: linear-gradient(to bottom, #000 60%, transparent);
}

.about-toggle {
    margin-top: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--primary-forest);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s var(--ease);
}
.about-toggle:hover { color: var(--secondary-wood); }
.about-toggle:focus-visible {
    outline: 2px solid var(--secondary-wood);
    outline-offset: 4px;
    border-radius: 2px;
}

.about-toggle-chevron {
    transition: transform 0.25s var(--ease);
}
.about-toggle[aria-expanded="true"] .about-toggle-chevron {
    transform: rotate(180deg);
}

.two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.two-col-text p { color: var(--text-charcoal); font-size: 1.02rem; }

.two-col-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: var(--radius-lg);
    background: radial-gradient(ellipse at center, rgba(168, 118, 69, 0.08) 0%, rgba(168, 118, 69, 0) 70%);
}
.two-col-image img {
    width: 100%;
    height: auto;
    max-width: 560px;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.8s var(--ease);
    filter: drop-shadow(0 18px 28px rgba(67, 102, 60, 0.12));
}
.two-col-image:hover img { transform: scale(1.03); }

/* História illustration — sepia ink, sits as a clean image card */
.historia-illustration {
    background: none;
    padding: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.historia-illustration img {
    max-width: none;
    width: 100%;
    mix-blend-mode: normal;
    filter: none;
    border-radius: var(--radius-lg);
}

/* ---------- Gallery strip ---------- */
.gallery {
    padding: 0 0 var(--space-xl);
}

.gallery-marquee {
    overflow: hidden;
    padding: 0.5rem 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.gallery-marquee-track {
    display: flex;
    width: max-content;
    animation: gallery-marquee-scroll 38s linear infinite;
    will-change: transform;
}
.gallery-marquee:focus-within .gallery-marquee-track {
    animation-play-state: paused;
}

.gallery-marquee-item {
    flex: 0 0 auto;
    width: clamp(362px, 32vw, 420px);
    aspect-ratio: 4 / 3;
    margin: 0 1rem 0 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-stone-warm);
    box-shadow: var(--shadow-sm);
}
.gallery-marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes gallery-marquee-scroll {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-marquee-track { animation: none; }
}

/* ---------- Ementa ---------- */
.ementa {
    position: relative;
    background-image:
        linear-gradient(rgba(67, 102, 60, 0.88), rgba(67, 102, 60, 0.92)),
        url("img/back.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
}
.ementa .section-head h2 {
    color: #fff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}
.ementa .section-head .eyebrow {
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}
.ementa .section-lead {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.35rem;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 999px;
    margin: 0 auto var(--space-lg);
    width: fit-content;
}

.tab {
    padding: 0.7rem 1.4rem;
    border: 0;
    background: transparent;
    color: var(--text-charcoal);
    font: 600 0.95rem/1 var(--font-sans);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}
.tab:hover { color: var(--secondary-wood-dark); }
.tab.is-active {
    background: var(--secondary-wood);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

.menu-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
    margin: 0 auto var(--space-md);
    max-width: 56ch;
}

.menu-vat {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: var(--space-md) auto 0;
    letter-spacing: 0.02em;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    align-items: start;
}

.menu-card,
.weekday-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.menu-card:hover,
.weekday-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(168, 118, 69, 0.4);
}

.menu-card h3 {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.6rem;
    margin-bottom: 1rem;
    color: var(--primary-forest);
}

.menu-icon {
    color: var(--secondary-wood);
    flex-shrink: 0;
    transition: transform 0.4s var(--ease);
}
.menu-card:hover .menu-icon {
    transform: rotate(-6deg) scale(1.08);
}

.menu-card-intro {
    margin: -0.25rem 0 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.9rem;
    line-height: 1.45;
}

.menu-card-subhead {
    margin: 1.25rem 0 0.5rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-brick);
}

.menu-list li {
    padding: 0.55rem 0;
    border-bottom: 1px dashed var(--border);
    font-size: 0.98rem;
    color: var(--text-charcoal);
}
.menu-list li:last-child { border-bottom: 0; }

.weekday-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.weekday-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.weekday-card .weekday {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-brick);
    margin: 0;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--border);
}

.weekday-dishes {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin: 0;
}
.weekday-dishes li {
    color: var(--text-charcoal);
    font-size: 0.98rem;
    line-height: 1.4;
}

.dish-note {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.88rem;
}

/* ---------- Reviews ---------- */
.reviews {
    background: var(--surface-soft);
}

.reviews-grid {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.4rem 0 1rem;
    margin-inline: calc(-1 * var(--space-md));
    scroll-padding-inline: var(--space-md);
}
.reviews-grid::-webkit-scrollbar { display: none; }

.reviews-grid > .review-card {
    flex: 0 0 84%;
    max-width: 360px;
    min-width: 0;
    scroll-snap-align: center;
    margin-block: 0;
}
.reviews-grid > .review-card:first-child { margin-left: var(--space-md); }
.reviews-grid > .review-card:last-child  { margin-right: var(--space-md); }

@media (prefers-reduced-motion: reduce) {
    .reviews-grid { scroll-behavior: auto; }
}

.review-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(168, 118, 69, 0.4);
}

.review-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.review-platform {
    font-family: var(--font-serif, "Cormorant Garamond", Georgia, serif);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--primary-forest);
    letter-spacing: 0.01em;
    line-height: 1;
}

.review-stars {
    color: var(--accent-brick);
    letter-spacing: 0.1em;
    font-size: 1rem;
}

.review-quote {
    margin: 0;
    color: var(--text-charcoal);
    font-size: 1rem;
    font-style: italic;
    line-height: 1.55;
    quotes: "“" "”";
    flex: 1;
}
.review-quote::before { content: open-quote; margin-right: 0.1em; }
.review-quote::after  { content: close-quote; margin-left: 0.1em; }

.review-foot {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-top: 0.85rem;
    border-top: 1px dashed var(--border);
}

.review-author {
    font-style: normal;
    font-weight: 600;
    color: var(--primary-forest);
    font-size: 0.95rem;
}

.review-link {
    font-size: 0.88rem;
    color: var(--secondary-wood);
    align-self: flex-start;
}
.review-link:hover { color: var(--secondary-wood-dark); }

/* ---------- Contactos ---------- */
.contactos {
    background-color: var(--bg-stone);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.contact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.contact-card h3 {
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.7rem;
    margin-bottom: 1.1rem;
}

.hours-list li,
.info-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px dashed var(--border);
}
.hours-list li:last-child,
.info-list li:last-child { border-bottom: 0; }

.info-label {
    font-weight: 600;
    color: var(--text-muted);
    min-width: 90px;
}
.info-list a { font-weight: 500; }
.info-list a:hover { color: var(--accent-brick); }

.info-address-row { align-items: flex-start; }

.address-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.7rem;
    text-align: right;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.95rem;
    border: 1px solid var(--primary-forest);
    border-radius: 999px;
    color: var(--primary-forest);
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s var(--ease);
}
.info-list a.map-link:hover,
.map-link:hover {
    background: var(--primary-forest);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.note {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}
.note-icon {
    flex-shrink: 0;
    color: var(--secondary-wood);
    margin-top: 1px;
}

/* Live hours: status pill + vacation banner */
#horarios-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hours-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1;
}
.hours-status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
    animation: hoursPulse 2s ease-in-out infinite;
}
.hours-status.is-open {
    background: rgba(67, 102, 60, 0.12);
    color: var(--primary-forest);
}
.hours-status.is-closed {
    background: rgba(186, 78, 61, 0.12);
    color: var(--accent-brick-dark);
}
.hours-status[hidden] { display: none; }

@keyframes hoursPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
@media (prefers-reduced-motion: reduce) {
    .hours-status::before { animation: none; }
}

.hours-vacation {
    background: rgba(168, 118, 69, 0.12);
    border-left: 3px solid var(--secondary-wood);
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--secondary-wood-dark);
    font-size: 0.93rem;
    font-weight: 500;
    margin: 0 0 1.1rem;
    line-height: 1.45;
}
.hours-vacation[hidden] { display: none; }

/* ---------- Policy page (Privacidade) ---------- */
.policy-page {
    background: var(--bg-stone);
    padding: var(--space-xl) 0 var(--space-xl);
}

.policy-content {
    max-width: 760px;
    color: var(--text-charcoal);
}

.policy-header {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border);
}
.policy-header h1 {
    font-size: clamp(2.2rem, 3vw + 1rem, 3rem);
    color: var(--primary-forest);
    margin: 0.5rem 0 0.85rem;
}
.policy-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 0 1rem;
}
.policy-disclaimer {
    background: var(--surface-soft);
    border-left: 3px solid var(--secondary-wood);
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
    margin: 0;
    line-height: 1.55;
}

.policy-section { margin-bottom: var(--space-lg); }
.policy-section h2 {
    color: var(--primary-forest);
    font-size: 1.4rem;
    margin: 0 0 0.85rem;
    line-height: 1.25;
}
.policy-section p,
.policy-section ul {
    color: var(--text-charcoal);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 0.9rem;
}
.policy-section ul {
    padding-left: 1.4rem;
    list-style: disc;
}
.policy-section li {
    margin-bottom: 0.55rem;
}
.policy-section a {
    color: var(--primary-forest);
    text-decoration: underline;
    text-decoration-color: rgba(67, 102, 60, 0.35);
    text-underline-offset: 2px;
}
.policy-section a:hover {
    color: var(--accent-brick);
    text-decoration-color: currentColor;
}
.policy-section code {
    background: var(--surface-soft);
    border: 1px solid var(--border);
    padding: 0.05rem 0.4rem;
    border-radius: 4px;
    font-size: 0.88em;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    color: var(--secondary-wood-dark);
}
.policy-section strong { color: var(--text-charcoal); font-weight: 600; }

.policy-back {
    margin-top: var(--space-xl);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
}
.policy-back a {
    display: inline-flex;
    align-items: center;
    color: var(--primary-forest);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.policy-back a:hover {
    color: var(--secondary-wood);
    transform: translateX(-2px);
}

/* Footer privacy link */
.footer-sep {
    margin: 0 0.45rem;
    color: rgba(255, 255, 255, 0.3);
}
.footer-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.footer-link:hover {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.4);
}

/* ---------- Footer ---------- */
.site-footer {
    position: relative;
    background-color: var(--bg-stone);
    color: var(--text-charcoal);
    padding: var(--space-lg) 0 0;
    margin-top: var(--space-xl);
}

.footer-illustration {
    display: block;
    width: 100%;
    height: auto;
    margin-top: var(--space-md);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    align-items: start;
    padding-bottom: var(--space-md);
}

.footer-meta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.footer-meta p { margin: 0; }
.footer-meta .footer-link { color: var(--primary-forest); }
.footer-meta .footer-link:hover { color: var(--secondary-wood); }
.footer-meta .social { margin-bottom: 0.4rem; }

.footer-logo {
    display: block;
    width: 96px;
    height: 56px;
    background-color: var(--primary-forest);
    -webkit-mask: url("img/logo.svg") no-repeat center / contain;
            mask: url("img/logo.svg") no-repeat center / contain;
    margin-bottom: 0.5rem;
}
.footer-brand p { color: var(--text-muted); margin: 0; }
.footer-brand-name {
    color: var(--primary-forest);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    margin-bottom: 0.25rem !important;
}

.footer-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav a { color: var(--text-charcoal); }
.footer-nav a:hover { color: var(--secondary-wood); }

.social { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--primary-forest);
    background: rgba(67, 102, 60, 0.08);
    border: 1px solid rgba(67, 102, 60, 0.25);
    transition: all 0.3s var(--ease);
}
.social-link:hover {
    color: var(--primary-forest-dark);
    background: rgba(67, 102, 60, 0.16);
    border-color: rgba(67, 102, 60, 0.5);
    transform: translateY(-2px);
}
.social-link svg { display: block; }

.footer-credit {
    display: none;
    position: absolute;
    right: 0.9rem;
    bottom: 0.6rem;
    margin: 0;
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    background: rgba(241, 237, 225, 0.85);
    border: 1px solid rgba(67, 102, 60, 0.18);
    border-radius: 4px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1;
    transition: background 0.3s var(--ease);
}
.footer-credit:hover { background: rgba(241, 237, 225, 0.95); }
.footer-credit a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease);
}
.footer-credit a:hover { border-bottom-color: rgba(67, 102, 60, 0.5); }

/* ---------- Reveal animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Tablet ---------- */
@media (min-width: 700px) {
    .menu-grid { grid-template-columns: repeat(2, 1fr); }
    .weekday-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
    .reviews-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        overflow: visible;
        scroll-snap-type: none;
        padding: 0;
        margin-inline: 0;
    }
    .reviews-grid > .review-card {
        flex: initial;
        max-width: none;
        scroll-snap-align: none;
    }
    .reviews-grid > .review-card:first-child,
    .reviews-grid > .review-card:last-child { margin: 0; }
    .hero { padding: 7rem 0 8rem; }
    .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1024px) {
    :root { --header-height: 96px; }

    .brand-logo { height: 64px; }

    .nav-toggle { display: none; }

    .primary-nav {
        position: static;
        transform: none;
        display: flex;
        align-items: center;
        gap: 2.25rem;
        background: transparent;
        border: 0;
        padding: 0;
        box-shadow: none;
    }
    .primary-nav ul {
        flex-direction: row;
        gap: 2rem;
        margin: 0;
    }
    .primary-nav a {
        padding: 0;
        border: 0;
        font-size: 0.95rem;
        position: relative;
    }
    .primary-nav a::after {
        content: "";
        position: absolute;
        left: 0; right: 100%;
        bottom: -6px;
        height: 2px;
        background: var(--primary-forest);
        transition: right 0.3s var(--ease);
    }
    .primary-nav a:hover::after { right: 0; }

    .two-col { grid-template-columns: 1fr 1.1fr; gap: var(--space-xl); }
    .two-col-reverse { grid-template-columns: 1.15fr 0.95fr; }
    .hero-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
    .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 900px; margin: 0 auto; }

    /* Desktop: hero text back to left-aligned (matches two-column layout) */
    .hero-grid .two-col-text {
        align-items: flex-start;
        text-align: left;
    }
    .hero-grid .hero-actions {
        justify-content: flex-start;
    }

    .lang-switcher .lang-menu {
        left: auto;
        right: 0;
    }
    .weekday-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1280px) {
    section { padding: 6rem 0; }
    .hero { padding: 8rem 0 9rem; }
}
