/* Lourdes Martins
   Paleta oficial: azul #98A9D7, lavanda #9D88D0, lilás claro #F2F0FC.
   Tons escuros de apoio garantem contraste em textos e botões.
   A folha do ramo do monograma é a única forma recorrente da página:
   marcadores, numeração e painéis usam dois cantos opostos arredondados,
   como o quadro de tipografia da identidade original. */

:root {
  color-scheme: light;
  --paper: #faf9fd;
  --pale: #f2f0fc;
  --blue: #98a9d7;
  --lavender: #9d88d0;
  --plum: #65518d;
  --plum-deep: #514073;
  --ink: #373047;
  --body: #454150;
  --muted: #5d566b;

  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Poppins', system-ui, sans-serif;

  --text-display: clamp(3rem, 5.4vw, 4.75rem);
  --text-title: clamp(2.5rem, 4.4vw, 3.75rem);
  --text-subtitle: clamp(2rem, 3vw, 2.625rem);
  --text-heading: 1.125rem;
  --text-body: 1rem;
  --text-small: .875rem;

  --leaf-mark: 0 100% 0 100%;
  --leaf-panel: 72px 20px 72px 20px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 132px;
  --header-compact-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-compact-h) + 24px);
  scrollbar-color: var(--lavender) var(--pale);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: var(--text-body);
  line-height: 1.75;
  overflow-x: clip;
}

::selection { background: var(--plum); color: #fff; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--plum); outline-offset: 4px; border-radius: 6px; }
img, svg { display: block; }

h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; color: var(--ink); letter-spacing: -.025em; line-height: 1.06; text-wrap: balance; }
h1 { font-size: var(--text-display); }
h2 { font-size: var(--text-title); }
h3 { font-size: var(--text-heading); font-weight: 500; line-height: 1.45; color: var(--ink); text-wrap: balance; }
h4 { font-size: var(--text-body); font-weight: 500; color: var(--ink); }
h1 em, .contact h2 em { font-weight: 400; color: var(--plum); }
p, li, dd { text-wrap: pretty; }

.wrap { width: min(1200px, calc(100% - 112px)); margin-inline: auto; }

.skip { position: fixed; left: 16px; top: -100px; z-index: 200; background: var(--plum); color: #fff; padding: 12px 18px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* Botões e links */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 12px 28px;
  background: var(--plum); color: #fff;
  border: 0; border-radius: 100px;
  font-size: var(--text-small); font-weight: 500; line-height: 1.4;
  transition: background-color .2s ease, transform .2s var(--ease-out);
}
.button:hover { background: var(--plum-deep); transform: translateY(-2px); }
.button:active { transform: scale(.98); }
.button.small { min-height: 44px; padding: 8px 20px; }
.icon { width: 20px; height: 20px; flex: none; fill: currentColor; }

.text-link {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--plum); font-size: var(--text-small); font-weight: 500;
  text-decoration: underline; text-decoration-color: var(--lavender);
  text-decoration-thickness: 1px; text-underline-offset: 6px;
  transition: color .2s ease, text-decoration-color .2s ease;
}
.text-link:hover { color: var(--plum-deep); text-decoration-color: currentColor; }

/* Cabeçalho */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  background-color: transparent;
  transition: height .35s var(--ease-out), background-color .25s ease, box-shadow .25s ease;
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { position: relative; display: flex; align-items: center; flex: none; height: 100%; }
.brand-logo { width: 190px; height: auto; transition: opacity .2s ease; }
.brand-compact {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
  font-family: var(--serif); font-size: 1.5rem; line-height: 1; color: var(--ink);
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.brand-compact img { width: 42px; height: 45px; }
.header nav { display: flex; align-items: center; gap: 4px; font-size: var(--text-small); }
.header nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; transition: color .2s ease; }
.header nav a:hover { color: var(--plum); text-decoration: underline; text-underline-offset: 6px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; min-height: 44px; padding: 8px 14px; background: none; border: 0; font-size: var(--text-small); font-weight: 500; color: var(--ink); align-items: center; gap: 8px; }
.menu-toggle span { position: relative; display: block; width: 18px; height: 2px; background: currentColor; transition: background-color .2s ease; }
.menu-toggle span::before, .menu-toggle span::after { content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); transition: transform .25s var(--ease-out); }
.menu-toggle span::before { transform: translateY(-6px); }
.menu-toggle span::after { transform: translateY(6px); }
.menu-toggle[aria-expanded='true'] span { background: transparent; }
.menu-toggle[aria-expanded='true'] span::before { transform: rotate(45deg); }
.menu-toggle[aria-expanded='true'] span::after { transform: rotate(-45deg); }

