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

:root {
    --primary-color: #004a99;
    --secondary-color: #00a8a8;
    --accent-color: #25D366; /* WhatsApp Green */
    --text-dark: #1a1a1a;
    --text-light: #4a5568; /* Slightly more contrast */
    --bg-light: #f8faff;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* --- Top Bar --- */
.top-bar {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.top-bar-text {
    font-weight: 300;
}

.top-bar-social {
    display: flex;
    gap: 1.2rem;
}

.top-bar-social a:hover {
    opacity: 0.8;
}

/* --- Header --- */
.header {
    background: var(--white);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 80px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 1.5rem; /* Increased for better spacing */
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
}

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

/* Dropdowns */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow);
    border-radius: 8px;
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.nav-item:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li a {
    padding: 0.7rem 1.5rem;
    display: block;
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
    border-left: 0 solid var(--secondary-color);
}

.sub-menu li a:hover {
    background: #f0f7ff;
    color: var(--primary-color);
    padding-left: 2rem; /* Slid effect */
    border-left: 4px solid var(--secondary-color);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Specific Buttons */
.btn-laudos {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
}

.btn-laudos:hover {
    background: #003d7a;
    transform: translateY(-2px);
}

.btn-whatsapp-nav {
    background: var(--accent-color);
    color: var(--white) !important;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-baby {
    background: var(--secondary-color); /* Matches company brand */
    color: var(--white) !important;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- Button Animations --- */
.btn-primary, .btn-secondary, .btn-laudos, .btn-whatsapp-nav, .btn-baby {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary:hover, .btn-secondary:hover, .btn-laudos:hover, .btn-whatsapp-nav:hover, .btn-baby:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.btn-whatsapp-nav:hover {
    background: #1eb954;
}

.btn-baby:hover {
    background: #008b8b; /* Darker teal */
}

/* --- Hero Slider --- */
.hero {
    padding: 0;
    position: relative;
    height: 85vh;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 0 5%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 700px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
}

.btn-secondary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
}

/* --- Chatbot (Nina) --- */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.chat-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--accent-color); /* WhatsApp Green */
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    position: relative;
}

/* Wave effect */
.chat-btn::before, .chat-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--accent-color);
    opacity: 0.7;
    z-index: -1;
    animation: wave 2.5s infinite;
}

.chat-btn::after {
    animation-delay: 1.25s;
}

@keyframes wave {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chat-window.active {
    display: flex;
}

.chat-header {
    background: var(--primary-color);
    color: white;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
}

.chat-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: #f0f4f8;
}

.chat-footer {
    padding: 1rem;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.chat-footer input {
    flex: 1;
    border: 1px solid #ddd;
    padding: 0.8rem;
    border-radius: 8px;
    outline: none;
}

.message {
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    max-width: 85%;
    font-size: 1.05rem;
}

.bot-message {
    background: white;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.user-message {
    background: var(--primary-color);
    color: white;
    align-self: flex-end;
    margin-left: auto;
    border-bottom-right-radius: 2px;
}

.options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.option-btn {
    background: white;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}

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

/* --- Footer --- */
.footer {
    background: #002244;
    color: white;
    padding: 5rem 5% 2rem;
}

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

.footer-logo img {
    height: 40px;
    margin-bottom: 1.5rem;
}

.footer h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer ul li {
    margin-bottom: 0.8rem;
}

.footer ul li a {
    color: #cbd5e0;
}

.footer ul li a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #cbd5e0;
    font-size: 0.9rem;
}

/* --- Responsive Layout --- */
@media (max-width: 1024px) {
    .nav-menu {
        display: none; /* Hidden by default on mobile/tablet */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        gap: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid #eee;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .nav-link {
        display: block;
        padding: 15px 0;
        width: 100%;
        text-align: center;
    }

    /* Ajustar botões no mobile */
    .btn-whatsapp-nav, .btn-baby, .btn-laudos {
        margin: 10px auto;
        width: fit-content;
        min-width: 200px;
        justify-content: center;
        font-size: 0.9rem;
    }

    .mobile-toggle {
        display: block;
    }

    .sub-menu {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0 0 0 20px;
        display: none;
    }

    .nav-item:hover .sub-menu {
        display: block;
    }
}

@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        text-align: center;
        gap: 5px;
        padding: 10px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}
