/* ============================================================
   CALF SAFE – Custom Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --green-primary:   #1a6b2e;
    --green-secondary: #27913b;
    --green-light:     #4caf50;
    --green-pale:      #f0faf2;
    --yellow-gold:     #c9a227;
    --yellow-accent:   #f5c842;
    --yellow-soft:     #fef9e7;
}

/* ── Base ─────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; }

/* ── Navbar ───────────────────────────────────────────────── */
#navbar { background: transparent; }
#navbar.scrolled {
    background: rgba(15, 65, 27, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 24px rgba(0,0,0,0.25);
}

/* ── Gradient text ────────────────────────────────────────── */
.gradient-text {
    background: linear-gradient(135deg, #f5c842 0%, #c9a227 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Section dividers ─────────────────────────────────────── */
.wave-top {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}
.wave-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

/* ── Hero video overlay ───────────────────────────────────── */
.hero-overlay {
    background: linear-gradient(
        160deg,
        rgba(10, 41, 18, 0.88) 0%,
        rgba(26, 107, 46, 0.72) 50%,
        rgba(39, 145, 59, 0.55) 100%
    );
}

/* ── Cards ────────────────────────────────────────────────── */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(26, 107, 46, 0.18);
}

/* ── Benefit icons ────────────────────────────────────────── */
.benefit-icon {
    background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-secondary) 100%);
}

/* ── Gallery ──────────────────────────────────────────────── */
.gallery-img {
    transition: transform 0.4s ease, filter 0.4s ease;
    cursor: zoom-in;
}
.gallery-img:hover {
    transform: scale(1.03);
    filter: brightness(1.08);
}

/* ── Testimonial ──────────────────────────────────────────── */
.testimonial-card {
    border-left: 4px solid var(--yellow-gold);
}

/* ── FAQ Accordion ────────────────────────────────────────── */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-answer.open {
    max-height: 400px;
}
.faq-icon {
    transition: transform 0.3s ease;
}
.faq-icon.open {
    transform: rotate(45deg);
}

/* ── CTA Buttons ──────────────────────────────────────────── */
.btn-primary {
    background: linear-gradient(135deg, var(--yellow-accent) 0%, var(--yellow-gold) 100%);
    color: var(--green-primary);
    font-weight: 700;
    border-radius: 9999px;
    box-shadow: 0 8px 24px rgba(197, 162, 39, 0.35);
    transition: all 0.3s ease;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(197, 162, 39, 0.5);
    filter: brightness(1.05);
}

.btn-outline {
    border: 2px solid rgba(255,255,255,0.6);
    color: #fff;
    border-radius: 9999px;
    transition: all 0.3s ease;
}
.btn-outline:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.9);
}

/* ── Scroll animations ────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}
.reveal-right {
    opacity: 0;
    transform: translateX(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ── WhatsApp float ───────────────────────────────────────── */
#whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 14px 32px rgba(37, 211, 102, 0.6);
}

/* ── Pricing ──────────────────────────────────────────────── */
.price-badge {
    background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-secondary) 100%);
}

/* Preço "de" riscado e selo de desconto (preço original maior que o de venda) */
.preco-de s {
    text-decoration-thickness: 2px;
    text-decoration-color: rgba(255, 255, 255, 0.85);
}
.preco-off {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: #facc15;
    color: #3f2d00;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.4;
    vertical-align: middle;
}
.preco-off-claro {
    margin-left: 4px;
    background: #fef3c7;
    color: #92400e;
}

/* ── Checkout form ────────────────────────────────────────── */
.form-input {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    outline: none;
}
.form-input:focus {
    border-color: var(--green-secondary);
    box-shadow: 0 0 0 3px rgba(39, 145, 59, 0.15);
}
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.375rem;
}

/* ── Payment method pills ─────────────────────────────────── */
.payment-pill input[type="radio"] { display: none; }
.payment-pill label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}
.payment-pill input:checked + label {
    border-color: var(--green-secondary);
    background: var(--green-pale);
    color: var(--green-primary);
}

/* ── Loading spinner ──────────────────────────────────────── */
.spinner {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Modal ────────────────────────────────────────────────── */
#modal-backdrop {
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

/* ── PIX QR ───────────────────────────────────────────────── */
.pix-qr img { border: 8px solid #fff; border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.12); }

/* ── Responsive video ─────────────────────────────────────── */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 20px;
}
.video-wrapper video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--green-secondary); border-radius: 4px; }

/* Botão secundário claro (usado sobre fundos verdes: "Acompanhar pedido") */
.btn-outline-light {
    color: #fff;
    border: 2px solid rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .06);
    transition: all .3s ease;
}
.btn-outline-light:hover {
    border-color: var(--yellow-accent);
    color: var(--yellow-accent);
    background: rgba(255, 255, 255, .1);
}

/* Modal "Acompanhe seu pedido" */
#modal-pedido:not(.hidden) .modal-pedido-box { animation: modalPedidoIn .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes modalPedidoIn { from { opacity: 0; transform: translateY(14px) scale(.97); } }

