/* Identidade visual: verde-petróleo, verde-água, laranja acolhedor e tons quentes. */
:root {
    --verde-agua: #5da597;
    --verde-escuro: #1e746d;
    --verde-profundo: #153f3b;
    --verde-medio-escuro: #abceca;
    --laranja: #e88b32;
    --laranja-teste: #ff932f;
    --laranja-escuro: #b96327;
    --dourado-suave: #f2c887;
    --branco: #ffffff;
    --fundo: #e7e8eb;
    --fundo-suave: #eef0f2;
    --cinza-texto: #4d615d;
    --preto: #1d302f;
    --linha: rgba(29, 48, 47, 0.12);
    --fundo-secao-laranja: #d8dade;
    --fundo-secao-aqua: #e3e5e8;
    --fundo-pagina: #d8dade;
    --header-background: var(--verde-escuro);
    --header-foreground: var(--branco);
    --header-underline: var(--laranja-teste);
    --header-border: rgba(255, 255, 255, 0.34);
    --footer-background: #153b37;
    --sombra: 0 16px 48px rgba(24, 59, 54, 0.09);
    --sombra-hover: 0 24px 64px rgba(24, 59, 54, 0.15);
    --largura-conteudo: 1240px;
    --raio-card: 22px;
    --transicao: 240ms ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: clip;
    color: var(--cinza-texto);
    background: var(--fundo-pagina);
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
button, input { font: inherit; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(232, 139, 50, 0.9); outline-offset: 4px; }

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Fundos sólidos em cinza-neutro, alternados sutilmente entre as seções. */
section:not(.hero) {
    position: relative;
    z-index: 1;
    isolation: isolate;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(4.1rem, 7vw, 7rem) clamp(1.25rem, 4.5vw, 3.5rem);
    overflow: hidden;
}

/* Peças de quebra-cabeça decorativas nas laterais de cada seção.
   São grupos SVG independentes, sem linhas conectando as peças. */
section:not(.hero)::before,
section:not(.hero)::after {
    position: absolute;
    z-index: 0;
    top: 9%;
    width: clamp(112px, 12vw, 164px);
    height: clamp(210px, 24vw, 330px);
    content: '';
    pointer-events: none;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: .98;
}
section:not(.hero)::before {
    left: -56px;
    background-image: url('../img/puzzle-group-left.svg');
}
section:not(.hero)::after {
    top: auto;
    right: -56px;
    bottom: 4%;
    background-image: url('../img/puzzle-group-right.svg');
}
section.section-aqua::before { top: 28%; transform: rotate(-5deg); }
section.section-aqua::after { bottom: 12%; transform: rotate(7deg); }
section.section-orange::before { top: 12%; transform: rotate(3deg); }
section.section-orange::after { bottom: 7%; transform: rotate(-4deg); }

section > * {
    position: relative;
    z-index: 1;
    width: min(100%, var(--largura-conteudo));
    margin-right: auto;
    margin-left: auto;
}

.section-orange {
    background-color: var(--fundo-secao-laranja);
}

.section-aqua {
    background-color: var(--fundo-secao-aqua);
}

.section-kicker, .section-title, .section-intro, .content-grid, .about-layout,
.cards-grid, .testimonials-carousel, .careers-grid, .location-block, .contact-panel,
.contact-methods, .process-list, .unit-gallery, .contact-cta-inner {
    position: relative;
    z-index: 1;
}

/* Hero: revela cada bloco da esquerda para a direita, uma única vez ao carregar. */
@keyframes hero-reveal-left-to-right {
    from {
        opacity: 0;
        clip-path: inset(0 100% 0 0);
        transform: translate3d(-16px, 0, 0);
    }
    to {
        opacity: 1;
        clip-path: inset(0 0 0 0);
        transform: translate3d(0, 0, 0);
    }
}
.page-inicio .hero-copy .hero-eyebrow,
.page-inicio .hero-copy h1,
.page-inicio .hero-copy .hero-description,
.page-inicio .hero-copy .hero-actions,
.page-inicio .hero-note {
    opacity: 0;
    animation: hero-reveal-left-to-right 850ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.page-inicio .hero-copy .hero-eyebrow { animation-delay: 100ms; }
.page-inicio .hero-copy h1 { animation-delay: 230ms; }
.page-inicio .hero-copy .hero-description { animation-delay: 420ms; }
.page-inicio .hero-copy .hero-actions { animation-delay: 560ms; }
.page-inicio .hero-note { animation-delay: 520ms; }

/* Preloader */
.site-preloader {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    background: var(--verde-profundo);
    color: var(--branco);
    opacity: 1;
    visibility: visible;
    transition: opacity 520ms ease, visibility 520ms ease;
}
.site-preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-content { display: flex; align-items: center; flex-direction: column; gap: 0.9rem; padding: 2rem; }
.preloader-content img { width: 78px; height: 78px; border: 3px solid rgba(255,255,255,0.82); border-radius: 50%; object-fit: cover; }
.preloader-name { color: var(--branco); font-size: 0.88rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.preloader-track { display: block; width: 144px; height: 2px; margin-top: 0.55rem; overflow: hidden; background: rgba(255,255,255,0.2); }
.preloader-track span { display: block; width: 38%; height: 100%; background: var(--dourado-suave); animation: preloader-progress 1.2s ease-in-out infinite; }
@keyframes preloader-progress { from { transform: translateX(-110%); } to { transform: translateX(380%); } }

/* Cabeçalho e navegação */
.site-header {
    --header-background: var(--verde-escuro);
    --header-foreground: var(--branco);
    --header-underline: var(--laranja-teste);
    --header-border: rgba(255, 255, 255, 0.34);
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--header-background);
    box-shadow: 0 6px 24px rgba(16, 51, 47, 0.12);
    backdrop-filter: blur(14px);
    transition: background-color 320ms ease, box-shadow 320ms ease;
}
.site-header.is-scrolled {
    --header-background: var(--laranja-teste);
    --header-foreground: var(--preto);
    --header-underline: var(--verde-profundo);
    --header-border: rgba(29, 48, 47, 0.25);
}
.navbar {
    width: min(100% - 2.5rem, var(--largura-conteudo));
    min-height: 82px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.logo-container { display: inline-flex; flex-shrink: 0; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--header-foreground); font-weight: 700; font-size: 0.98rem; letter-spacing: -0.015em; }
.logo-container img { width: 48px; height: 48px; border: 2px solid rgba(255,255,255,0.88); border-radius: 50%; object-fit: cover; background: white; }
.site-header nav { margin-left: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(0.7rem, 1.35vw, 1.45rem); list-style: none; margin: 0; padding: 0; }
.nav-links a { position: relative; display: inline-flex; align-items: center; min-height: 42px; color: var(--header-foreground); text-decoration: none; font-size: 0.82rem; font-weight: 600; white-space: nowrap; transition: color var(--transicao); }
.nav-links a::after { position: absolute; right: 0; bottom: 4px; left: 0; height: 2px; border-radius: 10px; background: var(--header-underline); content: ''; transform: scaleX(0); transform-origin: left; transition: transform var(--transicao); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--header-foreground); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--header-border); border-radius: 14px; background: transparent; cursor: pointer; }
.menu-toggle span { width: 20px; height: 2px; display: block; background: var(--header-foreground); border-radius: 99px; transition: transform var(--transicao), opacity var(--transicao); }
.menu-toggle.is-active span:first-child { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:last-child { transform: translateY(-7px) rotate(-45deg); }

/* Botões */
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 0.7rem; min-height: 50px; padding: 0.85rem 1.35rem; border: 1px solid transparent; border-radius: 999px; background: var(--verde-escuro); color: var(--branco); font-size: 0.91rem; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; box-shadow: 0 8px 22px rgba(21, 63, 59, 0.20); transition: background var(--transicao), box-shadow var(--transicao), transform var(--transicao); }
.btn-primary:hover { transform: translateY(-2px); background: var(--verde-profundo); box-shadow: 0 12px 28px rgba(21, 63, 59, 0.27); }
.btn-primary span { font-size: 1.1rem; transition: transform var(--transicao); }
.btn-primary:hover span { transform: translateX(3px); }
.btn-text-light { display: inline-flex; align-items: center; min-height: 48px; color: rgba(255,255,255,0.93); font-size: 0.92rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.5); transition: border-color var(--transicao), color var(--transicao); }
.btn-text-light:hover { color: var(--dourado-suave); border-color: var(--dourado-suave); }

