/* ==========================================================================
   BIONARI ORGÂNICOS — Folha de estilo principal
   Organização:
   1. Fontes            5. Hero / Banner        9. Rodapé
   2. Tokens & Reset    6. Seções de conteúdo  10. Cursor & animações
   3. Utilitários       7. Páginas de linha    11. Responsivo global
   4. Cabeçalho/Menu    8. Marquee / CTA       12. Retina / HiDPI
   ========================================================================== */

/* ==========================================================================
   1. FONTES (locais — nada de caminho absoluto do Windows)
   ========================================================================== */
/* WOFF2 primeiro, TTF como rede de segurança. Os quatro TTF somavam 855 KB e eram
   78% do peso de cada página; em WOFF2 são 251 KB — 71% a menos, mesmos glifos
   (conversão direta com fontTools, sem subsetting). O navegador baixa UM formato
   só: o primeiro da lista que ele entende. Os .ttf continuam no repositório e no
   deploy exatamente por isso — se o WOFF2 falhar, a fonte ainda aparece. */
@font-face {
    font-family: 'Montserrat';
    src: url('fontes/montserrat-medium.woff2') format('woff2'),
         url('fontes/montserrat-medium.ttf') format('truetype');
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('fontes/montserrat-bold.woff2') format('woff2'),
         url('fontes/montserrat-bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('fontes/montserrat-extrabold.woff2') format('woff2'),
         url('fontes/montserrat-extrabold.ttf') format('truetype');
    font-weight: 800;
    font-display: swap;
}
@font-face {
    font-family: 'Cocogoose';
    src: url('fontes/cocogoose-pro.woff2') format('woff2'),
         url('fontes/cocogoose-pro.ttf') format('truetype');
    font-weight: 400 900;
    font-display: swap;
}

/* ATENÇÃO — os DÍGITOS da Cocogoose Pro deste arquivo são a marca d'água
   "PERSONAL USE ONLY / ZETAFONTS.COM": onde deveria sair um número, sai um selo
   circular. Apareceu no "404" e nos 10 títulos numerados da Política de Privacidade.
   Como medir: o "4" ocupa 160px onde o "A" ocupa 122px — dígito mais largo que
   maiúscula é o selo, não um numeral.

   Esta família serve SÓ os algarismos 0-9 e aponta para o Montserrat ExtraBold, que
   é livre. Declarada ANTES da Cocogoose na lista de fontes dos títulos, o navegador
   pega os números aqui e as letras continuam na Cocogoose. Corrige o site inteiro de
   uma vez, inclusive números que venham a ser escritos depois. */
@font-face {
    font-family: 'CocogooseNum';
    src: url('fontes/montserrat-extrabold.woff2') format('woff2'),
         url('fontes/montserrat-extrabold.ttf') format('truetype');
    unicode-range: U+0030-0039;
    font-weight: 400 900;
    font-display: swap;
}

/* ==========================================================================
   2. TOKENS & RESET
   ========================================================================== */
:root {
    /* ---- Paleta da marca, amostrada do arquivo do logo -------------------
       Verde do logo: #009040 (matiz 148°, esmeralda) — o site usava um verde-oliva
       de matiz 103°, que é outra cor.
       Vermelho do logo: #E00010. Todos os tons abaixo ficam no mesmo matiz,
       com contraste conferido (AA) sobre branco.                          */
    --brand-green: #009040;        /* verde exato do logo                  */
    --primary-color: #007537;      /* verde escuro — títulos e rodapé  5,8:1 */
    --secondary-color: #00A34C;    /* verde vivo — botões e detalhes       */
    --green-deep: #005728;         /* fundos escuros                  8,8:1 */
    --green-darkest: #003D1C;      /* fim do gradiente escuro              */
    --green-mist: #EAF7F0;         /* verde quase branco                   */
    --green-soft: #C2E8D3;         /* verde claro                          */
    --green-bright: #4FD98A;       /* verde claro legível sobre escuro     */

    --accent-color: #E00010;       /* vermelho do logo                5,0:1 */
    --accent-dark: #B8000D;

    --text-dark: #333333;
    --text-muted: #5b6157;
    --text-light: #F5F5F5;
    --bg-light: #FAFAFA;
    --surface: #ffffff;
    --border-soft: rgba(15, 23, 42, 0.08);

    --header-h: 80px;
    --radius: 16px;
    --shadow-sm: 0 4px 15px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.12);
    --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 20px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: 'CocogooseNum', 'Cocogoose', 'Montserrat', sans-serif;
    color: var(--primary-color);
    line-height: 1.2;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }

/* ==========================================================================
   3. UTILITÁRIOS
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Toda página interna começa abaixo do cabeçalho fixo */
.page-main {
    padding-top: var(--header-h);
}

.section {
    padding: 5rem 0;
}

.section-title {
    font-size: clamp(1.9rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 1rem;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.divider {
    height: 4px;
    width: 60px;
    background: var(--secondary-color);
    margin: 0 auto 2.5rem;
    border-radius: 2px;
}

.text-center { text-align: center; }

.glass {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--primary-color);
    color: #fff;
    padding: 12px 20px;
    z-index: 2000;
    border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   4. CABEÇALHO & MENU  (estrutura e itens preservados)
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-h);
    background-color: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%;
    padding: 8px 0;
}

.logo img {
    height: 52px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
    transition: transform 0.3s var(--ease), filter 0.3s var(--ease);
}

.logo:hover img {
    transform: scale(1.04);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
}

.nav-menu ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 0.5rem 0;
    display: inline-block;
    transition: color 0.3s ease;
}

.nav-menu > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover { color: var(--primary-color); }
.nav-menu > ul > li > a:hover::after { width: 100%; }

/* Item ativo da página atual */
.nav-menu a.is-active { color: var(--primary-color); font-weight: 700; }
.nav-menu > ul > li > a.is-active::after { width: 100%; }

/* --- Submenu --- */
.nav-menu li.has-submenu { position: relative; }

.nav-menu li.has-submenu .arrow {
    font-size: 0.8rem;
    margin-left: 4px;
    display: inline-block;
    transition: transform 0.3s ease;
}
.nav-menu li.has-submenu:hover .arrow,
.nav-menu li.has-submenu:focus-within .arrow { transform: rotate(180deg); }

.nav-menu .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    background: #ffffff;
    min-width: 280px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 1001;
}

.nav-menu li.has-submenu:hover .submenu,
.nav-menu li.has-submenu:focus-within .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .submenu li { width: 100%; }

