/* === Shared Design System === */
/* Fonts and global tokens are loaded from `design-system.css` */

/* === CSS Variables & Base Styles === */
:root {
    /* Branding Colors */
    --primary-red: #E61D2B;        /* Main Emege Red */
    --primary-red-hover: #c4122d;
    --dark-blue: #131A26;          /* Deep navy blue for 70 years section */
    --light-bg: #FFFFFF;
    --beige-bg: #F4EBE0;           /* Emege Conecta background */
    --gray-text: #666666;
    --dark-text: #1F1F1F;
    --border-light: #E0E0E0;
    
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;
    
    --transition: all 0.3s ease;
    
    --font-main: var(--font-body);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--dark-text);
    background-color: var(--light-bg);
    line-height: 1.5;
    overflow-x: hidden;
}

body > main {
    padding-top: 80px;
}

/* === Utility Classes === */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.supra-title {
    color: var(--primary-red);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 3rem;
    line-height: 1.2;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-red {
    background-color: var(--primary-red);
    color: white;
}

.btn-red:hover {
    background-color: var(--primary-red-hover);
    transform: translateY(-2px);
}

.btn-outline-red {
    background-color: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.btn-outline-red:hover {
    background-color: var(--primary-red);
    color: white;
}

/* === Floating Elements (Decorations) === */
.floating-shape {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

/* === Header / Navbar === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid rgba(16, 62, 116, 0.08);
    z-index: 4000;
    isolation: isolate;
    transform: translateZ(0);
    box-shadow: 0 10px 30px rgba(19, 26, 38, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(20px, 3vw, 36px);
    gap: clamp(20px, 2.6vw, 30px);
    overflow: visible;
    transition: all .28s ease;
}

.navbar.scrolled {
    height: 72px;
    background: rgba(255, 255, 255, 0.92);
    border-bottom-color: rgba(16, 62, 116, 0.12);
    box-shadow: 0 12px 32px rgba(19, 26, 38, 0.10);
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    min-width: 0;
    margin-left: 58px;
    margin-right: 110px;
    text-decoration: none;
    flex: 0 0 auto;
}

.nav-logo img {
    height: 75px;
    width: auto;
    display: block;
    object-fit: contain;
    transform: none;
    transition: height .28s ease, transform .28s ease;
}

.navbar.scrolled .nav-logo img {
    height: 67px;
    transform: none;
}

/* Navigation Links */
.nav-links-wrapper {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    z-index: 2;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 22px;
    flex: 0 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    overflow: visible;
    scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
    display: none;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.nav-item--dropdown {
    padding-bottom: 10px;
    margin-bottom: -10px;
    gap: 4px;
    z-index: 1;
}

.nav-item--dropdown.is-open {
    z-index: 4100;
}

.nav-mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(19, 26, 38, 0.10);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-mobile-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--dark-text);
    display: block;
}

.nav-link {
    position: relative;
    isolation: isolate;
    overflow: visible;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(16, 62, 116, 0.92);
    text-decoration: none;
    padding: 10px 2px 12px;
    border-radius: 0;
    flex: 0 0 auto;
    white-space: nowrap;
    transition: color .3s ease, letter-spacing .3s ease, opacity .3s ease;
    border-bottom: none;
}

.nav-link > span,
.nav-caret {
    position: relative;
    z-index: 2;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 36px;
    height: 10px;
    background: rgba(230, 29, 43, 0.18);
    border-radius: 999px;
    filter: blur(8px);
    opacity: 0;
    transform: translateX(-50%) scaleX(0.5);
    transition: transform .3s ease, opacity .3s ease;
    z-index: 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 1px;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: #E61D2B;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: center center;
    transition: transform .3s ease, opacity .3s ease, box-shadow .3s ease;
    box-shadow: 0 0 12px rgba(230, 29, 43, 0.18);
    z-index: 1;
}

.nav-item--dropdown > .nav-link {
    display: inline-flex;
    align-items: center;
    padding-right: 0;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-left: -2px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: rgba(16, 62, 116, 0.78);
    cursor: pointer;
    transition: background .3s ease, color .3s ease, transform .3s ease;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus-visible,
.nav-item--dropdown.is-open > .nav-dropdown-toggle {
    background: rgba(230, 29, 43, 0.08);
    color: var(--primary-red);
    outline: none;
}

.nav-caret {
    width: 9px;
    height: 9px;
    border-right: 2.5px solid currentColor;
    border-bottom: 2.5px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform .2s ease;
    margin-top: -3px;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-item--dropdown.is-open > .nav-link {
    color: var(--primary-red);
    background: transparent;
    letter-spacing: 0.11em;
    box-shadow: none;
    transform: none;
    outline: none;
}

.nav-link:hover::before,
.nav-link:focus-visible::before,
.nav-item--dropdown.is-open > .nav-link::before,
.nav-link.active::before {
    opacity: 0.8;
    transform: translateX(-50%) scaleX(1);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-item--dropdown.is-open > .nav-link::after,
.nav-link.active::after {
    opacity: 1;
    transform: scaleX(1);
}

.nav-link.active {
    color: var(--primary-red);
    font-weight: 700;
    border-bottom-color: transparent;
}

.nav-submenu {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    min-width: 760px;
    padding: 18px 20px 20px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(19, 26, 38, 0.08);
    box-shadow: 0 22px 42px rgba(19, 26, 38, 0.14);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-22%) translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    z-index: 4100;
}

.nav-mega-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr;
    gap: 18px;
}

.nav-mega-column {
    display: grid;
    gap: 8px;
    align-content: start;
}

.nav-mega-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-red);
    opacity: 0.9;
}

.nav-mega-card {
    display: grid;
    gap: 6px;
    padding: 14px;
    min-height: 100%;
    border-radius: 16px;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(230, 29, 43, 0.08) 0%, rgba(16, 62, 116, 0.06) 100%);
    border: 1px solid rgba(230, 29, 43, 0.10);
    color: var(--dark-text);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.nav-mega-card strong {
    font-size: 1rem;
    color: var(--dark-blue);
}

.nav-mega-card small {
    font-size: 0.84rem;
    line-height: 1.5;
    color: var(--gray-text);
}

.nav-item--dropdown.is-open .nav-submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-22%) translateY(0);
}

