/* =========================================================
   VidaSaúde — CSS FINAL ESTÁVEL (LIMPO + RESPONSIVO)
   Compatível 100% com o HTML e JS enviados
========================================================= */

/* =========================
   RESET / BASE
========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: #0f172a;
    background: #ffffff;
    overflow-x: hidden;
    font-weight: 400;
    /* mais leve */
}

img,
svg {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

/* remove estilos nativos de button sem quebrar filhos (tooltip etc) */
button {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* =========================
   VARIÁVEIS
========================= */
:root {
    --green: #0d9488;
    --navy: #0f172a;
    --ice: #f0fdfa;
    --white: #ffffff;

    --text: #0f172a;
    --muted: #64748b;

    --border: rgba(15, 23, 42, 0.10);
    --shadow: 0 18px 45px rgba(2, 6, 23, 0.10);

    --radius-xl: 22px;
    --radius-lg: 18px;
    --radius-md: 14px;

    --container: 1180px;
    --pad: 16px;

    --header-h: 76px;
}

/* =========================
   CONTAINER / UTIL
========================= */
.app {
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--pad);
}

.is-hidden {
    display: none !important;
}

/* =========================
   BADGE
========================= */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(13, 148, 136, 0.10);
    color: var(--green);
    font-weight: 700;
    /* menos grossa */
    font-size: 12px;
    letter-spacing: 0.10em;
}

/* =========================
   BOTÕES (mais clean)
========================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    line-height: 1;

    border-radius: 999px;
    padding: 11px 16px;
    /* menor */
    font-weight: 600;
    /* menos grossa */
    font-size: 14px;

    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn--xl {
    padding: 12px 18px;
    /* menor */
    font-size: 15px;
}

.btn--full {
    width: 100%;
    border-radius: var(--radius-md);
}

.btn__icon {
    width: 18px;
    height: 18px;
}

.btn--primary {
    background: var(--green);
    color: #fff;
    box-shadow: 0 12px 26px rgba(13, 148, 136, 0.22);
}

.btn--primary:hover {
    box-shadow: 0 16px 32px rgba(13, 148, 136, 0.26);
}

.btn--outline {
    background: transparent;
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: var(--navy);
}

.btn--outline:hover {
    border-color: rgba(15, 23, 42, 0.18);
    background: rgba(15, 23, 42, 0.03);
}

.btn--ghost {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: var(--navy);
    border-radius: var(--radius-md);
    padding: 11px 14px;
    font-weight: 600;
}

.btn--ghost:hover {
    background: rgba(15, 23, 42, 0.03);
}

.btn--dark {
    background: var(--navy);
    color: #fff;
    border-radius: var(--radius-md);
}

.btn--dark:hover {
    background: rgba(15, 23, 42, 0.92);
}

/* =========================
   HEADER
========================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-h);
    z-index: 60;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(8px);
}

.header__inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    /* menos grossa */
}

.brand__icon {
    width: 28px;
    height: 28px;
    color: var(--green);
}

.brand__text {
    font-size: 20px;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.brand__accent {
    color: var(--green);
}

.nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav__link {
    font-weight: 600;
    color: var(--navy);
    opacity: 0.92;
    transition: color .18s ease, opacity .18s ease;
}

.nav__link:hover {
    color: var(--green);
    opacity: 1;
}

.nav__toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: #fff;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav__toggle-icon {
    width: 22px;
    height: 22px;
    color: var(--navy);
}

/* Mobile dropdown */
.nav--mobile {
    position: absolute;
    top: var(--header-h);
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 24px 50px rgba(2, 6, 23, 0.10);
}

.nav__mobile-inner {
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 14px;
}

