/* ==========================================================================
   Burguer & Cia — Main Stylesheet
   Paleta: Verde musgo escuro + Creme quente + Laranja queimado
   ========================================================================== */

/* ------------------------------------------------------------------
   Design Tokens
------------------------------------------------------------------ */
:root {
    --green-deep:    hsl(152, 35%, 14%);   /* Verde musgo escuro (fundo header/footer) */
    --green-mid:     hsl(152, 28%, 22%);   /* Verde meio para seções */
    --green-accent:  hsl(152, 45%, 32%);   /* Verde botão outline */
    --cream:         hsl(42, 40%, 95%);    /* Fundo bege claro principal */
    --cream-dark:    hsl(38, 30%, 88%);    /* Bege um pouco mais escuro */
    --orange:        hsl(24, 90%, 52%);    /* Laranja queimado — destaque */
    --orange-hover:  hsl(24, 90%, 44%);
    --text-dark:     hsl(20, 15%, 12%);
    --text-mid:      hsl(20, 10%, 35%);
    --text-light:    hsl(42, 30%, 92%);
    --white:         #ffffff;
    --border:        hsl(38, 20%, 82%);
    --shadow-sm:     0 4px 16px rgba(0,0,0,.06);
    --shadow-md:     0 12px 40px rgba(0,0,0,.10);
    --shadow-lg:     0 24px 64px rgba(0,0,0,.16);
    --radius-sm:     8px;
    --radius-md:     16px;
    --radius-lg:     24px;
    --radius-full:   9999px;
    --header-h:      84px;
    --ease-smooth:   cubic-bezier(.22,1,.36,1);
    --dur-fast:      .18s;
    --dur-normal:    .35s;
    --dur-slow:      .6s;
    --font-head:     'Syne', sans-serif;
    --font-body:     'DM Sans', sans-serif;
    --container:     1160px;
}

/* ------------------------------------------------------------------
   Reset & Base
------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-body);
    background-color: var(--cream);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

.container {
    width: 90%;
    max-width: var(--container);
    margin-inline: auto;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ------------------------------------------------------------------
   Buttons
------------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-head);
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .8px;
    text-transform: uppercase;
    padding: .75rem 1.8rem;
    border-radius: var(--radius-full);
    transition: transform var(--dur-fast) var(--ease-smooth), box-shadow var(--dur-normal) var(--ease-smooth), background-color var(--dur-normal) var(--ease-smooth), border-color var(--dur-normal) var(--ease-smooth);
    white-space: nowrap;
}
.btn:active { transform: scale(.96); }

.btn-primary {
    background-color: var(--orange);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(220,100,20,.3);
}
.btn-primary:hover {
    background-color: var(--orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(220,100,20,.4);
}

.btn-outline-light {
    background: transparent;
    color: var(--text-light);
    border: 1.5px solid rgba(255,255,255,.4);
}
.btn-outline-light:hover {
    background: rgba(255,255,255,.1);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-ghost-dark {
    background: transparent;
    color: var(--text-dark);
    border: 1.5px solid var(--border);
}
.btn-ghost-dark:hover { background: var(--cream-dark); transform: translateY(-2px); }

/* ------------------------------------------------------------------
   Scroll Reveal
------------------------------------------------------------------ */
.js-enabled .fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s var(--ease-smooth), transform .7s var(--ease-smooth);
}
.js-enabled .fade-in.appear { opacity: 1; transform: translateY(0); }

/* ------------------------------------------------------------------
   Section Helpers
------------------------------------------------------------------ */
.section-eyebrow {
    font-family: var(--font-head);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 12px;
    display: block;
}
.section-eyebrow.light { color: rgba(255,255,255,.65); }

.section-title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-mid);
    max-width: 600px;
    line-height: 1.7;
}

.section-head { text-align: center; margin-bottom: 60px; }
.section-head .section-desc { margin-inline: auto; }