.nav-menu .submenu a {
    padding: 12px 20px;
    display: block;
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.nav-menu .submenu a:hover {
    background-color: rgba(0, 163, 76, 0.12);
    color: var(--primary-color);
}

/* --- Botão hambúrguer --- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    z-index: 1002;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    margin: 0 auto;
    border-radius: 2px;
    background: var(--primary-color);
    transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   5. HERO / BANNER DE ENTRADA
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: calc(var(--header-h) + 2rem) 0 4rem;
}

/* Camada 1: fotografia (WebP com fallback JPG, servida por densidade) */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('imagens/hero/hero-1-1920.jpg');
    background-color: #005728;
    background-size: cover;
    background-position: center;
    /* Leve, só para tirar o excesso de luz da foto — a imagem continua viva */
    filter: brightness(0.9) saturate(1.1);
    animation: slowZoomBg 24s ease-in-out infinite alternate;
    will-change: transform;
    transform: translateZ(0);
}

/* Camada 2: véu LISO e uniforme — sem halo, sem mancha no meio.
   A legibilidade do texto vem da sombra em camadas do h1/p, não de um foco escuro. */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(3, 24, 13, 0.34);
}

/* Camada 3: símbolos químicos com parallax */
.parallax-symbols {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.chem-symbol {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.25s ease-out;
}

.symbol-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: float-symbol 6s ease-in-out infinite alternate;
}
.chem-symbol:nth-child(even) .symbol-inner { animation-delay: -3s; animation-duration: 7s; }
.chem-symbol:nth-child(3n) .symbol-inner { animation-delay: -1.5s; animation-duration: 5s; }

.chem-symbol .hex {
    width: 60px;
    height: 68px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 115.47'%3E%3Cpolygon points='50 1 99 29.3 99 86.1 50 114.4 1 86.1 1 29.3' fill='rgba(255,255,255,0.06)' stroke='rgba(255,255,255,0.75)' stroke-width='2'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.45);
}

.chem-symbol .line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.55), transparent);
    margin-top: -2px;
}

/* Camada 4: conteúdo */
.hero-content {
    position: relative;
    z-index: 3;
    color: var(--text-light);
    max-width: 820px;
    padding: 0 2rem;
}

.hero-badge {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hero h1 {
    color: #fff;
    font-size: clamp(2.2rem, 6vw, 4rem);
    margin-bottom: 1rem;
    letter-spacing: 1.5px;
    /* Uma sombra só, bem difusa: dá leitura sobre a folha clara sem virar
       aquele contorno duro de duas bordas. */
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.38);
}

.hero p {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    margin-bottom: 2.5rem;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.42);
}

.hero-scroll-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: bob 2.4s ease-in-out infinite;
}
.hero-scroll-hint span.chevron {
    width: 12px;
    height: 12px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

/* ==========================================================================
   6. BOTÕES
   ========================================================================== */
.cta-button,
.btn-primary,
.download-button,
.ficha-open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s ease;
    border: none;
    cursor: pointer;
}

/* --- Botão principal do banner: gradiente vivo, halo pulsante e brilho que varre --- */
.cta-button {
    position: relative;
    isolation: isolate;
    padding: 1.05rem 2.8rem;
    color: #fff;
    font-size: 1.05rem;
    text-transform: uppercase;
    background: linear-gradient(120deg, #00C25A 0%, #00A34C 35%, #00762F 70%, #00A34C 100%);
    background-size: 220% 100%;
    animation: cta-gradiente 7s ease-in-out infinite;
    box-shadow:
        0 6px 22px rgba(0, 117, 55, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -2px 6px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

/* Halo que respira atrás do botão */
.cta-button::after {
    content: '';
    position: absolute;
    inset: -4px;
    z-index: -1;
    border-radius: inherit;
    background: radial-gradient(ellipse at center, rgba(0, 194, 90, 0.75) 0%, rgba(0, 194, 90, 0) 70%);
    filter: blur(14px);
    opacity: 0.75;
    animation: cta-halo 3.2s ease-in-out infinite;
}

/* Brilho diagonal que varre a superfície */
.cta-button::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -120%;
    width: 60%;
    height: 220%;
    background: linear-gradient(100deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.55) 50%,
        rgba(255, 255, 255, 0) 100%);
    transform: rotate(18deg);
    animation: cta-brilho 4.5s ease-in-out infinite;
    pointer-events: none;
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.03);
    animation-play-state: paused;
    background-position: 100% 0;
    box-shadow:
        0 14px 34px rgba(0, 117, 55, 0.55),
        0 0 0 4px rgba(0, 194, 90, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.cta-button:hover::before { animation-duration: 1.2s; }
.cta-button:hover::after { opacity: 1; filter: blur(20px); }

.cta-button:active { transform: translateY(-1px) scale(0.99); }

@keyframes cta-gradiente {
    0%, 100% { background-position: 0 0; }
    50%      { background-position: 100% 0; }
}
@keyframes cta-halo {
    0%, 100% { opacity: 0.5; transform: scale(0.97); }
    50%      { opacity: 0.95; transform: scale(1.06); }
}
@keyframes cta-brilho {
    0%        { left: -120%; }
    55%, 100% { left: 160%; }
}

.ficha-open-btn {
    padding: 0.75rem 1.8rem;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.85rem;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(0, 117, 55, 0.28);
}
.ficha-open-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 163, 76, 0.4);
}

.download-button {
    padding: 1.1rem 2.6rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(0, 117, 55, 0.3);
}
.download-button:hover { transform: translateY(-3px); }

.btn-primary {
    padding: 1.1rem 2.6rem;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.28);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
}

.whatsapp-icon { width: 22px; height: 22px; fill: currentColor; }

/* ==========================================================================
   7. SEÇÕES DE CONTEÚDO
   ========================================================================== */

/* --- Pilares (home) --- */
.pillars {
    padding: 5rem 0;
    background: var(--surface);
}

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.75rem;
    margin-top: 3rem;
}

.pillar-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 2rem 1.6rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.pillar-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.pillar-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 163, 76, 0.14);
    color: var(--primary-color);
}
.pillar-icon svg { width: 28px; height: 28px; }

.pillar-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.pillar-card p { color: var(--text-muted); font-size: 0.95rem; }

/* --- Catálogo --- */
.catalog {
    padding: 5rem 0;
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.catalog::before,
.catalog::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}
.catalog::before {
    top: 8%; left: 3%;
    width: 300px; height: 300px;
    background: var(--secondary-color);
    filter: blur(110px); opacity: 0.16;
}
.catalog::after {
    bottom: 8%; right: 3%;
    width: 380px; height: 380px;
    background: var(--primary-color);
    filter: blur(130px); opacity: 0.1;
}

.catalog .container { position: relative; z-index: 1; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    padding: 1.75rem 1.5rem 2rem;
    text-align: center;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 163, 76, 0.35);
}

.product-image {
    height: 240px;
    flex: 0 0 240px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* O <picture> precisa esticar como o flex-item, senão o max-height do <img>
   não tem contra o que resolver e a embalagem transborda sobre o título. */
.product-image picture {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.product-image img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s var(--ease);
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.12));
}
.product-card:hover .product-image img { transform: scale(1.08); }