.nav__mobile-link {
    padding: 12px 10px;
    font-weight: 600;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.nav__mobile-link:hover {
    color: var(--green);
}

.nav--desktop {
    gap: 18px;
}

/* =========================
   HERO
========================= */
.hero {
    padding-top: calc(var(--header-h) + 56px);
    padding-bottom: 64px;
    background: linear-gradient(135deg, var(--ice), #fff 55%);
    overflow: hidden;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 44px;
    align-items: center;
}

.hero__content {
    min-width: 0;
}

.hero__title {
    margin: 14px 0 14px;
    font-size: clamp(30px, 4.3vw, 52px);
    line-height: 1.10;
    letter-spacing: -0.02em;
    font-weight: 700;
    /* mais leve */
}

.hero__title-highlight {
    position: relative;
    display: inline-block;
    color: var(--green);
}

.hero__underline {
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 10px;
    color: rgba(13, 148, 136, 0.16);
    pointer-events: none;
}

.hero__text {
    margin: 0 0 20px;
    font-size: 15px;
    color: #526171;
    line-height: 1.65;
    max-width: 560px;
    font-weight: 400;
}

.hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero__media {
    position: relative;
    min-width: 0;
}

.hero__glow {
    position: absolute;
    top: -30px;
    right: -40px;
    width: 340px;
    height: 340px;
    background: rgba(13, 148, 136, 0.10);
    filter: blur(40px);
    border-radius: 999px;
}

.hero__image-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: var(--shadow);
}

.hero__image {
    width: 100%;
    height: 440px;
    object-fit: cover;
    transform: translateZ(0);
}

.hero__floating-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.95);
    border-left: 4px solid var(--green);
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: 0 16px 36px rgba(2, 6, 23, 0.10);
}

.hero__floating-title {
    margin: 0;
    font-weight: 700;
    color: var(--navy);
}

.hero__stars {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    color: #fbbf24;
    letter-spacing: 0.06em;
}

.stars__note {
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
}

/* =========================
   FEATURES
========================= */
.features {
    padding: 42px 0 72px;
    background: #fff;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: -56px;
}

.feature-card {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: 0 14px 30px rgba(2, 6, 23, 0.10);
    padding: 22px;
    border-bottom: 3px solid var(--green);
}

.feature-card__icon {
    width: 66px;
    height: 66px;
    border-radius: 999px;
    background: var(--ice);
    display: grid;
    place-items: center;
    color: var(--green);
    margin-bottom: 14px;
}

.feature-card__icon svg {
    width: 30px;
    height: 30px;
}

.feature-card__title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
}

.feature-card__text {
    margin: 0;
    color: #5a6a7b;
    line-height: 1.6;
    font-weight: 400;
    font-size: 14px;
}

/* =========================
   SECTION TITLE
========================= */
.section-title {
    text-align: center;
    margin-bottom: 28px;
}

.section-title__kicker {
    display: inline-block;
    font-weight: 700;
    color: var(--green);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 12px;
}

.section-title__h2 {
    margin: 8px 0 0;
    font-size: clamp(24px, 3.0vw, 36px);
    letter-spacing: -0.02em;
    font-weight: 700;
}

.section-title__bar {
    width: 86px;
    height: 4px;
    background: var(--green);
    border-radius: 999px;
    margin: 14px auto 0;
}

/* =========================
   DOCTORS
========================= */
.doctors {
    padding: 78px 0 78px;
    background: var(--ice);
    overflow: hidden;
}

.doctors__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
    align-items: start;
}

.doctor-card {
    text-align: center;
}

.doctor-card__photo {
    width: 170px;
    height: 170px;
    margin: 0 auto 14px;
    border-radius: 999px;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 16px 38px rgba(2, 6, 23, 0.12);
    position: relative;
    cursor: pointer;
}

.doctor-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-card__plus {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: var(--green);
    display: grid;
    place-items: center;
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 0 12px 24px rgba(13, 148, 136, 0.22);
}

.doctor-card__plus svg {
    width: 18px;
    height: 18px;
}

.doctor-card__name {
    margin: 0;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
}

.doctor-card__spec {
    margin: 6px 0 12px;
    color: #667789;
    font-weight: 500;
    font-size: 13px;
}

.doctor-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 9px 14px;
    /* menor */
    border-radius: 999px;

    background: #fff;
    border: 1px solid rgba(13, 148, 136, 0.25);
    color: var(--green);

    font-weight: 600;
    font-size: 13px;

    cursor: pointer;
}

.doctor-card__btn svg {
    width: 16px;
    height: 16px;
}

/* =========================
   STATS
========================= */
.stats {
    position: relative;
    background: var(--green);
    color: #fff;
    padding: 48px 0;
    overflow: hidden;
}

