/* Corrieri Fisioterapia + Formação TMR — folha de estilo única
   Layout: faixas horizontais largas, texto em coluna de leitura, fotos reais em molduras simples.
   Clínica: areia, linho e cacau (acolhedor). TMR: creme, osso, verde-oliva e terra (da logo TMR). */

:root {
  --bg: #FBF7F1;          /* linho */
  --bg-alt: #F1E7DA;      /* areia */
  --surface: #FFFFFF;
  --line: #E2D3C1;
  --ink: #3B2A1F;         /* cacau escuro: texto */
  --ink-soft: #6B5546;
  --brand: #6E4B33;       /* marrom de botões */
  --brand-ink: #FFF9F2;
  --brand-hover: #573A27;
  --accent: #B3262A;      /* vermelho da logo Corrieri, uso pontual */
  --mark: #FFF1B8;
  --mark-ink: #5B4300;
  --font-display: "Marcellus", "Trajan Pro", Georgia, serif;
  --font-body: "Mulish", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 14px;
  --max: 1120px;
  --read: 64ch;
  color-scheme: light;
}

body.tmr {
  --bg: #FDFAF3;          /* creme */
  --bg-alt: #EFE6D3;      /* osso */
  --surface: #FFFFFF;
  --line: #DCCDB0;
  --ink: #2A2118;
  --ink-soft: #5E5040;
  --brand: #3F6A28;       /* verde da logo */
  --brand-ink: #FFFFFF;
  --brand-hover: #2F521D;
  --accent: #5A3A22;      /* marrom terra */
  --deep: #23391A;
  --font-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; text-wrap: balance; margin: 0; color: var(--ink); }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
h3 { font-size: 1.3rem; }
body.tmr h1, body.tmr h2, body.tmr h3 { font-weight: 700; font-style: italic; text-transform: uppercase; letter-spacing: .01em; }
body.tmr h1 { font-size: clamp(2.3rem, 1.4rem + 3.8vw, 4rem); line-height: 1; }
body.tmr h2 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.8rem); line-height: 1.02; }
body.tmr h3 { font-size: 1.45rem; }
p { margin: 0; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: var(--brand-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

.wrap { max-width: var(--max); margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.read { max-width: var(--read); }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.stack-lg { display: flex; flex-direction: column; gap: 1.75rem; }

.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.lead { font-size: 1.2rem; color: var(--ink-soft); }

/* Faixa de revisão e marcadores de pendência */
.review-bar { background: #2B2B2B; color: #FFF; font-size: .85rem; text-align: center; }
.review-bar .wrap { padding-block: 8px; }
.pend { background: var(--mark); color: var(--mark-ink); padding: .05em .4em; border-radius: 4px; font-weight: 700; font-size: .9em; border: 1px dashed #C9A400; }

/* Cabeçalho */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 41; background: var(--bg); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { height: 52px; width: auto; }
body.tmr .brand img { height: 50px; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); text-decoration: underline; text-decoration-thickness: 2px; }
.nav .btn { color: var(--brand-ink); text-decoration: none; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px max(20px, env(safe-area-inset-right, 0px)) 16px max(20px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; border-bottom: 0; text-align: center; }
  .brand img { height: 44px; }
}

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: 12px 22px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: 1rem; text-decoration: none; border: 2px solid var(--brand); transition: background .15s, border-color .15s; line-height: 1.2; text-align: center; }
.btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--brand-ink); }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--brand); color: var(--brand-ink); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: .92rem; }
body.tmr .btn { border-radius: 6px; text-transform: uppercase; letter-spacing: .04em; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn[aria-disabled="true"] { background: var(--bg-alt); color: var(--ink-soft); border-color: var(--line); cursor: not-allowed; }

/* Seções */
.section { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 2.25rem; max-width: 60ch; }

/* Hero */
.hero { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero-grid > * { min-width: 0; }
.hero .lead { max-width: 52ch; }
.hero-note { font-size: .92rem; color: var(--ink-soft); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* Molduras de foto (aguardando fotos reais) */
.photo { position: relative; aspect-ratio: 3 / 4; max-width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.wide { aspect-ratio: 4 / 3; }
.photo-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; text-align: center; padding: 1.25rem; height: 100%; color: var(--ink-soft); font-size: .92rem;
  background: repeating-linear-gradient(135deg, var(--bg-alt) 0 12px, var(--surface) 12px 24px); }
.photo-slot strong { color: var(--ink); font-size: 1rem; }
.photo-slot svg { width: 34px; height: 34px; opacity: .6; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .gallery { grid-template-columns: 1fr; } }

/* Situações */
.chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.chip { display: flex; flex-direction: column; gap: .35rem; padding: 1.15rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.chip h3 { font-family: var(--font-body); font-weight: 800; font-size: 1.05rem; }
body.tmr .chip h3 { font-family: var(--font-body); font-style: normal; text-transform: none; font-size: 1.05rem; letter-spacing: 0; }
.chip p { color: var(--ink-soft); font-size: .98rem; }

/* Duas colunas texto */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Etapas da avaliação (sequência real) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: s; }
.steps li { counter-increment: s; display: flex; flex-direction: column; gap: .4rem; padding-top: 1rem; border-top: 2px solid var(--brand); }
.steps li::before { content: "Etapa " counter(s); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.steps h3 { font-family: var(--font-body); font-weight: 800; font-size: 1.08rem; }
body.tmr .steps h3 { font-style: normal; text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-size: 1.08rem; }
.steps p { color: var(--ink-soft); font-size: .98rem; }
.steps.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .steps, .steps.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps, .steps.three { grid-template-columns: 1fr; } }
figure { margin: 0; }
figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: .5rem; }

/* Lista com marcadores discretos */
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .65rem; }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: .7rem; height: .7rem; border-radius: 50%; border: 2px solid var(--brand); }

