:root {
    --bg-color: #ffffff;
    --text-color: #111111;
    --text-secondary: #555555;
    --red: #D32F2F;
    --blue: #A9DDF5; /* Lighter sky blue to preserve logo contrast */
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.7);
    
    --font-serif: "Playfair Display", serif;
    --font-sans: "Inter", sans-serif;
    
    --transition: all 0.4s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #FAFAFA;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(91, 165, 218, 0.08) 0%, transparent 60%),
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    background-position: center top, center center, center center;
    background-attachment: fixed;
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

header {
    padding: 1rem 0;
    position: relative;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-small {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-color);
    letter-spacing: -1px;
}
.logo-small span:first-child { color: var(--red); }
.logo-small span:last-child { color: var(--blue); font-style: italic; }

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: var(--text-color);
}

/* --- Nav Wrapper --- */
.nav-wrapper {
    display: flex;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1100;
}

.mobile-menu-btn span,
.mobile-menu-btn span::before,
.mobile-menu-btn span::after {
    display: block;
    background: var(--text-color);
    height: 2px;
    width: 22px;
    border-radius: 2px;
    position: relative;
    transition: var(--transition);
}

.mobile-menu-btn span::before,
.mobile-menu-btn span::after {
    content: '';
    position: absolute;
    left: 0;
}

.mobile-menu-btn span::before { top: -7px; }
.mobile-menu-btn span::after { bottom: -7px; }

/* Mobile Menu Open State (Active via JS) */
.mobile-menu-btn.active span { background: transparent; }
.mobile-menu-btn.active span::before { transform: rotate(45deg); top: 0; }
.mobile-menu-btn.active span::after { transform: rotate(-45deg); bottom: 0; }
.nav-links.active { transform: translateX(0); opacity: 1; visibility: visible; }

/* --- Main Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
}

/* --- Hero Section --- */
.main-logo {
    max-width: 800px;
    width: 100%;
    margin-bottom: 3rem;
    animation: fadeInDown 1.5s ease, floatLogo 6s ease-in-out 1.5s infinite;
}

.summary-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 5rem;
    line-height: 1.8;
    animation: fadeInUp 1.5s ease 0.3s backwards;
}

/* --- Action Buttons (Liquid Glass Light) --- */
.action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 8rem;
    animation: fadeInUp 1.5s ease 0.6s backwards;
}

.btn-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    border: 1px solid var(--glass-border);
    border-top: 1px solid rgba(255,255,255,0.9);
    border-left: 1px solid rgba(255,255,255,0.9);
    padding: 1.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-glass::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: all 0.6s ease;
}

.btn-glass:hover::before {
    left: 200%;
}

.btn-glass:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.6);
}

/* --- Manifesto Section --- */
.manifesto {
    padding: 6rem 2rem;
    border-top: 1px solid var(--glass-border);
}

.manifesto-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    animation: fadeInUp 1.5s ease 0.9s backwards;
}

.impact-phrases {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.impact-phrases span {
    display: block;
    font-style: italic;
    background: linear-gradient(90deg, #5BA5DA, #89CFF0, #D32F2F, #5BA5DA);
    background-size: 300% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: textGradientLoop 5s linear infinite;
}

@keyframes textGradientLoop {
    to {
        background-position: 300% center;
    }
}

.institutional-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* --- Footer --- */
.site-footer {
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}
.site-footer p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}
.site-footer .contact-info {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.site-footer a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}
.site-footer a:hover {
    color: var(--blue);
}

/* --- Component Layouts --- */
.card-group {
    background: rgba(255, 255, 255, 0.5); 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px); 
    border: 1px solid var(--glass-border); 
    border-radius: 20px; 
    padding: 3rem; 
    display: flex; 
    gap: 3rem; 
    align-items: center; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}
.card-image-wrapper { flex: 0 0 200px; }
.card-content-wrapper { flex: 1; text-align: left; }
.btn-group { display: flex; gap: 1rem; }

.bio-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 8rem; }
.book-grid { display: grid; grid-template-columns: 0.4fr 1.6fr; gap: 3rem; align-items: center; }

.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 8rem; }
.grid-contact { display: grid; grid-template-columns: 1fr 1.5fr; gap: 8rem; align-items: center; }
.grid-book-feature { display: grid; grid-template-columns: 0.8fr 2fr; gap: 6rem; align-items: center; }

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

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* --- WhatsApp Float --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    text-decoration: none;
    animation: pulseWhatsApp 2s infinite;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

@keyframes pulseWhatsApp {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37,211,102,0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37,211,102,0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* --- Mobile --- */
@media (max-width: 900px) {
    body {
        background-attachment: scroll; /* Melhora performance e compatibilidade de fundo no mobile */
    }

    header {
        padding: 0.5rem 0;
    }

    .header-container {
        padding: 0 1.5rem;
        height: 70px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 100%; /* Full width para garantir que o fundo cubra tudo */
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }

    .nav-links.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        font-size: 1.5rem;
        color: var(--text-color);
    }

    .action-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-bottom: 4rem;
    }

    .container {
        padding: 2rem 1rem;
    }
    
    .main-logo {
        max-width: 90%;
        margin-bottom: 2rem;
    }

    .summary-text {
        font-size: 1.1rem;
        margin-bottom: 3rem;
    }

    .impact-phrases {
        font-size: 1.8rem;
    }

    .card-group {
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }

    .card-image-wrapper {
        width: 100%;
        max-width: 180px;
    }

    .card-content-wrapper { 
        text-align: center; 
    }
    
    .bio-grid, .grid-2-col, .grid-contact, .grid-book-feature {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .bio-content h2 { 
        font-size: 2.2rem; 
    }
}

@media (max-width: 600px) {
    .action-grid {
        grid-template-columns: 1fr;
    }
    .impact-phrases {
        font-size: 1.5rem;
    }
}