.stats__bg {
    position: absolute;
    inset: 0;
    opacity: 0.10;
    background-image: radial-gradient(#fff 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.stats__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 18px;
    align-items: center;
}

.stats__item {
    text-align: center;
    padding: 8px 0;
}

.stats__number {
    font-size: clamp(30px, 4.0vw, 52px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.stats__label {
    margin-top: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    opacity: 0.92;
}

.stats__divider {
    width: 1px;
    height: 56px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
}

/* =========================
   CONTACT
========================= */
.contact {
    padding: 78px 0;
    background: #fff;
}

.contact__inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    align-items: start;
}

.contact__title {
    margin: 8px 0 10px;
    font-size: clamp(22px, 2.8vw, 34px);
    letter-spacing: -0.02em;
    font-weight: 700;
}

.contact__text {
    margin: 0 0 18px;
    color: #58697a;
    line-height: 1.65;
    font-weight: 400;
    font-size: 14px;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 18px;
}

.contact-card {
    display: flex;
    gap: 12px;
    padding: 14px 14px;
    border-radius: var(--radius-lg);
    background: var(--ice);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.contact-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #fff;
    display: grid;
    place-items: center;
    color: var(--green);
    box-shadow: 0 10px 22px rgba(2, 6, 23, 0.06);
    flex: 0 0 auto;
}

.contact-card__icon svg {
    width: 20px;
    height: 20px;
}

.contact-card__title {
    margin: 0 0 3px;
    font-weight: 700;
    font-size: 14px;
}

.contact-card__text {
    margin: 0;
    color: #667789;
    font-weight: 500;
    font-size: 13px;
    line-height: 1.35;
}

.alert {
    margin-top: 14px;
    border-left: 4px solid #ef4444;
    background: #fef2f2;
    color: #991b1b;
    padding: 12px 14px;
    border-radius: 0 14px 14px 0;
    font-weight: 600;
    line-height: 1.45;
}

/* Form */
.contact__form {
    background: var(--ice);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 16px 40px rgba(2, 6, 23, 0.08);
}

.form {
    display: grid;
    gap: 14px;
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.field input,
.field textarea {
    width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 14px;
    padding: 12px 12px;
    font-size: 14px;
    background: #fff;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.field input:focus,
.field textarea:focus {
    border-color: rgba(13, 148, 136, 0.70);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
}

.field textarea {
    resize: none;
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* =========================
   FOOTER
========================= */
.footer {
    background: var(--navy);
    color: #fff;
    padding: 60px 0 32px;
    overflow: hidden;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 20px;
    padding-bottom: 26px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer__brand-icon {
    width: 26px;
    height: 26px;
    color: var(--green);
}

.footer__brand-text {
    font-weight: 700;
    font-size: 18px;
}

.footer__brand-highlight {
    color: var(--green);
}

.footer__text {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.70);
    line-height: 1.6;
    font-weight: 400;
    font-size: 14px;
}

.footer__title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 12px;
    position: relative;
    padding-left: 10px;
}

.footer__title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 3px;
    height: 18px;
    border-radius: 999px;
    background: var(--green);
}

.footer__list {
    display: grid;
    gap: 10px;
}

.footer__list--muted {
    color: rgba(255, 255, 255, 0.70);
    font-weight: 500;
}

.footer__link {
    color: rgba(255, 255, 255, 0.70);
    font-weight: 600;
}

.footer__contact {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 600;
}

.footer__contact svg {
    width: 18px;
    height: 18px;
    color: var(--green);
    margin-top: 2px;
    flex: 0 0 auto;
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 18px;
    flex-wrap: wrap;
}

.footer__copy {
    margin: 0;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
    font-size: 13px;
}

.backtop {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.08);
    color: var(--green);
    font-weight: 700;
    cursor: pointer;
}

.backtop__circle {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--green);
    color: #fff;
}

.backtop__circle svg {
    width: 16px;
    height: 16px;
}

/* Social */
.social {
    display: flex;
    gap: 10px;
}

.social__btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    display: grid;
    place-items: center;
}

.social__btn svg {
    width: 18px;
    height: 18px;
}

