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

:root {
    /* Premium Color Palette */
    --primary: #064e3b;
    --primary-light: #065f46;
    --primary-dark: #022c22;
    --accent: #d4a373;
    /* Sophisticated Gold/Tan */
    --accent-dark: #bc8a5f;
    --bg-white: #ffffff;
    --bg-off-white: #fcfdfc;
    --bg-dark: #0f1715;
    --text-main: #1a2a26;
    --text-muted: #5c716c;
    --glass: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(6, 78, 59, 0.1);

    /* Spacing */
    --section-padding: 60px 0;
    /* Reduced from 100px */
    --container-width: 1200px;

    /* Transitions */
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-off-white);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Glassmorphism Utility */
.glass {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* Brand Button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 36px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(6, 78, 59, 0.15);
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(6, 78, 59, 0.25);
    filter: brightness(1.2);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 36px;
    background: transparent;
    color: var(--primary);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    border: 2px solid var(--primary);
    transition: var(--transition-smooth);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Sections Styles */
section {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-smooth);
}

nav.scrolled {
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 100px;
    /* Doubled from 50px */
    width: auto;
}

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

/* Corrigir botão do topo */
.nav-links .btn-primary {
    color: white !important;
    background: var(--primary);
    padding: 12px 24px !important;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero {
    min-height: 90vh;
    /* Slightly reduced to keep content above fold */
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 50% 50%, #f0fdf4 0%, var(--bg-off-white) 70%);
    padding-top: 220px;
    /* Increased from 100px to avoid menu overlap */
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Background Element */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23064e3b' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}

.hero-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 900px !important;
    /* Limit width for readability */
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(6, 78, 59, 0.08);
    /* Lighter badge background */
    color: var(--primary-dark);
    border: 1px solid rgba(6, 78, 59, 0.1);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.hero-text h1 {
    font-size: 4.2rem;
    /* Larger font size */
    line-height: 1.1;
    margin-bottom: 30px;
    color: var(--primary-dark);
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a2a26 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.35rem;
    /* Larger paragraph */
    color: var(--text-muted);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
}

/* Trust Bar */
.trust-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    padding: 15px 40px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
}

.trust-item i {
    color: var(--accent);
    font-size: 1.1rem;
}

.trust-divider {
    width: 4px;
    height: 4px;
    background: #ccc;
    border-radius: 50%;
}

.btn-secondary {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition-smooth);
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1 / 1;
    background: #fbfbfd;
    /* Apple's signature off-white */
    border-radius: 60px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.04),
        inset 0 0 30px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.image-wrapper img {
    width: auto;
    max-height: 350px;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.08));
    z-index: 2;
    opacity: 0.9;
}

/* Reflexo de luz premium no topo do quadro */
.image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, transparent 40%);
    pointer-events: none;
    z-index: 1;
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    border-radius: 20px;
    transition: var(--transition-smooth);
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.stat-item:hover {
    transform: translateY(-3px);
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.stats-icon {
    font-size: 2.5rem;
    color: var(--accent);
    background: rgba(212, 163, 115, 0.1);
    padding: 15px;
    border-radius: 15px;
}

.stat-number {
    font-size: 2rem;
    font-family: 'Outfit', sans-serif;
    color: var(--primary-dark);
    line-height: 1.1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.about-image-wrapper {
    position: relative;
    width: 100%;
    /* max-width: 500px; */
    border-radius: 0;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.about-image-wrapper img {
    width: 100%;
    max-width: 450px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

.about-list {
    list-style: none;
    margin-top: 30px;
}

.about-list li {
    margin-bottom: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 24px;
}

.bento-item {
    padding: 40px;
    border-radius: 32px;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.bento-item:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.bento-item.large {
    grid-column: span 3;
    /* Spans all 3 columns to fill the row */
    background: white;
    /* Consistência com os outros cards */
    border: 1px solid var(--glass-border);
}

.bento-item.large h3 {
    color: var(--primary-dark);
}

.bento-item.large p {
    color: var(--text-muted);
}

.icon-wrap {
    height: 60px;
    width: 60px;
    margin-bottom: 25px;
}

.icon-wrap img {
    height: 100%;
}

.bento-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

/* Footer */
footer {
    background: #0f172a;
    color: white;
    padding: 80px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand img {
    height: 40px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-social a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
    font-weight: 500;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Differenciais Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition-smooth);
    text-align: center;
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.feature-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 15px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--primary-dark);
}

.faq-answer {
    padding: 0 25px 25px;
    color: var(--text-muted);
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Map Section */
.map-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.map-info {
    background: var(--bg-dark);
    color: white;
    padding: 80px;
}

.map-info h2 {
    color: var(--accent);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.contact-item i {
    color: var(--accent);
    font-size: 1.2rem;
}

/* Brain4Care Styling */
.brain4care-banner {
    background: linear-gradient(135deg, #022c22 0%, #064e3b 100%);
    color: white;
    border-radius: 40px;
    padding: 80px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(212, 163, 115, 0.2);
}

.b4c-badge {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 25px;
    display: inline-block;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.brain4care-banner h2 {
    font-size: 3.2rem;
    color: white;
    margin-bottom: 25px;
}

.brain4care-banner p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .brain4care-banner {
        grid-template-columns: 1fr;
        padding: 60px 30px;
        text-align: center;
    }
}

/* Full Responsiveness & Mobile Enhancements */
@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }
}

@media (max-width: 992px) {
    :root {
        --section-padding: 50px 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }

    .hero-text {
        order: 2;
    }

    .hero-image {
        order: 1;
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-grid {
        grid-template-columns: 1fr 1fr;
    }

    .bento-item.large {
        grid-column: span 2;
    }

    .map-grid {
        grid-template-columns: 1fr;
    }

    .map-info {
        padding: 40px;
    }

    .map-frame iframe {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-item.large {
        grid-column: span 1;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .brain4care-banner {
        padding: 40px 20px;
    }

    .brain4care-banner h2 {
        font-size: 2.2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand {
        margin: 0 auto;
    }
}

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

    h1 {
        font-size: 2.4rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .trust-bar {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        width: 100%;
    }

    .trust-divider {
        display: none;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-smooth);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5);
    color: #fff;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 28px;
    }
}

/* Footer Styles Refined */
footer.section {
    background: var(--bg-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    max-width: 300px;
}

.footer-brand img {
    height: 65px;
    filter: brightness(0) invert(1);
    margin-bottom: 20px;
}

.footer-brand p {
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

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

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.7;
    font-size: 0.9rem;
    display: block;
    transition: var(--transition-smooth);
}

.footer-links ul li a:hover {
    opacity: 1;
    color: var(--accent);
    padding-left: 5px;
}

.footer-contact .btn-primary {
    padding: 12px 24px;
    font-size: 0.9rem;
}

.footer-copyright {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.8rem;
    opacity: 0.6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-bottom img {
    height: 36px;
    filter: brightness(0) invert(1);
    vertical-align: middle;
}

@media (max-width: 900px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 60px;
    }

    .footer-brand {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-links,
    .footer-contact {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}