/* ------------------------------------------------------------------
   Header
------------------------------------------------------------------ */
.main-header {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    height: var(--header-h);
    z-index: 999;
    transition: height var(--dur-normal) var(--ease-smooth), background-color var(--dur-normal) var(--ease-smooth), box-shadow var(--dur-normal) var(--ease-smooth);
}

.main-header.scrolled {
    height: 66px;
    box-shadow: var(--shadow-md);
    background-color: var(--green-deep);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-inline: clamp(20px, 4vw, 40px);
    max-width: var(--container);
    margin-inline: auto;
}

/* Logo badge (circular, no wordmark — matches reference mark) */
.logo-badge-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.3);
    backdrop-filter: blur(6px);
    transition: transform var(--dur-fast) var(--ease-smooth);
}
.logo-badge-link:hover { transform: scale(1.06); }
.logo-badge-link--light { background: rgba(255,255,255,.06); }
.logo-badge .logo-icon { color: var(--cream); display: block; }

/* Nav — floating pill buttons like the reference header */
.nav-list {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-pill {
    font-family: var(--font-head);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .4px;
    color: var(--text-dark);
    background: rgba(255,255,255,.85);
    padding: .6rem 1.3rem;
    border-radius: var(--radius-full);
    display: inline-block;
    transition: transform var(--dur-fast) var(--ease-smooth), box-shadow var(--dur-normal) var(--ease-smooth), background-color var(--dur-normal) var(--ease-smooth);
    box-shadow: var(--shadow-sm);
}
.nav-pill--solid {
    background: var(--green-deep);
    color: var(--cream);
}
.nav-pill:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.nav-pill--active { background: var(--orange); color: var(--white); }

/* Mobile toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.bar {
    width: 22px; height: 2px;
    background-color: var(--cream);
    border-radius: 2px;
    transition: var(--dur-normal) var(--ease-smooth);
    display: block;
}

/* ------------------------------------------------------------------
   Hero — full-bleed photo with overlapping display type
------------------------------------------------------------------ */
.hero {
    position: relative;
    min-height: 92svh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center 70%;
    background-color: var(--green-deep);
    overflow: hidden;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(9,20,14,.55) 0%, rgba(9,20,14,.05) 38%, rgba(9,20,14,0) 55%, rgba(9,20,14,.15) 75%, rgba(9,20,14,.6) 100%);
    pointer-events: none;
}

.hero-title {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    font-family: var(--font-head);
    font-size: clamp(3.2rem, 10vw, 8rem);
    font-weight: 800;
    line-height: .92;
    letter-spacing: -3px;
    color: var(--cream);
    text-shadow: 0 4px 30px rgba(0,0,0,.35);
    padding-inline: clamp(24px, 6vw, 80px);
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(24px);
    animation: titleIn .8s var(--ease-smooth) forwards;
}
.title-line--a { animation-delay: .15s; }
.title-line--amp {
    color: var(--orange);
    font-size: .6em;
    text-align: right;
    animation-delay: .35s;
}
.title-line--b {
    text-align: right;
    animation-delay: .55s;
}

@keyframes titleIn {
    to { opacity: 1; transform: translateY(0); }
}

.hero-badge-float {
    position: absolute;
    z-index: 2;
    bottom: clamp(24px, 6vh, 64px);
    left: clamp(24px, 6vw, 80px);
    background-color: var(--orange);
    color: var(--white);
    border-radius: var(--radius-full);
    padding: 10px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    animation: titleIn .8s var(--ease-smooth) forwards;
    animation-delay: .8s;
}
.badge-num {
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
}
.badge-label {
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: .85;
}

/* Scroll hint */
.hero-scroll-hint {
    position: absolute;
    z-index: 2;
    bottom: 28px;
    right: clamp(24px, 6vw, 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,.55);
    font-size: .7rem;
    font-family: var(--font-head);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    animation: scrollBounce 2s ease-in-out infinite;
}
.hero-scroll-hint svg { width: 18px; height: 18px; }
@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(6px); }
}

