/**
 * THEME.CSS - Arquivo Central de Cores e Estilos Globais
 * HeyPedidos Site
 * 
 * Este arquivo centraliza TODAS as variáveis de cores, fontes e estilos globais.
 * Altere as cores aqui para refletir em todo o site automaticamente.
 * 
 * Estilo WordPress: todas as configurações visuais em um único lugar.
 */

/* ============================================================================
   VARIÁVEIS DE CORES PRINCIPAIS
   ============================================================================ */

:root {
    /* --- Cores Primárias (Marca) --- */
    --primary-50: #F3F4F6;
    --primary-100: #E5E7EB;
    --primary-200: #D1D5DB;
    --primary-300: #9CA3AF;
    --primary-400: #6B7280;
    --primary-500: #4B5563;
    --primary-600: #6610f2;      /* COR PRINCIPAL - Roxo */
    --primary-700: #5a0fd8;
    --primary-800: #4e0ebe;
    --primary-900: #420ba4;

    /* --- Cores de Sucesso --- */
    --success-main: #45B369;
    --success-surface: #DAF0E1;
    --success-border: #B5E1C3;
    --success-hover: #009F5E;
    --success-pressed: #006038;
    --success-focus: rgba(69, 179, 105, 0.1490196078);

    /* --- Cores de Informação --- */
    --info-main: #144BD6;
    --info-surface: #E7EEFC;
    --info-border: #AECAFC;
    --info-hover: #0A51CE;
    --info-pressed: #06307C;
    --info-focus: rgba(20, 75, 214, 0.1490196078);

    /* --- Cores de Aviso --- */
    --warning-main: #FF9F29;
    --warning-surface: #FFF9E2;
    --warning-border: #FFEBA6;
    --warning-hover: #D69705;
    --warning-pressed: #C28800;
    --warning-focus: rgba(255, 159, 41, 0.1490196078);

    /* --- Cores de Perigo --- */
    --danger-main: #EF4A00;
    --danger-surface: #FCDAE2;
    --danger-border: #F9B5C6;
    --danger-hover: #D53128;
    --danger-pressed: #801D18;
    --danger-focus: rgba(239, 71, 112, 0.1490196078);

    /* --- Cores Adicionais --- */
    --cyan: #00B8F2;
    --indigo: #7F27FF;
    --purple: #8252E9;
    --red: #E30A0A;
    --yellow: #F4941E;
    --orange: #F86624;
    --pink: #DE3ACE;

    /* --- Cores com Transparência --- */
    --primary-light: rgba(102, 16, 242, 0.15);
    --yellow-light: rgba(255, 159, 41, 0.15);
    --purple-light: rgba(130, 82, 233, 0.15);
    --pink-light: rgba(250, 54, 230, 0.15);

    /* --- Cores Neutras --- */
    --neutral-50: #F9FAFB;
    --neutral-100: #F3F4F6;
    --neutral-200: #E5E7EB;
    --neutral-300: #D1D5DB;
    --neutral-400: #9CA3AF;
    --neutral-500: #6B7280;
    --neutral-600: #4B5563;
    --neutral-700: #374151;
    --neutral-800: #1F2937;
    --neutral-900: #111827;

    /* --- Cores de Texto --- */
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --text-tertiary: #9CA3AF;
    --text-disabled: #D1D5DB;
    --text-inverse: #FFFFFF;

    /* --- Cores de Fundo --- */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --bg-tertiary: #F3F4F6;
    --bg-dark: #1F2937;

    /* --- Cores de Borda --- */
    --border-light: #E5E7EB;
    --border-medium: #D1D5DB;
    --border-dark: #9CA3AF;

    /* --- Cores de Sombra --- */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* --- Cores Específicas do Site --- */
    --brand: var(--primary-600);
    --button-secondary: var(--primary-50);
    --base: #fff;
    --black: var(--dark-2);
    --white: var(--base);
    --bg-color: var(--neutral-50);
    --text-primary-light: var(--neutral-900);
    --text-secondary-light: var(--neutral-600);
    --text-secondary-dark: var(--neutral-300);
    --input-form-light: var(--neutral-300);
    --input-form-dark: var(--neutral-500);
    --input-bg: var(--neutral-50);
    --input-stroke: var(--neutral-300);
    --border-color: #d1d5db80;
}

/* ============================================================================
   VARIÁVEIS DE TIPOGRAFIA
   ============================================================================ */

