/* ===========================
   VARIÁVEIS E RESET
   =========================== */
:root {
    --green:        #1B6845;
    --green-dark:   #145235;
    --green-hover:  #228B57;
    --green-light:  #E8F5EE;
    --green-mid:    #D0EAD9;
    --white:        #FFFFFF;
    --gray-50:      #F8FAFB;
    --gray-100:     #F3F4F6;
    --gray-200:     #E5E7EB;
    --gray-500:     #6B7280;
    --gray-700:     #374151;
    --gray-900:     #111827;
    --font:         'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm:    8px;
    --radius:       12px;
    --radius-lg:    20px;
    --shadow:       0 2px 16px rgba(27, 104, 69, 0.10);
    --shadow-lg:    0 8px 32px rgba(27, 104, 69, 0.15);
    --max-width:    1200px;
    --transition:   0.25s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    overflow-x: hidden;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ===========================
   UTILITÁRIOS
   =========================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
}

.btn--primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    transform: translateY(-1px);
}

.btn--outline {
    background: transparent;
    color: var(--green);
    border-color: var(--green);
}

.btn--outline:hover {
    background: var(--green);
    color: var(--white);
    transform: translateY(-1px);
}

.btn--white {
    background: var(--white);
    color: var(--green);
    border-color: var(--white);
    font-weight: 600;
}

.btn--white:hover {
    background: var(--green-light);
    border-color: var(--green-light);
    transform: translateY(-1px);
}

.section {
    padding: 96px 0;
}

.section--light {
    background: var(--gray-50);
}

.section--green {
    background: var(--green);
}

.section__label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 16px;
}

.section__label--light {
    color: var(--green-light);
}

.section__title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: 16px;
    max-width: 640px;
}

.section__title--light {
    color: var(--white);
}

.section__desc {
    font-size: 17px;
    color: var(--gray-500);
    max-width: 620px;
    margin-bottom: 56px;
    line-height: 1.7;
}

/* ===========================
   HEADER
   =========================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--green);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transition: box-shadow var(--transition);
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(27, 104, 69, 0.35);
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 72px;
}

.header__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    display: block;
    /* Sem mix-blend-mode: o PNG já tem fundo transparente. O multiply
       anterior multiplicava a arte pelo verde-escuro do header e
       apagava o verde original do logo. */
}

.logo-text {
    font-size: 18px;
    font-weight: 400;
    color: var(--white);
    letter-spacing: -0.01em;
}

.logo-text strong {
    font-weight: 700;
    color: var(--white);
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
}

.nav__link {
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    transition: color var(--transition);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: width var(--transition);
}

.nav__link:hover {
    color: var(--white);
}

.nav__link:hover::after {
    width: 100%;
}

.header__cta {
    flex-shrink: 0;
    padding: 10px 22px;
    font-size: 14px;
}

.header__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}

.header__hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.header__hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header__hamburger.active span:nth-child(2) {
    opacity: 0;
}

.header__hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===========================
   HERO
   =========================== */
.hero {
    padding: 80px 0 96px;
    background: var(--white);
    overflow: hidden;
}

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

.hero__title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--gray-900);
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: clamp(17px, 2.5vw, 21px);
    font-weight: 400;
    color: var(--gray-700);
    line-height: 1.5;
    margin-bottom: 16px;
}

.hero__desc {
    font-size: 16px;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 460px;
}

.hero__image {
    position: relative;
}

.hero__image-box {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--green-light);
}

.hero__image-box img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.hero__image-box:hover img {
    transform: scale(1.03);
}

.hero__image-box--placeholder::before {
    content: 'Adicione a foto hero.jpg\Aa pasta images/';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 14px;
    color: var(--green);
    text-align: center;
    white-space: pre;
    padding: 24px;
}

.hero__image-box--placeholder img {
    display: none;
}