/* ------------------------------------------------------------------
   Menu / Products Section — circular signature cards
------------------------------------------------------------------ */
.menu-section {
    padding: 110px 0;
    background-color: var(--cream);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 64px clamp(24px, 6vw, 90px);
    max-width: 780px;
    margin-inline: auto;
}

.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform var(--dur-normal) var(--ease-smooth);
}

.product-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background-color: var(--cream-dark);
}
.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease-smooth);
}
.product-img--flip { transform: scaleX(-1); }
.product-card:hover { transform: translateY(-6px); }
.product-card:hover .product-img { transform: scale(1.08); }
.product-card:hover .product-img--flip { transform: scale(1.08) scaleX(-1); }

.product-pill {
    margin-top: -22px;
    z-index: 2;
    background-color: var(--white);
    border: 1px solid var(--border);
    color: var(--text-dark);
    font-family: var(--font-head);
    font-size: .78rem;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.menu-cta { text-align: center; margin-top: 56px; }

/* ------------------------------------------------------------------
   Specialty Section (dark green rounded band)
------------------------------------------------------------------ */
.specialty-section {
    padding: 60px 0;
    background-color: var(--cream);
}

.specialty-inner {
    background-color: var(--green-deep);
    border-radius: var(--radius-lg);
    padding: clamp(40px, 6vw, 72px);
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    align-items: center;
    gap: 48px;
    position: relative;
    overflow: hidden;
}

.specialty-inner::before {
    content: '';
    position: absolute;
    top: -120px; right: -120px;
    width: 420px; height: 420px;
    background: radial-gradient(circle, hsla(152,45%,32%,.4) 0%, transparent 70%);
    pointer-events: none;
}

.specialty-title {
    font-family: var(--font-head);
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--cream);
    margin-bottom: 18px;
}

.specialty-desc {
    font-size: .98rem;
    color: rgba(255,255,255,.65);
    line-height: 1.75;
    margin-bottom: 30px;
    max-width: 420px;
}

.specialty-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.specialty-img-frame {
    width: min(100%, 260px);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 6px solid rgba(255,255,255,.08);
}
.specialty-img { width: 100%; height: 100%; object-fit: cover; }

.specialty-tag {
    position: absolute;
    left: -8px;
    bottom: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(4px);
    border-radius: var(--radius-md);
    padding: 10px 16px;
}
.specialty-tag span {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .4px;
    color: var(--cream);
}

/* ------------------------------------------------------------------
   About Section — organic blob frame + scattered tags
------------------------------------------------------------------ */
.about-section {
    padding: 110px 0;
    background-color: var(--cream);
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
}

.about-title {
    font-family: var(--font-head);
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.about-desc {
    font-size: .97rem;
    color: var(--text-mid);
    line-height: 1.75;
    margin-bottom: 16px;
}

.about-img-col { position: relative; }

.about-blob-frame {
    aspect-ratio: 4/5;
    max-width: 380px;
    margin-inline: auto;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border-radius: 58% 42% 51% 49% / 46% 55% 45% 54%;
    transition: border-radius 1.2s var(--ease-smooth);
}
.about-img-col:hover .about-blob-frame {
    border-radius: 46% 54% 42% 58% / 55% 46% 54% 45%;
}
.about-img { width: 100%; height: 100%; object-fit: cover; }

.about-tag {
    position: absolute;
    font-family: var(--font-head);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .3px;
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    white-space: nowrap;
}
.about-tag--1 { background: var(--green-accent); top: 10%; left: -2%; transform: rotate(-6deg); }
.about-tag--2 { background: var(--orange); top: 46%; right: -4%; transform: rotate(4deg); }
.about-tag--3 { background: var(--text-dark); bottom: 8%; left: 4%; transform: rotate(-3deg); }

/* ------------------------------------------------------------------
   Gallery / Instagram Section — polaroid collage
------------------------------------------------------------------ */
.gallery-section {
    padding: 90px 0 100px;
    background-color: var(--cream-dark);
    overflow: hidden;
}

.gallery-head {
    text-align: center;
    margin-bottom: 56px;
}

.gallery-title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -1px;
}

