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

:root {
    --primary-color: #050b3d;   /* azul marinho */
    --secondary-color: #0fd990; /* verde */
    --accent-color: #5542f4;    /* roxo/azul */
    --dark-color: #050b3d;
    --light-color: #f4f7ff;
    --white: #ffffff;
    --gray: #6c757d;
    --light-gray: #f8f9fa;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Header/Navigation */
header {
    position: fixed;
    width: 100%;
    max-width: 100vw;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(5, 11, 61, 0.1);
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

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

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

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--secondary-color);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--secondary-color);
}

.nav-links a.active::after {
    width: 100%;
}

.cta-btn {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--white) !important;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    transition: transform 0.3s, box-shadow 0.3s;
    font-weight: 600;
    white-space: nowrap;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(15, 217, 144, 0.35);
}

.cta-btn::after {
    display: none;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section (página interna) */
.hero {
    margin-top: 100px;
    min-height: 50vh;
    background: linear-gradient(135deg, var(--light-color) 0%, var(--white) 100%);
    display: flex;
    align-items: center;
    padding: 3rem 5%;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.hero::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.08;
    top: -150px;
    right: -80px;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: var(--secondary-color);
    border-radius: 50%;
    opacity: 0.08;
    bottom: -80px;
    left: -40px;
    z-index: 0;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-text h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-text h1 span {
    color: var(--secondary-color);
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(5, 11, 61, 0.04);
    color: var(--dark-color);
    font-size: 0.9rem;
}

.badge i {
    color: var(--secondary-color);
}

.hero-image {
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    max-width: 320px;
    border-radius: 999px;
    object-fit: cover;
    box-shadow: 0 20px 60px rgba(5, 11, 61, 0.2);
}

/* Team Section */
.team {
    padding: 4rem 5% 5rem;
    background: var(--light-gray);
    width: 100%;
    max-width: 100vw;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.3rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-title p {
    font-size: 1.05rem;
    color: var(--gray);
}

.team-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.doctor-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(5, 11, 61, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(5, 11, 61, 0.05);
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 45px rgba(5, 11, 61, 0.15);
}

.doctor-photo {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--light-color), var(--white));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.doctor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* Ajuste específico para a foto da Dra. Nathália */
.doctor-photo.adjust-nathalia img {
    object-position: center 15%;
}

.doctor-photo.placeholder {
    background: linear-gradient(135deg, rgba(85, 66, 244, 0.08), rgba(15, 217, 144, 0.08));
}

.doctor-photo.placeholder::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doctor-photo.placeholder::after {
    content: '\f007';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 3.5rem;
    color: var(--white);
    position: absolute;
    z-index: 1;
}

.doctor-info {
    padding: 1.7rem 1.8rem 1.8rem;
}

.doctor-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.4rem;
}

.doctor-role {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.8rem;
}

.doctor-specialties {
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 0.9rem;
    line-height: 1.6;
}

.doctor-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.doctor-meta span {
    font-size: 0.85rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(85, 66, 244, 0.05);
    color: var(--dark-color);
}

.doctor-contact {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.88rem;
    color: var(--gray);
}

.doctor-contact span {
    display: flex;
    align-items: center;
}

.doctor-contact i {
    color: var(--accent-color);
    margin-right: 0.5rem;
    width: 16px;
}

.doctor-contact a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s;
}

.doctor-contact a:hover {
    color: var(--secondary-color);
}

.team-cta {
    margin-top: 3.5rem;
    text-align: center;
}

.team-cta p {
    color: var(--gray);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--white);
    box-shadow: 0 10px 30px rgba(15, 217, 144, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(15, 217, 144, 0.45);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--secondary-color), #00c46a);
    color: var(--white);
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 5px 25px rgba(15, 217, 144, 0.45);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 35px rgba(15, 217, 144, 0.55);
}

/* Footer */
footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 5%;
    text-align: center;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: rgba(85, 66, 244, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.3rem;
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 968px) {
    nav {
        padding: 1rem 3%;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 90px;
        flex-direction: column;
        background: white;
        width: 100%;
        max-width: 100vw;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(5, 11, 61, 0.1);
        padding: 2rem 0;
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu {
        display: flex;
    }

    .hero {
        padding-left: 3%;
        padding-right: 3%;
    }

    .team,
    footer {
        padding-left: 3%;
        padding-right: 3%;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .hero-image {
        justify-content: flex-start;
    }

    .hero-image img {
        max-width: 260px;
    }

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

@media (max-width: 576px) {
    nav {
        padding: 0.8rem 4%;
    }

    .hero,
    .team,
    footer {
        padding-left: 4%;
        padding-right: 4%;
    }

    .hero {
        margin-top: 90px;
    }

    .hero-text h1 {
        font-size: 2.1rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 1.9rem;
    }

    .section-title p {
        font-size: 1rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 20px;
        right: 20px;
    }

    .logo img {
        height: 50px;
    }
}
