/* ==========================================================
   MEGA ESPETARIA
   HOME PÚBLICA
   ==========================================================
   Identidade visual:
   - Preto / carvão
   - Vermelho brasa
   - Dourado
   - Creme

   Regras:
   - Tema claro e escuro
   - Cabeçalho sempre preto
   - Responsivo
   - background.jpg como imagem oficial de fundo
   ========================================================== */


/* ==========================================================
   VARIÁVEIS - TEMA CLARO
   ========================================================== */

:root {
    --brand-primary: #c52424;
    --brand-primary-hover: #df3030;

    --brand-secondary: #18120f;

    --brand-accent: #f3b232;
    --brand-accent-hover: #ffc344;

    --page-background: #fff8ef;
    --surface: #ffffff;
    --surface-secondary: #f7ede3;

    --text: #241915;
    --text-soft: #735e54;

    --line: #ead4c2;

    --header: #090807;
    --header-text: #ffffff;

    --footer: #090807;

    --radius: 18px;

    color-scheme: light;
}


/* ==========================================================
   VARIÁVEIS - TEMA ESCURO
   ========================================================== */

html[data-theme="dark"] {
    --page-background: #100d0b;
    --surface: #1c1714;
    --surface-secondary: #261e1a;

    --text: #fff5e9;
    --text-soft: #c9b6a8;

    --line: #45362d;

    color-scheme: dark;
}


/* ==========================================================
   RESET
   ========================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: var(--page-background);
    color: var(--text);

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    font-size: 16px;

    transition:
        background-color 0.25s ease,
        color 0.25s ease;
}

img {
    max-width: 100%;
}

a {
    text-decoration: none;
}


/* ==========================================================
   CABEÇALHO
   Sempre preto, independente do tema.
   ========================================================== */

.site-header {
    position: sticky;

    top: 0;

    z-index: 1000;

    width: 100%;

    background: #090807;

    border-bottom:
        1px solid rgba(243, 178, 50, 0.22);

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.30);
}

.header-container {
    width: min(1180px, calc(100% - 40px));

    min-height: 80px;

    margin: 0 auto;

    display: flex;
    align-items: center;

    gap: 30px;
}


/* ==========================================================
   LOGO / MARCA
   ========================================================== */

.brand {
    display: flex;
    align-items: center;

    gap: 14px;

    margin-right: auto;

    color: #ffffff;
}

.brand:hover {
    color: #ffffff;
}

.brand img {
    display: block;

    width: 58px;
    height: 58px;

    object-fit: contain;
}

.brand strong {
    color: #ffffff;

    font-size: 17px;
    font-weight: 900;

    letter-spacing: 0.04em;

    white-space: nowrap;
}


/* ==========================================================
   NAVEGAÇÃO
   ========================================================== */

.main-navigation {
    display: flex;
    align-items: center;

    gap: 28px;
}

.main-navigation a {
    position: relative;

    color: #d9cec5;

    font-size: 14px;
    font-weight: 750;

    transition: color 0.2s ease;
}

.main-navigation a:hover {
    color: var(--brand-accent);
}

.main-navigation a::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -8px;

    height: 2px;

    background: var(--brand-accent);

    transform: scaleX(0);

    transition: transform 0.2s ease;
}

.main-navigation a:hover::after {
    transform: scaleX(1);
}


/* ==========================================================
   AÇÕES DO CABEÇALHO
   ========================================================== */

.header-actions {
    display: flex;
    align-items: center;

    gap: 10px;
}


/* Botão de tema */

