/* ============================================================
   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%);
}

/* ── 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; }