/* O conteúdo permanece acima do fundo decorativo. */
.page { position: relative; z-index: 1; }

/* Hero principal em largura total */
.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: clamp(570px, 73vh, 780px);
    margin: 0;
    padding: clamp(4.5rem, 8vw, 7.5rem) clamp(1.25rem, 5vw, 4rem);
    overflow: hidden;
    background-color: var(--verde-profundo);
    background-image: linear-gradient(90deg, rgba(13, 43, 40, 0.86) 0%, rgba(13, 43, 40, 0.73) 38%, rgba(13, 43, 40, 0.22) 77%, rgba(13, 43, 40, 0.18) 100%), url('../img/clinica/imageHero.webp');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    color: var(--branco);
}
.hero::after { position: absolute; z-index: -1; right: -8rem; bottom: -12rem; width: 34rem; height: 34rem; border: 1px solid rgba(255,255,255,0.16); border-radius: 50%; content: ''; box-shadow: 0 0 0 2.8rem rgba(255,255,255,0.035), 0 0 0 6rem rgba(255,255,255,0.025); }
.hero-inner { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 3rem; width: min(100%, var(--largura-conteudo)); margin: 0 auto; }
.hero-copy { width: min(100%, 700px); }
.eyebrow, .section-kicker { margin: 0 0 0.8rem; color: var(--verde-escuro); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.17em; line-height: 1.5; text-transform: uppercase; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--dourado-suave); }
.hero-eyebrow::before { display: inline-block; width: 30px; height: 1px; background: currentColor; }
.hero h1 { max-width: 730px; margin: 0; color: var(--branco); font-family: 'Playfair Display', Georgia, serif; font-size: clamp(2.35rem, 4.5vw, 4.4rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1.06; text-wrap: balance; }
.hero-description { max-width: 570px; margin: 1.45rem 0 0; color: rgba(255,255,255,0.85); font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.8; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.15rem 1.5rem; margin-top: 2rem; }
.hero-note { display: flex; align-items: center; gap: 0.8rem; flex-shrink: 0; margin-bottom: 0.25rem; padding: 1rem 1.2rem; border: 1px solid rgba(255,255,255,0.3); border-radius: 18px; background: rgba(255,255,255,0.09); color: rgba(255,255,255,0.9); font-size: 0.78rem; line-height: 1.5; backdrop-filter: blur(12px); }
.hero-note-mark { width: 9px; height: 9px; border-radius: 50%; background: var(--dourado-suave); box-shadow: 0 0 0 5px rgba(242,200,135,0.14); }

/* Seções em full-bleed; os elementos internos permanecem alinhados e limitados. */
section:not(.hero) { position: relative; z-index: 1; width: 100%; max-width: none; margin: 0; padding: clamp(4.1rem, 7vw, 7rem) clamp(1.25rem, 4.5vw, 3.5rem); }
section > * { width: min(100%, var(--largura-conteudo)); margin-right: auto; margin-left: auto; }
.section-kicker { margin-bottom: 0.7rem; text-align: center; }
.section-title { margin-top: 0; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); color: var(--preto); font-family: 'Playfair Display', Georgia, serif; font-size: clamp(2rem, 3.6vw, 3.15rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.18; text-align: center; text-wrap: balance; }

.section-intro { max-width: 760px; margin-top: -1.35rem; margin-bottom: 3rem; color: #66736f; font-size: 1.04rem; text-align: center; }

.title-section {
    color: var(--verde-escuro); display: flex; justify-content: center; text-transform: uppercase; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.17em; line-height: 1.5;
}
.title-about {
    color: var(--preto); display: flex; justify-content: left; font-family: 'Playfair Display', Georgia, serif;
}

/* Imagem e texto */
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); align-items: center; gap: clamp(2.2rem, 5.4vw, 5.5rem); margin-top: 1.1rem; }
.content-grid.reverse { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr); }
.content-grid.reverse > img { order: 2; }
.content-grid.reverse > .content-text { order: 1; }
.content-grid > img, .about-image, .careers-grid > img { width: 100%; aspect-ratio: 4 / 3; height: auto; max-height: 490px; border-radius: 24px; box-shadow: var(--sombra); object-fit: cover; }
.content-grid > img { transition: transform 650ms cubic-bezier(0.2, 0.65, 0.3, 1), box-shadow 400ms ease; }
.content-grid > img:hover { transform: scale(1.012); box-shadow: var(--sombra-hover); }
.content-text { max-width: 550px; }
.content-text .eyebrow, .about-copy .eyebrow { margin-bottom: 0.75rem; }
.content-text h3, .about-copy h3, .about-copy .content-heading, .location-copy h3, .contact-panel h3 { margin: 0 0 1rem; color: var(--preto); font-family: 'Playfair Display', Georgia, serif; font-size: clamp(1.8rem, 2.65vw, 2.65rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; text-wrap: balance; }
.content-text p { margin: 0 0 1.15rem; }
.content-text .btn-primary { margin-top: 0.6rem; }

/* Depoimentos — cards lado a lado, inspirados na referência enviada,
   mantendo as cores e a tipografia da identidade da clínica. */
.testimonials-band {
    position: relative;
    overflow: hidden;
}
.testimonials-band > .section-kicker,
.testimonials-band > .section-title,
.testimonials-intro,
.testimonials-carousel {
    width: min(100%, 1080px);
}
.testimonials-band > .section-title {
    margin-bottom: .65rem;
}
.testimonials-intro {
    margin-top: 0;
    margin-bottom: 2rem;
    color: var(--cinza-texto);
    font-size: clamp(.98rem, 1.5vw, 1.08rem);
    line-height: 1.65;
}
.testimonials-carousel {
    position: relative;
    margin-top: 0;
}
.testimonials-viewport {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 1rem;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    touch-action: pan-y;
}
.testimonial-slide {
    position: relative;
    display: none;
    min-width: 0;
    min-height: 225px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(29, 48, 47, .09);
    border-radius: 16px;
    background: var(--branco);
    box-shadow: 0 8px 24px rgba(29, 48, 47, .055);
}
.testimonial-slide.is-active {
    display: flex;
    flex-direction: column;
    animation: testimonial-enter 380ms ease both;
}
@keyframes testimonial-enter {
    from { opacity: 0; transform: translateY(7px); }
    to { opacity: 1; transform: translateY(0); }
}
.quote-mark {
    display: none;
}
.testimonial-slide blockquote {
    order: 2;
    flex: 1;
    margin: 0;
    padding: 1rem 1.15rem 1.15rem;
}
.testimonial-slide blockquote p {
    max-width: none;
    margin: 0;
    color: var(--preto);
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: .96rem;
    font-weight: 400;
    line-height: 1.58;
    text-wrap: pretty;
}
.testimonial-author {
    order: 1;
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 60px;
    margin: 0;
    padding: .85rem 1.15rem;
    border-bottom: 1px solid rgba(29, 48, 47, .09);
    background: rgba(227, 229, 232, .26);
}
.testimonial-avatar {
    display: none;
}
.testimonial-author strong,
.testimonial-author span {
    display: block;
}
.testimonial-author strong {
    color: var(--preto);
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.35;
}
.testimonial-author div span {
    margin-top: .12rem;
    color: #74817e;
    font-size: .78rem;
    line-height: 1.35;
}
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.25rem;
}
.carousel-controls[hidden] {
    display: none;
}
.carousel-arrow {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(30, 116, 109, .18);
    border-radius: 50%;
    background: rgba(255, 255, 255, .65);
    color: var(--verde-escuro);
    font-size: 1rem;
    cursor: pointer;
    transition: transform var(--transicao), color var(--transicao), background var(--transicao), border-color var(--transicao);
}
.carousel-arrow:hover {
    transform: translateY(-1px);
    border-color: var(--verde-escuro);
    background: var(--verde-escuro);
    color: white;
}
.carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
}
.carousel-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: rgba(29, 48, 47, .23);
    cursor: pointer;
    transition: width var(--transicao), background var(--transicao);
}
.carousel-dot.is-active {
    width: 9px;
    height: 9px;
    background: var(--laranja-teste);
}