.theme-toggle {
    width: 46px;
    height: 46px;

    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid rgba(243, 178, 50, 0.35);

    border-radius: 12px;

    background: #18120f;

    color: #ffffff;

    cursor: pointer;

    font-size: 19px;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.theme-toggle:hover {
    background: #241b16;

    border-color: var(--brand-accent);

    transform: translateY(-1px);
}


/* Botão pedir */

.header-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding: 0 20px;

    border-radius: 12px;

    background: var(--brand-primary);

    color: #ffffff;

    font-size: 14px;
    font-weight: 850;

    box-shadow:
        0 8px 24px rgba(197, 36, 36, 0.20);

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.header-order:hover {
    background: var(--brand-primary-hover);

    color: #ffffff;

    transform: translateY(-1px);
}


/* Área da equipe */

.team-access {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding: 0 18px;

    border:
        1px solid rgba(243, 178, 50, 0.35);

    border-radius: 12px;

    background: transparent;

    color: #ffffff;

    font-size: 14px;
    font-weight: 750;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.team-access:hover {
    background:
        rgba(243, 178, 50, 0.10);

    border-color: var(--brand-accent);

    color: var(--brand-accent);
}


/* ==========================================================
   HERO
   Usa obrigatoriamente imagens/background.jpg
   ========================================================== */

.hero {
    position: relative;

    min-height: 620px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        url("../../imagens/background.jpg")
        center center / cover
        no-repeat;

    color: #ffffff;
}

.hero-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(8, 5, 4, 0.96) 0%,
            rgba(8, 5, 4, 0.82) 38%,
            rgba(8, 5, 4, 0.42) 68%,
            rgba(8, 5, 4, 0.20) 100%
        );
}

.hero-content {
    position: relative;

    z-index: 2;

    width: min(1180px, calc(100% - 40px));

    margin: 0 auto;

    padding:
        80px 0
        70px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-eyebrow {
    color: var(--brand-accent);

    font-size: 13px;
    font-weight: 900;

    letter-spacing: 0.13em;
}

.hero h1 {
    max-width: 720px;

    margin:
        24px 0
        20px;

    color: #ffffff;

    font-size:
        clamp(3.4rem, 6vw, 6rem);

    line-height: 0.94;

    letter-spacing: -0.055em;

    font-weight: 950;
}

.hero-description {
    max-width: 620px;

    margin: 0;

    color: #f5dfd1;

    font-size: 18px;

    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 30px;
}


/* ==========================================================
   BOTÕES GERAIS
   ========================================================== */

.button {
    min-height: 54px;

    padding: 0 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 14px;

    border-radius: 12px;

    font-size: 14px;
    font-weight: 900;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--brand-primary);

    color: #ffffff;
}

.button-primary:hover {
    background: var(--brand-primary-hover);

    color: #ffffff;
}

.button-secondary {
    border:
        1px solid rgba(255, 255, 255, 0.60);

    background:
        rgba(0, 0, 0, 0.15);

    color: #ffffff;
}

.button-secondary:hover {
    border-color: #ffffff;

    background:
        rgba(255, 255, 255, 0.08);

    color: #ffffff;
}

.button-gold {
    background: var(--brand-accent);

    color: #24130a;
}

.button-gold:hover {
    background: var(--brand-accent-hover);

    color: #24130a;
}


/* ==========================================================
   BENEFÍCIOS DO HERO
   ========================================================== */

.hero-benefits {
    display: flex;
    flex-wrap: wrap;

    gap: 28px;

    margin-top: 38px;

    color: #ffffff;

    font-size: 14px;
    font-weight: 750;
}


/* ==========================================================
   PEDIDO RÁPIDO
   ========================================================== */

.quick-order {
    background: var(--brand-primary);

    color: #ffffff;
}

.quick-order-content {
    width: min(1180px, calc(100% - 40px));

    min-height: 180px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;
}

.quick-order h2 {
    margin:
        12px 0
        8px;

    color: #ffffff;

    font-size:
        clamp(1.8rem, 3vw, 2.5rem);
}

.quick-order p {
    margin: 0;

    color:
        rgba(255, 255, 255, 0.90);

    line-height: 1.6;
}

.quick-order .section-eyebrow {
    color: #ffb7a9;
}

.quick-button {
    flex-shrink: 0;

    background: #ffffff;

    color: var(--brand-primary);
}

.quick-button:hover {
    background: var(--brand-accent);

    color: #24130a;
}


/* ==========================================================
   SEÇÕES
   ========================================================== */

.content-section {
    width: min(1180px, calc(100% - 40px));

    margin: 0 auto;

    padding:
        76px 0;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 34px;
}

.section-eyebrow {
    display: block;

    margin-bottom: 10px;

    color: var(--brand-primary);

    font-size: 12px;
    font-weight: 900;

    letter-spacing: 0.14em;
}

.section-heading h2 {
    margin: 0;

    color: var(--text);

    font-size:
        clamp(2rem, 4vw, 3.3rem);

    line-height: 1.05;

    letter-spacing: -0.04em;
}