.nav-item--dropdown.is-open .nav-caret {
    transform: rotate(-135deg) translateY(-1px);
}

.nav-sublink {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--dark-text);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 500;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.nav-sublink strong {
    display: block;
    font-size: 0.92rem;
    color: var(--dark-blue);
}

.nav-sublink small {
    display: block;
    margin-top: 3px;
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--gray-text);
}

.nav-sublink:hover,
.nav-sublink:focus-visible,
.nav-mega-card:hover,
.nav-mega-card:focus-visible {
    background: rgba(230, 29, 43, 0.08);
    color: var(--primary-red);
    outline: none;
    transform: translateY(-1px);
}

/* Nav Actions (right side) */
.nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    min-width: 0;
    flex: 0 0 auto;
    position: static;
    margin-left: auto;
}

/* ---------- Busca do menu ----------
   Telas grandes: campo sempre visível. Até 1180px: ícone que abre um cartão.
   Até 768px: ícone ao lado do menu e busca na largura da tela. */
.nav-search {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(230, 29, 43, 0.32);
    border-radius: 999px;
    color: var(--primary-red);
    font-size: 1.05rem;
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
    flex: 0 0 auto;
}

.nav-search:hover,
.nav-search[aria-expanded="true"] {
    border-color: rgba(230, 29, 43, 0.82);
    color: #fff;
    background: var(--primary-red);
}

.nav-search:focus-visible,
.nav-search-submit:focus-visible,
.nav-result:focus-visible {
    outline: 3px solid rgba(230, 29, 43, 0.45);
    outline-offset: 2px;
}

.nav-search-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-search-form {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    width: 280px;
    padding: 4px 4px 4px 14px;
    border-radius: 999px;
    border: 1px solid rgba(19, 26, 38, 0.12);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 8px rgba(19, 26, 38, 0.04);
    transition: width .45s cubic-bezier(0.16, 1, 0.3, 1), border-color .25s ease, box-shadow .25s ease;
    z-index: 4200;
}

.nav-search-form:focus-within {
    width: 340px;
    border-color: rgba(230, 29, 43, 0.55);
    box-shadow: 0 0 0 4px rgba(230, 29, 43, 0.10), 0 8px 20px rgba(19, 26, 38, 0.08);
}