/* Grade de cards */
.cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 2.2vw, 2rem); }
.card { min-width: 0; overflow: hidden; border: 1px solid rgba(29,48,47,0.075); border-radius: var(--raio-card); background: var(--branco); box-shadow: 0 10px 34px rgba(24,59,54,0.065); transition: transform 360ms cubic-bezier(0.2,0.7,0.2,1), box-shadow 360ms ease, border-color 360ms ease; }
.card:hover { transform: translateY(-6px); border-color: rgba(30,116,109,0.18); box-shadow: var(--sombra-hover); }
.card > img { width: 100%; height: clamp(210px, 22vw, 285px); object-fit: cover; transition: transform 700ms cubic-bezier(0.2,0.7,0.2,1); }
.card:hover > img { transform: scale(1.035); }
.card-body, .team-card-body { padding: 1.6rem 1.55rem 1.8rem; }
.card-body h3, .team-card h3 { margin: 0 0 0.7rem; color: var(--preto); font-family: 'Playfair Display', Georgia, serif; font-size: 1.45rem; font-weight: 600; line-height: 1.25; }
.card-body p, .team-card-body > p:last-child { margin: 0; font-size: 0.94rem; }
.card-overline { margin-bottom: 0.6rem !important; color: var(--verde-escuro); font-size: 0.69rem !important; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.team-card { text-align: center; }
.team-avatar { position: relative; display: grid; min-height: 230px; place-items: center; overflow: hidden; background: linear-gradient(135deg, #e7f0ec, #faf1e4); }
.team-avatar::before, .team-avatar::after { position: absolute; border: 1px solid rgba(30,116,109,0.18); border-radius: 50%; content: ''; }
.team-avatar::before { width: 180px; height: 180px; }
.team-avatar::after { width: 230px; height: 230px; }
.team-avatar span { position: relative; z-index: 1; display: grid; width: 82px; height: 82px; place-items: center; border: 5px solid rgba(255,255,255,0.78); border-radius: 50%; background: var(--verde-escuro); color: white; font-family: 'Playfair Display', Georgia, serif; font-size: 1.6rem; box-shadow: 0 12px 32px rgba(30,116,109,0.15); }
.team-avatar--teal { background: linear-gradient(135deg, #e2f0ec, #f7fbf9); }
.team-avatar--teal span { background: #397f76; }
.team-avatar--gold { background: linear-gradient(135deg, #f8ead5, #fcf8f1); }
.team-avatar--gold span { background: #a66b37; }
.team-card .card-role { margin: 0 0 0.7rem; color: var(--laranja-escuro); font-size: 0.8rem; font-weight: 700; line-height: 1.45; }
.content-note { max-width: 760px; margin-top: 2rem; color: #78827f; font-size: 0.82rem; text-align: center; }

/* Página Sobre */
.about-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); align-items: center; gap: clamp(2.2rem, 5.4vw, 5.5rem); }
.about-copy { min-width: 0; }
.about-principle { padding-top: clamp(3.2rem, 5vw, 5rem) !important; padding-bottom: clamp(3.2rem, 5vw, 5rem) !important; }
.about-principle-inner { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.about-principle-heading { border-left: 4px solid var(--laranja-teste); padding-left: clamp(1rem, 2vw, 1.6rem); }
.about-principle-heading .eyebrow { margin-bottom: .5rem; }
.about-principle-heading h2 { margin: 0; color: var(--preto); font-family: 'Playfair Display', Georgia, serif; font-size: clamp(2rem, 3.3vw, 3rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.16; text-wrap: balance; }
.about-principle-copy { max-width: 680px; font-size: clamp(1rem, 1.4vw, 1.1rem); }
.about-principle-copy p { margin: 0; }
.about-values-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin: 0; padding: 0; list-style: none; }
.about-values-list li { min-width: 0; padding: .9rem 1rem; border: 1px solid rgba(30,116,109,.15); border-radius: 14px; background: rgba(255,255,255,.52); color: var(--preto); font-size: .94rem; font-weight: 600; }
.about-values-list li::before { display: inline-block; width: 8px; height: 8px; margin: 0 .65rem .05rem 0; border-radius: 50%; background: var(--laranja-teste); content: ''; }
.founder-profile-section { padding-top: clamp(4.5rem, 7vw, 7rem) !important; padding-bottom: clamp(4.5rem, 7vw, 7rem) !important; }
.founder-profile-layout { display: grid; grid-template-columns: minmax(270px, .72fr) minmax(0, 1.28fr); align-items: center; gap: clamp(2.3rem, 6vw, 6rem); }
.founder-profile-photo { width: 100%; max-width: 440px; max-height: 600px; aspect-ratio: 4 / 5; justify-self: center; border-radius: 28px 28px 100px 28px; object-fit: cover; object-position: center 28%; box-shadow: var(--sombra); }
.founder-profile-copy { max-width: 680px; }
.founder-profile-copy .eyebrow { margin-bottom: .7rem; }
.founder-profile-copy h2 { margin: 0 0 .4rem; color: var(--preto); font-family: 'Playfair Display', Georgia, serif; font-size: clamp(2.2rem, 4vw, 3.7rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.13; }
.founder-profile-role { margin: 0 0 1.4rem; color: var(--verde-profundo); font-weight: 700; }
.founder-profile-copy > p:not(.eyebrow):not(.founder-profile-role) { margin: 0 0 1rem; }
.about-image { max-height: 580px; aspect-ratio: 4 / 5; object-position: center; }
.about-copy > p { margin: 0 0 1rem; }

/* Página Unidade / Galeria */
.unit-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.gallery-item { position: relative; aspect-ratio: 4 / 3; min-height: 0; margin: 0; overflow: hidden; border-radius: 18px; background: #e5ece8; box-shadow: 0 8px 26px rgba(24,59,54,0.08); }
.gallery-item img { width: 100%; height: 100%; min-height: 0; object-fit: cover; transition: transform 650ms cubic-bezier(0.2,0.7,0.2,1); }
.gallery-item:hover img { transform: scale(1.045); }
.gallery-item figcaption { position: absolute; right: 0; bottom: 0; left: 0; padding: 2.8rem 1rem 1rem; background: linear-gradient(transparent, rgba(12,36,33,0.78)); color: white; font-size: 0.88rem; font-weight: 600; }
.location-block { display: grid; grid-template-columns: 0.75fr 1.25fr; align-items: center; gap: clamp(2rem, 4vw, 4rem); margin-top: clamp(4rem, 7vw, 6rem); padding-top: clamp(3rem, 5vw, 4.5rem); border-top: 1px solid var(--linha); }
.location-copy .eyebrow { margin-bottom: 0.65rem; }
.location-copy p:not(.eyebrow) { margin: 0 0 1.4rem; }
.map-frame { min-height: 340px; overflow: hidden; border-radius: 22px; box-shadow: var(--sombra); }
.map-frame iframe { display: block; width: 100%; height: 360px; border: 0; }

/* Processo / lista numerada */
.process-list { display: flex; flex-direction: column; gap: 1.2rem; margin: 1.8rem 0 0; padding: 0; list-style: none; }
.process-list li { display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: start; gap: 0.9rem; }
.process-list li > span { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: #e6f1ed; color: var(--verde-escuro); font-size: 0.78rem; font-weight: 700; }
.process-list strong { display: block; margin: 0.1rem 0 0.25rem; color: var(--preto); }
.process-list p { margin: 0; font-size: 0.93rem; }

/* Página Contato */
.contact-panel { max-width: 780px; padding: clamp(2rem, 5vw, 4rem); border: 1px solid rgba(30,116,109,0.12); border-radius: 28px; background: white; text-align: center; box-shadow: var(--sombra); }
.contact-panel-heading { max-width: 540px; margin: 0 auto 2rem; }
.contact-symbol { display: grid; width: 54px; height: 54px; margin: 0 auto 1rem; place-items: center; border-radius: 50%; background: #e5eee5; color: var(--verde-escuro); font-size: 1.25rem; }
.contact-panel h3 { font-size: clamp(1.8rem, 3vw, 2.45rem); }
.contact-panel-heading p { margin: 0; }
.contact-methods { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0; margin: 0 0 2rem; border-top: 1px solid var(--linha); border-left: 1px solid var(--linha); text-align: left; }
.contact-method { min-width: 0; padding: 1.1rem 1rem; border-right: 1px solid var(--linha); border-bottom: 1px solid var(--linha); }
.contact-method span, .contact-method strong { display: block; overflow-wrap: anywhere; }
.contact-method span { margin-bottom: 0.3rem; color: #75817e; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.contact-method strong { color: var(--preto); font-size: 0.94rem; }
.contact-main-button { min-width: 240px; }

/* Formulário de candidatura */
.careers-form { display: flex; flex-direction: column; gap: 0.55rem; margin-top: 1.4rem; }
.careers-form label { margin-top: 0.5rem; color: var(--preto); font-size: 0.85rem; font-weight: 700; }
.careers-form input { width: 100%; min-height: 48px; padding: 0.8rem 1rem; border: 1px solid #d7e0dc; border-radius: 12px; background: white; color: var(--preto); transition: border-color var(--transicao), box-shadow var(--transicao); }
.careers-form input:focus { outline: none; border-color: var(--verde-agua); box-shadow: 0 0 0 4px rgba(93,165,151,0.14); }
.careers-form button { align-self: flex-start; margin-top: 0.75rem; border: 0; cursor: pointer; }
.form-note { margin: 0.35rem 0 0; color: #78827f; font-size: 0.78rem; line-height: 1.5; }

/* Chamada final */
.contact-cta { position: relative; overflow: hidden; text-align: center; }
.contact-cta--wave { padding-bottom: clamp(7rem, 11vw, 10rem) !important; }
.section-wave { position: absolute !important; z-index: 0 !important; right: 0; bottom: -1px; left: 0; width: 100% !important; max-width: none !important; height: clamp(76px, 10vw, 138px); margin: 0 !important; pointer-events: none; }
.section-wave svg { display: block; width: 100%; height: 100%; }
.section-wave path { fill: var(--footer-background); }
.contact-cta-inner { position: relative; z-index: 1; max-width: 780px; }
.contact-cta .eyebrow { margin-bottom: 0.6rem; }
.contact-cta h2 { margin: 0 auto 1rem; color: var(--preto); font-family: 'Playfair Display', Georgia, serif; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.2; text-wrap: balance; }
.contact-cta p:not(.eyebrow) { max-width: 600px; margin: 0 auto 1.65rem; }

/* Rodapé */
.site-footer { position: relative; z-index: 1; margin: 0; padding: 4.2rem clamp(1.25rem, 4.5vw, 3.5rem) 1.5rem; background: var(--footer-background); color: rgba(255,255,255,0.74); }
.footer-content { display: grid; grid-template-columns: 1.3fr 0.7fr 1fr; gap: clamp(2rem, 5vw, 5rem); width: min(100%, var(--largura-conteudo)); margin: 0 auto 3rem; }
.footer-logo { display: inline-block; margin-bottom: 1rem; color: white; font-family: 'Playfair Display', Georgia, serif; font-size: 1.45rem; font-weight: 600; text-decoration: none; }
.footer-brand p { max-width: 370px; }
.footer-col h2 { margin: 0 0 1.1rem; color: var(--dourado-suave); font-family: 'DM Sans', Arial, sans-serif; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.04em; }
.footer-col p { margin: 0 0 0.55rem; font-size: 0.87rem; overflow-wrap: anywhere; }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col ul li { margin-bottom: 0.45rem; }
.footer-col ul li a { color: rgba(255,255,255,0.74); font-size: 0.88rem; text-decoration: none; transition: color var(--transicao); }
.footer-col ul li a:hover { color: white; }
.footer-bottom { width: min(100%, var(--largura-conteudo)); margin: 0 auto; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.55); font-size: 0.78rem; text-align: center; }
.footer-bottom p { margin: 0; }

/* Atalho flutuante de WhatsApp */
.whatsapp-float { position: fixed; z-index: 900; right: clamp(16px, 2vw, 28px); bottom: clamp(16px, 2vw, 28px); display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid rgba(255,255,255,0.8); border-radius: 50%; background: #20bd65; color: white; box-shadow: 0 10px 28px rgba(20,93,54,0.25); transition: transform var(--transicao), box-shadow var(--transicao); }
.whatsapp-float:hover { transform: translateY(-4px) scale(1.035); box-shadow: 0 16px 36px rgba(20,93,54,0.32); }

/* Animações acionadas pelo IntersectionObserver */
.reveal-on-scroll { opacity: 0; transform: translateY(26px); transition: opacity 760ms cubic-bezier(0.2,0.65,0.3,1) var(--reveal-delay, 0ms), transform 760ms cubic-bezier(0.2,0.65,0.3,1) var(--reveal-delay, 0ms); }
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* Layouts responsivos */
@media (max-width: 1120px) {
    .navbar { min-height: 76px; }
    .logo-container { font-size: 0.9rem; }
    .logo-container img { width: 43px; height: 43px; }
    .nav-links { gap: 0.75rem; }
    .nav-links a { font-size: 0.75rem; }
    section:not(.hero)::before, section:not(.hero)::after { width: 92px; height: 210px; opacity: .8; }
    section:not(.hero)::before { left: -48px; }
    section:not(.hero)::after { right: -48px; }
}

@media (max-width: 1023px) {
    .menu-toggle { display: flex; }
    .site-header nav { margin-left: 0; }
    .nav-links { position: absolute; top: 100%; right: 0; left: 0; display: flex; max-height: 0; padding: 0 clamp(1.25rem, 5vw, 3rem); overflow: hidden; flex-direction: column; align-items: stretch; gap: 0; background: var(--header-background); box-shadow: 0 16px 24px rgba(16,51,47,0.12); opacity: 0; pointer-events: none; transition: max-height 300ms ease, padding 300ms ease, opacity 200ms ease; }
    .nav-links.active { max-height: calc(100vh - 76px); padding-top: 0.75rem; padding-bottom: 1rem; overflow-y: auto; opacity: 1; pointer-events: auto; }
    .nav-links li { width: 100%; }
    .nav-links a { display: flex; min-height: 46px; font-size: 0.9rem; white-space: normal; }
    .nav-links a::after { right: auto; width: 38px; bottom: 4px; }
    .hero { min-height: 620px; }
    .hero-note { display: none; }
    .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .unit-gallery { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 767px) {
    html { scroll-padding-top: 75px; }
    body { font-size: 15px; }
    .navbar { width: calc(100% - 2rem); min-height: 72px; gap: 0.8rem; }
    .logo-container { gap: 0.6rem; max-width: calc(100% - 58px); font-size: 0.86rem; }
    .logo-container img { width: 41px; height: 41px; }
    .hero { min-height: 650px; padding-top: 5rem; padding-bottom: 5rem; background-image: linear-gradient(90deg, rgba(13,43,40,0.87), rgba(13,43,40,0.65)), url('../img/clinica/imageHero.webp'); background-position: 61% center; }
    .hero h1 { font-size: clamp(2.5rem, 11vw, 3.55rem); }
    .hero-description { font-size: 1rem; }
    .hero-actions { align-items: flex-start; flex-direction: column; gap: 0.8rem; }
    .hero-actions .btn-primary { width: 100%; max-width: 330px; }
    .hero::after { right: -15rem; bottom: -15rem; }
    section:not(.hero) { padding: 4rem 1.15rem; }
    section:not(.hero)::before, section:not(.hero)::after { width: 64px; height: 150px; opacity: .62; }
    section:not(.hero)::before { left: -39px; top: 12%; }
    section:not(.hero)::after { right: -39px; bottom: 7%; }
    .contact-cta--wave { padding-bottom: 7rem !important; }
    .section-wave { height: 76px; }
    .section-title { margin-bottom: 2.3rem; font-size: clamp(1.9rem, 8vw, 2.45rem); }
    .section-intro { margin-top: -0.8rem; margin-bottom: 2rem; font-size: 0.97rem; }
    .content-grid, .content-grid.reverse, .about-layout { grid-template-columns: minmax(0,1fr); gap: 1.8rem; }
    .about-principle-inner, .founder-profile-layout { grid-template-columns: minmax(0,1fr); gap: 1.4rem; }
    .about-principle-heading { max-width: 100%; }
    .about-values-list { grid-template-columns: minmax(0,1fr); }
    /* Portrait compacta apenas no mobile; as regras desktop permanecem inalteradas. */
    .founder-profile-photo { width: min(100%, 260px); max-height: 320px; aspect-ratio: 4 / 5; margin-inline: auto; border-radius: 20px 20px 54px 20px; }
    .content-grid.reverse > img, .content-grid.reverse > .content-text { order: initial; }
    .content-grid > img, .about-image, .careers-grid > img { max-height: none; aspect-ratio: 4 / 3; border-radius: 18px; }
    .content-text h3, .about-copy h3, .about-copy .content-heading, .location-copy h3 { font-size: 1.9rem; }
    .testimonials-intro { margin-bottom: 1.5rem; }
    .testimonials-viewport { grid-template-columns: minmax(0, 1fr); gap: .85rem; }
    .testimonial-slide { min-height: 0; border-radius: 14px; }
    .testimonial-slide blockquote { padding: .9rem 1rem 1.05rem; }
    .testimonial-slide blockquote p { font-size: .94rem; }
    .testimonial-author { min-height: 56px; padding: .75rem 1rem; }
    .carousel-controls { margin-top: 1.1rem; }
    .cards-grid { grid-template-columns: minmax(0,1fr); gap: 1.15rem; }
    .card > img { height: 245px; }
    .team-avatar { min-height: 190px; }
    .card-body, .team-card-body { padding: 1.35rem 1.25rem 1.55rem; }
    .unit-gallery { grid-template-columns: minmax(0,1fr); gap: 0.9rem; }
    .gallery-item { min-height: 220px; aspect-ratio: 4 / 3; }
    .gallery-item img { min-height: 0; }
    .location-block { grid-template-columns: minmax(0,1fr); gap: 1.5rem; margin-top: 3.3rem; padding-top: 3rem; }
    .map-frame { min-height: 280px; }
    .map-frame iframe { height: 300px; }
    .contact-methods { grid-template-columns: minmax(0,1fr); }
    .contact-method { padding: 0.85rem 1rem; }
    .contact-panel { padding: 1.6rem 1.1rem; border-radius: 20px; }
    .contact-main-button { width: 100%; min-width: 0; }
    .careers-form button { width: 100%; }
    .footer-content { grid-template-columns: minmax(0,1fr); gap: 1.6rem; margin-bottom: 2rem; }
    .site-footer { padding-top: 3.2rem; }
    .whatsapp-float { width: 52px; height: 52px; }
    .content-note { font-size: 0.78rem; }
}

@media (max-width: 380px) {
    .logo-container span { max-width: 170px; line-height: 1.2; }
    .hero h1 { font-size: 2.3rem; }
    .btn-primary { padding-right: 1rem; padding-left: 1rem; font-size: 0.86rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .reveal-on-scroll { opacity: 1 !important; transform: none !important; }
    .page-inicio .hero-copy .hero-eyebrow,
    .page-inicio .hero-copy h1,
    .page-inicio .hero-copy .hero-description,
    .page-inicio .hero-copy .hero-actions,
    .page-inicio .hero-note {
        opacity: 1 !important;
        clip-path: none !important;
        transform: none !important;
        animation: none !important;
    }
}

/* Ajustes de continuidade: galeria do espaço, hierarquia de títulos e formulários. */
.content-text h1,
.content-text h2,
.contact-panel h1 {
    margin: 0 0 1rem;
    color: var(--preto);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.8rem, 2.65vw, 2.65rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.2;
    text-wrap: balance;
}

/* Moldura com três fotos do espaço: uma imagem principal e duas de apoio. */
.content-grid.reverse > .space-photo-frame { order: 2; }
.space-photo-frame {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    width: 100%;
    min-width: 0;
    aspect-ratio: 1 / 0.96;
    max-height: 490px;
    padding: 0.8rem;
    overflow: hidden;
    border: 1px solid rgba(30, 116, 109, 0.2);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--sombra);
}
.space-photo {
    min-width: 0;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 17px;
    background: var(--fundo-suave);
}
.space-photo--main { grid-row: 1 / span 2; }
.space-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms cubic-bezier(0.2, 0.65, 0.3, 1);
}
.space-photo:hover img { transform: scale(1.035); }

/* Página Equipe: estrutura preparada para uma única fotografia horizontal da equipe. */
.team-feature-layout {
    display: grid;
    justify-items: center;
    gap: clamp(1.5rem, 3.2vw, 2.7rem);
}
.team-feature-copy { width: min(100%, 820px); text-align: center; }
.team-feature-copy .section-title { margin-bottom: 1.2rem; }
.team-feature-description {
    max-width: 760px;
    margin: 0 auto;
    color: var(--cinza-texto);
    font-size: clamp(1rem, 1.4vw, 1.12rem);
}
.team-photo-frame {
    display: flex;
    justify-content: center;
    align-items: center;
    width: min(100%, 860px);
    min-width: 0;
    min-height: 0;
    margin: 0 auto;
    padding: clamp(0.5rem, 1.5vw, 1rem);
    overflow: hidden;
    border: 1px solid rgba(30, 116, 109, 0.15);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: var(--sombra);
}
.team-photo-frame img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: min(78vh, 820px);
    margin: 0 auto;
    border-radius: 18px;
    object-fit: contain;
    object-position: center;
    box-shadow: 0 14px 32px rgba(24, 59, 54, 0.13);
}

/* Missão, visão e valores: título e texto juntos, foto reservada ao lado. */
.about-principle-inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(220px, 0.92fr);
    gap: clamp(2rem, 5vw, 5rem);
}
.about-principle-content { min-width: 0; }
.about-principle-copy {
    max-width: 680px;
    margin-top: 1.15rem;
    font-size: clamp(1rem, 1.4vw, 1.1rem);
}
.about-principle-photo {
    width: min(100%, 350px);
    min-width: 0;
    min-height: 0;
    justify-self: center;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid rgba(30, 116, 109, 0.13);
    border-radius: 22px;
    background: #e8eeeb;
    box-shadow: var(--sombra);
}
.about-principle-photo img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    object-position: center;
}
.about-principle--reverse .about-principle-photo { order: -1; }

/* Rótulos e ícones na área de contato. */
.contact-method-label {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: fit-content;
    margin: 0 0 0.3rem;
    color: #75817e;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    line-height: 1.45;
    text-decoration: none;
    text-transform: uppercase;
}
.contact-method-label svg {
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
    fill: none;
    stroke: var(--verde-escuro);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.contact-method-label:hover { color: var(--verde-escuro); }
.contact-method strong a { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.contact-method strong a:hover { color: var(--verde-escuro); text-decoration: underline; text-underline-offset: 3px; }

/* Proteção contra preenchimento automático por robôs: permanece fora da área visível. */
.careers-honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}
.form-feedback {
    margin: 1rem 0 0;
    padding: 0.85rem 1rem;
    border: 1px solid var(--linha);
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
}
.form-feedback--success { background: rgba(93, 165, 151, 0.15); color: var(--verde-profundo); }
.form-feedback--error { background: rgba(232, 139, 50, 0.12); color: #753d17; }

/* Toast AJAX do formulário: fixo, acessível e adaptado a telas estreitas. */
.careers-toast {
    position: fixed;
    z-index: 1500;
    top: clamp(5.5rem, 8vh, 7rem);
    right: clamp(0.85rem, 2.5vw, 1.75rem);
    width: min(440px, calc(100vw - 1.7rem));
    padding: 1rem 1.15rem;
    border: 1px solid transparent;
    border-radius: 16px;
    box-shadow: 0 16px 42px rgba(15, 43, 40, 0.2);
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1.55;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease;
}
.careers-toast[hidden] { display: none; }
.careers-toast.is-visible { opacity: 1; transform: translateY(0); }
.careers-toast--success { border-color: rgba(27, 103, 78, 0.2); background: #edf8f1; color: #155b3f; }
.careers-toast--error { border-color: rgba(151, 55, 39, 0.2); background: #fff0ed; color: #8c2e22; }
.careers-form button:disabled { opacity: 0.72; cursor: wait; }
.careers-form.is-submitting { cursor: progress; }

/* Menu mobile: grade de duas colunas mantém o botão alinhado ao canto direito. */
@media (max-width: 1023px) {
    .navbar {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 46px;
        align-items: center;
    }
    .logo-container { grid-column: 1; grid-row: 1; min-width: 0; }
    .menu-toggle { grid-column: 2; grid-row: 1; justify-self: end; margin: 0; }
    .site-header nav { grid-column: 1 / -1; grid-row: 2; width: 100%; }
    .nav-links { top: 100%; right: 0; left: 0; width: 100%; }
}

@media (max-width: 767px) {
    .navbar {
        width: 100%;
        padding-right: 0.8rem;
        padding-left: 1rem;
        min-height: 72px;
        gap: 0.7rem;
    }
    .logo-container { max-width: 100%; }
    .menu-toggle { width: 44px; height: 44px; }
    .hero {
        min-height: clamp(500px, 78svh, 590px);
        align-items: center;
        padding: 3.5rem 1.1rem 3.25rem;
        background-image: linear-gradient(90deg, rgba(13, 43, 40, 0.91) 0%, rgba(13, 43, 40, 0.7) 48%, rgba(13, 43, 40, 0.25) 100%), url('../img/clinica/imageHero.webp');
        background-position: 65% center;
    }
    .hero-inner { width: 100%; }
    .hero-copy { width: min(100%, 420px); }
    .hero h1 { max-width: 12.5ch; font-size: clamp(2rem, 7.8vw, 2.65rem); line-height: 1.08; }
    .hero-eyebrow { max-width: 100%; font-size: 0.65rem; letter-spacing: 0.11em; }
    .hero-description { max-width: 34ch; margin-top: 1rem; font-size: 0.94rem; line-height: 1.62; }
    .hero-actions { margin-top: 1.35rem; gap: 0.7rem; }
    .hero-actions .btn-primary { width: auto; min-width: 0; max-width: 260px; }
    section:not(.hero)::before,
    section:not(.hero)::after {
        width: clamp(66px, 20vw, 84px);
        height: clamp(145px, 42vw, 180px);
        opacity: 0.88;
    }
    section:not(.hero)::before { left: -19px; top: 12%; }
    section:not(.hero)::after { right: -19px; bottom: 7%; }
    .content-grid.reverse > .space-photo-frame { order: initial; }
    .space-photo-frame {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: minmax(130px, 1.25fr) minmax(90px, 0.8fr);
        gap: 0.5rem;
        aspect-ratio: 1 / 1.02;
        max-height: none;
        padding: 0.55rem;
        border-radius: 22px;
    }
    .space-photo--main { grid-column: 1 / -1; grid-row: auto; }
    .space-photo { border-radius: 13px; }
    .team-photo-frame { width: min(100%, 480px); min-height: 0; padding: 0.45rem; border-radius: 18px; }
    .team-photo-frame img { max-height: min(68vh, 560px); border-radius: 13px; }
    .about-principle-inner { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
    .about-principle--reverse .about-principle-photo { order: initial; }
    .about-principle-photo img { border-radius: inherit; }
    .about-principle-photo { width: min(100%, 300px); min-height: 0; aspect-ratio: 4 / 3; margin: 0.35rem auto 0; border-radius: 18px; }
    .contact-method-label { font-size: 0.74rem; }
}

@media (max-width: 380px) {
    .hero h1 { font-size: clamp(1.9rem, 8vw, 2.15rem); }
    .hero-description { font-size: 0.9rem; }
    .hero-eyebrow { letter-spacing: 0.08em; }
}


/* Acabamento visual das imagens das páginas Equipe e Trabalhe Conosco. */
.team-photo-frame {
    background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(232,244,239,.78));
    border-color: rgba(30,116,109,.22);
    box-shadow: 0 18px 48px rgba(24,59,54,.11);
}
.team-photo-frame img {
    box-shadow: 0 10px 26px rgba(24,59,54,.10);
}
.careers-grid > img {
    border: 1px solid rgba(30,116,109,.13);
    border-radius: 24px;
    box-shadow: 0 18px 44px rgba(24,59,54,.11);
    transition: transform 320ms ease, box-shadow 320ms ease;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .careers-grid > img:hover { transform: translateY(-3px); box-shadow: 0 22px 50px rgba(24,59,54,.15); }
}
@media (max-width: 767px) {
    .team-photo-frame { width: min(100%, 600px); }
    .team-photo-frame img { max-height: min(68vh, 560px); }
    .careers-grid > img { border-radius: 18px; }
}


/* No primeiro depoimento, a imagem contextual fica ao lado do texto sem alterar os demais cards. */
.testimonial-content-with-photo {
    order: 2;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem 1.15rem;
}
.testimonial-content-with-photo blockquote {
    min-width: 0;
    margin: 0;
    padding: 0;
}
.testimonial-family-photo {
    display: block;
    width: 88px;
    height: 88px;
    border: 3px solid rgba(30,116,109,.12);
    border-radius: 18px;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 5px 14px rgba(24,59,54,.12);
}
.testimonial-content-with-photo + .testimonial-author { order: 1; }
@media (max-width: 767px) {
    .testimonial-content-with-photo { grid-template-columns: 70px minmax(0, 1fr); gap: .8rem; padding: .9rem 1rem 1rem; }
    .testimonial-family-photo { width: 70px; height: 78px; border-radius: 14px; }
}
@media (max-width: 360px) {
    .testimonial-content-with-photo { grid-template-columns: 58px minmax(0, 1fr); gap: .65rem; }
    .testimonial-family-photo { width: 58px; height: 68px; }
}


/* Página 404: bloco central responsivo e sem estilos inline no template. */
.not-found-content { max-width: 760px; margin: 0 auto; text-align: center; }
.not-found-actions { justify-content: center; flex-wrap: wrap; }


/* Página Equipe: composição visual alinhada à seção de apresentação de sobre.php.
   As formas são decorativas, ficam atrás da fotografia e não afetam leitores de tela. */
.team-about-section .team-about-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    align-items: center;
}
.team-about-media {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 520px;
    min-width: 0;
    margin: 0;
    padding: clamp(0.7rem, 1.8vw, 1.15rem);
    background-image: radial-gradient(circle, rgba(30, 116, 109, 0.30) 1.7px, transparent 1.8px);
    background-size: 17px 17px;
    background-position: right 5px top 5px;
    background-repeat: repeat;
}
.team-about-media::before {
    position: absolute;
    z-index: -1;
    inset: 4% 2% 5% 3%;
    border-radius: 54% 46% 43% 57% / 42% 45% 55% 58%;
    background: linear-gradient(145deg, rgba(214, 238, 229, 0.96), rgba(242, 200, 135, 0.40));
    content: "";
    transform: rotate(-5deg);
}
.team-about-media::after {
    position: absolute;
    z-index: 0;
    top: 0.1rem;
    right: 0.25rem;
    width: clamp(2.6rem, 5.2vw, 4.25rem);
    aspect-ratio: 1;
    border: 7px solid rgba(255, 255, 255, 0.82);
    border-radius: 50%;
    background: var(--laranja-teste);
    box-shadow: -1.6rem 2rem 0 -1.45rem var(--verde-profundo), -2.5rem 2.85rem 0 -1.42rem var(--laranja-suave, #e7b46b);
    content: "";
    pointer-events: none;
}
.team-about-image {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    max-height: 580px;
    aspect-ratio: 4 / 5;
    margin: 0;
    border-radius: 24px;
    object-fit: cover;
    object-position: center;
}
.team-about-copy { position: relative; z-index: 1; }
.team-about-copy .title-about {
    margin-top: 0;
    margin-bottom: 1.15rem;
    font-size: clamp(2rem, 3.6vw, 3.1rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.18;
    text-wrap: balance;
}
.team-about-copy > p { margin: 0 0 1rem; }

@media (max-width: 1023px) {
    .team-about-section .team-about-layout { gap: clamp(1.6rem, 4vw, 3rem); }
    .team-about-image { max-height: 540px; }
}
@media (max-width: 767px) {
    .team-about-section .team-about-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }
    .team-about-media {
        width: min(100%, 500px);
        margin-inline: auto;
        padding: 0.8rem;
    }
    .team-about-image {
        max-height: none;
        aspect-ratio: 4 / 5;
        border-radius: 18px;
    }
    /* Reserva a área do botão flutuante do WhatsApp para que não cubra o texto em telas estreitas. */
    .team-about-copy { width: 100%; padding-right: clamp(3.25rem, 11vw, 3.8rem); }
    .team-about-copy .title-about { font-size: clamp(1.9rem, 7vw, 2.45rem); }
    .team-about-media::after { border-width: 5px; }
}
@media (max-width: 380px) {
    .team-about-media { padding: 0.55rem; }
    .team-about-media::after { width: 2.5rem; }
}
