/* --- VARIÁVEIS DE ESTILO --- */
:root {
    --primary: #004e92;
    /* Azul Royal Profundo */
    --primary-dark: #000428;
    /* Azul Noite */
    --accent: #00d2ff;
    /* Ciano Vibrante para detalhes */
    --gold: #c5a059;
    /* Toque de sofisticação */
    --bg-light: #f3f6f9;
    --white: #ffffff;
    --text-main: #2c3e50;
    --text-light: #95a5a6;
    --gradient-hero: linear-gradient(135deg, var(--primary-dark), var(--primary));
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
}

/* --- RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Manrope', sans-serif;
    text-decoration: none;
    list-style: none;
    scroll-behavior: smooth;
}

body {
    background-color: var(--white);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- UTILITÁRIOS --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    background: linear-gradient(90deg, var(--primary) 0%, #0072ff 100%);
    color: var(--white);
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 78, 146, 0.3);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 78, 146, 0.5);
}

.btn-gold {
    background: var(--gold);
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.3);
}

.btn-gold:hover {
    background: #b08d4b;
    box-shadow: 0 10px 25px rgba(197, 160, 89, 0.5);
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.2rem;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-dark);
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-light);
    overflow: hidden;
    margin-top: 0;
}

.hero-shape {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background: var(--gradient-hero);
    clip-path: polygon(20% 0%, 100% 0, 100% 100%, 0% 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.hero-text h1 span {
    color: var(--primary);
}

.hero-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-image {
    position: relative;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: -20px 20px 50px rgba(0, 0, 0, 0.2);
    /* Imagem profissional de dentista/consultório */
    background: url('https://images.unsplash.com/photo-1629909613654-28e377c37b09?q=80&w=2068&auto=format&fit=crop') center/cover;
}

/* --- DIFERENCIAIS (Floating Cards) --- */
.features {
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-box {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s;
    border-bottom: 4px solid transparent;
}

.feature-box:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--primary);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    background: #eef4ff;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.feature-box h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: var(--primary-dark);
}

/* --- SERVIÇOS (Grid Layout) --- */
.services {
    background-color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.section-header .divider {
    width: 60px;
    height: 4px;
    background: var(--gold);
    margin: 0 auto;
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    position: relative;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    group: 1;
    transition: all 0.4s ease;
}

.service-card:hover {
    box-shadow: var(--shadow-soft);
    background: var(--white);
}

.service-img {
    height: 220px;
    width: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s;
}

/* Imagens de exemplo */
.s-img-1 {
    background-image: url('https://images.unsplash.com/photo-1588776814546-1ffcf4722e12?q=80&w=2070&auto=format&fit=crop');
}

.s-img-2 {
    background-image: url('https://images.unsplash.com/photo-1598256989800-fe5f95da9787?q=80&w=2070&auto=format&fit=crop');
}

.s-img-3 {
    background-image: url('https://images.unsplash.com/photo-1606811971618-4486d14f3f99?q=80&w=2000&auto=format&fit=crop');
}

.s-img-4 {
    background-image: url('https://images.unsplash.com/photo-1609840114035-1c29046a8028?q=80&w=2070&auto=format&fit=crop');
}

.s-img-5 {
    background-image: url('https://images.unsplash.com/photo-1551076805-e1869033e561?q=80&w=2000&auto=format&fit=crop');
}

.s-img-6 {
    background-image: url('https://images.unsplash.com/photo-1579684385127-1ef15d508118?q=80&w=2080&auto=format&fit=crop');
}

.service-card:hover .service-img {
    transform: scale(1.05);
}

.service-info {
    padding: 25px;
}

.service-info h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.service-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.service-link {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* --- LOCALIZAÇÃO E CONTATO (Dark Mode) --- */
.contact-section {
    background-color: var(--primary-dark);
    color: var(--white);
    position: relative;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.contact-details {
    padding: 60px;
    background: var(--gradient-hero);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-details h3 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.detail-item {
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
}

.detail-icon {
    font-size: 1.5rem;
    color: var(--accent);
    margin-top: 5px;
}

.detail-text h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.detail-text p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.map-wrapper {
    position: relative;
    min-height: 500px;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- FOOTER --- */
footer {
    background: #0b1120;
    color: #8899a6;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h2 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-brand span {
    color: var(--primary);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #8899a6;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
}

/* --- WHATSAPP --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    z-index: 2000;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-shape {
        width: 100%;
        height: 50%;
        top: auto;
        bottom: 0;
        clip-path: none;
        opacity: 0.1;
    }

    .hero-text {
        margin-bottom: 40px;
    }

    .hero-text p {
        margin: 0 auto 30px;
    }

    .hero-image {
        display: none;
    }

    /* Ocultar imagem no mobile ou ajustar */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .map-wrapper {
        height: 300px;
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 30px;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .contact-details {
        padding: 40px 20px;
    }
}