/* =========================
   FAB (WhatsApp + Privacidade)
   -> tooltip IGUAL (balão + seta)
   -> sem quadrado no botão
========================= */
.fab {
    position: fixed;
    z-index: 200;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.fab--whatsapp {
    right: 18px;
    bottom: 18px;
}

.fab--privacy {
    left: 18px;
    bottom: 18px;
}

.fab__btn {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: #25d366;
    display: grid;
    place-items: center;
    box-shadow: 0 20px 50px rgba(2, 6, 23, 0.20);
    position: relative;
}

.fab__btn--white {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.12);
}

.fab__icon {
    width: 26px;
    height: 26px;
    color: #fff;
}

.fab__icon--green {
    color: var(--green);
}

/* TOOLTIP PADRÃO (igual WhatsApp e Privacidade) */
.fab__tooltip {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: #fff;
    color: var(--navy);
    font-size: 12px;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.14);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    white-space: nowrap;
}

/* setinha do tooltip */
.fab__tooltip::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #fff;
}

.fab:hover .fab__tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ping */
.fab__ping {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    animation: ping 1.6s ease-out infinite;
    opacity: 0.55;
    background: rgba(37, 211, 102, 0.55);
    pointer-events: none;
}

.fab__ping--gray {
    background: rgba(148, 163, 184, 0.55);
}

.fab__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 10px;
    height: 10px;
}

.fab__badge-dot {
    position: absolute;
    inset: 0;
    background: #ef4444;
    border-radius: 999px;
}

.fab__badge-ping {
    position: absolute;
    inset: 0;
    background: rgba(239, 68, 68, 0.55);
    border-radius: 999px;
    animation: ping 1.6s ease-out infinite;
}

/* =========================
   PRIVACY BANNER
========================= */
.privacy {
    position: fixed;
    left: 18px;
    bottom: 18px;
    width: min(440px, calc(100vw - 36px));
    z-index: 220;
}

.privacy__card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(13, 148, 136, 0.22);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.18);
}

.privacy__head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.privacy__icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: var(--ice);
    display: grid;
    place-items: center;
    color: var(--green);
    flex: 0 0 auto;
}

.privacy__icon svg {
    width: 22px;
    height: 22px;
}

.privacy__text {
    min-width: 0;
    color: #58697a;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.5;
}

.privacy__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.privacy__title {
    margin: 0;
    color: var(--navy);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.privacy__close {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.privacy__close svg {
    width: 18px;
    height: 18px;
}

.privacy__actions {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* =========================
   MODALS (SEM BLUR)
========================= */
.modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    place-items: center;
    padding: 18px;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.60);
}

.modal__card {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    background: #fff;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 30px 90px rgba(2, 6, 23, 0.30);
    text-align: center;
}

.modal__ok {
    width: 78px;
    height: 78px;
    border-radius: 999px;
    background: rgba(13, 148, 136, 0.12);
    display: grid;
    place-items: center;
    color: var(--green);
    margin: 0 auto 12px;
}

.modal__ok svg {
    width: 36px;
    height: 36px;
}

.modal__card h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
}

.modal__card p {
    margin: 0 0 14px;
    color: #5b6b7b;
    font-weight: 400;
    line-height: 1.55;
}

/* =========================
   DOCTOR MODAL (corrige nome invisível + X escondido)
========================= */
.doctor-modal {
    position: relative;
    z-index: 1;
    width: min(980px, 100%);
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(2, 6, 23, 0.30);
    display: grid;
    grid-template-columns: 360px 1fr;
    min-height: 420px;
}

/* X sempre visível (safe-area iPhone) */
.doctor-modal__close {
    position: absolute;
    top: max(14px, env(safe-area-inset-top));
    right: max(14px, env(safe-area-inset-right));
    z-index: 9999;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    display: grid;
    place-items: center;
}

.doctor-modal__close svg {
    width: 20px;
    height: 20px;
}

.doctor-modal__media {
    position: relative;
    background: #0b1224;
    min-height: 420px;
}

/* overlay escuro para texto ficar legível SEM depender da foto */
.doctor-modal__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.40) 0%,
            rgba(0, 0, 0, 0.10) 40%,
            rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
}

.doctor-modal__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* bloco do topo na versão mobile: MAIS contraste */
.doctor-modal__mobile-head {
    display: none;
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    color: #fff;
    padding: 14px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(6px);
    z-index: 2;
    /* acima do overlay */
}

