:root {
  --ochre: #bb7e45;
  --ochre-dark: #8f5729;
  --pink: #fba4b5;
  --peach: #f9b77d;
  --blue: #71c2e3;
  --lavender: #c6b2d7;
  --cream: #fff8f2;
  --paper: #fffdfb;
  --ink: #49372d;
  --muted: #76665d;
  --line: rgba(187, 126, 69, .22);
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: var(--sans); }
main { overflow: clip; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--serif); }
:focus-visible { outline: 3px solid #2563eb; outline-offset: 4px; }
.skip-link { position: fixed; top: .5rem; left: .5rem; z-index: 100; padding: .75rem 1rem; background: var(--ink); color: white; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.site-header { min-height: 92px; display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 3.5rem); padding: .8rem clamp(1.2rem, 5vw, 5.5rem); position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); background: rgba(255, 253, 251, .94); backdrop-filter: blur(18px); }
.brand { width: 194px; height: 66px; display: grid; place-items: center; margin-right: auto; overflow: hidden; text-decoration: none; }
.brand img { width: 188px; height: auto; object-fit: contain; }
.brand:has(.brand-mark) { width: auto; height: auto; display: inline-flex; place-items: initial; gap: .7rem; overflow: visible; }
.brand-mark { width: 48px; height: 48px; flex: 0 0 48px; display: block; overflow: hidden; color: transparent; font-size: 0; background: url('/assets/simbolo-espaco-despertar.png') center/contain no-repeat; }
.brand strong, .brand small { display: block; }
.brand strong { font: 600 1rem/1.15 var(--serif); }
.brand small { margin-top: .12rem; color: var(--muted); font-size: .64rem; letter-spacing: .07em; text-transform: uppercase; }
nav { display: flex; gap: clamp(1rem, 2vw, 2rem); }
nav a { position: relative; color: #5d483d; font-size: .9rem; text-decoration: none; }
nav a::after { content: ""; width: 0; height: 1px; position: absolute; left: 0; bottom: -.45rem; background: var(--ochre); transition: width .2s ease; }
nav a:hover::after { width: 100%; }

.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: .9rem 1.35rem; border: 1px solid var(--ochre); border-radius: 999px; background: var(--ochre); color: white; font: 750 .9rem/1.2 var(--sans); text-align: center; text-decoration: none; box-shadow: 0 12px 28px rgba(187, 126, 69, .14); transition: transform .2s ease, background .2s ease; }
.button:hover { background: var(--ochre-dark); transform: translateY(-2px); }
.button-small { min-height: 44px; padding: .7rem 1.1rem; font-size: .82rem; }
.button-outline { background: transparent; color: var(--ochre-dark); box-shadow: none; }
.button-outline:hover { color: white; }
.button-light { background: white; color: var(--ochre-dark); border-color: white; }
.text-link { color: var(--ink); font-weight: 750; text-decoration: none; }
.text-link:hover { color: var(--ochre-dark); }