:root {
    /* --- Fontes --- */
    --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-family-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-family-mono: 'Courier New', Courier, monospace;

    /* --- Tamanhos de Fonte --- */
    --font-size-xs: 0.75rem;      /* 12px */
    --font-size-sm: 0.875rem;     /* 14px */
    --font-size-base: 1rem;       /* 16px */
    --font-size-lg: 1.125rem;     /* 18px */
    --font-size-xl: 1.25rem;      /* 20px */
    --font-size-2xl: 1.5rem;      /* 24px */
    --font-size-3xl: 1.875rem;    /* 30px */
    --font-size-4xl: 2.25rem;     /* 36px */
    --font-size-5xl: 3rem;        /* 48px */

    /* --- Alturas de Linha --- */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;

    /* --- Pesos de Fonte --- */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    /* --- Espaçamento de Letras --- */
    --letter-spacing-tight: -0.025em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.025em;
    --letter-spacing-wider: 0.05em;
    --letter-spacing-widest: 0.1em;
}

/* ============================================================================
   VARIÁVEIS DE ESPAÇAMENTO
   ============================================================================ */

:root {
    /* --- Espaçamento Base --- */
    --spacing-0: 0;
    --spacing-1: 0.25rem;   /* 4px */
    --spacing-2: 0.5rem;    /* 8px */
    --spacing-3: 0.75rem;   /* 12px */
    --spacing-4: 1rem;      /* 16px */
    --spacing-5: 1.25rem;   /* 20px */
    --spacing-6: 1.5rem;    /* 24px */
    --spacing-8: 2rem;      /* 32px */
    --spacing-10: 2.5rem;   /* 40px */
    --spacing-12: 3rem;     /* 48px */
    --spacing-16: 4rem;     /* 64px */
    --spacing-20: 5rem;     /* 80px */
    --spacing-24: 6rem;     /* 96px */

    /* --- Border Radius --- */
    --radius-none: 0;
    --radius-sm: 0.125rem;   /* 2px */
    --radius: 0.25rem;       /* 4px */
    --radius-md: 0.375rem;   /* 6px */
    --radius-lg: 0.5rem;     /* 8px */
    --radius-xl: 0.75rem;    /* 12px */
    --radius-2xl: 1rem;      /* 16px */
    --radius-3xl: 1.5rem;    /* 24px */
    --radius-full: 9999px;

    /* --- Tamanhos de Container --- */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1536px;
}

/* ============================================================================
   VARIÁVEIS DE ANIMAÇÃO
   ============================================================================ */