.doctor-modal__mobile-head h3 {
    margin: 0;
    font-weight: 700;
    font-size: 18px;
}

.doctor-modal__mobile-head p {
    margin: 4px 0 0;
    opacity: 0.95;
    font-weight: 500;
}

.doctor-modal__content {
    padding: 20px;
    overflow: auto;
    max-height: min(78vh, 720px);
}

.doctor-modal__spec {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--green);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    font-size: 12px;
}

.doctor-modal__spec svg {
    width: 16px;
    height: 16px;
}

.doctor-modal__stars {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.doctor-modal__stars .star {
    width: 18px;
    height: 18px;
    color: #fbbf24;
}

#modal-doc-name {
    margin: 8px 0 0;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.doctor-modal__bio {
    margin: 12px 0 14px;
    border-left: 4px solid rgba(13, 148, 136, 0.22);
    padding-left: 12px;
}

.doctor-modal__bio p {
    margin: 0;
    color: #58697a;
    font-weight: 400;
    line-height: 1.6;
}

.doctor-modal__h4 {
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--navy);
}

.doctor-modal__h4 svg {
    width: 18px;
    height: 18px;
    color: var(--green);
}

.doctor-modal__list {
    margin: 0;
    padding-left: 18px;
    color: #58697a;
    font-weight: 400;
    line-height: 1.55;
    display: grid;
    gap: 6px;
}

