:root {
    --bg-light-blue: #eef7fc;
    --primary-blue: #0a3d62;
    --accent-blue: #3498db;
    --text-dark: #2c3e50;
    --text-gray: #576574;
    --white: #ffffff;
    --glass-border: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    background: radial-gradient(circle at top, #f9fcff 0, #eef7fc 45%, #e2f0fa 100%);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-blue);
    font-weight: 700;
}

/* NAVBAR */

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 10%;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    margin-left: 25px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    transition: 0.3s;
    padding: 6px 10px;
    border-radius: 999px;
}

.nav-links a:hover {
    color: var(--accent-blue);
    background: rgba(52, 152, 219, 0.08);
}

/* Link ativo (seção atual) */
.nav-links a.active {
    background: rgba(52, 152, 219, 0.14);
    color: var(--accent-blue);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.25);
}

/* Ícone hamburguer (mobile) */
.nav-toggle {
    display: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* HERO */

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 70px 10% 60px;
    gap: 40px;
}

.hero-content {
    max-width: 560px;
}

.hero-content h1 {
    font-size: 3.1rem;
    margin-bottom: 18px;
}

.hero-content p {
    color: var(--text-gray);
    margin-bottom: 22px;
}

.hero-actions-explain {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 14px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    background: var(--accent-blue);
    color: white;
    padding: 13px 26px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
    font-size: 0.95rem;
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.35);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--accent-blue);
    border: 1px solid rgba(52, 152, 219, 0.5);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(52, 152, 219, 0.45);
}

.hero-image {
    width: 460px;
    height: 460px;
    border-radius: 32px;
    object-fit: cover;
    box-shadow: var(--shadow-soft);
}

section {
    padding: 70px 10%;
}

.specialties-section {
    text-align: center;
}

.specialties-section h2 {
    font-size: 2.1rem;
    margin-bottom: 6px;
}

.subtitle {
    color: var(--text-gray);
    max-width: 620px;
    margin: 12px auto 0;
    font-size: 0.97rem;
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
    margin-top: 36px;
}

/* Cards “vidro” */
.spec-card {
    background: var(--glass-bg);
    padding: 32px 26px;
    border-radius: 24px;
    text-align: left;
    box-shadow: var(--shadow-soft);
    transition: 0.4s;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(14px);
}

.spec-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
    border-color: rgba(52, 152, 219, 0.5);
    background: rgba(255, 255, 255, 0.9);
}

.spec-card i {
    font-size: 2.4rem;
    color: var(--accent-blue);
    margin-bottom: 14px;
}

.spec-card h3 {
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.spec-card p {
    color: var(--text-gray);
    font-size: 0.93rem;
}

/* Carrossel */

.carousel-wrapper {
    max-width: 1000px;
    margin: 38px auto 0;
    overflow: hidden;
    border-radius: 28px;
    height: 460px;
    position: relative;
    box-shadow: 0 22px 55px rgba(0,0,0,0.16);
    background: #dfeaf5;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.7, 0, 0.3, 1);
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 18px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: 0.3s;
}

.carousel-wrapper:hover .carousel-nav {
    opacity: 1;
}

.carousel-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0,0,0,0.1);
    color: var(--text-dark);
    cursor: pointer;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: 0.3s;
}

.carousel-btn:hover {
    background: var(--accent-blue);
    color: #fff;
    transform: scale(1.05);
}

.carousel-indicators {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid rgba(0,0,0,0.1);
}

.dot.active {
    background: var(--accent-blue);
    width: 24px;
    border-radius: 999px;
}

/* Corpo Clínico */

.bio-section {
    padding-top: 50px;
}

.bio-section > h2 {
    text-align: center;
    margin-bottom: 6px;
}

.bio-section > p {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 34px;
}

.bio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.bio-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(255, 255, 255, 0.9);
    padding: 22px 22px;
    border-radius: 22px;
    align-items: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.8);
    text-align: center;
}

.bio-image {
    width: 100%;
    max-width: 220px;
    height: 260px;
}

.bio-image img {
    width: 100%;
    height: 100%;
    border-radius: 22px;
    object-fit: cover;
}

.bio-text .specialty {
    color: var(--accent-blue);
    font-weight: 800;
    font-size: 1.02rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.bio-text h3 {
    margin-top: 6px;
    margin-bottom: 8px;
}

.bio-text p {
    color: var(--text-gray);
    font-size: 0.94rem;
}

/* Contato */

#contato p {
    margin-top: 8px;
}

footer {
    padding: 34px;
    background: white;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

/* Botão voltar ao topo */

#backToTop {
    position: fixed;
    bottom: 34px;
    right: 34px;
    width: 48px;
    height: 48px;
    background: var(--accent-blue);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.15rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 9999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
    border: none;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTop:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    background: #ffffff;
    color: var(--accent-blue);
}

/* Tooltip botão topo */

#backToTop::after {
    content: "Voltar para o topo";
    position: absolute;
    bottom: 60px;
    right: 0;
    background: #ffffff;
    color: #050b1c;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    pointer-events: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#backToTop:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: 70px;
}

#backToTop::before {
    content: "";
    position: absolute;
    bottom: 52px;
    right: 16px;
    border: 7px solid transparent;
    border-top-color: #ffffff;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    pointer-events: none;
}

#backToTop:hover::before {
    opacity: 1;
    visibility: visible;
    bottom: 57px;
}

/* RESPONSIVO */

@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-image {
        width: 100%;
        height: 320px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero {
        padding-top: 50px;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 12px 6%;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 60px;
        right: 6%;
        left: 6%;
        background: rgba(255, 255, 255, 0.98);
        border-radius: 18px;
        box-shadow: 0 14px 40px rgba(0,0,0,0.15);
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 18px;
        gap: 8px;
        display: none;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        margin-left: 0;
        width: 100%;
        padding: 8px 10px;
    }

    .carousel-wrapper {
        height: 340px;
    }

    section {
        padding-inline: 6%;
    }

    .bio-container {
        text-align: center;
    }

    .bio-image {
        max-width: 180px;
        height: auto;
    }

    .bio-image img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    #backToTop {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}