:root {
    /* --- Durações --- */
    --duration-fast: 150ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;

    /* --- Easing --- */
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================================
   VARIÁVEIS DE Z-INDEX
   ============================================================================ */

:root {
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ============================================================================
   RESET E BASE
   ============================================================================ */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

/* ============================================================================
   CLASSES UTILITÁRIAS DE CORES
   ============================================================================ */

/* Text Colors */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-inverse { color: var(--text-inverse); }
.text-brand { color: var(--brand); }
.text-success { color: var(--success-main); }
.text-info { color: var(--info-main); }
.text-warning { color: var(--warning-main); }
.text-danger { color: var(--danger-main); }

/* Background Colors */
.bg-primary { background-color: var(--bg-primary); }
.bg-secondary { background-color: var(--bg-secondary); }
.bg-tertiary { background-color: var(--bg-tertiary); }
.bg-brand { background-color: var(--brand); }
.bg-success { background-color: var(--success-main); }
.bg-info { background-color: var(--info-main); }
.bg-warning { background-color: var(--warning-main); }
.bg-danger { background-color: var(--danger-main); }

/* ============================================================================
   CLASSES UTILITÁRIAS DE TIPOGRAFIA
   ============================================================================ */

.font-light { font-weight: var(--font-weight-light); }
.font-normal { font-weight: var(--font-weight-normal); }
.font-medium { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold { font-weight: var(--font-weight-bold); }
.font-extrabold { font-weight: var(--font-weight-extrabold); }

.text-xs { font-size: var(--font-size-xs); }
.text-sm { font-size: var(--font-size-sm); }
.text-base { font-size: var(--font-size-base); }
.text-lg { font-size: var(--font-size-lg); }
.text-xl { font-size: var(--font-size-xl); }
.text-2xl { font-size: var(--font-size-2xl); }
.text-3xl { font-size: var(--font-size-3xl); }
.text-4xl { font-size: var(--font-size-4xl); }

.leading-tight { line-height: var(--line-height-tight); }
.leading-normal { line-height: var(--line-height-normal); }
.leading-relaxed { line-height: var(--line-height-relaxed); }

/* ============================================================================
   CLASSES UTILITÁRIAS DE ESPAÇAMENTO
   ============================================================================ */

.m-0 { margin: var(--spacing-0); }
.m-1 { margin: var(--spacing-1); }
.m-2 { margin: var(--spacing-2); }
.m-3 { margin: var(--spacing-3); }
.m-4 { margin: var(--spacing-4); }
.m-5 { margin: var(--spacing-5); }
.m-6 { margin: var(--spacing-6); }
.m-8 { margin: var(--spacing-8); }

.p-0 { padding: var(--spacing-0); }
.p-1 { padding: var(--spacing-1); }
.p-2 { padding: var(--spacing-2); }
.p-3 { padding: var(--spacing-3); }
.p-4 { padding: var(--spacing-4); }
.p-5 { padding: var(--spacing-5); }
.p-6 { padding: var(--spacing-6); }
.p-8 { padding: var(--spacing-8); }

/* ============================================================================
   CLASSES UTILITÁRIAS DE BORDA
   ============================================================================ */

.rounded-none { border-radius: var(--radius-none); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded { border-radius: var(--radius); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-3xl { border-radius: var(--radius-3xl); }
.rounded-full { border-radius: var(--radius-full); }

/* ============================================================================
   CLASSES UTILITÁRIAS DE SOMBRA
   ============================================================================ */

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* ============================================================================
   CLASSES UTILITÁRIAS DE DISPLAY
   ============================================================================ */

.d-none { display: none; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }

.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }

.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }

.align-start { align-items: flex-start; }
.align-center { align-items: center; }
.align-end { align-items: flex-end; }
.align-stretch { align-items: stretch; }

/* ============================================================================
   CLASSES UTILITÁRIAS DE POSIÇÃO
   ============================================================================ */

.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }
.position-sticky { position: sticky; }

/* ============================================================================
   CLASSES UTILITÁRIAS DE VISIBILIDADE
   ============================================================================ */

.visible { visibility: visible; }
.invisible { visibility: hidden; }

/* ============================================================================
   MEDIA QUERIES - BREAKPOINTS
   ============================================================================ */

/* Mobile First Approach */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    :root {
        --font-size-base: 1rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    :root {
        --font-size-base: 1rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    :root {
        --font-size-base: 1rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    :root {
        --font-size-base: 1rem;
    }
}

/* ============================================================================
   MODO ESCURO (Opcional - Preparado para implementação futura)
   ============================================================================ */

@media (prefers-color-scheme: dark) {
    /* Descomente para ativar modo escuro automático
    :root {
        --text-primary: #F9FAFB;
        --text-secondary: #D1D5DB;
        --bg-primary: #1F2937;
        --bg-secondary: #111827;
        --bg-tertiary: #374151;
        --border-light: #374151;
        --border-medium: #4B5563;
        --border-dark: #6B7280;
    }
    */
}

/* ============================================================================
   BANNER SLIDER - Estilos do banner do restaurante
   ============================================================================ */

.bn-wrap {
    width: 100%;
    max-height: 400px;
    position: relative;
    overflow: hidden;
    font-family: var(--font-sans, sans-serif);
    margin-top: 70px;
    margin-bottom: 50px;
}    
.bn-track {
    display: flex;
    height: 400px;
    transition: transform 0.7s cubic-bezier(0.77, 0, 0.18, 1);
}

.bn-slide {
    min-width: 100%;
    height: 400px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    overflow: hidden;
}

.bn-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 40px 48px 172px;
    z-index: 2;
    position: relative;
}

.bn-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    width: fit-content;
}

.bn-title {
    font-size: 48px;
    font-family: var(--font-family-base);
    font-weight: 700;
    line-height: 1;

}

.bn-sub {
font-size: 19px;
    font-family: var(--font-family-base);
    line-height: 1;
    margin-bottom: 16px;
    /* opacity: 0.85; */
    /* letter-spacing: -0.01em; */
    margin-top: 12px;
}

.bn-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.bn-btn-p {
    padding: 11px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.15s, opacity 0.15s;
    text-decoration: none;
    display: inline-block;
}

.bn-btn-p:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    text-decoration: none;
}

.bn-btn-s {
    padding: 11px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid;
    transition: transform 0.15s, opacity 0.15s;
    background: transparent;
    text-decoration: none;
    display: inline-block;
}

.bn-btn-s:hover {
    opacity: 0.75;
    transform: translateY(-1px);
    text-decoration: none;
}

.bn-right {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bn-right svg {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

.bn-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.bn-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0.5;
}

.bn-dot.active {
    width: 24px;
    border-radius: 4px;
    opacity: 1;
}

.bn-arr {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    z-index: 10;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 18px;
    transition: background 0.2s;
}

.bn-arr:hover {
    background: rgba(255, 255, 255, 0.32);
}

.bn-prev {
    left: 14px;
    font-size: 27px;
    color: #ffffff6b;
}

.bn-next {
    right: 14px;
    font-size: 27px;
    color: #ffffff6b;
}

@media (max-width: 560px) {
    .bn-slide {
        grid-template-columns: 1fr;
    }
    .bn-right {
        display: none;
    }
    .bn-left {
        padding: 36px 28px;
    }
    .bn-track,
    .bn-slide,
    .bn-wrap {
        height: 320px;
        max-height: 320px;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes steam {
    0% {
        opacity: 0;
        transform: translateY(0) scaleX(1);
    }
    40% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
        transform: translateY(-28px) scaleX(1.4);
    }
}

@keyframes sizzle {
    0%, 100% {
        transform: scaleX(1);
    }
    50% {
        transform: scaleX(1.08);
    }
}

@keyframes blink-flame {
    0%, 100% {
        opacity: 1;
        transform: scaleY(1);
    }
    50% {
        opacity: 0.8;
        transform: scaleY(0.92);
    }
}

@keyframes drop1 {
    0% {
        opacity: 0;
        transform: translate(0, 0) rotate(-20deg);
    }
    60% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(6px, 18px) rotate(-20deg);
    }
}

@keyframes drop2 {
    0% {
        opacity: 0;
        transform: translate(0, 0) rotate(15deg);
    }
    60% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(-5px, 16px) rotate(15deg);
    }
}

@keyframes pulse-ring {
    0% {
        r: 38;
        opacity: 0.4;
    }
    100% {
        r: 54;
        opacity: 0;
    }
}

/* ============================================================================
   BANNER SLIDER - Estilos específicos por slide
   ============================================================================ */

/* Slide 1 - Burger */
.bn-slide-1 {
    /* Background removido para permitir estilo inline dinâmico */
}
.bn-slide-1 .bn-right {
    /* Background removido para permitir estilo inline dinâmico */
}
.bn-slide-1 .bn-badge {
    background: rgba(239, 159, 39, 0.18);
    color: #EF9F27;
}
.bn-slide-1 .bn-title {
    color: #fff;
}
.bn-slide-1 .bn-sub {
    color: #f5d9b2;
}
/* Cores dos botões removidas - agora são dinâmicas via inline styles */
.bn-slide-1 .bn-dot {
    background: #EF9F27;
}

/* ============================================================================
   BANNER SLIDER - Animações SVG
   ============================================================================ */

.svg-float {
    animation: float 3.2s ease-in-out infinite;
}

.svg-float-delay-1 {
    animation: float 3.6s ease-in-out infinite 0.3s;
}

.svg-float-delay-2 {
    animation: float 4s ease-in-out infinite 0.2s;
}

.svg-float-delay-3 {
    animation: float 3.8s ease-in-out infinite 0.5s;
}

.svg-float-small {
    animation: float 3s ease-in-out infinite;
}

.svg-float-small-1 {
    animation: float 2.8s ease-in-out infinite 0.5s;
}

.svg-float-small-2 {
    animation: float 4s ease-in-out infinite 1s;
}

.svg-float-small-3 {
    animation: float 3.5s ease-in-out infinite 1.5s;
}

.svg-steam {
    animation: steam 1.4s ease-out infinite;
}

.svg-steam-delay-1 {
    animation: steam 1.4s ease-out infinite 0.4s;
}

.svg-steam-delay-2 {
    animation: steam 1.4s ease-out infinite 0.8s;
}

.svg-steam-long {
    animation: steam 2s ease-out infinite;
}

.svg-steam-long-1 {
    animation: steam 2s ease-out infinite 0.7s;
}

.svg-steam-long-2 {
    animation: steam 2s ease-out infinite 1.4s;
}

.svg-pulse-ring {
    animation: pulse-ring 2.2s ease-out infinite;
}

.svg-blink-flame {
    animation: blink-flame 1.2s ease-in-out infinite;
}