.doctor-modal__action {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

/* =========================
   ANIMAÇÕES
========================= */
@keyframes ping {
    0% {
        transform: scale(1);
        opacity: 0.45;
    }

    80% {
        transform: scale(1.6);
        opacity: 0;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* =========================
   RESPONSIVO
========================= */
@media (max-width: 1199px) {
    :root {
        --container: 1040px;
    }

    .hero__image {
        height: 420px;
    }

    .doctor-modal {
        grid-template-columns: 320px 1fr;
    }
}

@media (max-width: 991px) {
    :root {
        --container: 920px;
        --header-h: 72px;
    }

    .nav--desktop {
        display: none;
    }

    .nav__toggle {
        display: inline-flex;
    }

    .hero__inner {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .hero__image {
        height: 420px;
    }

    .features__grid {
        grid-template-columns: 1fr;
        margin-top: -40px;
    }

    .doctors__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }

    .stats__inner {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .stats__divider {
        width: 100%;
        height: 1px;
        background: rgba(255, 255, 255, 0.22);
    }

    .contact__inner {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .hero {
        padding-top: calc(var(--header-h) + 42px);
        padding-bottom: 54px;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__floating-badge {
        display: none;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .form__row {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr;
    }

    .privacy__actions {
        grid-template-columns: 1fr;
    }

    /* tooltips centralizados em mobile (sem “inverter”) */
    .fab__tooltip {
        left: 50%;
        right: auto;
    }
}

@media (max-width: 599px) {
    :root {
        --pad: 14px;
    }

    .brand__text {
        font-size: 18px;
    }

    .hero__image {
        height: 340px;
    }

    .doctor-card__photo {
        width: 160px;
        height: 160px;
    }

    .fab--whatsapp {
        right: 14px;
        bottom: 14px;
    }

    .fab--privacy {
        left: 14px;
        bottom: 14px;
    }

    .privacy {
        left: 14px;
        bottom: 14px;
        width: min(440px, calc(100vw - 28px));
    }
}

@media (max-width: 420px) {
    .brand__text {
        font-size: 17px;
    }

    .btn--xl {
        font-size: 14px;
        padding: 12px 16px;
    }

    .hero__title {
        font-size: 30px;
    }

    .doctor-card__photo {
        width: 150px;
        height: 150px;
    }
}

/* modal responsivo */
@media (max-width: 900px) {
    .doctor-modal {
        grid-template-columns: 1fr;
        min-height: unset;
    }

    .doctor-modal__media {
        min-height: 280px;
    }

    .doctor-modal__mobile-head {
        display: block;
    }

    .doctor-modal__content {
        max-height: 62vh;
    }
}

/* segurança extra */
.hero,
.features,
.doctors,
.stats,
.contact,
.footer {
    transform: translateZ(0);
}

/* =========================================
   PATCH FINAL — TOOLTIP WHATSAPP/PRIVACIDADE
   (cola no FINAL do style.css)
========================================= */

/* 1) GARANTE QUE NADA “CORTE” OS BALÕES */
html,
body {
    overflow-x: hidden;
}

.footer,
.hero,
.doctors,
.features,
.contact,
.stats {
    overflow: visible;
}

/* 2) SAFE-AREA (iPhone) + afastamento correto */
:root {
    --safe-b: env(safe-area-inset-bottom, 0px);
    --safe-l: env(safe-area-inset-left, 0px);
    --safe-r: env(safe-area-inset-right, 0px);
}

.fab--whatsapp {
    right: calc(16px + var(--safe-r));
    bottom: calc(16px + var(--safe-b));
}

.fab--privacy {
    left: calc(16px + var(--safe-l));
    bottom: calc(16px + var(--safe-b));
}

/* 3) TOOLTIP PADRÃO (mais “clean” e leve) */
.fab {
    overflow: visible;
}

/* importante */
.fab__tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    max-width: calc(100vw - 28px);
    background: #fff;
    color: #0f172a;
    box-shadow: 0 16px 40px rgba(2, 6, 23, 0.18);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease;
    pointer-events: none;
    z-index: 999;
}

/* setinha do balão */
.fab__tooltip::after {
    content: "";
    position: absolute;
    bottom: -6px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    box-shadow: 8px 8px 18px rgba(2, 6, 23, 0.06);
}

/* aparece no hover/focus */
.fab:hover .fab__tooltip,
.fab:focus-within .fab__tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* 4) WHATSAPP (à direita) — NÃO PODE CORTAR */
.fab--whatsapp .fab__tooltip {
    right: 0;
    left: auto;
}

.fab--whatsapp .fab__tooltip::after {
    right: 18px;
    left: auto;
}

/* 5) PRIVACIDADE (à esquerda) — IGUAL AO WHATSAPP, SÓ ESPELHADO */
.fab--privacy .fab__tooltip {
    left: 0;
    right: auto;
}

.fab--privacy .fab__tooltip::after {
    left: 18px;
    right: auto;
}

/* 6) REMOVE QUALQUER “QUADRADO”/FUNDO ESTRANHO NO BOTÃO PRIVACIDADE */
#privacy-minimized {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

#privacy-minimized .fab__btn {
    background: #fff !important;
    border: 1px solid rgba(15, 23, 42, 0.14) !important;
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.20) !important;
}

#privacy-minimized .fab__btn * {
    background: transparent !important;
}

/* 7) MOBILE: evita tooltip “estourar” lateral em telas muito pequenas */
@media (max-width: 420px) {
    .fab__tooltip {
        white-space: normal;
        max-width: min(240px, calc(100vw - 28px));
    }
}

/* =========================================
   PATCH — X do MODAL (safe-area iPhone)
   (cola no FINAL do style.css)
========================================= */

:root {
    --safe-t: env(safe-area-inset-top, 0px);
    --safe-r: env(safe-area-inset-right, 0px);
}

/* dá “respiro” no topo do modal em iPhone */
.modal {
    padding-top: calc(18px + var(--safe-t)) !important;
}

/* garante que o X fique visível e clicável */
.doctor-modal {
    position: relative;
}

.doctor-modal__close {
    top: calc(12px + var(--safe-t)) !important;
    right: calc(12px + var(--safe-r)) !important;
    z-index: 9999 !important;
}

/* se o iPhone estiver bem “apertado”, aumenta um pouco a distância */
@media (max-width: 420px) {
    .doctor-modal__close {
        top: calc(14px + var(--safe-t)) !important;
        right: calc(14px + var(--safe-r)) !important;
    }
}

/* =========================================
   PATCH DEFINITIVO — X do MODAL (iPhone notch)
   (cole no FINAL do style.css)
========================================= */

.doctor-modal__close {
    /* fixa no viewport, não no card */
    position: fixed !important;

    /* respeita safe-area + margem */
    top: max(12px, calc(env(safe-area-inset-top, 0px) + 12px)) !important;
    right: max(12px, calc(env(safe-area-inset-right, 0px) + 12px)) !important;

    z-index: 999999 !important;
}