/* Tipografia Premium Institucional */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Roboto+Condensed:wght@400;700;900&display=swap');

:root {
    --oto-blue: #4dabff;
    --oto-blue-deep: #002D72;
    --bg-primary: #000f26;
    --bg-secondary: #001638;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --card-bg: rgba(255, 255, 255, 0.04);
    --border-color: rgba(255, 255, 255, 0.1);
}

html {
    overflow-x: hidden;
    width: 100%;
}

body.light-mode {
    --oto-blue: #002D72;
    --bg-primary: #ffffff;
    --bg-secondary: #f0f4f8;
    --text-main: #002D72;
    --text-muted: #4b5563;
    --card-bg: #ffffff;
    --border-color: rgba(0, 45, 114, 0.2);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-main);
    overflow-x: hidden;
    width: 100%;
    transition: background-color 0.5s ease, color 0.5s ease;
}

h1, h2, h3, h4, button, .nav-link {
    font-family: 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-style: normal !important;
    text-decoration: none !important;
}

/* Correção de Leitura no Modo Claro */
body.light-mode h1, body.light-mode h2, body.light-mode h3, body.light-mode h4, body.light-mode .text-white {
    color: var(--oto-blue-deep) !important;
}

body.light-mode p, body.light-mode .text-zinc-400, body.light-mode .text-muted, body.light-mode .opacity-80 {
    color: #1e293b !important;
    opacity: 1 !important;
}

.main-header {
    background-color: transparent;
    backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    z-index: 100;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, padding 0.3s ease;
}

.main-header.scrolled {
    background-color: rgba(0, 12, 31, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

/* Efeito Halo Brilhante Pulsante */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 5px rgba(77, 171, 255, 0.2), 0 0 10px rgba(77, 171, 255, 0.1);
    }

    50% {
        box-shadow: 0 0 20px rgba(77, 171, 255, 0.6), 0 0 35px rgba(77, 171, 255, 0.3);
    }

    100% {
        box-shadow: 0 0 5px rgba(77, 171, 255, 0.2), 0 0 10px rgba(77, 171, 255, 0.1);
    }
}

/* Botões com Correção de Hover solicitado */
.btn-action {
    background-color: var(--oto-blue);
    color: #000f26;
    font-weight: 900;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse-glow 2.5s infinite;
}

/* Dark Mode Hover Fix: Texto azul no fundo branco */
.btn-action:hover {
    background-color: #ffffff;
    color: var(--oto-blue-deep) !important;
    transform: translateY(-2px);
    animation: none;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.25);
}

/* Light Mode Hover Fix */
body.light-mode .btn-action {
    background-color: var(--oto-blue-deep) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(0, 45, 114, 0.3);
    animation: none;
}