.product-info { display: flex; flex-direction: column; flex: 1; }
.product-info h3 { font-size: 1.2rem; margin-bottom: 0.7rem; }
.product-info p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 1.4rem;
    flex: 1;
}

/* --- Sobre / História --- */
.about { padding: 5rem 0; background: var(--surface); }

.about-text { max-width: 800px; margin: 0 auto; text-align: center; }
.about-text p { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 1.5rem; }

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.history-title {
    font-size: clamp(1.8rem, 4.5vw, 2.6rem);
    letter-spacing: 1px;
    margin: 0;
}
.history-highlight { color: var(--accent-color); }

.history-icons { display: flex; gap: 12px; align-items: center; }
.history-icons svg {
    width: 34px;
    height: 34px;
    color: var(--secondary-color);
}

.history-divider {
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--accent-color) 0%, rgba(224, 0, 16, 0.12) 100%);
    border-radius: 2px;
    margin: 1.2rem 0 2.5rem;
}

.history-body {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 2.5rem;
    align-items: start;
}

.history-text p {
    color: var(--text-muted);
    margin-bottom: 1.1rem;
    font-size: 1rem;
}
.history-text strong { color: var(--primary-color); }

.history-aside {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    justify-content: center;
}

.history-image-container { text-align: center; max-width: 320px; }

.history-image {
    width: 100%;
    height: auto;
    border: 4px solid var(--primary-color);
    border-radius: 4px;
    box-shadow: var(--shadow-md);
}

.history-caption {
    font-weight: 700;
    font-style: italic;
    margin-top: 0.7rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.history-kanji {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding-top: 6px;
}
.history-kanji .kanji {
    font-size: 3.2rem;
    line-height: 1.15;
    color: var(--text-dark);
}
.history-kanji .rule {
    width: 100%;
    border-top: 2px dotted var(--primary-color);
    margin: 8px 0;
}
.history-kanji .kanji-translation {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

/* --- Mapa --- */
.map-section { padding: 4rem 0 0; text-align: center; background: var(--bg-light); }
.map-container {
    width: 100%;
    height: 60vh;
    min-height: 380px;
    line-height: 0;
}
.map-container iframe { width: 100%; height: 100%; border: 0; }

/* --- Contato: cartões --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.contact-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.contact-card .pillar-icon { margin-bottom: 1rem; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.contact-card a,
.contact-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-decoration: none;
    word-break: break-word;
}
.contact-card a:hover { color: var(--primary-color); }

/* ==========================================================================
   8. CTA WHATSAPP & MARQUEE
   ========================================================================== */
.cta-section { margin: 5rem 0; }

/* A última seção do <main> não pode deixar folga: o fundo claro do body aparecia
   como uma barra branca entre o bloco escuro e as faixas rolantes. */
main > section:last-child { margin-bottom: 0; }
main > .cta-section:last-child { margin-bottom: 0; }

/* As faixas encostam no que vem antes e no rodapé */
.marquee-divider-section { margin: 0; }
.marquee-divider-section + .footer { margin-top: 0; }

.cta-container {
    background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-darkest) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.cta-content { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; }

.cta-badge {
    display: inline-block;
    background: rgba(0, 163, 76, 0.2);
    color: var(--green-bright);
    padding: 0.35rem 1rem;
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.78rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.06em;
    border: 1px solid rgba(0, 163, 76, 0.35);
}

.cta-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    color: #fff;
}

.cta-text {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}

.cta-bg-glow {
    position: absolute;
    bottom: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 460px;
    height: 220px;
    background: radial-gradient(ellipse, rgba(0, 163, 76, 0.35) 0%, transparent 70%);
    filter: blur(50px);
    z-index: 1;
    pointer-events: none;
}

/* --- Faixas rolantes --- */
.marquee-divider-section {
    position: relative;
    width: 100%;
    height: 70px;
    overflow: hidden;
    z-index: 10;
}

.marquee-divider-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.marquee-ribbon {
    position: relative;
    width: 100%;
    height: 35px;
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
}

.ribbon-primary {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--green-deep) 100%);
    color: #fff;
}

.ribbon-secondary {
    background: linear-gradient(90deg, var(--green-mist) 0%, var(--green-soft) 50%, var(--secondary-color) 100%);
    color: var(--primary-color);
}

.marquee-text-flow { display: inline-block; will-change: transform; }
.ribbon-primary .marquee-text-flow { animation: marquee-left 60s linear infinite; }
.ribbon-secondary .marquee-text-flow { animation: marquee-right 60s linear infinite; }

.marquee-text-flow span {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding-right: 3rem;
}

/* ==========================================================================
   9. RODAPÉ
   ========================================================================== */
.footer {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 4rem 0 0;
    font-size: 0.95rem;
}

/* 3 colunas: marca | Fale Conosco | Navegação. Era 4 — a coluna "Nossas Linhas" saiu em
   20/09/2026. Com grid de 3 frações iguais sobrava uma mancha vazia à direita, porque os
   links de Navegação são curtos e não preenchiam a própria coluna. Agora as colunas têm a
   largura do conteúdo e o espaço que sobra vira distância entre elas: a Navegação encosta
   na borda direita e o rodapé volta a parecer equilibrado. */
.footer-top-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2.5rem 3rem;
    margin-bottom: 3rem;
}

.footer-top-row > .footer-col { flex: 0 1 auto; min-width: 0; }
.footer-top-row > .brand-col { flex: 0 1 300px; }
.footer-top-row > .contact-col { flex: 0 1 auto; }

/* `.footer h4`, não `.footer-col h4`: o h4 "Catálogos em PDF" mora em
   .footer-catalogos-texto, fora de .footer-col, e por isso não era alcançado —
   ficava com a cor global de título (var(--primary-color) = #007537) em cima do
   rodapé, que é exatamente #007537. Contraste 1,00:1, texto invisível nas 9
   páginas. O seletor mais largo cobre qualquer h4 que entre no rodapé. */
.footer h4 {
    font-size: 1.05rem;
    margin-bottom: 1.4rem;
    color: #fff;
    font-weight: 700;
}

.footer-col p { color: rgba(255, 255, 255, 0.82); line-height: 1.65; }

.footer-logo {
    max-width: 180px;
    margin-bottom: 1.4rem;
    filter: brightness(0) invert(1);
}

.footer-tagline { margin-bottom: 1.4rem; font-size: 0.93rem; }

.social-icons { display: flex; gap: 12px; }

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #fff;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.social-icons a svg { width: 17px; height: 17px; fill: currentColor; }
.social-icons a:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.85rem; }