.hero__image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(27, 104, 69, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

/* ===========================
   SERVIÇOS
   =========================== */
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 56px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

.service-card:hover {
    box-shadow: 0 16px 40px rgba(27, 104, 69, 0.14), 0 4px 12px rgba(0, 0, 0, 0.07);
    border-color: var(--green-mid);
    transform: translateY(-6px);
}

.service-card--wide {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.service-card--wide .service-card__icon {
    flex-shrink: 0;
}

.service-card__icon {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
}

.service-card__img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 3px solid var(--green-light);
    box-shadow: 0 2px 10px rgba(27, 104, 69, 0.15);
    flex-shrink: 0;
}

.service-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card--wide .service-card__img {
    margin-bottom: 0;
}

.btn__wpp {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.service-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 14px;
}

.service-card ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-card ul li {
    font-size: 14px;
    color: var(--gray-500);
    padding-left: 16px;
    position: relative;
    line-height: 1.4;
}

.service-card ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 600;
}

.service-card p {
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.6;
}

.services__cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding-top: 8px;
}

.services__cta p {
    font-size: 16px;
    color: var(--gray-500);
    max-width: 520px;
}

/* ===========================
   ESTRUTURA CLÍNICA
   =========================== */
.clinic__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.clinic__list {
    display: flex;
    flex-direction: column;
    margin-top: 32px;
}

.clinic__list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    font-size: 17px;
    color: var(--gray-700);
    font-weight: 400;
    position: relative;
    padding-bottom: 28px;
}

.clinic__list li:last-child {
    padding-bottom: 0;
}

.clinic__list li:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 13px;
    top: 30px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--green-mid), rgba(208, 234, 217, 0.15));
    border-radius: 1px;
}

.clinic__check {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--green-light);
    color: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    margin-top: 1px;
}

.clinic__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--green-light);
    position: relative;
    /* A foto da sala é vertical. Sem formato fixo a coluna esticaria
       para ~950px e desequilibraria o grid ao lado do texto. */
    aspect-ratio: 4 / 3;
}

.clinic__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    /* O terço superior da foto é só parede — puxa o corte para baixo,
       onde estão a bancada, as cadeiras e o equipo */
    object-position: center 55%;
}

.clinic__image--placeholder::before {
    content: 'Adicione a foto clinica.jpg\Aa pasta images/';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 14px;
    color: var(--green);
    text-align: center;
    white-space: pre;
    padding: 24px;
}

.clinic__image--placeholder img {
    display: none;
}

/* ===========================
   DEPOIMENTOS
   =========================== */
.section--reviews {
    background: var(--gray-50);
}

.testimonials__viewport {
    position: relative;
    margin-top: 48px;
    /* Reserva a faixa lateral das setas para elas nunca cobrirem os cards */
    padding: 0 56px;
}

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

.testimonial-card[hidden] {
    display: none;
}

.testimonials__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
    z-index: 2;
}

.testimonials__nav:hover {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
    box-shadow: var(--shadow);
}

.testimonials__nav:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

.testimonials__nav svg {
    width: 20px;
    height: 20px;
}

.testimonials__nav--prev {
    left: 0;
}

.testimonials__nav--next {
    right: 0;
}

.testimonials__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
}

.testimonials__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--gray-200);
    cursor: pointer;
    transition: background var(--transition), width var(--transition);
}

.testimonials__dot:hover {
    background: var(--green-mid);
}

.testimonials__dot:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
}

.testimonials__dot.is-active {
    width: 24px;
    border-radius: 4px;
    background: var(--green);
}

.testimonials__source {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
    padding: 14px 20px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--gray-500);
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.testimonials__source svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.testimonials__source a {
    color: var(--green);
    font-weight: 600;
    transition: color var(--transition);
}

.testimonials__source a:hover {
    color: var(--green-dark);
    text-decoration: underline;
}

.testimonial-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow var(--transition), transform var(--transition);
}

.testimonial-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    transform: translateY(-2px);
}

.testimonial-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.testimonial-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color, var(--green));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
}

.testimonial-card__meta {
    flex: 1;
    min-width: 0;
}

.testimonial-card__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.3;
}

.testimonial-card__date {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 2px;
}