.header.is-compact { height: var(--header-compact-h); background-color: var(--paper); box-shadow: 0 8px 24px -16px rgb(55 48 71 / .35); }
.header.is-compact .brand-logo { opacity: 0; pointer-events: none; }
.header.is-compact .brand-compact { opacity: 1; pointer-events: auto; }

/* Primeira dobra */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 60px;
  padding-top: calc(var(--header-h) + 8px); padding-bottom: 88px;
}
.hero h1 { margin-bottom: 26px; }
.line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.line > span { display: block; }
.lead { max-width: 30em; font-size: var(--text-heading); line-height: 1.7; margin-bottom: 16px; }
.hero-audience { max-width: 31em; margin-bottom: 30px; }
.quiet { font-size: var(--text-small); color: var(--muted); margin-top: 18px; }

.hero-art {
  position: relative; isolation: isolate; overflow: hidden;
  height: min(600px, calc(100svh - var(--header-h) - 48px)); min-height: 480px;
  background: var(--blue);
  border-radius: 45% 24px 24px 24px / 38% 24px 24px 24px;
}
.portrait {
  position: absolute; bottom: 0; left: 0; right: 0; margin-inline: auto;
  width: auto; height: 92%; max-width: 100%; object-fit: contain; object-position: bottom;
}
.photo-note {
  position: absolute; bottom: 16px; left: 16px; right: 16px; z-index: 2;
  background: var(--paper); border-radius: 16px; padding: 12px 18px; text-align: center;
  font-family: var(--serif); font-size: 1.75rem; line-height: 1.2; color: var(--ink);
}
.photo-note small { display: block; margin-top: 4px; font-family: var(--sans); font-size: var(--text-small); line-height: 1.45; color: var(--plum); }

/* Cabeçalhos de seção */
.section-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 90px; align-items: end; margin-bottom: 48px; }
.section-top p { max-width: 30em; }

/* Atendimentos */
.services { background: var(--pale); border-radius: 36px 36px 0 0; padding: 96px 0; }
.service-feature, .service-secondary { background: var(--paper); border-radius: var(--leaf-panel); }
.service-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; padding: 56px; margin-bottom: 26px; }
.service-opening h3, .service-secondary h3 { font-family: var(--serif); font-weight: 400; font-size: var(--text-subtitle); letter-spacing: -.02em; line-height: 1.12; margin-bottom: 12px; }
.service-mode { color: var(--plum); font-size: var(--text-small); font-weight: 500; margin-bottom: 20px; }
.service-opening > p:not(.service-mode), .service-secondary > p:not(.service-mode) { margin-bottom: 20px; }
.service-description h4 { margin: 4px 0 18px; }
.care-list { list-style: none; padding: 0; margin-bottom: 26px; }
.care-list li { position: relative; padding-left: 26px; margin-bottom: 12px; }
.care-list li::before { content: ''; position: absolute; left: 0; top: .5em; width: 13px; height: 13px; background: var(--lavender); border-radius: var(--leaf-mark); }
.service-note { background: var(--pale); border-radius: 28px 10px 28px 10px; padding: 20px 24px; font-size: var(--text-small); }
.service-note strong { display: block; color: var(--ink); font-weight: 500; margin-bottom: 4px; }
.service-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.service-secondary { display: flex; flex-direction: column; align-items: flex-start; padding: 48px; }
.service-secondary > .text-link { margin-top: auto; }
.service-secondary .family-note { color: var(--plum); font-size: var(--text-small); }