.section-heading p {
    max-width: 620px;

    margin:
        10px 0
        0;

    color: var(--text-soft);

    line-height: 1.6;
}

.section-link {
    flex-shrink: 0;

    color: var(--brand-primary);

    font-weight: 850;
}

.section-link:hover {
    color: var(--brand-primary-hover);
}


/* ==========================================================
   CARDS
   ========================================================== */

.cards-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(260px, 1fr)
        );

    gap: 20px;
}

.content-card {
    position: relative;

    min-height: 260px;

    padding: 28px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    overflow: hidden;

    border:
        1px solid var(--line);

    border-radius: var(--radius);

    background: var(--surface);

    box-shadow:
        0 15px 40px rgba(54, 24, 10, 0.06);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.content-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 4px;

    background:
        linear-gradient(
            90deg,
            var(--brand-primary),
            var(--brand-accent)
        );
}

.content-card:hover {
    transform: translateY(-4px);

    border-color:
        color-mix(
            in srgb,
            var(--brand-primary) 35%,
            var(--line)
        );

    box-shadow:
        0 20px 45px rgba(54, 24, 10, 0.10);
}

.card-icon {
    display: block;

    margin-bottom: 18px;

    font-size: 27px;
}

.content-card h3 {
    margin:
        0 0
        10px;

    color: var(--text);

    font-size: 20px;

    line-height: 1.25;
}

.content-card p {
    margin:
        0 0
        20px;

    color: var(--text-soft);

    line-height: 1.6;
}

.card-link {
    margin-top: auto;

    color: var(--brand-primary);

    font-size: 14px;
    font-weight: 900;
}

.card-link:hover {
    color: var(--brand-primary-hover);
}

.favorite-label,
.promotion-badge {
    margin-bottom: 18px;

    color: var(--brand-accent);

    font-size: 11px;
    font-weight: 900;

    letter-spacing: 0.10em;

    text-transform: uppercase;
}


/* ==========================================================
   CARDÁPIO VAZIO
   ========================================================== */

.empty-card {
    padding: 50px;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 14px;

    border:
        1px dashed var(--line);

    border-radius: var(--radius);

    background: var(--surface);

    text-align: center;
}

.empty-card span {
    font-size: 34px;
}

.empty-card strong {
    font-size: 20px;
}

.empty-card a {
    color: var(--brand-primary);

    font-weight: 850;
}


/* ==========================================================
   EXPERIÊNCIA MEGA
   ========================================================== */

.experience-section {
    position: relative;

    padding:
        90px 0;

    overflow: hidden;

    background:
        #100d0b;

    color: #ffffff;
}

.experience-section::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(10, 7, 5, 0.96),
            rgba(10, 7, 5, 0.88)
        ),
        url("../../imagens/background.jpg")
        center center / cover
        no-repeat;

    opacity: 0.25;

    pointer-events: none;
}

.experience-container {
    position: relative;

    z-index: 2;

    width: min(1180px, calc(100% - 40px));

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        minmax(0, 0.9fr)
        minmax(0, 1.1fr);

    gap: 70px;

    align-items: center;
}

.experience-copy h2 {
    max-width: 620px;

    margin:
        12px 0
        20px;

    color: #ffffff;

    font-size:
        clamp(2.6rem, 5vw, 4.5rem);

    line-height: 1;

    letter-spacing: -0.05em;
}

.experience-copy p {
    max-width: 560px;

    margin: 0;

    color: #d8c6b9;

    font-size: 17px;

    line-height: 1.7;
}

.experience-items {
    display: grid;

    gap: 14px;
}

.experience-items article {
    min-height: 120px;

    padding: 24px;

    display: flex;
    align-items: center;

    gap: 20px;

    border:
        1px solid rgba(243, 178, 50, 0.20);

    border-radius: 16px;

    background:
        rgba(255, 255, 255, 0.045);

    backdrop-filter: blur(8px);
}

.experience-icon {
    width: 54px;
    height: 54px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background:
        rgba(243, 178, 50, 0.10);

    font-size: 25px;
}

.experience-items strong {
    display: block;

    margin-bottom: 6px;

    color: #ffffff;

    font-size: 17px;
}

.experience-items p {
    margin: 0;

    color: #cdbbad;

    line-height: 1.5;
}