.testimonial-card__google {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.testimonial-card__stars {
    color: #FBBC04;
    font-size: 16px;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.testimonial-card p {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.7;
    font-style: italic;
}

.testimonial-card__author {
    display: none;
}

/* ===========================
   SOBRE / CTA
   =========================== */
.about__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about__text p {
    font-size: 17px;
    color: var(--gray-500);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about__text .btn {
    margin-top: 12px;
}

.about__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    width: 100%;
    background: var(--green-light);
}

.about__image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: var(--radius-lg);
}

.about__image--placeholder::before {
    content: 'Adicione a foto sobre.jpg\Aa pasta images/';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 14px;
    color: var(--green);
    text-align: center;
    white-space: pre;
    padding: 24px;
}

.about__image--placeholder img {
    display: none;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    background: var(--gray-900);
    color: var(--white);
    padding-top: 72px;
}

.footer__inner {
    display: grid;
    grid-template-columns: 200px 1fr 1.4fr;
    gap: 48px;
    padding-bottom: 64px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__map h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--white);
}

.footer__map iframe {
    width: 100%;
    height: 220px;
    border: none;
    border-radius: var(--radius);
    filter: grayscale(15%) brightness(0.88);
    display: block;
}

.footer__doctor {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.footer__avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--green-light);
    margin-bottom: 8px;
    border: 3px solid var(--green);
}

.footer__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.footer__avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--green);
    text-align: center;
    padding: 8px;
}

.footer__avatar--placeholder img {
    display: none;
}

.footer__doctor-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
}

.footer__doctor-cro {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.footer__doctor-role {
    font-size: 13px;
    color: var(--green-light);
    font-weight: 500;
}

.footer__info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--white);
}

.footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.footer__contacts li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
}

.footer__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--green-light);
    margin-top: 2px;
}

.footer__contacts a {
    color: rgba(255, 255, 255, 0.75);
    transition: color var(--transition);
}

.footer__contacts a:hover {
    color: var(--green-light);
}

