/* =====================================================================
   modern.css — camada de modernização visual da home da Dra. Érica Leite.
   Carregada por ÚLTIMO: sobrepõe style.css/responsive.css/custom.css sem
   alterar o HTML (preserva SEO, dados estruturados e tracking). Paleta
   ancorada na marca (#0b4b61) com acento teal calmo.
   ===================================================================== */

:root {
    --brand: #0b4b61;
    --brand-700: #073241;
    --brand-300: #3f8298;
    --accent: #16a394;
    --accent-600: #0f8576;
    --ink: #1f2d33;
    --muted: #5d6f76;
    --bg-soft: #f4f8fa;
    --line: rgba(16, 42, 51, .08);
    --shadow-sm: 0 2px 12px rgba(16, 42, 51, .06);
    --shadow: 0 14px 38px rgba(16, 42, 51, .12);
}

/* ---- Tipografia ---- */
body#home {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}
body#home h1, body#home h2, body#home h3, body#home h4,
.lbox-details h1, .title-box h2, .about-main-info h2, .serviceBox .title {
    font-family: 'Poppins', sans-serif;
    letter-spacing: -.01em;
}

/* ---- Navbar (sticky + frosted) ---- */
.top-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    box-shadow: 0 1px 0 var(--line);
    transition: box-shadow .25s ease;
}
.top-header.fixed-menu {            /* neutraliza o "pulo" do position:fixed legado */
    position: sticky;
    animation: none;
    box-shadow: 0 8px 26px rgba(16, 42, 51, .10);
}
.top-header .navbar { padding: .45rem 0; }
.navbar-brand img { max-height: 56px; width: auto; }
.top-header .navbar .navbar-collapse ul li a {
    position: relative;
    color: var(--brand);
    font-weight: 600;
    font-size: 12.5px;
    letter-spacing: .04em;
    padding: 10px 12px;
    border-radius: 8px;
    transition: color .2s ease;
}
.top-header .navbar .navbar-collapse ul li a:hover,
.top-header .navbar .navbar-collapse ul li a.active {
    background: transparent;
    color: var(--accent-600);
}
.top-header .navbar .navbar-collapse ul li a.active::after { display: none; }  /* remove seta legada */
.top-header .navbar-nav li a::before {
    content: "";
    position: absolute;
    left: 12px; right: 12px; bottom: 5px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}
.top-header .navbar-nav li a:hover::before,
.top-header .navbar-nav li a.active::before { transform: scaleX(1); }

.navbar-toggler { border: 1px solid var(--line); border-radius: 10px; }
.navbar-toggler span { background: var(--brand); }
.navbar-toggler:hover { border-color: var(--accent); }
.navbar-toggler:hover span { background: var(--accent); }

/* ---- Hero ---- */
.hero-static { min-height: 600px !important; }
.hero-overlay {
    background: linear-gradient(105deg, rgba(6, 40, 52, .88) 0%, rgba(8, 57, 74, .60) 46%, rgba(8, 57, 74, .12) 82%);
}
.hero-static-wrapper .lbox-details { max-width: 690px; }
.lbox-details h1 {
    font-size: clamp(2rem, 4.6vw, 3.35rem);
    font-weight: 700;
    line-height: 1.12;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .28);
    margin-bottom: 0;
}
.lbox-details p {
    font-size: clamp(1.05rem, 1.6vw, 1.28rem);
    color: rgba(255, 255, 255, .92);
    line-height: 1.6;
    margin-top: 1rem;
    max-width: 36em;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1.1rem;
    padding: .42rem .95rem;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 999px;
    color: #fff;
    font-weight: 600;
    font-size: .82rem;
    letter-spacing: .03em;
    backdrop-filter: blur(4px);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.9rem; }
