/* CSS do Site Público - MISMEC 4 Varas - Design System Multi-Tema (Verde/Azul, Claro/Escuro) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@500;600;700;800;900&display=swap');

/* =====================================================================
   VARIÁVEIS DE TEMA E PALETAS DE CORES
   ===================================================================== */

/* 1. PADRÃO: VERDE ESCURO (DARK GREEN) */
:root, [data-theme="dark-green"] {
    --bg-main: #061e14;
    --bg-surface: #0b2b1d;
    --bg-card: #103826;
    --bg-card-hover: #154530;
    --border-color: rgba(16, 185, 129, 0.25);
    --border-color-hover: rgba(52, 211, 153, 0.5);
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --accent: #10b981;
    --accent-hover: #059669;
    --accent-light: #34d399;
    --accent-gradient: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    --accent-glow: 0 8px 25px rgba(16, 185, 129, 0.35);
    --header-bg: rgba(6, 30, 20, 0.88);
    --badge-bg: rgba(16, 185, 129, 0.15);
    --badge-text: #34d399;
    --input-bg: rgba(4, 20, 13, 0.8);
    --footer-bg: #04160e;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-soft: 0 15px 35px -10px rgba(0, 0, 0, 0.5);
    --container-max: 1200px;
}

/* 2. VERDE CLARO (LIGHT GREEN) */
[data-theme="light-green"] {
    --bg-main: #f0fdf4;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f7fee7;
    --border-color: rgba(16, 185, 129, 0.22);
    --border-color-hover: rgba(5, 150, 105, 0.5);
    --text-primary: #064e3b;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --accent: #059669;
    --accent-hover: #047857;
    --accent-light: #10b981;
    --accent-gradient: linear-gradient(135deg, #059669 0%, #10b981 100%);
    --accent-glow: 0 8px 25px rgba(5, 150, 105, 0.25);
    --header-bg: rgba(255, 255, 255, 0.92);
    --badge-bg: rgba(5, 150, 105, 0.12);
    --badge-text: #065f46;
    --input-bg: #ffffff;
    --footer-bg: #ecfdf5;
    --shadow-soft: 0 10px 30px -8px rgba(5, 150, 105, 0.15);
}

/* 3. AZUL ESCURO (DARK BLUE) */
[data-theme="dark-blue"] {
    --bg-main: #070f26;
    --bg-surface: #0e1b42;
    --bg-card: #152659;
    --bg-card-hover: #1c3275;
    --border-color: rgba(56, 189, 248, 0.25);
    --border-color-hover: rgba(56, 189, 248, 0.55);
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --accent: #0284c7;
    --accent-hover: #0369a1;
    --accent-light: #38bdf8;
    --accent-gradient: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #1d4ed8 100%);
    --accent-glow: 0 8px 25px rgba(2, 132, 199, 0.4);
    --header-bg: rgba(7, 15, 38, 0.88);
    --badge-bg: rgba(56, 189, 248, 0.15);
    --badge-text: #38bdf8;
    --input-bg: rgba(4, 9, 24, 0.8);
    --footer-bg: #040817;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-soft: 0 15px 35px -10px rgba(0, 0, 0, 0.6);
}

/* 4. AZUL CLARO (LIGHT BLUE) */
[data-theme="light-blue"] {
    --bg-main: #f0f9ff;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f0fdfa;
    --border-color: rgba(2, 132, 199, 0.2);
    --border-color-hover: rgba(2, 132, 199, 0.5);
    --text-primary: #0c4a6e;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --accent: #0284c7;
    --accent-hover: #0369a1;
    --accent-light: #38bdf8;
    --accent-gradient: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
    --accent-glow: 0 8px 25px rgba(2, 132, 199, 0.2);
    --header-bg: rgba(255, 255, 255, 0.92);
    --badge-bg: rgba(2, 132, 199, 0.12);
    --badge-text: #0369a1;
    --input-bg: #ffffff;
    --footer-bg: #e0f2fe;
    --shadow-soft: 0 10px 30px -8px rgba(2, 132, 199, 0.12);
}

/* =====================================================================
   ESTILOS GLOBAIS
   ===================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, sans-serif;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* =====================================================================
   HEADER & NAVBAR
   ===================================================================== */
.site-header {
    background: var(--header-bg);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
    max-height: 54px;
}

.brand-logo img {
    height: 48px !important;
    max-height: 48px !important;
    max-width: 180px;
    width: auto !important;
    object-fit: contain;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.brand-logo:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.brand-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--text-primary);
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 6px 4px;
    position: relative;
    transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-light);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* =====================================================================
   HERO SLIDER & BANNERS
   ===================================================================== */