.nav-search-icon {
    flex: 0 0 auto;
    color: rgba(19, 26, 38, 0.5);
    font-size: 1rem;
}

.nav-search-input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    border: 0;
    padding: 0.5rem 0.2rem;
    font: inherit;
    font-size: 0.88rem;
    color: var(--dark-text);
    background: transparent;
}

.nav-search-input:focus {
    outline: none;
}

.nav-search-input::placeholder {
    color: rgba(19, 26, 38, 0.52);
}

/* Remove o "x" nativo do campo de busca; o Esc limpa as sugestões. */
.nav-search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.nav-search-submit {
    flex: 0 0 auto;
    border: none;
    border-radius: 999px;
    padding: 0.5rem 0.95rem;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    background: var(--primary-red);
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .2s ease;
}

.nav-search-submit:hover {
    background: var(--primary-red-hover);
}

/* Painel de sugestões */
.nav-search-results {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 420px;
    max-height: min(calc(100vh - 110px), 640px);
    overflow-y: auto;
    padding: 8px;
    border-radius: 18px;
    border: 1px solid rgba(19, 26, 38, 0.08);
    background: #fff;
    box-shadow: 0 24px 48px rgba(19, 26, 38, 0.16), 0 4px 12px rgba(19, 26, 38, 0.06);
    animation: navResultsIn .35s cubic-bezier(0.16, 1, 0.3, 1);
    overscroll-behavior: contain;
}

.nav-search-results[hidden] {
    display: none;
}

@keyframes navResultsIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-result-group + .nav-result-group,
.nav-result-footer {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(19, 26, 38, 0.06);
}

.nav-result-heading {
    margin: 6px 10px 4px;
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6b7482;
}

.nav-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 12px;
    color: var(--dark-text);
    text-decoration: none;
    transition: background-color .15s ease;
}

.nav-result[aria-selected="true"] {
    background: rgba(230, 29, 43, 0.07);
}

.nav-result-thumb {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #f5f1e8;
}

.nav-result-thumb--product {
    object-fit: contain;
    padding: 3px;
}

.nav-result-thumb--recipe {
    object-fit: cover;
}

.nav-result-text {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.nav-result-name {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-result-name mark {
    background: none;
    color: var(--primary-red);
    font-weight: 700;
}

.nav-result-detail {
    font-size: 0.78rem;
    color: #6b7482;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-result--all {
    justify-content: space-between;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--primary-red);
}

.nav-result--all i {
    font-size: 1rem;
    transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-result--all[aria-selected="true"] i {
    transform: translateX(3px);
}

.nav-search-status {
    margin: 0;
    padding: 12px 10px;
    font-size: 0.86rem;
    color: #5a6472;
}

@media (max-width: 1180px) {
    .nav-search {
        display: flex;
    }

    .nav-search-form,
    .nav-search-form:focus-within {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        flex-wrap: wrap;
        width: min(92vw, 420px);
        padding: 8px;
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 24px 48px rgba(19, 26, 38, 0.16), 0 4px 12px rgba(19, 26, 38, 0.06);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-6px);
        /* Ao fechar, some depois da animação; ao abrir (abaixo), fica visível na hora para receber o foco. */
        transition: opacity .25s ease, transform .35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear .25s;
    }

    .nav-search-wrap.is-open .nav-search-form {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
        transition: opacity .25s ease, transform .35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s;
    }

    .nav-search-icon {
        margin-left: 8px;
    }

    .nav-search-input {
        flex-basis: 0;
    }

    /* Dentro do cartão, as sugestões ficam logo abaixo do campo. */
    .nav-search-results {
        position: static;
        flex: 1 0 100%;
        width: 100%;
        max-height: min(calc(100vh - 190px), 520px);
        margin-top: 8px;
        padding: 6px 0 0;
        border: 0;
        border-top: 1px solid rgba(19, 26, 38, 0.06);
        border-radius: 0;
        box-shadow: none;
    }
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.78rem 1.28rem;
    background: linear-gradient(135deg, var(--primary-red) 0%, #ff2d34 100%);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .3s ease;
    box-shadow: 0 8px 18px rgba(230, 29, 43, 0.18);
    text-decoration: none;
    white-space: nowrap;
    flex: 0 0 auto;
}

.nav-btn:hover {
    box-shadow: 0 4px 12px rgba(230, 29, 43, 0.25);
    transform: translateY(-1px);
}

.nav-btn.active {
    background: var(--primary-red-hover);
    box-shadow: 0 2px 8px rgba(230, 29, 43, 0.15);
}

/* === Hero Section === */
.hero {
    margin-top: 80px;
    min-height: 0;
    aspect-ratio: 1584 / 672;
    position: relative;
    z-index: 0;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #1a1a1a;
    padding: 0 1rem;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.hero-banner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 300px);
    align-items: center;
    gap: clamp(1.5rem, 5vw, 5rem);
    width: min(1200px, 100%);
    text-align: left;
}

.hero-banner-copy {
    max-width: 720px;
}

.hero .hero-banner-title {
    margin: 0 0 1rem;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2.5rem, 5.5vw, 5rem);
    line-height: .98;
    color: #fff;
}