body.light-mode .btn-action:hover {
    background-color: #001a4d !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* CTA: Responda Aqui */
.btn-responda-aqui {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 9999px;
    background: var(--oto-blue);
    color: var(--bg-primary);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 28px rgba(77, 171, 255, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
    text-decoration: none;
}
.btn-responda-aqui i {
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.btn-responda-aqui:hover,
.btn-responda-aqui:focus-visible {
    transform: translateY(-2px);
    background-color: #ffffff;
    color: var(--oto-blue-deep);
    box-shadow: 0 16px 36px rgba(77, 171, 255, 0.35);
}
.btn-responda-aqui:hover i,
.btn-responda-aqui:focus-visible i {
    transform: translateX(4px);
}
body.light-mode .btn-responda-aqui {
    background: var(--oto-blue-deep);
    color: #ffffff;
}
body.light-mode .btn-responda-aqui:hover,
body.light-mode .btn-responda-aqui:focus-visible {
    background: #001a4d;
    color: #ffffff;
}

/* FAQ Glow Accent */
.faq-glow {
    position: absolute;
    right: -6%;
    top: -40%;
    width: 520px;
    height: 520px;
    pointer-events: none;
    background: radial-gradient(60% 60% at 50% 50%, rgba(77, 171, 255, 0.25) 0%, rgba(77, 171, 255, 0.08) 45%, transparent 70%);
    filter: blur(8px);
    opacity: 0.5;
}
@media (max-width: 768px) {
    .faq-glow { width: 360px; height: 360px; right: -12%; top: -28%; }
}

/* Hero Slider */
.hero-slider-container {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease-in-out, visibility 1.5s;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.video-bg, .img-slide-bg {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-bg {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transform: none;
    object-fit: cover;
    object-position: 50% 15%;
}

.img-slide-bg {
    width: 100%;
    height: 100%;
    min-width: auto;
    min-height: auto;
    object-fit: cover;
    object-position: 50% 15%;
    transform: translate(-50%, -50%);
    background-color: var(--bg-primary);
}

@media (max-width: 768px) {
    .img-slide-bg {
        object-position: 50% 0%;
    }
    .video-bg {
        object-position: 50% 0%;
    }
    .hero--kv { height: auto; min-height: auto; overflow: visible !important; }
    .hero--kv .hero-slider-container { position: relative; }
    .hero--kv .hero-slide, .hero--kv .hero-slide.active { position: relative; opacity: 1; visibility: visible; }
    .hero-kv-mobile { position: static; top: auto; left: auto; transform: none; width: 100%; height: auto; max-width: 100%; margin: 0; min-width: auto; min-height: auto; object-fit: contain; object-position: center; }
}

.gradient-overlay {
    background: linear-gradient(0deg, var(--bg-primary) 0%, transparent 60%, var(--bg-primary) 100%),
        linear-gradient(90deg, var(--bg-primary) 0%, transparent 30%);
    z-index: 1;
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    color: white;
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.img-zoom-box {
    overflow: hidden;
    border-radius: 40px;
    position: relative;
    background: var(--bg-secondary);
}

.img-zoom-box img {
    width: 130%;
    height: 130%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.img-zoom-box:hover img {
    transform: scale(1.05);
}

/* Modal System */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 15, 38, 0.98);
    backdrop-filter: blur(15px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content-box {
    background: var(--bg-secondary);
    width: 100%;
    max-width: 1100px;
    border-radius: 48px;
    border: 1px solid var(--border-color);
    padding: 50px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

/* Respeitar quebras de linha do preparo de receitas */
#recipe-method {
    white-space: pre-line;
}

/* Headings de pilares: padronizar 50px entre 1440 e 1024 */
@media (max-width: 1440px) and (min-width: 1024px) {
    .pillar-section h2 {
        font-size: 50px;
        line-height: 1.1;
    }
}

/* Carousel Histórias - 2.5 visible para indicar corte */
.stories-scroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 10px 0 30px;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.stories-scroll::-webkit-scrollbar {
    display: none;
}

.story-card {
    min-width: calc(42% - 12px);
    scroll-snap-align: start;
    border-radius: 40px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .story-card {
        min-width: 85%;
    }
}

/* Setas de Navegação Premium */
.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(77, 171, 255, 0.15);
    backdrop-filter: blur(8px);
    color: var(--oto-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 20;
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    opacity: 0;
}

.relative.group:hover .scroll-arrow {
    opacity: 1;
}

.scroll-arrow:hover {
    background: var(--oto-blue);
    color: #000f26;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(77, 171, 255, 0.4);
}

.arrow-left {
    left: -25px;
}

.arrow-right {
    right: -25px;
}

/* Bento Grid System */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    height: auto;
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 250px);
        height: 520px;
    }

    .bento-large {
        grid-column: span 2;
        grid-row: span 2;
    }
    
    #bastidores .bento-large {
        grid-column: 2 / span 2;
    }
}

.bento-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

/* Recipes Grid Item */
.recipe-item {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.recipe-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.recipe-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.recipe-item:hover img {
    transform: scale(1.1);
}

/* Floating Action Button (WhatsApp) */
.fab-btn {
    position: fixed;
    bottom: 16px;
    right: 30px;
    background-color: #25D366;
    color: white;
    padding: 14px;
    border-radius: 50px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, transform 0.25s ease;
    z-index: 1000;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.fab-hidden {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
}

.fab-text {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: all 0.4s ease;
    margin-left: 0;
}

.fab-btn:hover,
.fab-btn:focus,
.fab-btn:active {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
    background-color: #20bd5a;
    padding: 14px 24px 14px 20px;
}

.fab-btn:hover .fab-text,
.fab-btn:focus .fab-text,
.fab-btn:active .fab-text {
    max-width: 150px;
    opacity: 1;
    margin-left: 12px;
}

@media (max-width: 768px) {
    .fab-btn {
        bottom: 10px;
        right: 20px;
        padding: 12px;
    }

    .fab-btn:hover,
    .fab-btn:focus,
    .fab-btn:active {
        padding: 12px 20px 12px 16px;
    }
}