.hero { min-height: 770px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(460px, .95fr); align-items: center; gap: clamp(2rem, 5vw, 6rem); padding: clamp(4rem, 8vw, 8rem) clamp(1.2rem, 6.5vw, 7.5rem) 5.5rem; position: relative; isolation: isolate; background: var(--cream); }
.hero-pattern { position: absolute; inset: 0; z-index: -2; opacity: .025; background-image: url('/assets/simbolo-espaco-despertar.png'); background-size: 185px; background-repeat: repeat; transform: rotate(-4deg) scale(1.08); }
.care-line { position: absolute; z-index: -1; border: 1px solid rgba(187, 126, 69, .46); border-left: 0; border-bottom: 0; border-radius: 50%; pointer-events: none; }
.care-line-hero { width: 118%; height: 360px; left: -18%; bottom: -250px; transform: rotate(-4deg); }
.hero-copy { max-width: 700px; }
h1 { margin: 0; font-size: clamp(4.3rem, 6.6vw, 7.4rem); font-weight: 500; letter-spacing: -.055em; line-height: .91; }
h1 em { color: var(--ochre); font-weight: 500; }
.hero-lead { max-width: 620px; margin: 2rem 0 0; color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.2rem); line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 1.5rem; margin-top: 2rem; }
.hero-note { max-width: 560px; display: flex; gap: .65rem; margin: 1.55rem 0 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.hero-note span { color: var(--ochre); font-size: 1.1rem; }
.hero-symbol { min-height: 560px; display: grid; grid-template-columns: minmax(260px, 1fr) minmax(190px, .68fr); align-items: center; gap: 1.25rem; position: relative; }
.hero-symbol > img { width: min(100%, 470px); filter: drop-shadow(0 24px 40px rgba(109, 72, 45, .07)); }
.hero-symbol ul { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.hero-symbol li { min-height: 76px; display: flex; align-items: center; padding: 1rem 1.1rem 1rem 3rem; position: relative; border: 1px solid rgba(73, 55, 45, .07); border-radius: 14px; color: #5d493e; font-size: .84rem; line-height: 1.35; }
.hero-symbol li::before { content: ""; width: 18px; height: 22px; position: absolute; left: 1rem; border-radius: 70% 30% 65% 35%; transform: rotate(-28deg); }
.hero-symbol .blue { background: rgba(113, 194, 227, .12); } .hero-symbol .blue::before { background: var(--blue); }
.hero-symbol .peach { background: rgba(249, 183, 125, .14); } .hero-symbol .peach::before { background: var(--peach); }
.hero-symbol .pink { background: rgba(251, 164, 181, .14); } .hero-symbol .pink::before { background: var(--pink); }
.hero-symbol .lavender { background: rgba(198, 178, 215, .18); } .hero-symbol .lavender::before { background: var(--lavender); }

.kicker { margin: 0 0 1rem; color: var(--ochre-dark); font: 750 .72rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
h2 { margin: 0; font-size: clamp(2.8rem, 5vw, 5.2rem); font-weight: 500; letter-spacing: -.045em; line-height: .97; }
.section-intro { max-width: 780px; }
.section-intro > p:last-child { max-width: 650px; margin: 1.5rem 0 0; color: var(--muted); line-height: 1.7; }
.section-intro.centered { margin: 0 auto; text-align: center; }
.section-intro.centered > p:last-child { margin-right: auto; margin-left: auto; }

.first-contact { padding: 9rem clamp(1.2rem, 7vw, 8.5rem) 8rem; position: relative; background: white; }
.first-contact h2 { font-size: clamp(2.8rem, 4.4vw, 4.7rem); }
.contact-steps { max-width: 1200px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 5rem auto 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.contact-steps li { min-height: 260px; padding: 2rem clamp(1.4rem, 3vw, 3rem); border-right: 1px solid var(--line); }
.contact-steps li:last-child { border-right: 0; }
.contact-steps span { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--ochre); border-radius: 50%; color: var(--ochre-dark); font: 700 .7rem var(--sans); }
.contact-steps h3 { margin: 4.5rem 0 .8rem; font-size: 1.55rem; font-weight: 500; }
.contact-steps p { margin: 0; color: var(--muted); line-height: 1.65; }

.clinic-story { display: grid; grid-template-columns: .65fr 1.2fr .7fr; gap: clamp(2rem, 5vw, 6rem); align-items: center; padding: 8rem clamp(1.2rem, 7vw, 8.5rem); position: relative; background: var(--cream); }
.clinic-story::before { content: ""; width: 280px; height: 430px; position: absolute; left: -110px; top: 20%; border: 1px solid var(--line); border-radius: 50%; }
.story-symbol { opacity: .19; transform: rotate(-9deg); }
.story-copy > p:not(.kicker) { max-width: 690px; margin: 1.5rem 0 0; color: var(--muted); font-size: 1.03rem; line-height: 1.75; }
.story-note { align-self: end; padding: 2rem 0 2rem 2rem; border-left: 2px solid var(--pink); }
.story-note strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; }
.story-note p { color: var(--muted); font-size: .9rem; line-height: 1.65; }

.care-section { padding: 8rem clamp(1.2rem, 7vw, 8.5rem); background: white; }
.care-list { margin-top: 5rem; border-top: 1px solid var(--line); }
.care-list article { display: grid; grid-template-columns: 100px .8fr; gap: clamp(2rem, 5vw, 7rem); align-items: center; min-height: 210px; padding: 2rem; border-bottom: 1px solid var(--line); transition: padding .2s ease, background .2s ease; }
.care-list article:hover { padding-left: 3rem; background: var(--cream); }
.care-list span { color: var(--ochre); font: 500 1rem var(--serif); }
.care-list h3 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.7rem); font-weight: 500; }
.care-list p { max-width: 720px; margin: .7rem 0 0; color: var(--muted); line-height: 1.7; }

.team-callout { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(3rem, 7vw, 8rem); padding: 8rem clamp(1.2rem, 7vw, 8.5rem); position: relative; overflow: hidden; background: #f8ecee; }
.team-copy { align-self: end; }
.team-copy p { margin: 0 0 2rem; color: var(--muted); line-height: 1.75; }
.butterfly-trail { display: flex; gap: 1.3rem; position: absolute; right: 6%; top: 12%; transform: rotate(-8deg); }
.butterfly-trail i { width: 18px; height: 24px; border-radius: 70% 30% 65% 35%; transform: rotate(-25deg); background: var(--blue); }
.butterfly-trail i:nth-child(2) { background: var(--peach); transform: translateY(-14px) rotate(-25deg); }
.butterfly-trail i:nth-child(3) { background: var(--pink); transform: translateY(-24px) rotate(-25deg); }
.butterfly-trail i:nth-child(4) { background: var(--lavender); transform: translateY(-36px) rotate(-25deg); }

.location { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; padding: 7rem clamp(1.2rem, 7vw, 8.5rem); background: var(--ochre); color: white; }
.location .kicker { color: rgba(255,255,255,.72); }
.location-details { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 3rem; align-items: start; }
.location-details p { margin: 0; color: rgba(255,255,255,.82); line-height: 1.7; }
.location-details strong { color: white; }
.location-details .button { grid-column: 1 / -1; width: fit-content; }

.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(3rem, 7vw, 8rem); padding: 8rem clamp(1.2rem, 7vw, 8.5rem); background: var(--cream); }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 1.7rem 3rem 1.7rem 0; position: relative; cursor: pointer; list-style: none; font: 500 1.2rem/1.35 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: 1.45rem; color: var(--ochre); font: 400 1.6rem var(--sans); }
.faq details[open] summary::after { content: "−"; }
.faq details p { max-width: 760px; margin: -.4rem 3rem 1.8rem 0; color: var(--muted); line-height: 1.7; }

