/* ============================================
   SABOR DA CASA — Cardápio Artesanal
   Paleta rústica: madeira, terracota, creme
   ============================================ */

:root {
    /* Paleta */
    --cream: #f4ead5;
    --cream-dark: #ebdfc4;
    --paper: #faf3e0;
    --wood-light: #a67449;
    --wood: #6b4226;
    --wood-dark: #3a2418;
    --terracotta: #c8563c;
    --terracotta-dark: #a23e28;
    --olive: #5a6142;
    --ink: #2a1a10;
    --ink-soft: #5c4433;
    --rule: rgba(107, 66, 38, 0.18);

    /* Tipografia */
    --display: 'Fraunces', Georgia, serif;
    --body: 'DM Sans', system-ui, sans-serif;

    /* Espaçamento */
    --container: 1180px;
    --pad: clamp(1.25rem, 4vw, 3rem);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body);
    background: var(--cream);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Textura granulada global */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    opacity: 0.35;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.42 0 0 0 0 0.26 0 0 0 0 0.15 0 0 0 0.25 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100svh;
    padding: var(--pad);
    background:
        radial-gradient(ellipse 80% 50% at 70% 0%, rgba(200, 86, 60, 0.12), transparent 60%),
        radial-gradient(ellipse 60% 40% at 10% 90%, rgba(107, 66, 38, 0.18), transparent 60%),
        linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hero::before {
    content: '';
    position: absolute;
    inset: clamp(1rem, 3vw, 2rem);
    border: 1px solid var(--rule);
    pointer-events: none;
}

.nav {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container);
    width: 100%;
    margin: 0 auto;
    padding: 1rem 0;
    z-index: 2;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--display);
    font-weight: 500;
    font-size: 1.15rem;
    color: var(--wood-dark);
    letter-spacing: 0.01em;
}

.nav-mark {
    color: var(--terracotta);
    font-size: 1.3rem;
    line-height: 1;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.2rem;
}

.nav-links a {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink-soft);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--terracotta);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--wood-dark);
}

.nav-links a:hover::after {
    width: 100%;
}

.hero-content {
    flex: 1;
    max-width: var(--container);
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 8vh, 6rem) 0;
    position: relative;
    z-index: 2;
}

.hero-eyebrow {
    font-family: var(--display);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--terracotta-dark);
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
    opacity: 0;
    animation: fadeUp 0.9s 0.1s ease forwards;
}

.hero-title {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(3rem, 9vw, 7.5rem);
    line-height: 0.98;
    color: var(--wood-dark);
    letter-spacing: -0.025em;
    max-width: 18ch;
    margin-bottom: 2rem;
    font-variation-settings: "opsz" 144, "SOFT" 100;
}

.hero-title .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease forwards;
    margin-right: 0.18em;
}

.hero-title .word:nth-child(1) { animation-delay: 0.25s; }
.hero-title .word:nth-child(2) { animation-delay: 0.40s; }
.hero-title .word:nth-child(3) { animation-delay: 0.55s; }
.hero-title .word:nth-child(4) { animation-delay: 0.70s; }
.hero-title .word:nth-child(5) { animation-delay: 0.85s; }

.italic {
    font-style: italic;
    font-weight: 400;
    color: var(--terracotta);
    font-variation-settings: "opsz" 144, "SOFT" 100;
}

.hero-sub {
    max-width: 44ch;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--ink-soft);
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeUp 1s 1s ease forwards;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.75rem;
    background: var(--wood-dark);
    color: var(--cream);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 500;
    border-radius: 999px;
    width: fit-content;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    opacity: 0;
    animation: fadeUp 1s 1.15s ease forwards;
    box-shadow: 0 6px 20px -8px rgba(58, 36, 24, 0.5);
}

.hero-cta:hover {
    background: var(--terracotta);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -8px rgba(200, 86, 60, 0.5);
    gap: 1rem;
}


/* ============================================
   ATMOSPHERE STRIP
   ============================================ */
.atmosphere {
    position: relative;
    height: clamp(320px, 50vw, 600px);
    overflow: hidden;
}

.atmosphere img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    display: block;
}

.atmosphere-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(58,36,24,0.65) 0%, transparent 55%);
    display: flex;
    align-items: flex-end;
    padding: clamp(1.5rem, 4vw, 3rem);
}

.atmosphere-text {
    font-family: var(--display);
    font-style: italic;
    font-size: clamp(1.5rem, 4vw, 2.75rem);
    color: var(--cream);
    letter-spacing: -0.01em;
    max-width: var(--container);
    width: 100%;
    margin: 0 auto;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery {
    background: var(--paper);
    padding: clamp(3rem, 8vw, 6rem) var(--pad);
    border-top: 1px solid var(--rule);
}

.gallery-grid {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: var(--cream-dark);
    cursor: default;
}

.gallery-item--tall {
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    min-height: 240px;
}

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

.gallery-item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.25rem 0.85rem;
    background: linear-gradient(to top, rgba(58,36,24,0.75), transparent);
    font-family: var(--display);
    font-style: italic;
    font-size: 1rem;
    color: var(--cream);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover figcaption {
    opacity: 1;
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee {
    background: var(--wood-dark);
    color: var(--cream);
    padding: 1.25rem 0;
    overflow: hidden;
    border-top: 1px solid var(--wood);
    border-bottom: 1px solid var(--wood);
}

.marquee-track {
    display: flex;
    gap: 3rem;
    white-space: nowrap;
    animation: scroll 40s linear infinite;
    font-family: var(--display);
    font-style: italic;
    font-size: 1.15rem;
    font-weight: 400;
}

.marquee-track span {
    flex-shrink: 0;
}

@keyframes scroll {
    to { transform: translateX(-50%); }
}

/* ============================================
   CARDÁPIO
   ============================================ */
.menu {
    max-width: var(--container);
    margin: 0 auto;
    padding: clamp(4rem, 10vw, 8rem) var(--pad);
}

.menu-header {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto clamp(3rem, 8vw, 6rem);
}

.section-label {
    display: inline-block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--terracotta);
    margin-bottom: 1.25rem;
    position: relative;
    padding: 0 1.5rem;
}

.section-label::before,
.section-label::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 1rem;
    height: 1px;
    background: var(--terracotta);
}