.polaroid-row {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 900px;
    margin-inline: auto;
}

.polaroid {
    background: var(--white);
    padding: 10px 10px 26px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    width: 21%;
    aspect-ratio: 4/5;
    position: relative;
    transition: transform var(--dur-normal) var(--ease-smooth), box-shadow var(--dur-normal) var(--ease-smooth);
    cursor: pointer;
}
.polaroid img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.polaroid:hover { transform: translateY(-10px) rotate(0deg) scale(1.06); box-shadow: var(--shadow-lg); z-index: 5; }

.polaroid--1 { transform: rotate(-7deg); margin-right: -3%; z-index: 1; }
.polaroid--2 { transform: rotate(4deg) translateY(-14px); margin-right: -3%; z-index: 2; }
.polaroid--3 { transform: rotate(-3deg) translateY(6px); margin-right: -3%; z-index: 3; }
.polaroid--4 { transform: rotate(6deg); z-index: 1; }

.gallery-cta { text-align: center; margin-top: 44px; }

/* ------------------------------------------------------------------
   Footer
------------------------------------------------------------------ */
.main-footer {
    background-color: var(--green-deep);
    color: var(--cream);
    padding-top: 56px;
    overflow: hidden;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    padding-bottom: 40px;
}

.footer-nav {
    display: flex;
    gap: 28px;
}
.footer-nav a {
    font-family: var(--font-head);
    font-size: .82rem;
    font-weight: 600;
    color: rgba(255,255,255,.7);
}
.footer-nav a:hover { color: var(--cream); }

.footer-contact {
    text-align: right;
    font-size: .82rem;
    color: rgba(255,255,255,.55);
    line-height: 1.6;
}

.footer-wordmark {
    font-family: var(--font-head);
    font-size: clamp(3.5rem, 12vw, 9rem);
    font-weight: 800;
    line-height: .95;
    letter-spacing: -3px;
    color: var(--cream);
    text-align: center;
    padding-inline: 20px;
    margin-top: 10px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-block: 24px;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,.1);
}

.footer-copy {
    font-size: .75rem;
    color: rgba(255,255,255,.3);
}

/* ------------------------------------------------------------------
   Responsive
------------------------------------------------------------------ */
@media (max-width: 900px) {
    .specialty-inner, .about-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .specialty-desc { margin-inline: auto; }
    .specialty-tag { position: static; margin: 20px auto 0; width: fit-content; flex-direction: row; }
    .about-img-col { order: -1; }
    .about-tag--1, .about-tag--2, .about-tag--3 { position: static; display: inline-block; margin: 6px; transform: none; }
    .about-img-col > .about-tag { display: none; }
    .footer-top { justify-content: center; text-align: center; }
    .footer-nav { flex-wrap: wrap; justify-content: center; gap: 15px 20px; }
    .footer-contact { text-align: center; }
}

@media (max-width: 700px) {
    .header-inner { padding-inline: 20px; }
    .primary-nav {
        position: fixed;
        inset: var(--header-h) 0 0 0;
        background-color: var(--green-deep);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform .4s var(--ease-smooth);
    }
    .primary-nav[data-visible="true"] { transform: translateX(0); }
    .nav-list { flex-direction: column; gap: 18px; }
    .nav-pill { font-size: 1rem; }
    .mobile-toggle { display: flex; }
    .products-grid { grid-template-columns: 1fr; gap: 24px; }
    .polaroid { width: 24%; }
    .polaroid--2, .polaroid--3 { transform: rotate(0deg); }
}

@media (max-width: 480px) {
    .footer-bottom { flex-direction: column; text-align: center; }
    .polaroid-row { flex-wrap: wrap; row-gap: 24px; }
    .polaroid { width: 40%; margin-right: 0 !important; }
}