/* ── Aviso de cookies e preferências (LGPD) ───────────────── */
.cs-cookie {
    position: fixed; z-index: 80; left: 16px; right: 16px; bottom: 16px;
    max-width: 980px; margin: 0 auto; padding: 18px 20px;
    display: flex; align-items: center; gap: 18px 24px; flex-wrap: wrap;
    background: #fff; color: #1f2a22; border: 1px solid #dfe7e1; border-radius: 18px;
    box-shadow: 0 24px 60px -12px rgba(15, 65, 27, .35);
    font-size: 14px; line-height: 1.55;
    animation: csEntrar .35s cubic-bezier(.2,.8,.2,1);
}
.cs-cookie.cs-saindo { opacity: 0; transform: translateY(12px); transition: all .25s ease; }
.cs-cookie-texto { flex: 1 1 420px; min-width: 0; }
.cs-cookie-texto strong { display: block; color: #0f411b; font-size: 15px; margin-bottom: 2px; }
.cs-cookie-texto p { margin: 0; color: #4b5563; }
.cs-cookie a, .cs-prefs a { color: #1a6b2e; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cs-cookie-acoes { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cs-btn {
    font: inherit; font-weight: 700; font-size: 14px; cursor: pointer;
    padding: 10px 18px; border-radius: 999px; border: 2px solid transparent; transition: all .2s;
}
.cs-btn-pri { background: #1a6b2e; color: #fff; }
.cs-btn-pri:hover { background: #155625; }
.cs-btn-sec { background: #fff; color: #1a6b2e; border-color: #1a6b2e; }
.cs-btn-sec:hover { background: #f0faf2; }
.cs-btn-link { background: none; color: #374151; padding-left: 8px; padding-right: 8px; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.cs-btn:focus-visible, .cs-fechar:focus-visible { outline: 3px solid #f5c842; outline-offset: 2px; }
@media (max-width: 640px) {
    .cs-cookie { left: 10px; right: 10px; bottom: 10px; padding: 16px; }
    .cs-cookie-acoes { width: 100%; }
    .cs-cookie-acoes .cs-btn-pri, .cs-cookie-acoes .cs-btn-sec { flex: 1 1 140px; }
    .cs-cookie-acoes .cs-btn-link { order: 3; width: 100%; }
}
@keyframes csEntrar { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.cs-prefs {
    width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto;
    padding: 0; border: 0; border-radius: 22px; color: #1f2a22;
    box-shadow: 0 30px 80px -10px rgba(0,0,0,.45); font-size: 14px; line-height: 1.55;
}
.cs-prefs::backdrop { background: rgba(5, 30, 12, .6); backdrop-filter: blur(3px); }
.cs-prefs form { padding: 24px; }
.cs-prefs-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cs-prefs h2 { margin: 0; font-size: 20px; font-weight: 800; color: #0f411b; }
.cs-fechar { border: 0; background: #f3f4f6; width: 36px; height: 36px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; color: #374151; }
.cs-prefs-intro { color: #4b5563; margin: 8px 0 16px; }
.cs-cat { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; padding: 14px 16px; border: 1px solid #e5e7eb; border-radius: 14px; margin-bottom: 10px; }
label.cs-cat { cursor: pointer; }
.cs-cat strong { display: block; color: #111827; }
.cs-cat p { margin: 2px 0 0; color: #6b7280; font-size: 13px; }
.cs-cat code { font-size: 12px; background: #f3f4f6; padding: 1px 5px; border-radius: 5px; }
.cs-sempre { flex-shrink: 0; font-size: 12px; font-weight: 700; color: #1a6b2e; background: #f0faf2; padding: 4px 10px; border-radius: 999px; }
.cs-switch { position: relative; flex-shrink: 0; width: 46px; height: 26px; margin-top: 2px; }
.cs-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.cs-switch span { position: absolute; inset: 0; border-radius: 999px; background: #d1d5db; transition: background .2s; }
.cs-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.cs-switch input:checked + span { background: #1a6b2e; }
.cs-switch input:checked + span::after { transform: translateX(20px); }
.cs-switch input:focus-visible + span { outline: 3px solid #f5c842; outline-offset: 2px; }
.cs-prefs-nota { font-size: 12.5px; color: #6b7280; margin: 6px 0 18px; }
.cs-prefs-acoes { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 480px) { .cs-prefs-acoes .cs-btn { flex: 1 1 100%; } }

/* ── Política de Privacidade ──────────────────────────────── */
.politica h2 { font-size: 1.35rem; font-weight: 800; color: #0f411b; margin: 2.5rem 0 .75rem; scroll-margin-top: 90px; }
.politica h3 { font-size: 1.05rem; font-weight: 700; color: #155625; margin: 1.5rem 0 .5rem; }
.politica p, .politica li { color: #374151; line-height: 1.75; }
.politica p { margin: .6rem 0; }
.politica ul { list-style: disc; padding-left: 1.4rem; margin: .5rem 0; }
.politica li { margin: .25rem 0; }
.politica a { color: #1a6b2e; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.politica table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .9rem; }
.politica th, .politica td { text-align: left; padding: .65rem .75rem; border-bottom: 1px solid #e5e7eb; vertical-align: top; }
.politica th { background: #f0faf2; color: #155625; font-weight: 700; }
.politica .tabela-rolavel { overflow-x: auto; border: 1px solid #e5e7eb; border-radius: 14px; }
.politica .tabela-rolavel table { margin: 0; }
.politica code { font-size: .85em; background: #f3f4f6; padding: 1px 6px; border-radius: 6px; }