/* Detalhes expansíveis */
details { interpolate-size: allow-keywords; }
details::details-content { block-size: 0; overflow: clip; transition: block-size .3s var(--ease-out), content-visibility .3s allow-discrete; }
details[open]::details-content { block-size: auto; }
summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 44px; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.plus { position: relative; flex: none; width: 16px; height: 16px; transition: transform .25s var(--ease-out); }
.plus::before, .plus::after { content: ''; position: absolute; background: currentColor; border-radius: 2px; }
.plus::before { left: 0; right: 0; top: 7px; height: 2px; }
.plus::after { top: 0; bottom: 0; left: 7px; width: 2px; }
details[open] > summary .plus { transform: rotate(45deg); }

.method-details { width: 100%; background: var(--pale); border-radius: 28px 10px 28px 10px; padding: 8px 22px; margin-bottom: 20px; }
.method-details summary, .education summary { color: var(--plum); font-size: var(--text-small); font-weight: 500; line-height: 1.5; }
.method-details p { font-size: var(--text-small); padding: 4px 0 12px; }

/* Quando procurar */
.identification { padding: 96px 0 40px; }
.feelings { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.feelings h3 { margin-bottom: 10px; }
.section-end { margin-top: 56px; text-align: center; font-family: var(--serif); font-size: var(--text-subtitle); line-height: 1.2; color: var(--plum); }

/* Sobre */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: center; padding-block: 96px; }
.about-image { position: relative; display: grid; place-items: center; height: 540px; padding-bottom: 72px; background: var(--pale); border-radius: var(--leaf-panel); }
.about-image img { width: 58%; height: auto; }
.about-image span { position: absolute; bottom: 20px; left: 20px; right: 20px; background: var(--paper); border-radius: 16px; padding: 12px; text-align: center; font-family: var(--serif); font-size: 1.75rem; line-height: 1.25; color: var(--ink); }
.about-copy h2 { margin-bottom: 26px; }
.about-copy > p { margin-bottom: 18px; }
.education { margin-top: 28px; }
.education h3 { margin-bottom: 14px; }
.education p { margin-bottom: 12px; }
.education strong { display: block; font-size: var(--text-small); font-weight: 500; color: var(--plum); }
.education details p { padding-bottom: 8px; }
.signature { font-family: var(--serif); font-style: italic; font-size: 2.625rem; line-height: 1.2; color: var(--plum); margin-top: 20px; }

/* Valores */
.purpose { padding: 96px 0; background: var(--pale); }
.purpose-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; margin-bottom: 56px; }
.purpose-pair h3 { font-family: var(--serif); font-size: var(--text-subtitle); font-weight: 400; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 14px; }
.values-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 30px; margin-bottom: 8px; }
.values-heading p { font-size: var(--text-small); color: var(--muted); }
.values-list > div { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; padding: 20px 0; }
.values-list dt { font-weight: 500; color: var(--ink); }

/* Como funciona */
.process { padding: 96px 0; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; }
.step-number { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px; background: var(--blue); border-radius: 26px 6px 26px 6px; color: var(--ink); font-family: var(--serif); font-size: 1.75rem; line-height: 1; }
.steps h3 { margin-bottom: 10px; }
.attendance { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 56px; padding: 40px 48px; background: var(--pale); border-radius: var(--leaf-panel); }
.attendance h3 { font-family: var(--serif); font-size: var(--text-subtitle); font-weight: 400; line-height: 1.15; margin-bottom: 10px; }
.process-note { max-width: 56em; margin-top: 24px; font-size: var(--text-small); color: var(--muted); }