.hero-banner-title span {
    color: #e6c36f;
}

.hero .hero-banner-copy p {
    max-width: 440px;
    margin: 0 0 1.5rem;
    color: #fff;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.4;
}

.hero-banner-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-banner-cta {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: .75rem 1.6rem;
    border: 2px solid #e6c36f;
    border-radius: 999px;
    background: linear-gradient(110deg, #07558a 0%, #0b4b7a 58%, #d71920 100%);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.hero-banner-cta:hover {
    filter: brightness(1.12);
}

.hero-banner-seal {
    width: clamp(74px, 8vw, 116px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .35));
}

.hero-banner-product {
    display: block;
    justify-self: center;
    width: 100%;
    max-width: 270px;
    max-height: 460px;
    object-fit: contain;
    filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .4));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(100%, 1400px);
    max-width: 1400px;
    padding: 0 1rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* === Products Section === */
.products-section {
    padding: 6rem 0;
    position: relative;
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
    gap: 1.75rem;
    margin-top: 3rem;
}

.product-card {
    background-color: #FFFFFF;
    border: 1px solid var(--border-light);
    outline: 1px solid transparent;
    outline-offset: 0;
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease, outline-color .28s ease;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: 330px;
}

.product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-card-link:focus-visible {
    outline: 3px solid rgba(230, 29, 43, 0.28);
    outline-offset: 4px;
}

.interactive-card {
    --lift: 0px;
    transform: perspective(900px) translateY(var(--lift)) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform .28s ease, box-shadow .28s ease;
}

.interactive-card::before {
    content: "";
    position: absolute;
    inset: -8% -40%;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(112deg, transparent 30%, rgba(255,255,255,0.52) 48%, transparent 66%);
    transform: translateX(-130%) skewX(-14deg);
    transition: opacity .22s ease;
    z-index: 2;
}

.interactive-card:hover::before {
    opacity: 1;
    animation: cardSweep .8s cubic-bezier(.22,.61,.36,1) forwards;
}

.interactive-card::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(140% 70% at 50% 0%, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 58%);
    transition: opacity .22s ease;
    z-index: 1;
}

.interactive-card:hover::after {
    opacity: 1;
}

@keyframes cardSweep {
    from { transform: translateX(-130%) skewX(-14deg); }
    to { transform: translateX(130%) skewX(-14deg); }
}