/* Professor / perfil */
.profile { display: grid; grid-template-columns: 320px 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.profile > * { min-width: 0; }
@media (max-width: 760px) { .profile { grid-template-columns: 1fr; } .profile .photo { max-width: 340px; } }
.creds { font-size: .95rem; color: var(--ink-soft); border-left: 3px solid var(--line); padding-left: 1rem; }

/* FAQ */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; font-weight: 800; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .85rem; font-size: 1.5rem; font-weight: 400; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 1.2rem; color: var(--ink-soft); max-width: 70ch; }

/* Cartões de contato */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.card { display: flex; flex-direction: column; gap: .9rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card .btn { align-self: flex-start; }
.card-tmr { border-color: #C9D6BB; background: #F6F9F1; }
.info dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: .6rem 1.25rem; }
.info dt { font-weight: 800; }
.info dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 460px) { .info dl { grid-template-columns: 1fr; gap: .1rem; } .info dd { margin-bottom: .6rem; } }

/* Faixa discreta "Você é terapeuta?" */
.tmr-teaser { background: #F3F6EE; border-block: 1px solid #D5E0C9; }
.tmr-teaser .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.6rem; }
.tmr-teaser p { color: #2E3B24; }
.tmr-teaser strong { font-size: 1.1rem; }
.tmr-teaser a.btn { --brand: #3F6A28; --brand-hover: #2F521D; --brand-ink: #FFFFFF; }

/* Páginas TMR: abertura */
.tmr-hero { background: linear-gradient(180deg, #FEFBF6 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.tmr-hero .hero-logo { width: min(100%, 460px); }
.band-deep { background: var(--deep); color: #F1EBDD; }
.band-deep h2, .band-deep h3 { color: #FFFFFF; }
.band-deep .eyebrow { color: #C9DDB0; }
.band-deep .lead, .band-deep p { color: #E6DFCF; }
.band-deep .chip { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); }
.band-deep .chip h3 { color: #FFFFFF; }
.band-deep .chip p { color: #DCD5C4; }
.band-deep .btn { --brand: #E9DCC2; --brand-hover: #FFFFFF; --brand-ink: #23391A; }
.band-deep .pend { color: var(--mark-ink); }
.note { font-size: .9rem; color: var(--ink-soft); }
.band-deep .note { color: #CFC8B6; }

.modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; }

/* Páginas de texto (privacidade) */
.prose { max-width: 72ch; display: flex; flex-direction: column; gap: 1rem; }
.prose h2 { margin-top: 1.5rem; font-size: 1.5rem; }
.prose ul { margin: 0; padding-left: 1.25rem; display: flex; flex-direction: column; gap: .4rem; }

/* Rodapé */
.site-footer { background: #2F231B; color: #E9DED2; font-size: .95rem; }
body.tmr .site-footer { background: #1E2B17; color: #E3E8DA; }
.site-footer a { color: #FFFFFF; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-block: 3rem 2rem; }
.footer-grid > * { min-width: 0; }
.footer-grid h2 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; font-style: normal; color: #FFFFFF; margin-bottom: .75rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.15); padding-block: 1.25rem; font-size: .85rem; color: #CDBFB1; }
body.tmr .footer-legal { color: #C6CFBA; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Barra fixa de ação no celular: o corpo ganha espaço extra para ela não cobrir conteúdo */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta { display: flex; gap: .5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--bg); border-top: 1px solid var(--line);
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); box-shadow: 0 -6px 18px rgba(0,0,0,.06); }
  .mobile-cta .btn { flex: 1; }
  body.has-mobile-cta { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}

/* Botão dentro do menu: mantém aparência de botão */
.nav .btn:hover { color: var(--brand-ink); text-decoration: none; }
.nav .btn { padding: 8px 16px; }
@media (max-width: 860px) { .nav .btn { padding: 12px 18px; border: 2px solid var(--brand); } }

/* Ajustes após revisão visual */
.chips { grid-template-columns: repeat(3, 1fr); }
.chips.two { grid-template-columns: repeat(2, 1fr); }
.modules { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .chips, .modules { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .chips, .chips.two, .modules { grid-template-columns: 1fr; } }
.band-deep .steps li { border-top-color: #A9C48C; }
.band-deep .steps li::before { color: #C9DDB0; }
.band-deep .steps p { color: #E6DFCF; }
.site-footer .footer-grid h2 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; font-style: normal; line-height: 1.4; color: #FFFFFF; }