/* Dúvidas */
.faq { display: grid; grid-template-columns: 1fr 1.25fr; gap: 80px; padding-bottom: 96px; }
.faq h2 { margin-bottom: 22px; }
.faq-intro p { max-width: 24em; }
.questions details { background: var(--pale); border-radius: 22px 8px 22px 8px; margin-bottom: 10px; padding: 10px 24px; transition: background-color .2s ease; }
.questions details:hover { background: #ebe8fa; }
.questions summary { color: var(--ink); font-weight: 500; line-height: 1.5; padding-block: 6px; }
.questions summary .plus { color: var(--plum); }
.questions details p { padding: 4px 0 12px; }

/* Contato */
.contact { padding-bottom: 72px; }
.contact-inner { padding: 72px 28px; background: var(--blue); border-radius: 110px 24px 110px 24px; text-align: center; color: var(--ink); }
.contact h2 { margin-bottom: 20px; }
.contact h2 em { color: var(--ink); }
.contact-inner > p:not(.quiet) { max-width: 34em; margin: 0 auto 28px; }
.contact .quiet { color: var(--ink); }

/* Rodapé */
.footer { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 36px; align-items: center; padding-bottom: 28px; font-size: var(--text-small); }
.footer .brand { height: auto; }
.footer-links { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 4px 8px; }
.footer-links a, .privacy-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; background: none; border: 0; font-size: var(--text-small); transition: color .2s ease; }
.footer-links a:hover, .privacy-link:hover { color: var(--plum); text-decoration: underline; text-underline-offset: 6px; }
.copyright { grid-column: 1 / -1; text-align: center; color: var(--muted); }

/* Privacidade */
dialog { width: calc(100% - 32px); max-width: 560px; padding: 48px; background: var(--paper); border: 0; border-radius: 48px 16px 48px 16px; color: var(--body); overscroll-behavior: contain; box-shadow: 0 24px 60px -24px rgb(55 48 71 / .45); }
dialog::backdrop { background: rgb(55 48 71 / .45); }
dialog[open] { animation: dialog-in .3s var(--ease-out); }
dialog h2 { font-size: var(--text-subtitle); margin-bottom: 18px; }
dialog p { margin-bottom: 14px; }
.close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; border-radius: 50%; color: var(--ink); transition: background-color .2s ease; }
.close:hover { background: var(--pale); }
.close .plus { transform: rotate(45deg); }
.close-dialog { margin-top: 8px; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px); } }

/* Abertura: fica fora da página sem script e quando já foi exibida. */
.opening { display: none; }
.intro .opening { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; overflow: hidden; pointer-events: none; }
.opening-bg { position: absolute; inset: 0; background: var(--pale); }
.opening-mark { position: relative; width: min(46vmin, 280px); height: auto; overflow: visible; transform-origin: 0 0; }
.opening-mark * { transform-box: fill-box; }
.o-rise { transform-origin: 50% 100%; }
.o-leaf { transform-origin: 50% 100%; }
.o-fly { transform-origin: 50% 50%; }
.o-wing-up { transform-origin: 100% 100%; }
.o-wing-low { transform-origin: 100% 0; }

/* Estado inicial antes da animação de abertura, sem salto visual. */
.intro .opening-mark .o-rise, .intro .opening-mark .o-drop, .intro .opening-mark .o-leaf, .intro .opening-mark .o-fly { opacity: 0; }
.intro .header-inner > *, .intro .hero .line > span, .intro .hero-copy > :not(h1), .intro .hero-art { opacity: 0; }

/* Entradas ao rolar. O conteúdo só é ocultado quando o script está ativo. */
.reveal-ready .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: var(--delay, 0ms); }
.reveal-ready .reveal.reveal-settle { transform: scale(.97); }
.reveal-ready .reveal.is-in { opacity: 1; transform: none; }

/* Telas grandes */
@media (min-width: 1450px) { .hero { gap: 90px; } }

/* Tablet */
@media (max-width: 1100px) {
  .wrap { width: calc(100% - 64px); }
  .service-feature { gap: 36px; padding: 40px; }
  .service-secondary { padding: 36px; }
  .section-top, .faq { gap: 44px; }
  .about { gap: 44px; }
  .feelings { grid-template-columns: repeat(2, 1fr); }
  .steps { gap: 30px; }
  .purpose-pair { gap: 40px; }
}

