/* ==========================================================================
   Dra. Maria Cristina Bertoletti — folha de estilos única do site
   ========================================================================== */

/* 1. Cores e base
   ----------------------------------------------------------------------- */
:root {
    --bg-principal: #FCFAF7;       /* off-white perolado */
    --bg-subtil: #F3ECE3;          /* champagne suave */
    --cor-texto: #2F3E46;          /* grafite */
    --cor-texto-mutado: #5F6E75;   /* cinza para textos secundários */
    --cor-destaque: #BA9173;       /* nude / dourado do logo */
    --cor-destaque-escura: #8F6A4F;/* dourado escuro (texto legível) */
    --raio: 20px;
    --sombra: 0 12px 32px rgba(47, 62, 70, 0.06);
}

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

html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 90px; }

body {
    background-color: var(--bg-principal);
    color: var(--cor-texto);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.65;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--cor-texto);
    font-weight: 600;
    line-height: 1.2;
}

h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin-bottom: 1.2rem; }

a { text-decoration: none; color: inherit; transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease; }

ul { list-style: none; }

/* 2. Layout
   ----------------------------------------------------------------------- */
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.row-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; }

.text-center { text-align: center; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

section { padding: 96px 0; }

.section-tag {
    display: inline-block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--cor-destaque-escura);
    margin-bottom: 12px;
    font-weight: 600;
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto 16px;
    color: var(--cor-texto-mutado);
    font-size: 1.05rem;
}

/* 3. Topo e menu
   ----------------------------------------------------------------------- */
.top-bar {
    background-color: var(--bg-subtil);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 9px 0;
}

.top-bar-links { display: flex; gap: 20px; }
.top-bar-links a:hover { color: var(--cor-destaque-escura); }

.main-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(252, 250, 247, 0.96);
    backdrop-filter: blur(6px);
    padding: 18px 0;
    border-bottom: 1px solid rgba(47, 62, 70, 0.06);
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.55rem;
    display: block;
    line-height: 1.1;
}

.logo-sub {
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--cor-destaque-escura);
    margin-top: 4px;
    display: block;
    font-weight: 500;
}

.nav-menu { display: flex; align-items: center; gap: 28px; }

.nav-menu a { font-size: 0.93rem; font-weight: 500; }
.nav-menu a:hover { color: var(--cor-destaque-escura); }

.nav-menu .btn-nav {
    background: var(--cor-texto);
    color: #FFFFFF;
    padding: 10px 22px;
    border-radius: 50px;
}
.nav-menu .btn-nav:hover { background: var(--cor-destaque-escura); color: #FFFFFF; }

/* 4. Botões
   ----------------------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--cor-destaque-escura);
    color: #FFFFFF;
    box-shadow: 0 6px 20px rgba(143, 106, 79, 0.25);
}
.btn-primary:hover { background-color: var(--cor-texto); transform: translateY(-2px); }

.btn-secondary { border-color: var(--cor-texto); color: var(--cor-texto); }
.btn-secondary:hover { background-color: var(--cor-texto); color: #FFFFFF; transform: translateY(-2px); }

.btn-block { width: 100%; }

/* 5. Início
   ----------------------------------------------------------------------- */
.hero-section {
    background: linear-gradient(180deg, var(--bg-subtil) 0%, var(--bg-principal) 100%);
    padding: 88px 0 96px;
}

.hero-content h1 { font-size: clamp(2.4rem, 4.5vw, 3.6rem); margin-bottom: 24px; }

.hero-content p {
    font-size: 1.08rem;
    color: var(--cor-texto-mutado);
    margin-bottom: 18px;
    max-width: 520px;
}

.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-img img {
    width: 100%;
    max-width: 420px;
    height: auto;
    margin: 0 auto;
    border-radius: 200px 200px var(--raio) var(--raio);
    box-shadow: var(--sombra);
}

/* 6. Sobre
   ----------------------------------------------------------------------- */
.about-text p { margin-bottom: 18px; color: var(--cor-texto-mutado); font-size: 1.05rem; }

.badges { display: grid; gap: 16px; }

.badge-item {
    background: #FFFFFF;
    padding: 22px 26px;
    border-radius: 14px;
    border-left: 4px solid var(--cor-destaque);
    box-shadow: var(--sombra);
}
.badge-item strong { display: block; font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 600; }
.badge-item span { color: var(--cor-texto-mutado); font-size: 0.92rem; }

/* 7. Tratamentos
   ----------------------------------------------------------------------- */
.services-section { background: #FFFFFF; }

.group-title {
    font-size: 1.35rem;
    margin: 56px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--bg-subtil);
}

.card {
    background: var(--bg-principal);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(47, 62, 70, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sombra); }

.card-img { width: 100%; height: 180px; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .card-img { transform: scale(1.06); }

.card-content { padding: 20px 22px 24px; }
.card-content h4 { font-size: 1.15rem; margin-bottom: 8px; }
.card-content p { font-size: 0.93rem; color: var(--cor-texto-mutado); line-height: 1.55; }

/* 8. Consultório
   ----------------------------------------------------------------------- */
.features-img img { width: 100%; height: 440px; object-fit: cover; border-radius: var(--raio); box-shadow: var(--sombra); }

.features-list { margin-top: 24px; }
.features-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 16px;
    font-weight: 500;
}
.features-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--cor-destaque-escura);
    font-weight: 700;
}