/* ==========================================================
   CHAMADA FINAL
   ========================================================== */

.final-cta {
    padding:
        75px 20px;

    background: var(--brand-primary);

    color: #ffffff;

    text-align: center;
}

.final-cta-content {
    max-width: 780px;

    margin: 0 auto;
}

.final-cta .section-eyebrow {
    color: #ffd19b;
}

.final-cta h2 {
    margin:
        10px 0
        12px;

    color: #ffffff;

    font-size:
        clamp(2.5rem, 5vw, 4rem);

    line-height: 1;
}

.final-cta p {
    margin:
        0 0
        28px;

    color:
        rgba(255, 255, 255, 0.90);

    font-size: 17px;
}


/* ==========================================================
   RODAPÉ
   ========================================================== */

.site-footer {
    padding:
        54px 0
        20px;

    background: #090807;

    color: #ffffff;
}

.footer-container {
    width: min(1180px, calc(100% - 40px));

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;

    gap: 16px;
}

.footer-brand img {
    width: 68px;
    height: 68px;

    object-fit: contain;
}

.footer-brand strong {
    display: block;

    color: #ffffff;

    font-size: 17px;
}

.footer-brand p {
    margin:
        5px 0
        0;

    color: #bba99d;

    font-size: 13px;
}

.footer-links {
    display: flex;

    gap: 24px;
}

.footer-links a {
    color: #ffffff;

    font-size: 14px;
    font-weight: 750;
}

.footer-links a:hover {
    color: var(--brand-accent);
}

.footer-bottom {
    width: min(1180px, calc(100% - 40px));

    margin:
        30px auto
        0;

    padding-top: 22px;

    display: flex;
    justify-content: space-between;

    gap: 20px;

    border-top:
        1px solid rgba(255, 255, 255, 0.10);

    color: #9f8d82;

    font-size: 12px;
}


/* ==========================================================
   RESPONSIVIDADE - TABLET
   ========================================================== */

@media (max-width: 900px) {

    .header-container {
        width:
            min(100% - 28px, 1180px);

        min-height: 72px;

        gap: 12px;
    }

    .brand img {
        width: 52px;
        height: 52px;
    }

    .brand strong {
        font-size: 15px;
    }

    .main-navigation {
        display: none;
    }

    .hero {
        min-height: 560px;
    }

    .hero-content {
        width:
            min(100% - 40px, 1180px);

        padding:
            70px 0
            60px;
    }

    .hero h1 {
        max-width: 650px;
    }

    .quick-order-content {
        padding:
            36px 0;

        flex-direction: column;
        align-items: flex-start;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .experience-container {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .footer-container,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* ==========================================================
   RESPONSIVIDADE - CELULAR
   ========================================================== */

@media (max-width: 600px) {

    .header-container {
        min-height: 68px;
    }

    .brand {
        gap: 8px;
    }

    .brand img {
        width: 48px;
        height: 48px;
    }

    .brand strong {
        display: none;
    }

    .team-access {
        display: none;
    }

    .theme-toggle {
        width: 42px;
        height: 42px;

        border-radius: 10px;
    }

    .header-order {
        min-height: 42px;

        padding: 0 15px;

        border-radius: 10px;
    }

    .hero {
        min-height: 570px;

        background-position: center center;
    }

    .hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(8, 5, 4, 0.94),
                rgba(8, 5, 4, 0.68)
            );
    }

    .hero-content {
        width:
            calc(100% - 32px);

        padding:
            60px 0
            50px;
    }

    .hero h1 {
        font-size:
            clamp(3rem, 14vw, 4.5rem);
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-actions {
        width: 100%;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-benefits {
        gap: 15px;

        font-size: 12px;
    }

    .quick-order-content,
    .content-section,
    .experience-container {
        width:
            calc(100% - 32px);
    }

    .content-section {
        padding:
            55px 0;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .content-card {
        min-height: 230px;
    }

    .experience-section {
        padding:
            65px 0;
    }

    .experience-items article {
        align-items: flex-start;
    }

    .final-cta {
        padding:
            60px 20px;
    }

    .footer-container,
    .footer-bottom {
        width:
            calc(100% - 32px);
    }

    .footer-links {
        flex-direction: column;

        gap: 10px;
    }
}