/* =====================================================
   Douglas Winter — Custom Styles
   Complementa o Tailwind CSS
   ===================================================== */

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Body font */
body {
    font-family: 'Inter', sans-serif;
}

/* ---- Animations ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.animate-fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.7s ease-out forwards;
}
.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }
.animate-delay-500 { animation-delay: 0.5s; }

/* ---- Scroll-reveal ---- */
.section-fade {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.section-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Card hover lift ---- */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* ---- Bandeira card top-border on hover ---- */
.bandeira-card {
    border-top: 4px solid transparent;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.bandeira-card:hover {
    border-color: #F7941D;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* ---- Mobile menu slide ---- */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.32s ease-out, opacity 0.28s ease-out;
}
#mobile-menu.open {
    max-height: 480px;
    opacity: 1;
}

/* ---- Gradient text helper ---- */
.gradient-text {
    background: linear-gradient(135deg, #F7941D, #c8610a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Custom scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #1A2654; }
::-webkit-scrollbar-thumb { background: #F7941D; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #e67e00; }

/* ---- Proposal tabs (propostas.php) ---- */
.proposta-tab {
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.proposta-tab.active {
    background: #F7941D;
    color: #fff;
    border-color: #F7941D;
}

/* ---- Form focus ring ---- */
.form-input:focus {
    outline: none;
    border-color: #F7941D;
    box-shadow: 0 0 0 3px rgba(247, 148, 29, 0.2);
}

/* ---- Alert messages ---- */
.alert-success {
    background: #d4edda;
    border-left: 4px solid #1D7A3A;
    color: #155724;
}
.alert-error {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

/* ---- Admin panel ---- */
.admin-badge-financeiro  { background: #FFF4E6; color: #e67e00; }
.admin-badge-voluntario  { background: #E8F5E9; color: #1D7A3A; }
.admin-badge-mobilizacao { background: #E8EBF5; color: #1A2654; }

/* ---- Hero decorative blobs ---- */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

/* ---- Print ---- */
@media print {
    nav, footer, .cta-section, #vamos-juntos { display: none !important; }
}
