/* Ajustes compartilhados de apresentação. */
:root { --section-blue: #274562; }
/* Ritmo visual inspirado na referência: retratos suaves e blocos alinhados. */
.about-portrait { margin: 0; width: 100%; max-width: 460px; justify-self: center; min-width: 0; }
.about-portrait .about-photo { max-width: none; height: auto; border-radius: 32px; box-shadow: 0 14px 36px #2745621a; }
.about-portrait .about-photo img { display: block; height: auto; object-fit: contain; }
.about-portrait .professional-registration { margin: 20px 0 0; text-align: center; border-left: 0; border-radius: 16px; font-size: 16px; line-height: 1.65; }
.professional-registration { padding: 16px 20px; border-left: 3px solid var(--section-blue); background: #effbff; color: var(--muted); }
.google-reviews { padding-block: 56px; background: #fff; }
.google-reviews > h2 { font-size: clamp(32px, 4vw, 52px); text-align: center; margin: 0 auto 36px; max-width: 900px; }
.faq > .section-booking-cta { grid-column: 1 / -1; justify-self: center; margin-top: 28px; max-width: 100%; text-align: center; }
.footer-map { grid-column: 1 / -1; min-width: 0; margin-top: 32px; }
.footer-map iframe { display: block; width: 100%; height: clamp(280px, 35vw, 450px); border: 0; }
.site-footer { display: flex; flex-direction: column; align-items: stretch; gap: 28px; }
.site-footer .footer-map { margin-top: 0; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 32px; }
.footer-links a { color: #fff; text-decoration: none; font-size: 15px; }
.footer-links a:hover { text-decoration: underline; }
.footer-details { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; border-top: 1px solid #ffffff26; padding-top: 20px; }
.footer-details p { margin: 0; }
@media (max-width: 760px) { .footer-details { flex-direction: column; text-align: center; } .site-footer .footer-details p:last-child { text-align: center; } }
.hero.official-hero {
  display: block;
  min-height: 720px;
  padding: 64px max(7vw, 25px);
  background: #102d51 url('assets/banner-inicio-azul.png') center / cover no-repeat;
}
.official-hero .hero-copy { width: 48%; max-width: 610px; }
.official-hero h1 { color: #fff; font-size: clamp(42px, 4.3vw, 66px); text-shadow: 0 2px 20px rgba(3,24,48,.22); }
.official-hero .lead { font-size: 16px; }
.official-hero .lead { color: #f5f9fc; text-shadow: 0 1px 12px rgba(3,24,48,.3); }
.official-hero .hero-photo { display: none; }
.method-visual {
  padding-block: clamp(48px, 6vw, 88px);
  background: #faf8f3;
  scroll-margin-top: 86px;
}
.method-visual-inner {
  display: grid;
  justify-items: center;
  gap: 28px;
}
.method-visual img {
  display: block;
  width: 100%;
  max-width: 1536px;
  height: auto;
}
.method-image-scroll { width: 100%; overflow: hidden; }
.method-visual .button { justify-content: center; }
.dark-message, #agendamento { background-color: var(--section-blue); }
.booking-phone { width: 280px; height: 570px; padding: 8px; border: 7px solid #1d2529; border-radius: 38px; background: #101618; box-shadow: 0 12px 28px #001d1940; justify-self: center; font-family: Arial, sans-serif; }
.phone-screen { height: 100%; overflow: hidden; border-radius: 25px; background: #efeae2; display: flex; flex-direction: column; }
.phone-top { height: 61px; padding: 12px 10px 8px; display: flex; align-items: center; gap: 8px; color: #fff; background: linear-gradient(90deg, #075e54, #128c7e); }
.phone-avatar { width: 35px; height: 35px; overflow: hidden; border: 2px solid #fff; border-radius: 50%; background: #fff; flex: 0 0 auto; }
.phone-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 31%; }
.phone-person { flex: 1; min-width: 0; }
.phone-person strong, .phone-person small { display: block; }
.phone-person strong { font-size: 13px; }
.phone-person small { margin-top: 2px; font-size: 10px; }
.phone-chat { flex: 1; overflow: auto; padding: 9px 7px; background-color: #efeae2; background-image: radial-gradient(#d6cec4 1px, transparent 1.3px); background-size: 16px 16px; scroll-behavior: smooth; }
.phone-day { width: max-content; margin: 0 auto 9px; padding: 5px 7px; border-radius: 6px; background: #fff3c4; color: #536063; font-size: 8px; font-weight: bold; }
.phone-bubble { position: relative; width: max-content; max-width: 84%; margin: 0 0 7px; padding: 7px 23px 7px 7px; border-radius: 7px; box-shadow: 0 1px 1px #0002; color: #172226; font-size: 11px; line-height: 1.33; animation: phone-pop .32s ease-out; }
.phone-bubble.in { background: #fff; border-top-left-radius: 0; }
.phone-bubble.out { margin-left: auto; background: #d9fdd3; border-top-right-radius: 0; }
.phone-time { position: absolute; right: 6px; bottom: 4px; color: #72827b; font-size: 8px; }
.phone-ticks { color: #38a7dd; font-size: 10px; }
.phone-confirmed { color: #087a55; }
.phone-typing { width: max-content; margin: 0 0 7px; padding: 7px 8px; border-radius: 7px; border-top-left-radius: 0; background: #fff; color: #667781; font-size: 9px; }
.phone-typing b { margin-left: 3px; animation: phone-blink .65s infinite alternate; }
.phone-composer { height: 46px; padding: 14px; background: #f0f2f5; color: #8696a0; font-size: 10px; }
/* Scope the supplied smartphone styles to the home-page conversation. */
.booking-phone:has(#booking-chat), .booking-phone:has(#booking-chat) * { box-sizing: border-box; }
.booking-phone:has(#booking-chat) { color: #000; }
#booking-chat .phone-day { margin: 0 auto 9px; padding: 5px 7px; color: #536063; font: bold 8px Arial, sans-serif; }
#booking-chat .phone-bubble { color: #000; }
.booking-phone:has(#booking-chat) .phone-person strong { font-family: Arial, sans-serif; font-size: 13px; }
@media (prefers-reduced-motion: reduce) {
  #booking-chat .phone-bubble { animation: none; }
}
.service-phone-wrap { display: grid; justify-items: center; gap: 20px; }
.booking-phone-embed { display: block; width: 320px; height: 610px; border: 0; max-width: none; background: transparent; margin: -20px; }
.service-phone-cta { min-width: 280px; justify-content: center; }
body[data-service="terapia-de-casal.html"] .service-hero .photo-frame img { object-fit: contain; background: #effbff; }
@keyframes phone-pop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes phone-blink { to { opacity: .18; } }
.diagnosis-photo { align-self: center; min-height: 0; overflow: visible; }
.diagnosis-photo img { width: 100%; height: auto; object-fit: contain; }
.diagnosis-photo figcaption { position: static; background: var(--section-blue); }
footer .brand-logo { width: 93px; height: auto; padding-top: 0; margin-top: -4px; }
/* Formas discretas nas margens preservam a leitura dos textos completos. */
.faq:has(.demand) { position: relative; isolation: isolate; overflow: hidden; }
.faq:has(.demand)::before, .faq:has(.demand)::after {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  width: 180px; height: 180px; border: 2px solid var(--section-blue); opacity: .14;
}
.faq:has(.demand)::before { right: -95px; top: 30px; border-radius: 50%; }
.faq:has(.demand)::after { left: -130px; top: 52%; transform: rotate(45deg); }
@media (max-width: 760px) {
  .hero.official-hero {
    padding: 300px 25px 48px;
    min-height: 0;
    background-size: auto 290px;
    background-position: right top;
  }
  .official-hero .hero-copy { width: 100%; max-width: none; }
  .official-hero h1 { font-size: clamp(36px, 8vw, 45px); }
  .method-visual { padding-block: 36px; }
  .method-visual { scroll-margin-top: 72px; }
  .method-visual-inner { gap: 20px; }
  .diagnosis-photo { min-height: 0; width: 100%; }
}

/* Composição mais preenchida e visual em todas as páginas. */
.section-wrap { padding-left: clamp(24px, 4.5vw, 72px); padding-right: clamp(24px, 4.5vw, 72px); }
.copy-section, .trust, .needs, .attendance, .faq { max-width: none; }
.copy-section > p, .trust > p, .needs > p, .attendance > p, .faq > p { font-size: 17px; line-height: 1.7; }
.trust-grid { gap: 24px; }
.trust-grid article { border-radius: 0 28px 0 28px; box-shadow: 0 16px 40px rgba(39,69,98,.08); }
.trust-grid b { font-size: 24px; }

.need-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.need-card { padding: 0; overflow: hidden; background: #fff; border: 0; box-shadow: 0 16px 44px rgba(39,69,98,.12); }
.need-card-image { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; object-position: center top; background: #effbff; }
.need-card-copy { padding: 24px 28px 28px; }
.need-card h3 { font-size: 30px; }
.need-card p { font-size: 15px; }
.need-card:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: .85fr 1.15fr; }
.need-card:last-child .need-card-image { height: 100%; min-height: 310px; object-fit: contain; object-position: center; }

.official-services { gap: 24px; }
.services { position: relative; isolation: isolate; overflow: hidden; }
.services::before, .services::after { content: ''; position: absolute; z-index: 0; pointer-events: none; border: 2px solid rgba(39,69,98,.14); }
.services > * { position: relative; z-index: 1; }
.services::before { width: 260px; height: 260px; border-radius: 50%; right: -110px; top: -90px; }
.services::after { width: 190px; height: 190px; left: -105px; bottom: -90px; transform: rotate(45deg); }
.official-services .service-card { padding: 34px 30px; overflow: hidden; box-shadow: 0 16px 44px rgba(39,69,98,.1); }
.official-services .service-card h3 { font-size: 32px; }
.official-services .service-card p { font-size: 15px; }

.copy-section:not(.diagnosis-section):not(.dark-message) {
  padding-right: max(46%, 520px);
  background: linear-gradient(90deg, #fff 0%, #fff 55%, rgba(255,255,255,.12) 73%), url('assets/tema-autoestima.png') right center / 48% 100% no-repeat;
}
.copy-section.arrival-section:not(.diagnosis-section):not(.dark-message) {
  background-image: linear-gradient(90deg, #fff 0%, #fff 53%, rgba(255,255,255,0) 72%), url('assets/pausa-equilibrio.png');
  background-size: 100% 100%, 46% auto;
  background-position: center, right center;
}
.attendance {
  min-height: 430px;
  padding-right: max(48%, 540px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(90deg, #effbff 0%, #effbff 48%, rgba(239,251,255,.12) 72%), url('assets/consultorio-atual.jpeg') right center / auto 100% no-repeat;
}
.faq:has(details), .faq:has(.demand) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; }
.faq:has(details) > .eyebrow, .faq:has(details) > h2, .faq:has(.demand) > .eyebrow, .faq:has(.demand) > h2 { grid-column: 1 / -1; }
.faq details, .demand { padding: 20px 22px; margin: 0; background: #f8fcfe; border: 1px solid #d9eef6; }
.faq details { margin-bottom: 18px; }

.service-hero { padding-left: clamp(28px, 5vw, 76px); padding-right: clamp(28px, 5vw, 76px); gap: clamp(42px, 7vw, 100px); }
.service-content { grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: clamp(36px, 6vw, 90px); }
.service-content article { max-width: 820px; }
.service-content article p { font-size: 17px; line-height: 1.75; }
.service-content aside { border-radius: 0 32px 0 32px; box-shadow: 0 18px 45px rgba(39,69,98,.1); }
.dark-message { position: relative; isolation: isolate; overflow: hidden; }
.dark-message::before, .dark-message::after { content: ''; position: absolute; z-index: 0; pointer-events: none; border: 2px solid rgba(0,168,224,.25); }
.dark-message > * { position: relative; z-index: 1; }
.dark-message::before { width: 330px; height: 330px; border-radius: 50%; right: 7%; top: 14%; }
.dark-message::after { width: 210px; height: 210px; right: 20%; bottom: -105px; transform: rotate(45deg); }

@media (max-width: 900px) {
  .need-grid, .faq:has(details), .faq:has(.demand) { grid-template-columns: 1fr; }
  .faq:has(details) > .eyebrow, .faq:has(details) > h2, .faq:has(.demand) > .eyebrow, .faq:has(.demand) > h2 { grid-column: auto; }
  .need-card:last-child { grid-column: auto; display: block; }
  .need-card:last-child .need-card-image { height: 230px; min-height: 0; }
  .copy-section:not(.diagnosis-section):not(.dark-message), .attendance { padding-right: 24px; background-image: none; min-height: 0; }
  .copy-section.arrival-section:not(.diagnosis-section):not(.dark-message) { background-image: none; }
  .arrival-section::after { content: ''; display: block; width: 100%; aspect-ratio: 2 / 3; margin-top: 32px; background: url('assets/pausa-equilibrio.png') center / contain no-repeat; }
}

@media (max-width: 760px) {
  .attendance > .button { order: 2; margin-top: 24px; }
  .attendance::after {
    content: '';
    display: block;
    flex: none;
    order: 1;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-top: 28px;
    background: url('assets/consultorio-atual.jpeg') center / contain no-repeat;
  }
  .method-visual-inner { padding-inline: 12px; min-width: 0; }
  .method-image-scroll {
    min-width: 0;
    overflow: visible;
  }
  .method-image-scroll img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }
}

/* Acabamento consistente em todas as páginas, sem mudar a paleta. */
.button { border-radius: 10px; min-height: 52px; }
.button:focus-visible, .footer-links a:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.about { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 5vw, 76px); }
.about-copy { max-width: none; }
.diagnosis-section { gap: clamp(32px, 5vw, 72px); grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.diagnosis-photo { border-radius: 32px; overflow: hidden; box-shadow: 0 14px 36px #2745621a; }
.diagnosis-photo img { display: block; height: auto; }
.need-card { border-radius: 24px; }
.need-card-image { aspect-ratio: auto; height: auto; }
.need-card:last-child .need-card-image { height: auto; min-height: 0; align-self: center; }
.need-card-copy { padding: 28px; }
.official-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.official-services .service-card { border-radius: 24px; padding: clamp(26px, 3vw, 40px); }
.trust-grid article { border-radius: 20px; }
.trust > .button, .needs > .button { display: flex; width: fit-content; margin-inline: auto; }
.faq details, .faq .demand { border-radius: 16px; }
.service-hero .photo-frame { height: auto; width: 100%; max-width: 430px; border-radius: 32px; box-shadow: 0 14px 36px #2745621a; justify-self: center; }
.service-hero .photo-frame img { display: block; height: auto; object-fit: contain; }
.service-content aside { border-radius: 24px; align-self: start; }
.corporate-page .corporate-grid article { border-radius: 20px; box-shadow: 0 12px 30px #27456212; }
.copy-section.arrival-section:not(.diagnosis-section):not(.dark-message) { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); padding-right: clamp(24px, 4.5vw, 72px); background: #fff; align-items: center; }
.arrival-copy { min-width: 0; }
.arrival-copy > p { color: var(--muted); font-size: 17px; line-height: 1.7; }
.arrival-photo { margin: 0; min-width: 0; }
.arrival-photo img { display: block; width: 100%; height: auto; border-radius: 32px; box-shadow: 0 14px 36px #2745621a; }
.arrival-section::after { display: none; }
@media (max-width: 900px) {
  .trust-grid { grid-template-columns: 1fr; }
  .about, .diagnosis-section, .copy-section.arrival-section:not(.diagnosis-section):not(.dark-message) { grid-template-columns: 1fr; }
  .diagnosis-photo, .arrival-photo { width: 100%; max-width: 480px; justify-self: center; }
  .about-portrait { max-width: 420px; }
  .need-card:last-child .need-card-image { width: 100%; height: auto; }
}
@media (max-width: 760px) {
  .official-services { grid-template-columns: 1fr; }
  .about-portrait .about-photo, .diagnosis-photo, .arrival-photo img, .service-hero .photo-frame { border-radius: 24px; }
  .attendance::after { border-radius: 24px; }
  .service-content { grid-template-columns: 1fr; }
  .service-phone-cta { min-width: 0; max-width: 100%; text-align: center; }
}