/* 9. Contato
   ----------------------------------------------------------------------- */
.contact-section { background: var(--bg-subtil); }
.contact-section .grid-2 { align-items: start; }

.contact-intro { color: var(--cor-texto-mutado); margin-bottom: 28px; }

.info-blocks li { margin-bottom: 20px; }
.info-blocks strong {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--cor-destaque-escura);
    margin-bottom: 4px;
}
.info-blocks a { font-weight: 500; }
.info-blocks a:hover { color: var(--cor-destaque-escura); }

.map { margin-top: 28px; border-radius: var(--raio); overflow: hidden; box-shadow: var(--sombra); }
.map iframe { display: block; width: 100%; height: 260px; border: 0; }

.contact-form-box {
    background: #FFFFFF;
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--sombra);
}
.contact-form-box h3 { font-size: 1.5rem; margin-bottom: 24px; }

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #E2E8F0;
    background-color: #F8FAFC;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--cor-texto);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--cor-destaque);
    background-color: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(186, 145, 115, 0.15);
}

.form-note { margin-top: 14px; font-size: 0.8rem; color: var(--cor-texto-mutado); text-align: center; }

.hidden-field { position: absolute; left: -9999px; }

/* 10. Rodapé e WhatsApp
   ----------------------------------------------------------------------- */
.main-footer { background: var(--cor-texto); color: #CBD5E1; padding: 56px 0 28px; font-size: 0.9rem; }

.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-name { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: #FFFFFF; }
.main-footer a:hover { color: #FFFFFF; }

.footer-copy {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.78rem;
    color: #94A3B8;
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 32px;
    right: 32px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}
.whatsapp-float:hover { transform: scale(1.08); background-color: #1EBE5A; }
.whatsapp-float svg { width: 32px; height: 32px; fill: #FFFFFF; }

/* 11. Celular e tablet
   ----------------------------------------------------------------------- */
@media (max-width: 992px) {
    .grid-2 { grid-template-columns: 1fr; gap: 48px; }
    .hero-content { text-align: center; }
    .hero-content p { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-img { order: -1; }
    .hero-img img { max-width: 300px; }
    .features-img img { height: 320px; }
}

@media (max-width: 768px) {
    html { font-size: 15px; scroll-padding-top: 20px; }
    section { padding: 72px 0; }
    .top-bar .row-between { flex-direction: column; gap: 4px; text-align: center; }
    .main-header { position: static; }
    .navbar { flex-direction: column; text-align: center; }
    .nav-menu { flex-wrap: wrap; justify-content: center; gap: 14px 20px; }
    .nav-menu .btn-nav { flex-basis: 100%; text-align: center; max-width: 260px; margin: 4px auto 0; }
    .contact-form-box { padding: 28px 22px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 20px; }
    .main-footer { padding-bottom: 90px; }
    .whatsapp-float { width: 54px; height: 54px; bottom: 20px; right: 20px; }
}

/* 12. Páginas simples (mensagem enviada e erro 404)
   ----------------------------------------------------------------------- */
.page-simple {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(180deg, var(--bg-subtil) 0%, var(--bg-principal) 100%);
}
.simple-box {
    max-width: 560px;
    background: #FFFFFF;
    padding: 48px 40px;
    border-radius: 24px;
    box-shadow: var(--sombra);
    text-align: center;
}
.simple-box h1 { font-size: 2.2rem; margin-bottom: 16px; }
.simple-box p { color: var(--cor-texto-mutado); margin-bottom: 14px; }
.simple-box p a { color: var(--cor-destaque-escura); font-weight: 600; }
.simple-box .btn { margin-top: 16px; }