.footer__city {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

.footer__bottom {
    padding: 20px 0;
}

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

.footer__bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.footer__links {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.footer__links a {
    color: rgba(255, 255, 255, 0.4);
    transition: color var(--transition);
}

.footer__links a:hover {
    color: var(--green-light);
}

/* ===========================
   RESPONSIVO
   =========================== */
@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card--wide {
        grid-column: 1 / -1;
    }

    .footer__inner {
        grid-template-columns: 200px 1fr;
        grid-template-areas:
            "doctor info"
            "map    map";
    }

    .footer__doctor { grid-area: doctor; }
    .footer__info   { grid-area: info; }
    .footer__map    { grid-area: map; }
}

@media (max-width: 768px) {
    /* Espaçamento compacto entre seções */
    .section {
        padding: 48px 0;
    }

    /* Header mobile */
    .header__nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--green-dark);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 8px 24px rgba(27,104,69,0.3);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform var(--transition), opacity var(--transition);
        margin-left: 0;
    }

    .header__nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav__link {
        width: 100%;
        padding: 16px 24px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        font-size: 16px;
        color: rgba(255,255,255,0.9);
    }

    .nav__link::after {
        display: none;
    }

    .header__cta {
        display: none;
    }

    .header__hamburger {
        display: flex;
    }

    /* Hero mobile — design premium */
    .hero {
        padding: 0;
        background: var(--green-dark);
    }

    .hero__inner {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Conteúdo primeiro: h1, badge e CTA acima da dobra */
    .hero__content {
        padding-top: 36px;
        padding-bottom: 32px;
    }

    .hero__title {
        color: var(--white);
    }

    .hero__subtitle {
        color: rgba(255, 255, 255, 0.82);
    }

    /* Removido no mobile — garante CTA above the fold */
    .hero__desc {
        display: none;
    }

    /* Badge adapta ao fundo escuro */
    .hero__doctor-badge {
        background: rgba(255, 255, 255, 0.10);
        border-color: rgba(255, 255, 255, 0.20);
        margin-bottom: 28px;
    }

    .hero__doctor-badge-info strong {
        color: var(--white);
    }

    .hero__doctor-badge-info span {
        color: rgba(255, 255, 255, 0.65);
    }

    /* CTA 100% largura, visível na primeira tela */
    .hero .btn--primary {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
        font-size: 16px;
        font-weight: 600;
    }

    /* Imagem vai APÓS o conteúdo (ordem invertida) */
    .hero__image {
        order: 1;
        margin-left: -24px;
        margin-right: -24px;
        max-width: calc(100% + 48px); /* compensa as margens negativas sem estourar */
        min-height: 0;
        align-self: auto;
    }

    .hero__image-box {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        width: 100%;
        height: auto;
        overflow: hidden;
        background: var(--green-light);
    }

    .hero__image-box img {
        width: 100%;
        height: auto;
        object-fit: contain;
        transition: none;
    }

    .hero__image-overlay {
        background: linear-gradient(to bottom, rgba(20, 82, 53, 0.35) 0%, transparent 50%);
    }

    /* Serviços — carrossel horizontal tipo app */
    .services__grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        margin-left: -24px;
        margin-right: -24px;
        padding: 4px 24px 20px;
        margin-bottom: 32px;
        scrollbar-width: none;
    }

    .services__grid::-webkit-scrollbar {
        display: none;
    }

    .service-card {
        flex: 0 0 auto;
        width: 82vw;
        max-width: 300px;
        scroll-snap-align: start;
        text-align: left;
    }

    .service-card__img {
        margin: 0 0 20px;
        width: 80px;
        height: 80px;
    }

    .service-card--wide {
        flex: 0 0 auto;
        width: 82vw;
        max-width: 300px;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        text-align: left;
    }

    .service-card--wide .service-card__img {
        margin: 0 0 20px;
    }

    /* Estrutura clínica mobile */
    .clinic__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .clinic__image {
        order: -1;
        width: 100%;
        aspect-ratio: 4/3;
    }

    .clinic__image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Lista da clínica em grid 2x2 */
    .clinic__list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-top: 24px;
    }

    .clinic__list li {
        padding-bottom: 0;
        font-size: 15px;
    }

    .clinic__list li:not(:last-child)::after {
        display: none;
    }

    /* Depoimentos — carrossel horizontal tipo app.
       Sem paginação aqui: o swipe percorre as 18 e o scroll é
       horizontal, então a altura da página não cresce. */
    .testimonials__viewport {
        padding: 0;
        margin-top: 32px;
    }

    .testimonials__nav,
    .testimonials__dots {
        display: none;
    }

    .testimonials__grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        margin-left: -24px;
        margin-right: -24px;
        padding: 4px 24px 20px;
        margin-top: 0;
        scrollbar-width: none;
    }

    .testimonials__grid::-webkit-scrollbar {
        display: none;
    }

    .testimonial-card {
        flex: 0 0 auto;
        width: 82vw;
        max-width: 300px;
        scroll-snap-align: start;
    }

    /* Sobre mobile */
    .about__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about__image {
        width: 100%;
    }

    .about__image img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    /* Footer mobile */
    .footer__inner {
        grid-template-columns: 1fr;
        grid-template-areas: "doctor" "info" "map";
        gap: 40px;
    }

    .footer__bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero__title {
        font-size: 28px;
    }

    .section__title {
        font-size: 26px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===========================
   ANTES E DEPOIS (BEFORE/AFTER)
   =========================== */
.ba__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.ba-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow var(--transition), transform var(--transition);
}

.ba-card:hover {
    box-shadow: 0 16px 40px rgba(27, 104, 69, 0.14);
    transform: translateY(-4px);
}

.ba-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--gray-100);
    user-select: none;
    touch-action: none;
    cursor: ew-resize;
}

.ba-slider__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 75%;
    display: block;
    pointer-events: none;
}

/* Override por card via data-attribute (ajuste fino do foco na boca) */
.ba-slider[data-focus="face"] .ba-slider__img {
    object-position: center 90%;
    transform: scale(1.6);
    transform-origin: 50% 90%;
}

.ba-slider[data-focus="face"] .ba-slider__after .ba-slider__img--after {
    transform-origin: 50% 90%;
}

.ba-slider[data-focus="mouth-high"] .ba-slider__img {
    object-position: center 50%;
}

/* Zoom forte só em uma imagem específica (não no slider inteiro) */
/* Selector com .ba-slider extra para vencer especificidade do data-focus="face" no slider pai */
.ba-slider .ba-slider__img[data-focus="mouth-zoom"] {
    object-position: 62% 62%;
    transform: scale(3.2);
    transform-origin: 62% 62%;
}

.ba-slider__after {
    position: absolute;
    inset: 0;
    width: 50%;
    overflow: hidden;
    will-change: width;
}