.footer-links a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-links a:hover { color: #ffffff; text-decoration: underline; }

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0.9rem;
}
.footer-contact svg { flex: 0 0 18px; margin-top: 3px; fill: currentColor; }
.footer-contact a { color: #fff; text-decoration: none; line-height: 1.5; }
.footer-contact a:hover { color: #ffffff; text-decoration: underline; }

/* --- Faixa de catálogos em PDF (rodapé, largura inteira) ---
   Ficavam dentro da coluna "Nossas Linhas" e a deixavam muito mais alta que as
   outras três, abrindo um vazio grande à esquerda. Numa faixa própria as quatro
   colunas voltam a ter alturas parecidas. */
.footer-catalogos-faixa {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding-top: 2.25rem;
    margin-bottom: 3rem;
}

.footer-catalogos-texto { flex: 1 1 260px; }

.footer-catalogos-texto h4 { margin-bottom: 0.5rem; }

.footer-catalogos-texto p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    max-width: 40ch;
}

.footer-catalogos {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* Cada catálogo: capa pequena à esquerda, nome ao lado */
.card-catalogo {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 18px 10px 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none;
    color: #fff;
    transition: background-color 0.3s ease, border-color 0.3s ease,
                transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.card-catalogo-capa {
    position: relative;
    display: block;
    flex: 0 0 78px;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.card-catalogo-capa img {
    display: block;
    width: 78px;
    height: 110px;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s var(--ease);
}

/* Selo de download sobre a capa */
.card-catalogo-lupa {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(224, 0, 16, 0.85);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-catalogo:hover,
.card-catalogo:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}
.card-catalogo:hover .card-catalogo-capa img { transform: scale(1.07); }
.card-catalogo:hover .card-catalogo-lupa,
.card-catalogo:focus-visible .card-catalogo-lupa { opacity: 1; }

.card-catalogo-info {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.card-catalogo-info strong {
    font-size: 0.9rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.card-catalogo-info small {
    font-size: 0.72rem;
    font-weight: 500;
    opacity: 0.72;
    margin-top: 3px;
}

.card-catalogo:hover .card-catalogo-info strong { color: var(--accent-color); }

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    background: rgba(0, 0, 0, 0.16);
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.85rem;
}

/* ==========================================================================
   10. PÁGINAS DE LINHA (fichas técnicas)
   ========================================================================== */
/* Padding em px, não em %. Porcentagem de padding resolve contra o bloco
   continente — que aqui é a janela —, mas a seção está travada em 1200px. O efeito
   era invertido: quanto MAIOR o monitor, MENOR o texto útil (1074px de conteúdo em
   1280 de janela, 946px em 2560). Com valor fixo o conteúdo fica em 1120px de
   1024px de janela para cima. O celular tem o seu próprio padding em @media 768. */
.product-section {
    padding: 3.5rem 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.linha-header {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    padding: 1.6rem 2.5rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    position: relative;
    box-shadow: var(--shadow-md);
}

.linha-header h1 {
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    margin: 0;
    color: #fff;
    font-style: italic;
}

.badge-amino {
    background: var(--primary-color);
    border: 2px solid #fff;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    flex: 0 0 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.25;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Ficha de produto (3 colunas) */
.product-section .product-card {
    display: grid;
    grid-template-columns: 0.85fr 1.45fr 0.9fr;
    gap: 1.75rem;
    align-items: start;
    text-align: left;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    margin-bottom: 2.5rem;
    overflow: visible;
}
.product-section .product-card:hover { transform: none; box-shadow: var(--shadow-md); }

.product-table-col { min-width: 0; }
.product-vantagens-col { min-width: 0; padding-left: 15px; }
.product-image-col {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}
.product-image-col img {
    max-width: 100%;
    max-height: 280px;
    object-fit: contain;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.15));
    transition: transform 0.35s var(--ease);
}
.product-image-col img:hover { transform: scale(1.05) translateY(-8px); }

.product-title {
    color: var(--accent-color);
    font-size: 1.7rem;
    font-weight: 900;
    font-style: italic;
    line-height: 1.05;
    margin-bottom: 4px;
    word-wrap: break-word;
    font-family: 'CocogooseNum', 'Cocogoose', 'Montserrat', sans-serif;
}
.product-title span { color: var(--primary-color); }
.product-title.pink { color: #e91e63; }
.product-title.blue { color: #3f51b5; }

.product-subtitle {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 700;
    font-style: italic;
    margin-bottom: 1.2rem;
}
.product-subtitle.blue { color: #3f51b5; }

/* Subtítulo dentro do cabeçalho da linha */
.linha-subtitulo {
    margin: 6px 0 0;
    font-size: 1rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

/* Cabeçalho de família de produtos (Neorfol, Mastermix) */
.familia-header {
    margin: 3rem 0 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: var(--shadow-sm);
}
.familia-header.pink { background: linear-gradient(90deg, #b0164a 0%, #e91e63 100%); }
.familia-header.blue { background: linear-gradient(90deg, #14294f 0%, #2b6ca3 100%); }

.familia-header h2 {
    color: #fff;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-style: italic;
    margin: 0;
}
.familia-header p {
    margin: 4px 0 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.88);
}

/* Bloco de vantagens comuns a uma família inteira */
.vantagens-familia {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.75rem 2rem;
    margin-bottom: 2rem;
}
.vantagens-familia .vantagens-list { columns: 2; column-gap: 2.5rem; }
.vantagens-familia .vantagens-list li { break-inside: avoid; }

/* Grade dos Mastermix: muitos produtos, ficha compacta */
.mastermix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.mastermix-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.mastermix-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.mastermix-topo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.mastermix-topo picture {
    flex: 0 0 74px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mastermix-topo img {
    width: 74px;
    height: 74px;
    object-fit: contain;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.12));
}

.mastermix-topo h3 {
    font-size: 1rem;
    font-style: italic;
    line-height: 1.2;
    margin: 0;
    color: #14294f;
}
.mastermix-topo h3 span { color: var(--accent-color); display: block; }

@media (max-width: 700px) {
    .vantagens-familia .vantagens-list { columns: 1; }
    .vantagens-familia { padding: 1.25rem; }
}

/* Tabela de garantias */
.garantias-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.68rem;
    margin-bottom: 10px;
}
.garantias-table th,
.garantias-table td {
    border: 1px solid var(--primary-color);
    padding: 4px 6px;
    text-align: center;
    color: var(--text-dark);
}
.garantias-table th {
    color: var(--primary-color);
    font-weight: 700;
    background: rgba(0, 163, 76, 0.08);
}
.garantias-table td:first-child { text-align: left; font-weight: 600; }
.garantias-table th:first-child, .garantias-table td:first-child { border-left: none; }
.garantias-table th:last-child, .garantias-table td:last-child { border-right: none; }
.garantias-table tr:first-child th, .garantias-table tr:first-child td { border-top: none; }
.garantias-table tr:last-child td { border-bottom: none; }

/* Vantagens */
.vantagens-title {
    background: var(--accent-color);
    color: #fff;
    padding: 5px 30px 5px 15px;
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 700;
    clip-path: polygon(0 0, 90% 0, 100% 100%, 0% 100%);
    margin-left: -15px;
}
.vantagens-title.blue { background: #1A3673; }
.vantagens-title.pink { background: #e91e63; }

.intro-text {
    font-size: 0.85rem;
    color: var(--text-dark);
    padding: 10px 0 5px 15px;
    border-left: 2px solid var(--accent-color);
}
.vantagens-title.blue + .intro-text { border-color: #1A3673; }
.vantagens-title.pink + .intro-text { border-color: #e91e63; }

.vantagens-list {
    list-style: none;
    padding: 15px 0 15px 15px;
    font-size: 0.85rem;
    border-left: 2px solid var(--accent-color);
}
.vantagens-list.blue { border-color: #1A3673; }
.vantagens-list.pink { border-color: #e91e63; }

.vantagens-list li {
    margin-bottom: 6px;
    position: relative;
    padding-left: 12px;
}
.vantagens-list li::before {
    content: "•";
    color: var(--accent-color);
    font-size: 1.4rem;
    position: absolute;
    left: -8px;
    top: -6px;
    line-height: 1;
}
.vantagens-list.blue li::before { color: #1A3673; }
.vantagens-list.pink li::before { color: #e91e63; }

.highlight-text {
    color: var(--accent-color);
    font-size: 2rem;
    font-weight: 900;
    font-style: italic;
    line-height: 1.1;
    margin-top: 1.6rem;
}
.highlight-text span {
    font-size: 1.25rem;
    display: block;
    color: var(--accent-color);
}

/* ==========================================================================
   11. CURSOR PERSONALIZADO & ANIMAÇÕES
   ========================================================================== */
.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 80px;
    height: 34px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    pointer-events: none;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-dark);
    opacity: 0;
    transition: width 0.3s var(--ease), height 0.3s var(--ease),
                background 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}
.cursor-follower.visible { opacity: 1; }
.cursor-follower.dark-bg {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
}

.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: transform 0.1s ease-out, opacity 0.3s ease;
}
.cursor-dot.visible { opacity: 1; }
.cursor-dot.dark-bg { background: #fff; }
body.cursor-hover .cursor-dot { opacity: 0; }

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s var(--ease) forwards;
}
.delay-1 { animation-delay: 0.25s; }
.delay-2 { animation-delay: 0.5s; }

/* ==========================================================================
   MOVIMENTO (Lenis + GSAP)
   Regra de ouro: o conteúdo é VISÍVEL por padrão. Só fica escondido quando o
   <html> recebe a classe `motion-on`, e um cronômetro de segurança no <head>
   remove essa classe se as bibliotecas não carregarem. Assim uma falha de rede
   nunca deixa o site em branco.
   ========================================================================== */
.scroll-reveal { opacity: 1; transform: none; }

html.motion-on .scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    will-change: opacity, transform;
}

/* Com o GSAP no comando, as animações de CSS saem de cena para não conflitar */
html.motion-on .marquee-text-flow { animation: none; }
html.motion-on .hero-bg { animation: none; }
html.motion-on { scroll-behavior: auto; }

.contador { font-variant-numeric: tabular-nums; }

/* Estilos exigidos pelo Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
/* (a regra oficial do Lenis desativa iframes; aqui não entra, senão o
   mapa do Google na página de contato deixaria de ser clicável) */

@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
@keyframes slowZoomBg { 0% { transform: scale(1); } 100% { transform: scale(1.12); } }
@keyframes float-symbol { 0% { transform: translateY(0); } 100% { transform: translateY(-20px); } }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }
@keyframes marquee-left { 0% { transform: translateX(0); } 100% { transform: translateX(-33.333%); } }
@keyframes marquee-right { 0% { transform: translateX(-33.333%); } 100% { transform: translateX(0); } }

/* ==========================================================================
   AVISO DE COOKIES — discreto, canto inferior, não bloqueia a navegação
   ========================================================================== */
.aviso-cookies {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 1200;
    max-width: 380px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px 10px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.aviso-cookies.visivel { opacity: 1; transform: translateY(0); }

.aviso-cookies p {
    margin: 0;
    font-size: 0.74rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.aviso-cookies a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.aviso-cookies a:hover { color: var(--accent-color); }

.aviso-cookies-ok {
    flex: 0 0 auto;
    padding: 7px 16px;
    border: none;
    border-radius: 50px;
    background: var(--primary-color);
    color: #fff;
    font-family: inherit;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.25s var(--ease);
}
.aviso-cookies-ok:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

@media (max-width: 560px) {
    .aviso-cookies {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
    }
    .aviso-cookies p { font-size: 0.7rem; }
}

/* ==========================================================================
   PÁGINA DE TEXTO LEGAL (privacidade)
   ========================================================================== */
.legal {
    max-width: 820px;
    margin: 0 auto;
    padding: 4rem 2rem 5rem;
}
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 0.4rem; }
.legal .legal-data {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 2.5rem;
}
.legal h2 {
    font-size: 1.15rem;
    margin: 2.5rem 0 0.8rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-soft);
}
.legal h2:first-of-type { border-top: none; padding-top: 0; }
/* overflow-wrap: o e-mail contato@bionariorganicos.com.br é uma palavra só de 31
   caracteres e estourava a caixa em telas de até 344px (277px de conteúdo em 256px
   de caixa), em três parágrafos. `break-word` e não `anywhere`: só quebra quando
   não há alternativa e não mexe na largura mínima intrínseca do bloco. */
.legal p, .legal li {
    color: var(--text-muted);
    font-size: 0.97rem;
    margin-bottom: 0.9rem;
    overflow-wrap: break-word;
}
.legal ul { padding-left: 1.3rem; }
.legal li { margin-bottom: 0.5rem; }
.legal strong { color: var(--text-dark); }
.legal a { color: var(--primary-color); font-weight: 600; }
.legal a:hover { color: var(--accent-color); }

.legal-destaque {
    background: var(--green-mist);
    border-left: 4px solid var(--secondary-color);
    border-radius: 0 10px 10px 0;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}
.legal-destaque p:last-child { margin-bottom: 0; }

/* Créditos do desenvolvedor no rodapé */
.footer-creditos {
    margin-top: 6px;
    font-size: 0.78rem;
    opacity: 0.72;
}
.footer-creditos a { color: inherit; text-decoration: none; }
.footer-creditos a:hover { color: var(--accent-color); text-decoration: underline; }

/* ==========================================================================
   12. RESPONSIVO (Desktop → Tablet → Celular)
   ========================================================================== */

/* --- Tablet e abaixo: menu vira gaveta --- */
@media (max-width: 900px) {
    .menu-toggle { display: flex; }

    .nav-menu {
        position: fixed;
        top: var(--header-h);
        left: 0;
        width: 100%;
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
        border-bottom: 1px solid var(--border-soft);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
    }

    .nav-menu.active { opacity: 1; visibility: visible; transform: translateY(0); }

    .nav-menu ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.75rem 1.25rem 1.5rem;
    }

    .nav-menu > ul > li { border-bottom: 1px solid var(--border-soft); }
    .nav-menu > ul > li:last-child { border-bottom: none; }

    .nav-menu a {
        display: block;
        padding: 1rem 0.25rem;
        font-size: 1rem;
    }
    .nav-menu > ul > li > a::after { display: none; }

    .nav-menu li.has-submenu > a { display: flex; justify-content: space-between; align-items: center; }

    .nav-menu .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        min-width: 0;
        padding: 0 0 0.75rem;
        display: none;
    }
    .nav-menu li.has-submenu.open .submenu { display: flex; }
    .nav-menu li.has-submenu.open .arrow { transform: rotate(180deg); }

    .nav-menu .submenu a {
        background: rgba(0, 163, 76, 0.09);
        border-radius: 8px;
        margin-bottom: 6px;
        padding: 0.8rem 1rem;
    }

    /* Sem hover em toque: o submenu abre por clique (classe .open) */
    .nav-menu li.has-submenu:hover .submenu { display: none; }
    .nav-menu li.has-submenu.open:hover .submenu { display: flex; }

    /* Tablet: a marca ocupa a linha toda e os dois blocos de links dividem a de baixo.
       ORDEM IMPORTA: as duas regras têm a MESMA especificidade (0,2,0), então a que
       vier por último vence. Estava invertido — `.footer-col` anulava `.brand-col` e a
       marca recebia 240px em vez de 100%. Resultado medido em 770-870px: marca e
       contato na 1ª linha e a Navegação órfã, esticada sozinha por 691-781px na 2ª.
       A regra genérica vem primeiro; a específica, depois. */
    .footer-top-row { gap: 2rem 2.5rem; }
    .footer-top-row > .footer-col { flex: 1 1 240px; }

    .history-body { grid-template-columns: 1fr; }
    .history-aside { justify-content: flex-start; }

    .product-section .product-card { grid-template-columns: 1fr; }
    .product-image-col { order: -1; }
    .product-image-col img { max-height: 240px; }

    .linha-header { flex-direction: column; text-align: center; }
}

/* Marca na linha inteira SÓ onde as três colunas realmente não cabem lado a lado.
   Medido: em 880-900px as três entram numa linha só (3x240 + 2x40 = 800px de
   conteúdo) e o rodapé fica com 310px de altura — empurrar a marca para uma linha
   própria ali só deixaria tudo 196px mais alto sem ganho nenhum. Abaixo de 880px
   elas não cabem, e sem esta regra a Navegação ficava órfã e esticada. */
@media (max-width: 879px) {
    .footer-top-row > .brand-col { flex: 1 1 100%; }
}

/* Buraco de ~234px no rodapé entre 901 e 942px. Medido: a linha pede
   300 + 291 + 175 + 2x48 = 862px e o container só oferece 822-863px nessa faixa,
   então a Navegação caía para uma segunda linha e a altura ia de 286 para 520px.
   Aqui o respiro entre colunas cede de 3rem para 2rem e a coluna da marca de 300
   para 260px: 260 + 291 + 175 + 2x32 = 790px, que cabe já nos 822px de 901px. */
@media (min-width: 901px) and (max-width: 1000px) {
    .footer-top-row { gap: 2.5rem 2rem; }
    .footer-top-row > .brand-col { flex: 0 1 260px; }
}

@media (max-width: 1024px) {
    .logo img { height: 46px; max-width: 190px; }
}

/* --- Celular --- */
@media (max-width: 768px) {
    :root { --header-h: 70px; }

    .container { padding: 0 1.25rem; }
    .section, .about, .catalog, .pillars { padding: 3.5rem 0; }

    .logo img { height: 42px; max-width: 165px; }

    .hero { min-height: 88vh; min-height: 88svh; }
    .hero-content { padding: 0 1.25rem; }
    .hero-badge { font-size: 0.5rem; padding: 3px 9px; letter-spacing: 0.6px; }

    /* Menos símbolos flutuantes: evita poluir o banner em tela pequena */
    .chem-symbol { transform: none !important; }
    .chem-symbol:nth-child(n+4) { display: none; }
    .chem-symbol .hex { width: 46px; height: 52px; font-size: 1rem; }
    .chem-symbol .line { height: 32px; }

    .marquee-divider-section { height: 64px; }
    .marquee-ribbon { height: 32px; }
    .marquee-text-flow span { font-size: 0.75rem; padding-right: 2rem; }

    .cta-container { padding: 3.5rem 1.25rem; }

    .product-section { padding: 2.5rem 1.25rem; }
    .product-section .product-card { padding: 1.5rem; }

    /* 0.68rem dá 10,88px no celular (e 9,07px nos <sub>), pequeno demais para ler
       uma tabela de garantias. A tabela tem folga: cabia em 230px de 230px. */
    .garantias-table { font-size: 0.78rem; }

    /* 38x38 era o alvo de toque dos três ícones sociais do rodapé. */
    .social-icons a { width: 44px; height: 44px; }

    .footer-top-row { gap: 2.25rem; }
    .footer-top-row > .footer-col,
    .footer-top-row > .brand-col { flex: 1 1 100%; }
    .footer-catalogos-faixa { gap: 1.5rem; }
    .footer-catalogos { width: 100%; }
    .card-catalogo { flex: 1 1 100%; }

    .map-container { height: 48vh; min-height: 300px; }

    /* Cursor personalizado não faz sentido em toque */
    .cursor-follower, .cursor-dot { display: none; }
}

@media (max-width: 480px) {
    :root { --header-h: 62px; }
    .container { padding: 0 1rem; }
    .logo img { height: 36px; max-width: 140px; }
    .product-image { height: 190px; }
    .badge-amino { width: 84px; height: 84px; flex-basis: 84px; font-size: 0.72rem; }
}

/* --- Telas largas --- */
@media (min-width: 1600px) {
    .container { max-width: 1320px; }
}

/* ==========================================================================
   13. RETINA / HiDPI  &  ACESSIBILIDADE
   ========================================================================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi), (min-resolution: 2dppx) {
    .logo img,
    .footer-logo,
    .product-image img,
    .product-image-col img {
        image-rendering: -webkit-optimize-contrast;
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
}

/* ==========================================================================
   BANNER — 4 fotos alternadas (o JS sorteia data-fundo a cada carregamento)
   Cada variante tem os mesmos 3 tamanhos: 1920 / 1280 / 768.
   Ficam em CSS (e não em style inline) para as media queries continuarem
   valendo: quem abre no celular baixa a versão pequena, não a de 1920.
   ========================================================================== */
.hero-bg[data-fundo="1"] { background-image: url('imagens/hero/hero-1-1920.jpg'); }
.hero-bg[data-fundo="2"] { background-image: url('imagens/hero/hero-2-1920.jpg'); }
.hero-bg[data-fundo="3"] { background-image: url('imagens/hero/hero-3-1920.jpg'); }
.hero-bg[data-fundo="4"] { background-image: url('imagens/hero/hero-4-1920.jpg'); }

/* Tablet — economiza dados servindo a versão de 1280 */
@media (max-width: 820px) {
    .hero-bg { background-image: url('imagens/hero/hero-1-1280.jpg'); }
    .hero-bg[data-fundo="1"] { background-image: url('imagens/hero/hero-1-1280.jpg'); }
    .hero-bg[data-fundo="2"] { background-image: url('imagens/hero/hero-2-1280.jpg'); }
    .hero-bg[data-fundo="3"] { background-image: url('imagens/hero/hero-3-1280.jpg'); }
    .hero-bg[data-fundo="4"] { background-image: url('imagens/hero/hero-4-1280.jpg'); }
}

/* Celular — versão de 768 */
@media (max-width: 480px) {
    .hero-bg { background-image: url('imagens/hero/hero-1-768.jpg'); }
    .hero-bg[data-fundo="1"] { background-image: url('imagens/hero/hero-1-768.jpg'); }
    .hero-bg[data-fundo="2"] { background-image: url('imagens/hero/hero-2-768.jpg'); }
    .hero-bg[data-fundo="3"] { background-image: url('imagens/hero/hero-3-768.jpg'); }
    .hero-bg[data-fundo="4"] { background-image: url('imagens/hero/hero-4-768.jpg'); }
}

/* Foco visível para navegação por teclado */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
    border-radius: 4px;
}

/* No rodapé o anel vermelho (#E00010) cai sobre o verde da marca (#007537):
   1,16:1, quando o WCAG pede 3:1 para o indicador de foco. São ~12 links por
   página que ficavam sem foco visível para quem navega por teclado. Branco sobre
   o mesmo verde dá 5,8:1. */
.footer a:focus-visible,
.footer button:focus-visible {
    outline-color: #ffffff;
}

/* Respeita quem pediu menos animação no sistema */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .fade-in-up, .scroll-reveal { opacity: 1; transform: none; }
}

@media print {
    .header, .marquee-divider-section, .cursor-follower, .cursor-dot,
    .hero-scroll-hint, .menu-toggle { display: none !important; }
    body { background: #fff; }
}

/* ==========================================================================
   13. PÁGINA 404
   Servida pelo Apache (ErrorDocument) a partir de qualquer endereço errado.
   ========================================================================== */
.erro-404 {
    text-align: center;
    padding: 6rem 0 5rem;
}

.erro-codigo {
    font-family: 'CocogooseNum', 'Cocogoose', 'Montserrat', sans-serif;
    font-size: clamp(5rem, 18vw, 10rem);
    line-height: 0.9;
    font-weight: 800;
    color: var(--green-mist);
    margin-bottom: 0.5rem;
    /* Nítido em Retina/HiDPI e sem repintura a cada rolagem (Regra 7) */
    transform: translateZ(0);
    user-select: none;
}

.erro-404 .section-subtitle {
    max-width: 620px;
    margin-bottom: 2.5rem;
}

.erro-acoes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.erro-btn-secundario {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.erro-atalhos h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.erro-atalhos ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 2rem;
    list-style: none;
}

.erro-atalhos a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid transparent;
    transition: border-color 0.25s var(--ease);
}

.erro-atalhos a:hover { border-bottom-color: var(--secondary-color); }

@media (max-width: 480px) {
    .erro-404 { padding: 4rem 0 3.5rem; }
    .erro-acoes .ficha-open-btn { width: 100%; }
}

/* ==========================================================================
   14. BOTÃO FLUTUANTE DO WHATSAPP
   Mesmo número do rodapé. Verde do WhatsApp de propósito: é o sinal que as
   pessoas reconhecem sem ler. Fica à direita; o aviso de cookies fica à
   esquerda, então em tela grande os dois convivem.
   ========================================================================== */
.whats-flutuante {
    position: fixed;
    right: 20px;
    /* env() protege a área do indicador de home do iPhone; o 0px é o fallback
       para quem não suporta, e aí vale só o 20px. */
    /* bottom literal, sem calc() nem var(). Misturar var() com env() dentro de um
       calc() aqui NAO revalidava quando a classe .com-aviso-cookies entrava: a
       variavel passava a 96px e o bottom continuava rendendo 14px. A area segura
       do iPhone entra por margin-bottom, que soma sem precisar de calc. */
    bottom: 20px;
    margin-bottom: env(safe-area-inset-bottom, 0px);
    z-index: 1100;

    display: inline-flex;
    align-items: center;
    height: 60px;
    padding: 0 18px;
    border-radius: 999px;
    box-sizing: border-box;

    background: linear-gradient(135deg, #25D366 0%, #12A550 100%);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(18, 140, 70, 0.38), 0 2px 8px rgba(15, 23, 42, 0.14);

    /* Nitidez em Retina/HiDPI e composição própria, para o pulso não repintar
       o resto da página a cada quadro (Regra 7). */
    /* O deslocamento (hover e "fugir do aviso de cookies") vai por transform, nunca
       por bottom: transform anima no compositor, enquanto animar bottom obriga o
       navegador a refazer o layout a cada quadro. As duas parcelas sao somadas aqui
       para poderem ser mexidas em separado. */
    --whats-hover: 0px;
    transform: translateZ(0) translateY(var(--whats-hover));
    will-change: transform;
    -webkit-tap-highlight-color: transparent;
    /* NAO transicionar bottom: neste elemento (fixed, com camada propria por causa
       do will-change) a transicao de bottom nao progride e o valor fica preso no
       antigo — o botao simplesmente nao saia do lugar quando o aviso de cookies
       aparecia. So transform e box-shadow sao animados. */
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.whats-flutuante:hover,
.whats-flutuante:focus-visible {
    --whats-hover: -3px;
    box-shadow: 0 16px 36px rgba(18, 140, 70, 0.46), 0 3px 10px rgba(15, 23, 42, 0.18);
}

.whats-flutuante:focus-visible {
    outline: 3px solid var(--green-darkest);
    outline-offset: 3px;
}

.whats-flutuante:active {
    transform: translateZ(0) translateY(var(--whats-hover)) scale(0.96);
}

.whats-flutuante-icone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
}

.whats-flutuante-icone svg { width: 100%; height: 100%; display: block; }

/* O rótulo nasce fechado e abre no hover. A transição é de max-width porque
   "auto" não anima; 240px é só um teto folgado para o texto. */
.whats-flutuante-texto {
    display: block;
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    opacity: 0;
    transition: max-width 0.4s var(--ease), opacity 0.3s var(--ease),
                margin-left 0.4s var(--ease);
}

.whats-flutuante:hover .whats-flutuante-texto,
.whats-flutuante:focus-visible .whats-flutuante-texto {
    max-width: 240px;
    margin-left: 12px;
    opacity: 1;
}

/* Pulso discreto, só para o olho encontrar o botão. Fica atrás do conteúdo
   do botão e não captura clique. */
.whats-flutuante-eco {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: #25D366;
    z-index: -1;
    pointer-events: none;
    animation: whats-eco 2.8s var(--ease) infinite;
}

@keyframes whats-eco {
    0%   { transform: scale(1);    opacity: 0.55; }
    70%  { transform: scale(1.32); opacity: 0; }
    100% { transform: scale(1.32); opacity: 0; }
}

/* ---- Tablet e celular ---------------------------------------------------
   Sem hover em tela de toque: o rótulo nunca abriria, então o botão vira um
   círculo limpo e o texto fica só para leitor de tela (o aria-label do <a>).
   56px é o mínimo confortável para o dedo — acima dos 44px recomendados. */
@media (max-width: 1024px) {
    .whats-flutuante {
        width: 56px;
        height: 56px;
        padding: 0;
        justify-content: center;
        right: 16px;
        bottom: 16px;
    }

    .whats-flutuante-texto {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: 0;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    /* Sem hover em toque, entao o levantar nao se aplica. */
    .whats-flutuante:hover { --whats-hover: 0px; }
}

/* Enquanto o aviso de cookies está na tela ele ocupa a largura toda no celular,
   então o botão sobe para não ficar em cima dele. Classe posta pelo cookies.js. */
@media (max-width: 560px) {
    .whats-flutuante {
        width: 54px;
        height: 54px;
        right: 14px;
        bottom: 14px;
    }

    /* Aviso de cookies na tela: aqui ele ocupa a largura toda e ficaria embaixo do
       botao. A altura de 103px so vale a partir de 375px de largura — em 320px o
       texto quebra em mais linhas e o aviso vai a 168px, e o botao cobria 53px dele.
       Por isso a altura agora e MEDIDA pelo cookies.js e publicada em
       --aviso-cookies-h; os 22px somados sao os 10px que o aviso guarda do fundo
       mais 12px de folga. O 103px do fallback preserva o comportamento antigo se o
       JS nao chegar a rodar.
       Conferido que var() dentro de calc() revalida aqui quando a classe entra: o
       bottom passou de 125px para 190px em 320px, folga final de 11,9px. A armadilha
       registrada no REGRAS.md era outra — var() misturado com env() na regra base. */
    .com-aviso-cookies .whats-flutuante {
        bottom: calc(var(--aviso-cookies-h, 103px) + 22px);
    }

    .whats-flutuante-icone { width: 24px; height: 24px; flex-basis: 24px; }
}

/* Quem pediu menos movimento no sistema não recebe o pulso. */
@media (prefers-reduced-motion: reduce) {
    .whats-flutuante-eco { animation: none; opacity: 0; }
    .whats-flutuante,
    .whats-flutuante-texto { transition: none; }
    /* O desvio continua valendo, so deixa de ser animado. */
}

/* ==========================================================================
   15. COOKIES: BOTÃO "RECUSAR" E REABERTURA DA ESCOLHA
   A LGPD dá ao titular o direito de revogar o consentimento a qualquer
   momento. Por isso a decisão nunca é final: depois de aceitar ou recusar,
   fica um botão discreto no canto que traz o aviso de volta.
   ========================================================================== */
.aviso-cookies-acoes {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.aviso-cookies-nao {
    flex: 0 0 auto;
    padding: 7px 14px;
    border: 1.5px solid rgba(15, 23, 42, 0.22);
    border-radius: 50px;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

.aviso-cookies-nao:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(0, 117, 55, 0.06);
}

.aviso-cookies-nao:focus-visible,
.aviso-cookies-ok:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* ---- Botão discreto de reabertura ---------------------------------------
   Fica no canto inferior ESQUERDO, onde o aviso morava — longe do botão do
   WhatsApp, que é o da direita. Discreto de propósito: é utilidade, não
   chamada para ação. */
.reabrir-cookies {
    position: fixed;
    left: 16px;
    bottom: 16px;
    margin-bottom: env(safe-area-inset-bottom, 0px);
    z-index: 1150;

    display: inline-flex;
    align-items: center;
    gap: 0;
    height: 40px;
    padding: 0 11px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-muted);
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);

    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease),
                color 0.25s ease, border-color 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

.reabrir-cookies.visivel {
    opacity: 0.72;
    transform: translateY(0);
    pointer-events: auto;
}

.reabrir-cookies:hover,
.reabrir-cookies:focus-visible {
    opacity: 1;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.reabrir-cookies:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

.reabrir-cookies svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: block;
}

/* Mesmo padrão do botão do WhatsApp: o rótulo abre no hover, em tela com mouse. */
.reabrir-cookies-texto {
    display: block;
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    opacity: 0;
    transition: max-width 0.4s var(--ease), opacity 0.3s var(--ease),
                margin-left 0.4s var(--ease);
}

.reabrir-cookies:hover .reabrir-cookies-texto,
.reabrir-cookies:focus-visible .reabrir-cookies-texto {
    max-width: 200px;
    margin-left: 8px;
    opacity: 1;
}

/* ---- Toque: sem hover, o rótulo nunca abriria ---------------------------- */
@media (max-width: 1024px) {
    .reabrir-cookies {
        width: 40px;
        padding: 0;
        justify-content: center;
    }

    .reabrir-cookies-texto {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: 0;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
}

@media (max-width: 560px) {
    .aviso-cookies-acoes { gap: 6px; }
    /* Os dois botões decidem a privacidade da pessoa e mediam 28-30px de altura.
       44px é o alvo de toque recomendado; o texto segue no mesmo tamanho. */
    .aviso-cookies-nao,
    .aviso-cookies-ok {
        min-height: 44px;
        padding: 7px 14px;
        font-size: 0.72rem;
    }

    .reabrir-cookies {
        left: 14px;
        bottom: 14px;
        width: 44px;
        height: 44px;
    }
}

/* Em tela estreita os dois botões comiam ~158px da largura e sobravam ~95px para o
   texto em 320px, que quebrava em 9 linhas e esticava o aviso para 168px de altura.
   Empilhado, o parágrafo usa a largura toda e os botões ganham uma linha própria,
   alinhados à direita. Medido em 320px: de 9 linhas para 3.
   O corte é 480px — o mesmo breakpoint de "celular em pé" que o resto da folha já
   usa — e não 360px: deitado na conta `largura - 218px`, o parágrafo só deixa de
   ficar espremido perto dos 500px, então um corte mais cedo criava a inversão de
   390px ficar PIOR que 375px. */
@media (max-width: 480px) {
    .aviso-cookies {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .aviso-cookies-acoes { justify-content: flex-end; }
    .aviso-cookies-nao,
    .aviso-cookies-ok { flex: 0 1 auto; padding: 7px 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .reabrir-cookies,
    .reabrir-cookies-texto { transition: opacity 0.2s linear; }
    .reabrir-cookies.visivel { transform: none; }
}