.section-label::before { left: 0; }
.section-label::after { right: 0; }

.section-label.light {
    color: var(--cream);
}
.section-label.light::before,
.section-label.light::after {
    background: var(--cream);
}

.section-title {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(2.2rem, 5vw, 3.75rem);
    line-height: 1.05;
    color: var(--wood-dark);
    margin-bottom: 1.25rem;
    letter-spacing: -0.015em;
}

.section-desc {
    font-size: 1rem;
    color: var(--ink-soft);
    line-height: 1.65;
    max-width: 36rem;
    margin: 0 auto;
}

/* Categoria */
.category {
    margin-bottom: clamp(3rem, 7vw, 5.5rem);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.category.revealed {
    opacity: 1;
    transform: translateY(0);
}

.category-heading {
    display: flex;
    align-items: baseline;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--rule);
}

.category-num {
    font-family: var(--display);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--terracotta);
    font-weight: 400;
}

.category-title {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    color: var(--wood-dark);
    letter-spacing: -0.01em;
    line-height: 1;
}

.category-line {
    flex: 1;
    height: 1px;
    background: var(--rule);
    margin-left: 0.5rem;
}

/* Items */
.items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.items-compact {
    gap: 1.5rem;
}

.item {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px dashed var(--rule);
    transition: transform 0.4s ease;
}

.item:last-child {
    border-bottom: none;
}

.item:hover {
    transform: translateX(6px);
}

.item-main {
    flex: 1;
    min-width: 0;
}

.item-name {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    color: var(--wood-dark);
    letter-spacing: -0.005em;
    margin-bottom: 0.35rem;
    line-height: 1.2;
}

.item-desc {
    font-size: 0.92rem;
    color: var(--ink-soft);
    line-height: 1.55;
    max-width: 52ch;
}

.item-tag {
    display: inline-block;
    margin-top: 0.6rem;
    padding: 0.25rem 0.7rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--terracotta-dark);
    background: rgba(200, 86, 60, 0.1);
    border-radius: 999px;
    font-weight: 500;
}


/* ============================================
   ENCOMENDA
   ============================================ */
.encomenda {
    background: var(--wood-dark);
    color: var(--cream);
    padding: clamp(4rem, 10vw, 7rem) var(--pad);
    position: relative;
    overflow: hidden;
}

.encomenda::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(200, 86, 60, 0.2), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(166, 116, 73, 0.15), transparent 40%);
    pointer-events: none;
}

.encomenda-inner {
    position: relative;
    max-width: 52rem;
    margin: 0 auto;
    text-align: center;
}

.encomenda-title {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    line-height: 1.15;
    color: var(--cream);
    margin-bottom: 1.5rem;
    letter-spacing: -0.015em;
}

.encomenda-title .italic {
    color: var(--terracotta);
    font-style: italic;
}

.encomenda-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(244, 234, 213, 0.8);
    margin-bottom: 2.5rem;
    max-width: 38rem;
    margin-left: auto;
    margin-right: auto;
}

.encomenda-cta {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--terracotta);
    color: var(--cream);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 500;
    border-radius: 999px;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 6px 20px -8px rgba(200, 86, 60, 0.6);
}

.encomenda-cta:hover {
    background: var(--cream);
    color: var(--wood-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -8px rgba(244, 234, 213, 0.3);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--paper);
    color: var(--ink);
    padding: clamp(3rem, 7vw, 5rem) var(--pad) 2rem;
    border-top: 1px solid var(--rule);
}

.footer-grid {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--rule);
}

.footer-mark {
    font-size: 2rem;
    color: var(--terracotta);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.footer-brand {
    font-family: var(--display);
    font-weight: 500;
    font-size: 1.5rem;
    color: var(--wood-dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.footer-tag {
    font-family: var(--display);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--ink-soft);
}

.footer-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--terracotta);
    margin-bottom: 0.9rem;
    font-weight: 500;
}

.footer-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--ink-soft);
}

.footer-bottom {
    max-width: var(--container);
    margin: 2rem auto 0;
    text-align: center;
    font-size: 0.82rem;
    color: var(--ink-soft);
    letter-spacing: 0.05em;
}

/* ============================================
   ANIMAÇÕES
   ============================================ */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVO
   ============================================ */
@media (max-width: 720px) {
    .nav-links {
        gap: 1.2rem;
    }

    .nav-links a {
        font-size: 0.72rem;
        letter-spacing: 0.12em;
    }

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

    .gallery-item--tall {
        grid-row: span 1;
    }

    .item {
        flex-wrap: wrap;
    }

    .category-heading {
        gap: 0.8rem;
    }

    .marquee-track {
        font-size: 0.95rem;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .nav-name {
        display: none;
    }

    .nav-brand {
        font-size: 1rem;
    }

    .hero-sub {
        font-size: 0.98rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .hero-ornament, .marquee-track {
        animation: none;
    }
}