.hero-slider {
    position: relative;
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.12), transparent 70%);
    border-bottom: 1px solid var(--border-color);
    padding: 70px 24px;
    text-align: center;
}

[data-theme="dark-blue"] .hero-slider {
    background: radial-gradient(circle at center, rgba(56, 189, 248, 0.15), transparent 70%);
}

.hero-content {
    max-width: 860px;
    margin: 0 auto;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 18px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 28px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* =====================================================================
   CONTAINERS & SEÇÕES
   ===================================================================== */
.site-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 50px 24px;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-tag {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-light);
    font-weight: 700;
    margin-bottom: 8px;
    display: inline-block;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
}

/* =====================================================================
   CARDS & GRIDS
   ===================================================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.card-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.card-item:hover {
    transform: translateY(-4px);
    border-color: var(--border-color-hover);
    box-shadow: var(--accent-glow);
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.card-text {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 18px;
    flex: 1;
}

/* =====================================================================
   BOTÕES
   ===================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: var(--accent-glow);
}

.btn-primary:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.45);
}

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

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-light);
    color: var(--accent-light);
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

/* =====================================================================
   BADGES & FORMS
   ===================================================================== */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-accent {
    background: var(--badge-bg);
    color: var(--badge-text);
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.92rem;
    outline: none;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

/* =====================================================================
   SEÇÃO APOIE A CAUSA & PIX NO RODAPÉ
   ===================================================================== */
.support-cause-section {
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-main) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-soft);
}

.pix-box-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 32px;
    align-items: center;
}

@media (max-width: 768px) {
    .pix-box-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.pix-qr-container {
    background: #ffffff;
    padding: 16px;
    border-radius: var(--radius-md);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.pix-qr-code {
    width: 160px;
    height: 160px;
    object-fit: contain;
}

.pix-key-badge {
    background: var(--input-bg);
    border: 1px dashed var(--border-color);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

/* =====================================================================
   RODAPÉ
   ===================================================================== */
.site-footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--border-color);
    padding: 60px 24px 24px 24px;
    margin-top: auto;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 36px;
    margin-bottom: 36px;
}

.footer-brand {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

.footer-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-primary);
}

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

.footer-links li {
    margin-bottom: 8px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.84rem;
    color: var(--text-muted);
}

/* =====================================================================
   WIDGET DE TESTE DE INTERFACE (THEME SWITCHER)
   ===================================================================== */
.theme-switcher-widget {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--input-bg);
    padding: 4px 8px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
}

.theme-pill-btn {
    background: transparent;
    border: none;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-pill-btn:hover {
    color: var(--text-primary);
}

.theme-pill-btn.active {
    background: var(--accent);
    color: #ffffff;
    box-shadow: var(--accent-glow);
}

/* =====================================================================
   CARROSSEL EM GRID (4 ITENS POR TELA)
   ===================================================================== */
.grid-carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 8px 0 16px 0;
}

.grid-carousel-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 72px) / 4);
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 4px;
}

.grid-carousel-track::-webkit-scrollbar {
    display: none;
}

@media (max-width: 1024px) {
    .grid-carousel-track {
        grid-auto-columns: calc((100% - 24px) / 2);
    }
}

@media (max-width: 640px) {
    .grid-carousel-track {
        grid-auto-columns: 100%;
    }
}
