/* 
    Design System PRO MAX - APAE Manhuaçu
    Vibrant, Emotional, Premium & Accessible.
*/

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

:root {
    /* Cores Institucionais Refinadas */
    --clr-yellow: #FFD700;
    --clr-yellow-rgb: 255, 215, 0;
    --clr-orange: #FF8C00;
    --clr-green: #228B22;
    --clr-green-dark: #1a6b1a;
    --clr-blue: #0056b3;
    --clr-blue-light: #e6f0ff;
    
    /* Neutros Premium */
    --clr-bg: #fdfdfd;
    --clr-white: #ffffff;
    --clr-text: #1a1a1a;
    --clr-text-light: #555555;
    --clr-border: #eeeeee;
    
    /* Gradientes */
    --grad-primary: linear-gradient(135deg, var(--clr-blue), var(--clr-green));
    --grad-accent: linear-gradient(135deg, var(--clr-orange), var(--clr-yellow));
    --grad-glass: rgba(255, 255, 255, 0.8);
    
    /* Sombras & Profundidade */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Curvas */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    
    --trans-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.7;
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4 { 
    font-family: 'Outfit', sans-serif; 
    font-weight: 800; 
    color: var(--clr-text);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Glassmorphism Classes */
.glass {
    background: var(--grad-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Container */
.container { 
    max-width: 1300px; 
    margin: 0 auto; 
    padding: 0 2rem; 
    width: 100%;
}

@media (max-width: 480px) {
    .container { padding: 0 1.25rem; }
}

/* Header Refinado */
header {
    background: var(--grad-glass);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100000;
    padding: 1.2rem 0;
    transition: var(--trans-smooth);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-wrapper { 
    display: grid; 
    grid-template-columns: 1fr auto 1fr; 
    align-items: center; 
}

.logo { 
    grid-column: 1; 
    justify-self: start; 
    display: flex; 
    align-items: center; 
    gap: 1rem; 
    font-size: 1.5rem; 
    font-weight: 800; 
    color: var(--clr-green);
}

.nav-links { 
    grid-column: 2;
    display: flex; 
    gap: 2.2rem; 
    list-style: none; 
    align-items: center; 
    justify-content: center;
}
.nav-links a { 
    font-weight: 600; font-size: 0.95rem; color: var(--clr-text);
    position: relative; text-decoration: none;
    transition: var(--trans-smooth);
    white-space: nowrap;
}
.nav-links a:not(.btn):hover { color: var(--clr-blue); }
.nav-links a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px;
    background: var(--clr-blue); transition: 0.3s;
}
.nav-links a:hover::after { width: 100%; }
.nav-links .btn-nav:after { display: none; }

.btn-nav {
    padding: 12px 24px !important;
    font-size: 0.9rem !important;
    margin-left: 0.5rem;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.2) !important;
}
.btn-nav:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.3) !important;
}

/* Mobile Menu Classes */
#mobile-toggle { 
    grid-column: 3;
    justify-self: end;
    display: none; 
    z-index: 9001; 
    background: var(--clr-blue-light);
    width: 45px;
    height: 45px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    place-items: center;
}

@media (max-width: 991px) {
    .nav-wrapper { display: flex; justify-content: space-between; }
    #mobile-toggle { display: grid; }
    
    .nav-links {
        position: fixed;
        inset: 0;
        background: #ffffff !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        z-index: 99999;
        transform: translateX(100%);
        transition: var(--trans-smooth);
        padding: 5rem 2rem;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        display: flex !important;
    }
    
    .nav-links.active {
        transform: translateX(0);
        display: flex !important;
    }
    
    .nav-links a {
        font-size: 1.8rem;
        color: var(--clr-text);
    }
}

/* Buttons Premium */
.btn {
    padding: 14px 32px; border-radius: 50px; font-family: 'Outfit', sans-serif;
    font-weight: 700; cursor: pointer; border: none; transition: var(--trans-smooth);
    display: inline-flex; align-items: center; gap: 10px;
}