.reveal-up {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease, transform .55s ease;
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover {
    --lift: -6px;
    border-color: rgba(230, 29, 43, 0.52);
    outline-color: rgba(230, 29, 43, 0.34);
    box-shadow: 0 22px 44px rgba(0,0,0,0.09), 0 0 0 4px rgba(230, 29, 43, 0.08);
}

.product-card.active {
    border: 2px solid var(--primary-red);
    box-shadow: 0 15px 40px rgba(230, 29, 43, 0.1);
    transform: translateY(-10px);
}

.product-img-wrapper {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.product-img-wrapper img {
    max-height: 100%;
    object-fit: contain;
}

.product-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

.product-card p {
    font-size: 0.9rem;
    color: var(--gray-text);
}

/* === Recipes Section === */
.recipes-section {
    padding: 5rem 0 8rem;
    text-align: center;
}

.recipe-subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.filters-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.filter-pill {
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-light);
    font-weight: 600;
    font-size: 0.9rem;
    background: white;
    color: var(--dark-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.filter-pill img {
    width: 20px;
    height: 20px;
    object-fit: cover;
    border-radius: 50%;
}

.filter-pill.active {
    background-color: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.admin-table th, .admin-table td {
    border: 1px solid var(--border-light);
    padding: 0.8rem 0.75rem;
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    background-color: #fafafa;
    color: var(--dark-text);
    font-weight: 700;
    font-size: 0.95rem;
}

.product-form {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    background-color: #fff;
    padding: 1.2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.product-form .form-row {
    display: flex;
    flex-direction: column;
}

.product-form label {
    margin-bottom: 0.35rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.product-form input,
.product-form select {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.6rem 0.7rem;
    font-size: 0.92rem;
}

.product-form button {
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-pill);
}

.scroll-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    background-color: var(--primary-red);
    color: white;
    display: flex; align-items: center; justify-content: center;
    border: none; cursor: pointer;
}

.recipes-showcase-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.recipes-title {
    margin-bottom: 0.85rem;
}

.recipes-intro {
    max-width: 640px;
    color: #5f6772;
    font-size: 1rem;
    line-height: 1.7;
}

.recipes-showcase-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    min-width: 230px;
}

.recipes-all-link {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-red);
}

.recipes-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem 0.85rem;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(19, 26, 38, 0.08);
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(19, 26, 38, 0.08);
}

.recipes-nav {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #fff4ea 100%);
    color: var(--primary-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 10px 22px rgba(230, 29, 43, 0.12);
}

.recipes-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(230, 29, 43, 0.16);
}

.recipes-counter {
    min-width: 72px;
    text-align: center;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.16em;
    color: var(--dark-blue);
}

.recipes-counter-separator {
    color: rgba(19, 26, 38, 0.35);
    margin: 0 0.18rem;
}

.recipes-carousel-shell {
    position: relative;
}

.recipes-carousel {
    overflow: hidden;
    padding: 0.35rem 0 0.8rem;
    mask-image: linear-gradient(to right, transparent 0, black 5%, black 95%, transparent 100%);
    cursor: grab;
    user-select: none;
}

.recipes-carousel.is-dragging {
    cursor: grabbing;
}

.recipes-track {
    display: flex;
    gap: 2rem;
    align-items: stretch;
    will-change: transform;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.recipe-feature-card {
    flex: 0 0 48%;
    min-height: 520px;
    border-radius: 34px;
    background: #ffffff;
    overflow: hidden;
    border: 1px solid rgba(19, 26, 38, 0.08);
    box-shadow: 0 18px 46px rgba(19, 26, 38, 0.08);
    transform-origin: center center;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease, filter 0.8s ease, box-shadow 0.8s ease, border-color 0.8s ease;
}

.recipe-feature-card.is-clone {
    opacity: 0.98;
}

.recipe-feature-card.is-active {
    transform: scale(0.94);
    opacity: 1;
    filter: blur(0);
    border-color: rgba(230, 29, 43, 0.2);
    box-shadow: 0 30px 65px rgba(19, 26, 38, 0.16);
    z-index: 3;
}

.recipe-feature-card.is-near {
    transform: scale(0.82);
    opacity: 0.78;
    filter: blur(1.2px) saturate(0.95);
    box-shadow: 0 12px 28px rgba(19, 26, 38, 0.08);
    z-index: 2;
}

.recipe-feature-card.is-far {
    transform: scale(0.76);
    opacity: 0.22;
    filter: blur(3px) saturate(0.84);
    box-shadow: none;
    z-index: 1;
}

.recipe-feature-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.recipe-feature-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.recipe-feature-content {
    padding: 1.5rem 1.5rem 1.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
    text-align: left;
}

.recipe-feature-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.recipe-feature-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    background: #fff3ee;
    color: var(--primary-red);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.recipe-feature-time {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.recipe-feature-time i {
    font-size: 1rem;
    color: var(--primary-red);
}

.recipe-feature-content h3 {
    font-size: 1.55rem;
    line-height: 1.2;
    color: var(--dark-blue);
}

.recipe-feature-content p {
    color: #5f6772;
    line-height: 1.7;
    font-size: 0.97rem;
}

.recipe-feature-content .btn-red {
    align-self: flex-start;
    margin-top: 0.2rem;
}

.recipes-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.7rem;
    margin-top: 1.2rem;
}

.recipes-dot {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 999px;
    background: rgba(19, 26, 38, 0.16);
    cursor: pointer;
    padding: 0;
    transition: width 0.3s ease, background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.recipes-dot:hover {
    transform: translateY(-1px);
}

.recipes-dot.is-active {
    width: 34px;
    background: linear-gradient(90deg, #e61d2b 0%, #ff8e3c 100%);
    box-shadow: 0 8px 18px rgba(230, 29, 43, 0.24);
}

.recipes-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.recipe-card {
    width: 300px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(19, 26, 38, 0.06);
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    transition: transform .28s ease, box-shadow .28s ease;
}

.recipe-card:hover {
    --lift: -6px;
    box-shadow: 0 20px 46px rgba(19, 26, 38, 0.12);
}

.recipe-card .recipe-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.recipe-footer {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    background: linear-gradient(to top, rgba(230, 29, 43, 0.95) 0%, rgba(230, 29, 43, 0.6) 50%, transparent 100%);
    padding: 3rem 1.5rem 1.5rem;
    text-align: center;
}

.recipe-footer .btn-red {
    background-color: white;
    color: var(--primary-red);
    padding: 0.5rem 2rem;
    font-size: 0.85rem;
    border-radius: var(--radius-pill);
}

.recipe-footer .btn-red:hover {
    background-color: #fce8e9;
    transform: none;
}

/* === 70 Anos Section === */
.seventy-years {
    background-color: var(--dark-blue);
    padding: 6rem 0;
    color: white;
}

.seventy-years .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.seventy-text {
    flex: 1;
    max-width: 500px;
}

.seventy-text h2 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.seventy-text p {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

.seventy-badge {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.seventy-badge img {
    max-width: 460px;
    width: 100%;
    filter:
        drop-shadow(0 0 5px rgba(255, 200, 30, 0.45))
        drop-shadow(0 0 16px rgba(255, 165, 0, 0.2));
    animation: goldPulse 4s ease-in-out infinite;
}

@keyframes goldPulse {
    0%, 100% {
        filter:
            drop-shadow(0 0 5px rgba(255, 200, 30, 0.45))
            drop-shadow(0 0 16px rgba(255, 165, 0, 0.2));
    }
    50% {
        filter:
            drop-shadow(0 0 8px rgba(255, 210, 50, 0.65))
            drop-shadow(0 0 24px rgba(255, 175, 20, 0.32));
    }
}

/* === App Section === */
.app-section {
    padding: 6rem 0;
}

.app-box {
    background-color: var(--beige-bg);
    border-radius: 32px;
    padding: 0 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.app-text {
    flex: 1;
    padding: 5rem 0;
    max-width: 450px;
    position: relative;
    z-index: 2;
}

.app-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 1rem;
}

.app-text p {
    color: var(--gray-text);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.app-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
    top: 50px;
    background: transparent;
}

.app-image img {
    max-width: 350px;
}

/* === Footer === */
.footer {
    background-color: #FFFFFF;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.5fr 2fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--gray-text);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-red);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-brand img {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--gray-text);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: var(--primary-red);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-icons a:hover {
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-light);
    padding-top: 1.5rem;
    color: var(--gray-text);
    font-size: 0.8rem;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3rem; }
    .seventy-years .container { flex-direction: column; text-align: center; }
    .seventy-badge { justify-content: center; }
    .app-box { flex-direction: column; padding: 3rem 2rem 0; text-align: center; }
    .app-text { padding: 2rem 0; margin: 0 auto; }
    .app-image { top: 20px; justify-content: center; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
    .recipes-showcase-header { flex-direction: column; align-items: flex-start; }
    .recipes-showcase-meta { width: 100%; align-items: flex-start; }
    .recipe-feature-card { flex-basis: 58vw; }
}

@media (max-width: 768px) {
    .header,
    .navbar {
        height: 72px;
        padding: 0 12px;
    }
    .header.scrolled,
    .navbar.scrolled { height: 66px; }
    .container { padding: 0 1rem; }
    .nav-container { gap: 0.65rem; }
    .logo img,
    .nav-logo img { height: 38px; }
    .nav-logo {
        margin-left: 0;
        margin-right: 0;
        min-width: 0;
        flex: 0 0 auto;
    }
    .header.scrolled .logo img,
    .navbar.scrolled .nav-logo img { height: 36px; }
    /* Ordem no celular: logo | busca | menu. Antes o menu ficava no meio da tela. */
    .nav-mobile-toggle { display: inline-flex; order: 3; margin-left: 8px; margin-right: 0; }
    .nav-links-wrapper {
        position: absolute;
        top: calc(100% + 8px);
        left: 12px;
        right: 12px;
        display: none;
    }
    .navbar.is-mobile-open .nav-links-wrapper { display: block; }
    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 8px;
        padding: 12px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(19, 26, 38, 0.08);
        box-shadow: 0 18px 36px rgba(19, 26, 38, 0.14);
    }
    .nav-item,
    .nav-item--dropdown {
        width: 100%;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    .nav-item--dropdown { flex-wrap: wrap; }
    .nav-item--dropdown > .nav-link { flex: 1; }
    .nav-link { font-size: 0.84rem; padding: 0.85rem 1rem; border-radius: 12px; }
    .nav-link::before,
    .nav-link::after { display: none; }
    .nav-submenu {
        position: static;
        left: auto;
        min-width: 0;
        width: 100%;
        margin-top: 8px;
        padding: 10px;
        display: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        box-shadow: none;
        border-radius: 14px;
    }
    .nav-item--dropdown.is-open .nav-submenu { display: block; }
    .nav-mega-grid { grid-template-columns: 1fr; }
    .nav-actions {
        order: 2;
        margin-left: auto;
        gap: 8px;
        min-width: 0;
        flex: 0 0 auto;
    }
    /* A busca abre na largura da tela, logo abaixo do menu. */
    .nav-search-wrap { position: static; }
    .nav-search-form,
    .nav-search-form:focus-within {
        left: 12px;
        right: 12px;
        width: auto;
        top: calc(100% + 8px);
    }
    .nav-search-input { font-size: 1rem; }
    .nav-btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.82rem;
    }
    .hero {
        aspect-ratio: auto;
        min-height: 420px;
        padding: 2.75rem 1.25rem;
    }
    .hero-banner {
        grid-template-columns: minmax(0, 1fr) minmax(95px, 155px);
        gap: .75rem;
    }
    .hero .hero-banner-title { font-size: clamp(2rem, 7vw, 3rem); }
    .hero .hero-banner-copy p { font-size: 1rem; }
    .hero-banner-product { max-height: 300px; }
    .hero-banner-seal { width: 76px; }
    .hero-banner-actions { gap: .6rem; flex-wrap: wrap; }
    .hero-banner-cta { min-height: 46px; padding: .65rem 1rem; font-size: .82rem; }
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .recipes-controls { width: 100%; justify-content: space-between; }
    .recipe-feature-card { min-height: 0; flex-basis: 76vw; }
    .recipe-feature-image { height: 250px; }
    .recipe-feature-content h3 { font-size: 1.3rem; }
    .recipes-grid { flex-direction: column; align-items: center; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
    .hero-banner { grid-template-columns: minmax(0, 1fr) 88px; }
    .hero-banner-product { max-height: 240px; }
    .hero .hero-banner-title { font-size: 1.8rem; }
    .hero-banner-seal { width: 64px; }
}

@media (max-width: 576px) {
    .recipes-carousel { mask-image: none; }
    .recipes-track { gap: 1.2rem; }
    .recipe-feature-card { flex-basis: 88vw; }
    .recipe-feature-card.is-near,
    .recipe-feature-card.is-far {
        opacity: 0.55;
        filter: blur(1.5px);
    }
    .recipe-feature-content { padding: 1.15rem 1.1rem 1.3rem; }
    .recipe-feature-topline { align-items: flex-start; flex-direction: column; gap: 0.6rem; }
}

@media (prefers-reduced-motion: reduce) {
    .header,
    .logo img,
    .reveal-up,
    .interactive-card {
        transition: none !important;
    }
}