.closing-cta { min-height: 430px; display: grid; grid-template-columns: 150px 1fr auto; gap: 3rem; align-items: center; padding: 6rem clamp(1.2rem, 7vw, 8.5rem); position: relative; background: white; }
.closing-cta > img { opacity: .78; }
.closing-cta h2 { max-width: 850px; font-size: clamp(2.7rem, 4.5vw, 4.8rem); }

.whatsapp-float { min-height: 48px; display: inline-flex; align-items: center; padding: .75rem 1.1rem; position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40; border-radius: 999px; background: #1f8f4e; color: white; box-shadow: 0 14px 38px rgba(73,55,45,.2); font-weight: 800; text-decoration: none; }
.whatsapp-float:hover { background: #18723e; transform: translateY(-2px); }

footer { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 3rem; padding: 5rem clamp(1.2rem, 7vw, 8.5rem) 2rem; background: #49372d; color: white; }
footer .brand { width: 220px; height: 145px; place-items: start center; filter: brightness(0) invert(1); opacity: .9; }
footer .brand img { width: 220px; height: auto; }
footer > div { display: flex; flex-direction: column; gap: .8rem; }
footer > div > strong { margin-bottom: .4rem; color: rgba(255,255,255,.48); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
footer > div a { font-size: .9rem; text-decoration: none; }
.private-access { margin-top: .8rem; color: rgba(255,255,255,.54); font-size: .72rem; line-height: 1.6; }
.private-access a { font-size: inherit; text-decoration: underline; }
.footer-note { grid-column: 1 / -1; margin: 2rem 0 0; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.54); font-size: .76rem; line-height: 1.65; }

/* Páginas internas existentes */
.inner-page { min-height: calc(100vh - 92px); padding: 6rem clamp(1.25rem, 8vw, 10rem); background: var(--cream); }
.inner-page .page-head { max-width: 880px; }
.inner-page h1 { font-size: clamp(3.4rem, 7vw, 6.8rem); }
.inner-page .lead { max-width: 680px; margin: 2rem 0; color: var(--muted); font-size: 1.1rem; line-height: 1.75; }
.legal-content { max-width: 860px; }
.legal-content h1 { margin-bottom: 2rem; }
.legal-content h2 { margin: 2.7rem 0 .8rem; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.12; }
.legal-content p, .legal-content li { color: var(--muted); line-height: 1.75; }
.legal-content li + li { margin-top: .45rem; }
.legal-notice { margin-top: 3rem; padding: 1.3rem; border-left: 4px solid var(--ochre); background: #fff2df; color: var(--ink); line-height: 1.6; }
.login-shell { max-width: 1100px; display: grid; grid-template-columns: 1fr .8fr; gap: 5rem; align-items: start; margin-top: 4rem; }
.login-card { padding: 2rem; background: var(--paper); border: 1px solid var(--line); }
.login-card h2 { font-size: 2.2rem; }
.login-card label { display: block; margin: 1.4rem 0 .4rem; font-size: .8rem; font-weight: 700; }
.login-card input, .login-card select { width: 100%; min-height: 48px; padding: .8rem; border: 1px solid var(--line); background: white; color: var(--ink); font: inherit; }
.login-card button { width: 100%; margin-top: 1.5rem; }
.login-card .status { margin-top: 1rem; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.login-card .consent-line { display: flex; align-items: flex-start; gap: .7rem; font-weight: 400; line-height: 1.45; }
.login-card .consent-line input { width: 18px; min-height: 18px; margin: .15rem 0 0; }
.feature-list { display: grid; gap: 1rem; }
.feature-list article { padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.feature-list h3 { margin: 0 0 .5rem; font: 500 1.35rem var(--serif); }
.feature-list p { margin: 0; color: var(--muted); line-height: 1.6; }
.profile-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 4rem; }
.profile-list article { min-height: 260px; display: flex; flex-direction: column; padding: 1.7rem; border: 1px solid var(--line); background: var(--paper); }
.profile-list h2 { font-size: 1.8rem; }
.profile-list p { color: var(--muted); line-height: 1.6; }
.profile-list span { margin-top: auto; color: var(--ochre); font-weight: 700; }

@media (max-width: 1100px) {
  nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 5rem; }
  .hero-copy { max-width: 820px; }
  .hero-symbol { max-width: 760px; min-height: 440px; margin: 0 auto; }
  .clinic-story { grid-template-columns: .5fr 1.5fr; }
  .story-note { grid-column: 2; }
  .team-callout, .faq { grid-template-columns: 1fr; }
  .closing-cta { grid-template-columns: 100px 1fr; }
  .closing-cta .button { grid-column: 2; width: fit-content; }
  footer { grid-template-columns: repeat(3, 1fr); }
  footer .brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 74px; }
  .site-header { min-height: 74px; padding-block: .35rem; }
  .site-header .brand { width: 148px; height: 62px; }
  .site-header .brand:has(.brand-mark) { width: auto; height: auto; }
  .site-header .brand:has(.brand-mark) strong { max-width: 170px; font-size: .82rem; }
  .site-header .brand img { width: 146px; height: auto; }
  .site-header > .button { display: none; }
  .hero { min-height: 0; display: block; padding-top: 4.5rem; }
  h1 { font-size: clamp(3.25rem, 15vw, 5.1rem); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-symbol { min-height: 0; grid-template-columns: 1fr; margin-top: 4rem; }
  .hero-symbol > img { width: min(76vw, 360px); margin: 0 auto; }
  .hero-symbol ul { grid-template-columns: 1fr 1fr; }
  .hero-symbol li { min-height: 70px; padding-left: 2.6rem; font-size: .75rem; }
  .contact-steps { grid-template-columns: 1fr; }
  .contact-steps li { min-height: 220px; border-right: 0; border-bottom: 1px solid var(--line); }
  .contact-steps h3 { margin-top: 2.7rem; }
  .clinic-story { grid-template-columns: 1fr; }
  .story-symbol { width: 170px; }
  .story-note { grid-column: 1; }
  .care-list article { grid-template-columns: 48px 1fr; gap: 1rem; padding: 2rem .25rem; }
  .care-list article:hover { padding-left: .25rem; }
  .team-callout { padding-top: 7rem; }
  .location { grid-template-columns: 1fr; }
  .location-details { grid-template-columns: 1fr; }
  .location-details .button { grid-column: 1; }
  .closing-cta { grid-template-columns: 1fr; }
  .closing-cta > img { width: 110px; }
  .closing-cta .button { grid-column: 1; width: 100%; }
  .login-shell { grid-template-columns: 1fr; }
  .profile-list { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr 1fr; }
  footer .brand { grid-column: 1 / -1; }
  footer > div:last-of-type { grid-column: 1 / -1; }
}

@media (max-width: 430px) {
  .hero-symbol ul { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Acessos restritos */
.auth-page { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; position: relative; overflow-x: hidden; background: var(--cream); }
.auth-page::before { content: ""; width: 420px; height: 420px; position: fixed; right: -180px; bottom: -200px; border: 1px solid var(--line); border-radius: 50%; pointer-events: none; }
.auth-header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; padding: .7rem clamp(1.25rem, 5vw, 5rem); border-bottom: 1px solid var(--line); background: rgba(255, 248, 242, .88); }
.auth-logo { width: 54px; height: 54px; display: grid; place-items: center; }
.auth-logo img { width: 48px; height: auto; }
.auth-back { color: var(--muted); font-size: .82rem; font-weight: 700; text-decoration: none; }
.auth-back:hover { color: var(--ochre-dark); }
.auth-main { width: min(1180px, calc(100% - 2.5rem)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); gap: clamp(4rem, 9vw, 9rem); align-items: center; margin: 0 auto; padding: clamp(4rem, 8vh, 7rem) 0; }
.auth-intro { max-width: 620px; }
.auth-role { display: inline-flex; align-items: center; gap: .55rem; color: var(--ochre-dark); font-size: .7rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.auth-role::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--pink); }
.auth-page-therapist .auth-role::before { background: var(--blue); }
.auth-page-admin .auth-role::before { background: var(--lavender); }
.auth-intro h1 { max-width: 650px; margin: 1.4rem 0 0; font-size: clamp(3.2rem, 5.5vw, 5.8rem); line-height: .94; }
.auth-intro p { max-width: 520px; margin: 1.6rem 0 0; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.auth-card { padding: clamp(1.7rem, 3vw, 2.4rem); border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.84); box-shadow: 0 24px 70px rgba(102, 69, 47, .08); }
.auth-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.auth-card h2 { font-size: 2.1rem; }
.auth-card-head span { color: var(--muted); font-size: .68rem; }
.auth-card label { display: block; margin: 1.2rem 0 .45rem; color: #604b40; font-size: .78rem; font-weight: 750; }
.auth-card input { width: 100%; min-height: 52px; padding: .85rem 1rem; border: 1px solid rgba(187,126,69,.28); border-radius: 10px; background: white; color: var(--ink); font: inherit; outline: 0; transition: border-color .2s ease, box-shadow .2s ease; }
.auth-card input:focus { border-color: var(--ochre); box-shadow: 0 0 0 4px rgba(187,126,69,.1); }
.auth-card .button { width: 100%; margin-top: 1.7rem; }
.auth-card .status { min-height: 2.4em; margin: 1rem 0 0; color: var(--muted); font-size: .72rem; line-height: 1.55; text-align: center; }
.auth-footer { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1rem clamp(1.25rem, 5vw, 5rem); border-top: 1px solid var(--line); color: var(--muted); font-size: .7rem; }
.auth-footer nav { display: flex; gap: 1.4rem; }
.auth-footer a { text-decoration: none; }

@media (max-width: 800px) {
  .auth-header { min-height: 76px; }
  .auth-logo { width: 48px; height: 48px; }
  .auth-logo img { width: 44px; }
  .auth-main { grid-template-columns: 1fr; gap: 2.7rem; padding: 3.5rem 0; }
  .auth-intro h1 { font-size: clamp(3rem, 13vw, 4.8rem); }
  .auth-card { width: 100%; }
  .auth-footer { align-items: flex-start; flex-direction: column; gap: .7rem; }
}