.btn-primary {
    background: var(--grad-accent);
    color: var(--clr-text);
    box-shadow: 0 10px 20px rgba(255, 140, 0, 0.2);
}
.btn-primary:hover { 
    transform: scale(1.05) translateY(-3px); 
    box-shadow: 0 15px 30px rgba(255, 140, 0, 0.3);
}

.btn-outline {
    background: transparent; border: 2px solid var(--clr-green); color: var(--clr-green);
}
.btn-outline:hover { background: var(--clr-green); color: white; }

/* Hero Moderno */
.hero {
    position: relative; height: 90vh; min-height: 700px;
    display: flex; align-items: center; overflow: hidden;
    color: var(--clr-text);
}

.hero-bg {
    position: absolute; inset: 0; z-index: -1;
    background: url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?auto=format&fit=crop&q=80&w=1600') center/cover;
}

.hero-overlay {
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(255,255,255,0.95) 30%, rgba(255,255,255,0.4) 100%);
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 5.5rem); margin-bottom: 1.5rem;
    line-height: 1.1; letter-spacing: -2px;
}

.hero-content p {
    font-size: clamp(1rem, 4vw, 1.4rem); max-width: 600px; margin-bottom: 3rem;
    color: var(--clr-text-light);
}

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

.reveal { opacity: 0; transform: translateY(40px); transition: 1s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Cards & Hover Effects */
.card {
    background: var(--clr-white); padding: 3rem; border-radius: var(--radius-md);
    border: 1px solid var(--clr-border); transition: var(--trans-smooth);
    position: relative; overflow: hidden;
}

.card:hover { 
    transform: translateY(-15px); 
    box-shadow: var(--shadow-lg); 
    border-color: var(--clr-yellow);
}

.card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px;
    background: var(--grad-primary); opacity: 0; transition: 0.3s;
}
.card:hover::before { opacity: 1; }

/* Grid System */
.grid-3 { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2.5rem; 
}

@media (max-width: 768px) {
    .grid-3 { grid-template-columns: 1fr; }
}

/* Transparência Cards Responsive */
.transparency-card {
    display: grid;
    grid-template-columns: 80px 1fr 200px;
    align-items: center;
    gap: 20px;
}

@media (max-width: 768px) {
    .transparency-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    .transparency-card .card-date {
        border-right: none !important;
        border-bottom: 1px solid var(--clr-border);
        padding-bottom: 1rem;
    }
    .transparency-card .card-action {
        text-align: center !important;
    }
}

/* Footer */
footer {
    background: #111; color: #fff; padding: 6rem 0 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
}

.footer-links ul { list-style: none; }
.footer-links a { text-decoration: none; color: rgba(255,255,255,0.7); transition: 0.3s; }
.footer-links a:hover { color: var(--clr-yellow); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 4rem; padding-top: 2rem; }

/* Utility */
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.text-center { text-align: center; }

/* Responsividade */
@media (max-width: 768px) {
    section { padding-top: 5rem !important; padding-bottom: 5rem !important; padding-left: 0 !important; padding-right: 0 !important; }
    .hero { height: auto; min-height: 550px; }
    .hero-content { padding-top: 4rem; padding-bottom: 4rem; }
    .btn { width: 100%; justify-content: center; }
    .flex-mobile-col { flex-direction: column !important; }
    
    /* Font size reductions */
    h1 { font-size: 2.8rem !important; }
    h2 { font-size: 2.2rem !important; }
    .footer-grid { gap: 2rem; }
}

@media (max-width: 480px) {
    h1 { font-size: 2.2rem !important; }
    h2 { font-size: 1.8rem !important; }
    .card { padding: 2rem 1.5rem; }
    .nav-wrapper { gap: 0.5rem; }
    .logo { gap: 0.5rem; }
    .logo img { height: 45px !important; }
    .logo-text { 
        font-size: 1rem; 
        max-width: 50vw;
        white-space: nowrap; 
        overflow: hidden; 
        text-overflow: ellipsis; 
    }
    #mobile-toggle {
        width: 40px;
        height: 40px;
    }
}