.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .85rem 1.65rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn-modern:hover { transform: translateY(-2px); text-decoration: none; }
.btn-wa { background: #25D366; color: #fff; box-shadow: 0 12px 28px rgba(37, 211, 102, .32); }
.btn-wa:hover { background: #1ebe5a; color: #fff; box-shadow: 0 16px 34px rgba(37, 211, 102, .42); }
.btn-ghost {
    background: rgba(255, 255, 255, .10);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, .65);
    backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: #fff; color: var(--brand); border-color: #fff; }

/* ---- Títulos de seção ---- */
.about-box, .services-box, .appointment-main, .reviews-box, .map-box, .contact-box { padding: 84px 0; }
.title-box h2 {
    font-weight: 700;
    color: #152b33;
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    padding-bottom: 18px;
    margin-bottom: 14px;
}
.title-box h2::after {
    background: linear-gradient(90deg, var(--brand), var(--accent));
    width: 64px;
    height: 4px;
    border-radius: 4px;
}
.title-box p { color: var(--muted); font-size: 1.05rem; max-width: 660px; margin: 0 auto; }
.title-box h2 span, .about-main-info h2 span { color: var(--accent); text-decoration: none; }

/* ---- Sobre ---- */
.about-main-info h2 { font-weight: 700; color: #152b33; }
.about-main-info h3 strong { color: var(--brand); }
.about-photo {
    height: 440px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}
.about-details p.mb-3 {
    padding: .7rem .95rem .7rem 1rem;
    border-left: 3px solid var(--accent);
    background: var(--bg-soft);
    border-radius: 0 10px 10px 0;
    margin-bottom: .7rem !important;
}
.about-details p.mb-3 > span:first-child { color: var(--accent); }

/* ---- Diferenciais (cards) ---- */
.services-box { background: var(--bg-soft); }
.serviceBox {
    height: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 30px 22px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.serviceBox:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: rgba(22, 163, 148, .4);
}
.serviceBox::before { display: none; }            /* remove triângulo legado */
.serviceBox .service-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(11, 75, 97, .10), rgba(22, 163, 148, .18));
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    transition: background .25s ease, color .25s ease;
}
.serviceBox .service-icon::before { display: none; }
.serviceBox:hover .service-icon { background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; }
.serviceBox .title { font-size: 1.14rem; font-weight: 600; color: #15303a; margin-bottom: .6rem; }
.serviceBox .description { color: var(--muted); font-size: .93rem; line-height: 1.62; }
.services-box .owl-carousel .owl-nav .owl-prev,
.services-box .owl-carousel .owl-nav .owl-next {
    background: #fff;
    color: var(--brand);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.services-box .owl-carousel .owl-nav .owl-prev:hover,
.services-box .owl-carousel .owl-nav .owl-next:hover { background: var(--brand); color: #fff; }

/* ---- FAQ ---- */
.appointment-main { background: #fff; }
.well-block .well-title h2 { color: var(--brand); font-weight: 600; }
#accordion2 .card {
    border: 1px solid rgba(11, 75, 97, .14);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
#accordion2 .card-header { background: #fff; border-bottom: 0; padding: 0; }
#accordion2 .card-header a {
    position: relative;
    display: block;
    padding: 17px 52px 17px 20px;
    color: var(--brand);
    font-weight: 600;
    font-size: .97rem;
    line-height: 1.4;
}
#accordion2 .card-header a::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1;
}
#accordion2 .card-header a:not(.collapsed) { background: rgba(22, 163, 148, .07); color: var(--accent-600); }
#accordion2 .card-header a:not(.collapsed)::after { content: "\2212"; }   /* − */

/* ---- Contato ---- */
.contact-box { background: var(--bg-soft); }
.contact-box .left-contact { margin-top: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.contact-box .left-contact .cont-line {
    width: auto;
    flex: 1 1 240px;
    max-width: 300px;
    float: none;
    margin: 0;
    background: #fff;
    border-radius: 16px;
    padding: 22px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}
.contact-box .left-contact .cont-line:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-box .left-contact .icon-b {
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 1.25rem;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #fff;
}
.contact-box .left-contact .icon-b a { color: #fff; display: block; }
.contact-box .dit-right h4 { color: #15303a; font-weight: 600; }
.contact-box .dit-right a { color: var(--brand); word-break: break-word; }
.contact-box .dit-right a:hover { color: var(--accent-600); }

/* ---- Rodapé ---- */
.footer-box { background: linear-gradient(135deg, var(--brand-700), var(--brand)); padding: 28px 0; }
.footer-box .footer-company-name { color: rgba(255, 255, 255, .85); }

/* ---- Botão voltar ao topo ---- */
#scroll-to-top {
    width: 46px;
    height: 46px;
    line-height: 46px;
    border-radius: 50%;
    font-size: 1.4rem;
    background: var(--brand);
    color: #fff;
    box-shadow: var(--shadow);
}
#scroll-to-top::before, #scroll-to-top::after { display: none; }
#scroll-to-top:hover { background: var(--accent-600); color: #fff; }

/* ---- Ajustes responsivos ---- */
@media (max-width: 991px) {
    .top-header .navbar-collapse {
        background: #fff;
        border-radius: 12px;
        margin-top: 8px;
        padding: 8px;
        box-shadow: var(--shadow);
    }
    .top-header .navbar-nav li a::before { display: none; }
}
@media (max-width: 767px) {
    .about-box, .services-box, .appointment-main, .reviews-box, .map-box, .contact-box { padding: 56px 0; }
    .about-photo { height: auto; }
    .hero-actions { gap: 10px; }
    .btn-modern { padding: .8rem 1.3rem; font-size: .95rem; }
    /* Foco no rosto da médica (lado direito da imagem) para não cortar o topo
       da cabeça no enquadramento estreito do celular. background-position está
       inline no elemento, daí o !important. */
    .hero-static {
        min-height: 520px !important;
        background-position: 72% 24% !important;
    }
}