.ba-slider__after .ba-slider__img--after {
    width: calc(100% / var(--ba-progress, 0.5));
    max-width: none;
}

.ba-slider__line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: var(--white);
    transform: translateX(-50%);
    box-shadow: 0 0 14px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    will-change: left;
}

.ba-slider__handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--green);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: ew-resize;
    pointer-events: auto;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ba-slider__handle:hover,
.ba-slider__handle:focus-visible {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 6px 20px rgba(27, 104, 69, 0.45);
    outline: none;
}

.ba-slider__handle svg {
    width: 22px;
    height: 22px;
}

.ba-slider__label {
    position: absolute;
    top: 14px;
    padding: 5px 12px;
    background: rgba(17, 24, 39, 0.72);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 4px;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

.ba-slider__label--before {
    left: 14px;
}

.ba-slider__label--after {
    right: 14px;
    background: rgba(27, 104, 69, 0.85);
}

.ba-card__caption {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid var(--gray-200);
}

.ba-card__caption strong {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-900);
}

.ba-card__caption span {
    font-size: 13px;
    color: var(--gray-500);
}

.ba__disclaimer {
    margin-top: 32px;
    padding: 16px 20px;
    background: var(--white);
    border-left: 3px solid var(--green-mid);
    border-radius: var(--radius-sm);
    max-width: 720px;
}

.ba__disclaimer p {
    font-size: 12px;
    color: var(--gray-500);
    line-height: 1.6;
    margin: 0;
}

.ba__cta {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

@media (max-width: 1024px) {
    .ba__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ba__grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        margin-left: -24px;
        margin-right: -24px;
        padding: 4px 24px 20px;
        margin-bottom: 24px;
        scrollbar-width: none;
    }

    .ba__grid::-webkit-scrollbar { display: none; }

    .ba-card {
        flex: 0 0 auto;
        width: 82vw;
        max-width: 320px;
        scroll-snap-align: start;
    }

    .ba__cta { margin-top: 24px; }
}

/* ===========================
   ANIMAÇÕES DE ENTRADA
   =========================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeUp 0.6s ease forwards;
}

.fade-up-delay-1 { animation-delay: 0.1s; opacity: 0; }
.fade-up-delay-2 { animation-delay: 0.2s; opacity: 0; }
.fade-up-delay-3 { animation-delay: 0.3s; opacity: 0; }

/* ===========================
   HERO — BADGE DA DENTISTA
   =========================== */
.hero__doctor-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    padding: 12px 16px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    width: fit-content;
}

.hero__doctor-badge-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    /* A foto é vertical e o rosto fica no topo — sem isso o corte
       quadrado pegaria o tronco e cortaria a cabeça */
    object-position: center top;
    border: 2px solid var(--green);
    flex-shrink: 0;
}

.hero__doctor-badge-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero__doctor-badge-info strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.3;
}

.hero__doctor-badge-info span {
    font-size: 12px;
    color: var(--gray-500);
}

/* ===========================
   CARDS DE SERVIÇO — CTA
   =========================== */
.service-card__cta {
    display: inline-flex;
    align-items: center;
    margin-top: 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--green);
    transition: gap var(--transition), color var(--transition);
    gap: 4px;
}

.service-card__cta:hover {
    gap: 8px;
    color: var(--green-dark);
}

/* ===========================
   ESTRUTURA CLÍNICA — CTA
   =========================== */
.clinic__btn {
    margin-top: 36px;
}

/* ===========================
   BOTÃO FLUTUANTE WHATSAPP
   =========================== */
.wpp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    padding: 14px 20px 14px 16px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition);
    animation: wppPulse 3s ease infinite;
}

.wpp-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.60);
}

.wpp-float svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.wpp-float__label {
    white-space: nowrap;
}

@keyframes wppPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45); }
    50%       { box-shadow: 0 6px 28px rgba(37, 211, 102, 0.70); }
}

@media (max-width: 480px) {
    .wpp-float {
        bottom: 20px;
        right: 16px;
        padding: 13px;
        border-radius: 50%;
    }

    .wpp-float__label {
        display: none;
    }

    .hero__doctor-badge {
        width: 100%;
    }
}