/* Menu recolhido e símbolo no lugar do logotipo completo, conforme o guia da marca. */
@media (max-width: 1040px) {
  :root { --header-h: 72px; }
  .header .brand-logo { visibility: hidden; width: 170px; }
  .brand-compact { opacity: 1; pointer-events: auto; }
  .header { background-color: var(--paper); }
  .js .menu-toggle { display: inline-flex; }
  .js .header nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 32px 20px; background: var(--paper);
    box-shadow: 0 16px 24px -16px rgb(55 48 71 / .35);
    font-size: var(--text-body);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s ease, transform .25s var(--ease-out), visibility 0s linear .25s;
  }
  .js .header nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .header nav a { padding: 0 4px; min-height: 48px; }
  .hero { gap: 36px; padding-top: calc(var(--header-h) + 36px); }
  .hero-art { height: 480px; min-height: 0; }
  .contact-inner { border-radius: 72px 20px 72px 20px; }
}

/* Celular */
@media (max-width: 700px) {
  .wrap { width: calc(100% - 44px); }
  .js .header nav { padding-inline: 22px; }
  .header-inner { gap: 8px; }
  :root { --text-display: clamp(2.5rem, 10.9vw, 4.25rem); }
  .button.small { padding: 8px 14px; gap: 8px; }
  .brand-compact { font-size: 1.25rem; gap: 8px; }
  .brand-compact img { width: 34px; height: 37px; }
  .menu-toggle { padding: 8px; }
  .hero { grid-template-columns: 1fr; padding-top: calc(var(--header-h) + 28px); padding-bottom: 56px; }
  .hero-art { width: 100%; max-width: 420px; height: 440px; justify-self: center; }
  .lead { font-size: 17px; }
  .section-top { grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; align-items: start; }
  .services { padding: 64px 0; border-radius: 28px 28px 0 0; }
  .service-feature { grid-template-columns: 1fr; gap: 28px; padding: 36px 24px 28px; border-radius: 48px 16px 48px 16px; }
  .service-pair { grid-template-columns: 1fr; gap: 20px; }
  .service-secondary { padding: 36px 24px 24px; border-radius: 48px 16px 48px 16px; }
  .service-opening h3 br, .service-secondary h3 br { display: none; }
  .identification { padding: 64px 0 24px; }
  .feelings { grid-template-columns: 1fr; gap: 24px; }
  .section-end { margin-top: 40px; text-align: left; }
  .about { grid-template-columns: 1fr; gap: 36px; padding-block: 64px; }
  .about-image { height: 360px; width: 100%; max-width: 420px; justify-self: center; border-radius: 48px 16px 48px 16px; }
  .about-image img { width: 52%; }
  .purpose { padding: 64px 0; }
  .purpose-pair { grid-template-columns: 1fr; gap: 28px; margin-bottom: 40px; }
  .values-heading { display: block; }
  .values-heading p { margin-top: 4px; }
  .values-list > div { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
  .process { padding: 64px 0; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps li { display: grid; grid-template-columns: 52px 1fr; column-gap: 18px; }
  .step-number { grid-row: 1 / 3; margin: 0; }
  .steps p { grid-column: 2; }
  .attendance { grid-template-columns: 1fr; gap: 28px; margin-top: 40px; padding: 32px 24px; border-radius: 48px 16px 48px 16px; }
  .faq { grid-template-columns: 1fr; gap: 24px; padding-bottom: 64px; }
  .faq-intro p { max-width: none; }
  .questions details { padding: 8px 18px; }
  .contact { padding-bottom: 48px; }
  .contact-inner { padding: 56px 22px; border-radius: 56px 16px 56px 16px; }
  .contact-inner .button { width: 100%; }
  .contact-inner > p br { display: none; }
  .footer { grid-template-columns: 1fr; gap: 16px; justify-items: center; text-align: center; }
  .footer-links { justify-content: center; }
  dialog { padding: 40px 24px 28px; }
}

/* Em telefones, o atalho do cabeçalho fica só com o ícone; o nome da marca permanece. */
@media (max-width: 430px) {
  .button.small { width: 44px; padding: 0; }
  .button-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation-duration: .01ms !important; }
  .button:hover { transform: none; }
  .reveal-ready .reveal { opacity: 1; transform: none; }
}

@media print {
  .header, .opening, dialog { display: none; }
  .hero { padding-top: 0; }
  .reveal-ready .reveal { opacity: 1; transform: none; }
}
