/* ---------- fontes hospedadas no próprio site (nenhum pedido ao Google Fonts) ----------
   Fraunces (títulos) e Inter (texto): fontes variáveis, licença SIL OFL 1.1, subconjunto latino (português). Arquivos em assets/fonts/. */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 500 600; font-display: swap; src: url(../fonts/fraunces-latin.woff2) format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 600; font-display: swap; src: url(../fonts/fraunces-italic-latin.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/inter-latin.woff2) format('woff2'); }

/* ==========================================================================
   CTC Bom Samaritano — folha de estilo única
   Tokens da paleta APROVADA (marca azul-marinho; logo nova do cliente aplicada em 22/10/2026).
   Para trocar cores: edite apenas o bloco :root abaixo.
   ========================================================================== */
:root {
  /* escala marinho (marca = --blue-600, #0E2973) */
  --blue-50: #EEF1FC; --blue-100: #D8E0F9; --blue-200: #B0C2F2; --blue-300: #7B99EA;
  --blue-400: #406ADD; --blue-500: #1F45AD; --blue-600: #0E2973; --blue-700: #0A1E57;
  --blue-800: #09173E; --blue-900: #070F27;
  --brand: var(--blue-600); --brand-hover: var(--blue-700);
  --royal: #004AAB;                       /* links vivos e anel de foco */

  /* fundos e texto */
  --bg: #F8F3EA; --bg-bone: #FFFDF9; --bg-cream-2: #EFE7D8; --surface: var(--bg-bone);
  --text: #22262B; --text-2: #454B53; --text-3: #5F646B;
  --border: #E2D8C6; --border-strong: #8C7F68;

  /* bronze: só filete/detalhe, nunca botão */
  --gold: #B08440; --gold-100: #F6E7C8; --gold-700: #6F4E10; --gold-on-dark: #E3BE72;
  --focus: var(--royal); --focus-on-dark: var(--gold-on-dark);

  /* botão DOAR: sempre amarelo com texto marinho (borda marinho 2px sobre o creme) */
  --donate: #F5B31B; --donate-hover: #E09F0A; --donate-text: var(--blue-600); --donate-border: var(--blue-600);

  --success: #1F7A4D; --success-bg: #E4F3EA; --error: #B3261E; --error-bg: #FBE7E5;
  --warning: #8A5A00; --warning-bg: #FDF1D6;

  /* tipografia */
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, 'Segoe UI', Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 32px);
  --max: 1160px;
  --section: clamp(72px, 10vw, 128px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --mh: min(112vw, 520px);               /* altura da foto do topo no celular */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 18px/1.7 var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--blue-600); margin: 0; text-wrap: balance; word-spacing: .12em; letter-spacing: .004em; font-variation-settings: "opsz" 48; font-optical-sizing: none; }
h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); line-height: 1.12; margin-bottom: 24px; }
h3 { font-size: clamp(1.4rem, 1.2rem + .9vw, 1.8rem); line-height: 1.2; margin-bottom: 12px; }
h2 em, h1 em { font-style: italic; color: var(--gold-700); }
p { margin: 0 0 1.1em; max-width: 68ch; }
a { color: var(--royal); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--blue-700); }
ul { padding-left: 1.2em; } li { margin-bottom: .5em; }
::selection { background: var(--gold-100); color: var(--blue-800); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--donate); color: var(--blue-600); font-weight: 700; padding: 14px 20px; border-radius: 10px; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

/* marcador de pendência — visível e fácil de achar (use .pendente) */
mark.pendente { background: #FFE066; color: #3B2900; outline: 2px dashed var(--warning); outline-offset: 1px; padding: 1px 7px; border-radius: 4px; font-weight: 600; font-size: .86em; line-height: 1.5; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: var(--section) 0; position: relative; }
.section--cream2 { background: var(--bg-cream-2); }
.section--bone { background: var(--bg-bone); }
/* iluminação azul: marinho nas bordas, luz suave ao centro (como no site antigo) */
.section--dark { --lux: radial-gradient(70% 120% at 50% 48%, rgba(74,134,184,.62) 0%, rgba(54,104,164,.34) 40%, rgba(14,41,115,0) 78%), radial-gradient(40% 90% at 14% 100%, rgba(31,69,173,.30), rgba(31,69,173,0) 70%);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background: var(--lux), var(--blue-600); background-size: 150% 100%, auto; background-position: 50% 0, 0 0; background-repeat: no-repeat; color: var(--bg); position: relative; }
.section--dark:not(.band)::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--grain); opacity: .035; mix-blend-mode: screen; }
.section--dark > .wrap { position: relative; z-index: 1; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark h2 em { color: var(--gold-on-dark); }
.section--dark a:not(.btn) { color: var(--gold-on-dark); }
.section--dark :focus-visible, .site-footer :focus-visible, .site-header :focus-visible, .hero :focus-visible { outline-color: var(--focus-on-dark); }

.kicker { font: 700 13px/1.3 var(--sans); text-transform: uppercase; letter-spacing: .16em; color: var(--gold-700); margin: 0 0 14px; display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ""; width: 32px; height: 2px; background: var(--gold); flex: none; }
.section--dark .kicker, .hero .kicker { color: var(--gold-on-dark); }
.lead-text { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.35rem); line-height: 1.65; color: var(--text-2); }
.section--dark .lead-text { color: var(--blue-100); }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 30px; border-radius: 999px; font: 700 17px/1 var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; white-space: nowrap; transition: background .25s, color .25s, transform .25s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-donate { background: var(--donate); color: var(--donate-text); border-color: var(--donate-border); }
.btn-donate:hover { background: var(--donate-hover); color: var(--donate-text); }
.hero .btn-donate, .site-header .btn-donate, .section--dark .btn-donate, .site-footer .btn-donate { border-color: transparent; }
.main-nav a.btn-donate { color: var(--donate-text); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }
.btn-ghost { border-color: var(--blue-200); color: #fff; background: rgba(7, 15, 39, .38); }
.btn-ghost:hover { background: rgba(7, 15, 39, .6); color: #fff; }
.btn-outline { border-color: var(--blue-600); color: var(--blue-600); background: transparent; }
.btn-outline:hover { background: var(--blue-600); color: #fff; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }
.link-arrow { font-weight: 700; display: inline-flex; gap: 8px; align-items: center; text-decoration: none; border-bottom: 2px solid var(--gold); padding: 10px 0 8px; min-height: 44px; box-sizing: border-box; color: var(--blue-600); }
.link-arrow:hover { color: var(--blue-600); border-color: var(--blue-600); }
.link-arrow::after { content: "→"; transition: transform .3s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.section--dark .link-arrow { color: var(--gold-on-dark); border-color: var(--gold-on-dark); }

/* ---------- aviso + header ---------- */
.prov { background: var(--warning-bg); color: var(--warning); font: 600 13px/1.3 var(--sans); text-align: center; padding: 9px var(--gutter); }
.site-header { background: var(--blue-600); position: relative; z-index: 20; }
.bar { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: 76px; display: flex; align-items: center; gap: 12px; }
.logo { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font: 700 20px/1 var(--sans); margin-right: auto; white-space: nowrap; min-height: 48px; }
.logo:hover { color: #fff; }
.logo img { width: auto; height: 50px; flex: none; }
.logo--lockup img { width: min(240px, 100%); height: auto; }
.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a { color: #fff; text-decoration: none; font: 500 16px var(--sans); min-height: 48px; display: inline-flex; align-items: center; border-bottom: 2px solid transparent; }
.main-nav a:not(.btn):hover { color: var(--gold-on-dark); }
.main-nav a[aria-current="page"]:not(.btn) { border-bottom-color: var(--gold-on-dark); }
.head-donate { display: none; }
.burger { display: none; width: 48px; height: 48px; border: 0; background: transparent; border-radius: 12px; cursor: pointer; position: relative; flex: none; }
.burger span, .burger span::before, .burger span::after { position: absolute; left: 12px; width: 24px; height: 2.5px; background: #fff; border-radius: 2px; content: ""; transition: transform .25s, top .25s, opacity .2s; }
.burger span { top: 23px; } .burger span::before { left: 0; top: -8px; } .burger span::after { left: 0; top: 8px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---------- topo (hero) APROVADO ---------- */
.hero { position: relative; background: var(--blue-600); overflow: hidden; min-height: clamp(600px, calc(100svh - 113px), 800px); display: flex; align-items: center; color: var(--bg); }
.hero--page { min-height: clamp(380px, 46svh, 460px); }
.hero-media { position: absolute; top: 0; right: 0; bottom: 0; left: 14%; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 26%); mask-image: linear-gradient(to right, transparent 0, #000 26%); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 38%); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(14,41,115,.97) 0%, rgba(14,41,115,.93) 34%, rgba(14,41,115,.78) 46%, rgba(14,41,115,.32) 60%, rgba(14,41,115,0) 76%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(14,41,115,0) 82%, rgba(14,41,115,.35)), radial-gradient(60% 85% at 26% 52%, rgba(74,134,184,.34), rgba(74,134,184,0) 70%), radial-gradient(55% 80% at 78% 40%, rgba(74,134,184,.16), rgba(74,134,184,0) 72%); }
.hero-in { position: relative; z-index: 2; width: 100%; max-width: var(--max); margin: 0 auto; padding: 72px var(--gutter); }
.hero--page .hero-in { padding-top: 56px; padding-bottom: 56px; }
.hero .rule { width: 64px; height: 3px; background: var(--gold); margin: 0 0 22px; }
.hero h1 { font: 600 clamp(2.1rem, 1.4rem + 3.2vw, 3.3rem)/1.08 var(--serif); letter-spacing: .006em; word-spacing: .16em; color: #fff; margin: 0 0 20px; max-width: 620px; text-wrap: balance; font-variation-settings: "opsz" 48; font-optical-sizing: none; }
.hero h1 em { font-style: italic; color: var(--gold-on-dark); }
.hero .lead { font: 500 clamp(1rem, .95rem + .3vw, 1.125rem)/1.65 var(--sans); color: var(--bg); max-width: 500px; margin: 0 0 30px; }
.hero--page .lead { margin-bottom: 0; }


/* ---------- portas (home) ---------- */
.doors { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong); }
.door { display: block; padding: 34px 28px 34px 0; text-decoration: none; color: var(--text); border-right: 1px solid var(--border); position: relative; transition: background .3s; }
.door + .door { padding-left: 28px; }
.door:last-child { border-right: 0; }
.door:hover { background: var(--bg-bone); color: var(--text); }
.door b { display: block; font: 600 1.55rem/1.2 var(--serif); color: var(--blue-600); margin-bottom: 8px; word-spacing: .1em; }
.door span { display: block; color: var(--text-2); font-size: 1rem; line-height: 1.55; margin-bottom: 14px; }
.door i { font: 700 15px var(--sans); font-style: normal; color: var(--blue-600); border-bottom: 2px solid var(--gold); padding-bottom: 2px; }

/* ---------- registro (números) ---------- */
.ledger { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--blue-600); }
.ledger > div { padding: 28px 24px 8px 0; border-right: 1px solid var(--border); margin-right: 24px; }
.ledger > div:last-child { border-right: 0; margin-right: 0; }
.ledger dt { font: 600 clamp(2.6rem, 2rem + 2.4vw, 3.8rem)/1 var(--serif); color: var(--blue-600); margin: 0 0 8px; }
.ledger dt .u { font-size: .46em; letter-spacing: .01em; white-space: nowrap; }
.ledger dd { margin: 0; color: var(--text-2); font-size: 1rem; line-height: 1.5; }
.ledger dd small { display: block; margin-top: 6px; }

/* ---------- divisões assimétricas ---------- */
.split { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--rev { grid-template-columns: 5fr 7fr; }
.split--rev > :first-child { order: 2; }
.frame { position: relative; }
.frame img { width: 100%; object-fit: cover; }
.frame::after { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--gold); z-index: -1; }
.frame--tall img { aspect-ratio: 4 / 5; }
.frame--wide img { aspect-ratio: 3 / 2; }
.section--dark .frame::after { border-color: var(--gold-on-dark); }
figure { margin: 0; }
figcaption { font-size: .9rem; color: var(--text-3); margin-top: 22px; }

.manifesto { font: 600 clamp(1.9rem, 1.2rem + 3.4vw, 3.4rem)/1.18 var(--serif); color: var(--blue-600); text-wrap: balance; word-spacing: .12em; margin: 0 0 28px; font-variation-settings: "opsz" 48; font-optical-sizing: none; max-width: 18em; }
.manifesto em { color: var(--gold-700); }
.section--dark .manifesto { color: #fff; } .section--dark .manifesto em { color: var(--gold-on-dark); }

/* ---------- unidades (registro numerado) ---------- */
.unit { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.unit + .unit { margin-top: clamp(56px, 8vw, 100px); }
.unit:nth-of-type(even) { grid-template-columns: 7fr 5fr; }
.unit:nth-of-type(even) .unit-media { order: 2; }
.unit-media { position: relative; overflow: hidden; }
.unit-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s var(--ease); }
.unit:hover .unit-media img { transform: scale(1.03); }
.unit-no { font: 600 .95rem var(--sans); letter-spacing: .16em; color: var(--gold-700); margin-bottom: 10px; display: block; }
.facts { list-style: none; padding: 0; margin: 22px 0 26px; border-top: 1px solid var(--border-strong); }
.facts li { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--border); margin: 0; font-size: 1rem; }
.facts li span:first-child { color: var(--text-3); }
.facts li span:last-child { font-weight: 600; text-align: right; }

/* ---------- rotina (colagem) ---------- */
.collage { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2.5vw, 32px); align-items: start; }
.tile { position: relative; }
.tile img { width: 100%; object-fit: cover; }
.tile h3 { margin-top: 18px; }
.tile p { color: var(--text-2); font-size: 1.02rem; }
.tile--a { grid-column: 1 / 8; } .tile--a img { aspect-ratio: 16 / 10; }
.tile--b { grid-column: 8 / 13; margin-top: clamp(40px, 8vw, 120px); } .tile--b img { aspect-ratio: 4 / 5; }
.tile--c { grid-column: 2 / 7; } .tile--c img { aspect-ratio: 4 / 3; }
.tile--d { grid-column: 7 / 13; margin-top: clamp(24px, 5vw, 72px); } .tile--d img { aspect-ratio: 3 / 2; }

/* ---------- passos ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; border-top: 2px solid var(--blue-600); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 90px 1fr; gap: 12px 24px; padding: 32px 0; border-bottom: 1px solid var(--border-strong); margin: 0; }
.steps li::before { content: counter(s, decimal-leading-zero); font: 600 clamp(2.4rem, 2rem + 1.6vw, 3.2rem)/1 var(--serif); color: var(--gold); }
.steps h3 { margin-bottom: 8px; }
.steps p:last-child { margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { border-top: 2px solid var(--blue-600); }
.faq details { border-bottom: 1px solid var(--border-strong); }
.faq summary { cursor: pointer; list-style: none; padding: 24px 56px 24px 0; font: 600 1.3rem/1.35 var(--serif); color: var(--blue-600); position: relative; min-height: 56px; word-spacing: .1em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font: 400 2rem var(--sans); color: var(--gold-700); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .ans { padding: 0 0 26px; color: var(--text-2); }

/* ---------- blocos de doação ---------- */
.pix { background: var(--bg-bone); color: var(--text); border: 2px solid var(--blue-600); padding: clamp(24px, 4vw, 40px); max-width: 560px; }
.section--dark .pix { border-color: var(--gold-on-dark); }
.pix .label { font: 700 13px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-700); margin: 0 0 6px; }
.pix .key { font: 600 clamp(1.2rem, 1rem + 1.2vw, 1.55rem)/1.3 var(--sans); color: var(--blue-600); margin: 0 0 20px; overflow-wrap: anywhere; font-size: clamp(1.05rem, .85rem + 1vw, 1.4rem); }
.pix .btn { width: 100%; }
.copy-status { min-height: 1.6em; margin: 12px 0 0; font-weight: 600; color: var(--success); font-size: 1rem; }
.ways { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--blue-600); }
.ways li { padding: 26px 0; border-bottom: 1px solid var(--border-strong); margin: 0; display: grid; grid-template-columns: 220px 1fr; gap: 8px 32px; }
.ways h3 { margin: 0; font-size: 1.4rem; }
.ways p:last-child { margin-bottom: 0; }

/* ---------- transparência ---------- */
.doc { display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--border-strong); }
.docs { border-top: 2px solid var(--blue-600); }
.doc h3 { margin-bottom: 6px; }
.doc p { margin-bottom: 4px; color: var(--text-2); font-size: 1rem; }
.tag { display: inline-block; font: 700 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; background: var(--blue-100); color: var(--blue-700); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.tag--ext { background: var(--gold-100); color: var(--gold-700); }
dl.data { margin: 0; display: grid; grid-template-columns: 220px 1fr; gap: 0; border-top: 1px solid var(--border-strong); }
dl.data dt, dl.data dd { padding: 14px 0; border-bottom: 1px solid var(--border); margin: 0; font-size: 1rem; }
dl.data dt { color: var(--text-3); font-weight: 600; padding-right: 16px; }
.strip { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 52%; }

/* ---------- contato ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--blue-600); }
.info-list li { padding: 18px 0; border-bottom: 1px solid var(--border-strong); margin: 0; }
.info-list b { display: block; font: 700 13px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-700); margin-bottom: 4px; }
.info-list a { font-weight: 600; }
.map { margin-top: 0; border: 2px solid var(--blue-600); background: var(--bg-cream-2); }
.map iframe { width: 100%; height: clamp(320px, 50vw, 460px); border: 0; display: block; }
form.contact label { display: block; font: 700 13px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-700); margin-bottom: 4px; }
form.contact .field { margin-bottom: 20px; }
form.contact input, form.contact textarea { width: 100%; font: 400 18px/1.5 var(--sans); color: var(--text); background: var(--bg-bone); border: 0; border-bottom: 2px solid var(--border-strong); border-radius: 0; padding: 12px 4px; min-height: 52px; }
form.contact textarea { min-height: 150px; resize: vertical; border: 2px solid var(--border-strong); padding: 12px; }
form.contact input:focus, form.contact textarea:focus { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--blue-600); }

/* ---------- faixa de doação (home) ---------- */
.band { position: relative; overflow: hidden; }
.band-media { position: absolute; inset: 0; }
.band-media img { width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(60% 110% at 30% 50%, rgba(74,134,184,.30), rgba(74,134,184,0) 70%), linear-gradient(90deg, var(--blue-600) 30%, rgba(14,41,115,.7)); }
.band .wrap { position: relative; z-index: 2; }

/* ---------- rodapé ---------- */
.site-footer { background: var(--blue-800); color: var(--blue-100); padding: clamp(56px, 8vw, 96px) 0 32px; font-size: 1rem; line-height: 1.7; }
.site-footer h2 { font: 600 1.25rem/1.3 var(--serif); color: #fff; margin-bottom: 14px; word-spacing: .1em; }
.site-footer a { color: #fff; text-decoration-color: var(--gold-on-dark); }
.site-footer a:hover { color: var(--gold-on-dark); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: clamp(32px, 5vw, 64px); }
.foot-brand .logo { margin-bottom: 18px; }
.foot-motto { font: italic 600 1.5rem/1.25 var(--serif); color: var(--gold-on-dark); margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0; }
.site-footer li a { display: inline-block; padding: 8px 0; min-height: 44px; }
.foot-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(176,194,242,.25); display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; font-size: .92rem; color: var(--blue-200); }
.foot-bottom p { margin: 0; max-width: none; }

/* ---------- botão flutuante (celular) ---------- */

/* ---------- reveal (só com JS; respeita reduced-motion) ---------- */
.steps a[href^="mailto"], .contact-grid a[href^="mailto"] { overflow-wrap: anywhere; }
@media print { .reveal-on .reveal { opacity: 1 !important; transform: none !important; } }
.reveal-on .reveal { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal-on .reveal.is-in { opacity: 1; transform: none; }

/* ==================== responsivo ==================== */
@media (max-width: 1080px) {
  .burger { display: block; }
  .head-donate { display: inline-flex; min-height: 44px; padding: 0 20px; font-size: 15px; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--blue-700); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; border-top: 1px solid rgba(176,194,242,.25); box-shadow: 0 18px 30px rgba(7,15,39,.35); }
  .main-nav.open { display: flex; }
  .main-nav a:not(.btn) { padding: 12px 4px; font-size: 18px; border-bottom: 1px solid rgba(176,194,242,.18); min-height: 56px; }
  .main-nav a[aria-current="page"]:not(.btn) { color: var(--gold-on-dark); }
  .main-nav .btn { margin-top: 16px; width: 100%; }
}
/* unidades: empurra a foto para a direita para o título não cobrir os rostos */
@media (min-width: 901px) {
  .hero--rostos .hero-media { left: 40%; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 18%); mask-image: linear-gradient(to right, transparent 0, #000 18%); }
  .hero--rostos .hero-media img { object-position: 30% 28%; }
}
@media (max-width: 900px) {
  .bar { height: 64px; gap: 8px; }
  .logo { font-size: 15px; gap: 10px; min-width: 0; }
  .logo img { width: auto; height: 32px; }
  .logo b { overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
  .hero, .hero--page { display: block; min-height: 0; }
  .hero--page { --mh: min(70vw, 330px); }
  .hero-media { left: 0; right: 0; bottom: auto; height: var(--mh); -webkit-mask-image: none; mask-image: none; }
  .hero-media img { object-position: var(--pos-m, 56% 30%); }
  .hero::before { background: linear-gradient(180deg, rgba(14,41,115,.18) 0, rgba(14,41,115,0) 70px, rgba(14,41,115,.38) calc(var(--mh) - 170px), rgba(14,41,115,.88) calc(var(--mh) - 72px), rgba(14,41,115,.96) calc(var(--mh) - 6px), var(--blue-600) calc(var(--mh) + 24px)); }
  .hero::after { display: none; }
  .hero-in, .hero--page .hero-in { padding: calc(var(--mh) - 64px) var(--gutter) 40px; }
  .hero .rule { margin-bottom: 16px; }
  .hero h1 { max-width: none; margin-bottom: 16px; }
  .hero .lead { margin-bottom: 26px; max-width: none; }
  .hero--page .lead { margin-bottom: 0; }
  .hero .btn-row { flex-direction: column; gap: 12px; }
  .hero .btn-row .btn { width: 100%; }

  .doors { grid-template-columns: 1fr; border-bottom: 0; }
  .door, .door + .door { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--border-strong); }
  .ledger { grid-template-columns: repeat(2, 1fr); }
  .ledger > div { border-right: 0; margin-right: 0; padding: 24px 12px 12px 0; }
  .ledger > div:nth-child(odd) { border-right: 1px solid var(--border); margin-right: 12px; }
  .split, .split--rev, .unit, .unit:nth-of-type(even), .contact-grid { grid-template-columns: 1fr; }
  .split--rev > :first-child, .unit:nth-of-type(even) .unit-media { order: 0; }
  .frame::after { inset: 12px -10px -12px 10px; }
  .frame { margin-right: 10px; }
  .collage { display: block; }
  .tile + .tile { margin-top: 48px; }
  .tile--b, .tile--d { margin-top: 48px; }
  .steps li { grid-template-columns: 56px 1fr; gap: 6px 14px; }
  .steps li > div { min-width: 0; }
  .ways li, dl.data { grid-template-columns: 1fr; }
  dl.data dt { border-bottom: 0; padding-bottom: 0; }
  .strip { aspect-ratio: 4 / 3; }
  .doc { grid-template-columns: 1fr; }
  .doc .btn { width: 100%; }
  .foot-grid { grid-template-columns: 1fr; }
  .section--dark { --lux: radial-gradient(90% 100% at 50% 50%, rgba(74,134,184,.40), rgba(14,41,115,0) 75%); background-size: 100% 100%, auto; }
  .section--dark::after { display: none; }
  .hero::after { background: linear-gradient(180deg, rgba(14,41,115,0) 82%, rgba(14,41,115,.35)), radial-gradient(90% 70% at 30% 45%, rgba(74,134,184,.22), rgba(74,134,184,0) 70%); }
}
@media (max-width: 380px) {
  .logo { font-size: 14px; }
  .head-donate { padding: 0 14px; }
  body { font-size: 18px; }
}
@media (max-width: 640px) {
  .btn-row .btn { width: 100%; }
  .facts li { flex-direction: column; gap: 2px; }
  .facts li span:last-child { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .section--dark { animation: none !important; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal-on .reveal { opacity: 1; transform: none; }
}
.section--dark .cite { color: var(--blue-50); }

.form-aviso { margin: 16px 0 0; font-weight: 600; color: var(--blue-600); overflow-wrap: anywhere; }
/* etiqueta parcial: o texto confirmado já está na página; só o que falta aparece em amarelo, menor */
mark.pendente.pendente--parcial { font-size: .78em; font-weight: 500; background: #FFF2BD; outline-width: 1px; padding: 0 6px; }

/* galeria "Conheça o espaço" (unidades): grade de 12 colunas, pares 7/5 – 5/7 – 6/6, legenda sobre a foto */
.galeria { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(220px, 27vw, 340px); gap: clamp(12px, 2vw, 24px); margin-top: 40px; }
.gal-item { margin: 0; position: relative; overflow: hidden; background: var(--blue-800); }
.gal-item.gal-5 { grid-column: span 5; } .gal-item.gal-6 { grid-column: span 6; } .gal-item.gal-7 { grid-column: span 7; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gal-item:hover img { transform: scale(1.03); }
.gal-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 38px 16px 12px; font: 600 .86rem/1.35 var(--sans); color: #fff; background: linear-gradient(to top, rgba(7,15,39,.82), rgba(7,15,39,0)); }
@media (max-width: 900px) { .galeria { grid-template-columns: 1fr; grid-auto-rows: min(72vw, 320px); } .gal-item.gal-5, .gal-item.gal-6, .gal-item.gal-7 { grid-column: auto; } }
@media (prefers-reduced-motion: reduce) { .gal-item img { transition: none; } .gal-item:hover img { transform: none; } }
/* celular estreito: o nome ao lado da marca quebra em duas linhas em vez de cortar com reticências */
@media (max-width: 430px) { .logo b { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.12; font-size: 14px; } }


/* ==========================================================================
   Condições de admissão, rotina da casa, páginas legais, mapa sob clique (22/10/2026)
   ========================================================================== */

/* rodapé: links legais */
.foot-legal { display: flex; flex-wrap: wrap; gap: 0 24px; }
.foot-legal a { display: inline-block; padding: 10px 0; min-height: 44px; }

/* etiqueta discreta nas fotos ilustrativas */
.ilustr { position: absolute; right: 10px; bottom: 10px; z-index: 3; font: 600 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(7, 15, 39, .72); padding: 6px 9px; pointer-events: none; }
.tile > .ilustr, .hero > .ilustr { top: 10px; bottom: auto; }
.hero > .ilustr { right: 14px; top: 14px; }

/* condições de admissão (lista de verificação) */
.admissao { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.admissao-lado { position: sticky; top: 24px; }
.checklist { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--blue-600); }
.checklist li { display: grid; grid-template-columns: 34px 1fr; gap: 4px 20px; padding: 24px 0; margin: 0; border-bottom: 1px solid var(--border-strong); }
.checklist .ck { width: 30px; height: 30px; margin-top: 3px; border: 2px solid var(--blue-600); background: var(--bg-bone) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E2973' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 20px no-repeat; }
.checklist h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); margin: 0 0 4px; }
.checklist p { margin: 0; color: var(--text-2); font-size: 1.02rem; line-height: 1.6; }

/* rotina da casa: um dia por vez (abas). Sem JavaScript, os sete dias aparecem em sequência. */
.rotina { margin-top: 44px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.rotina-tabs { display: none; flex-direction: column; border-top: 1px solid rgba(176, 194, 242, .35); }
.rotina--pronta .rotina-tabs { display: flex; }
@media (scripting: enabled) {
  .rotina-tabs { display: flex; }
  .rotina:not(.rotina--pronta) .rotina-dia:not(:first-child) { display: none; }
}
.rotina-tab { appearance: none; position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px; margin: 0; padding: 14px 8px 14px 0; text-align: left; cursor: pointer; background: transparent; color: var(--blue-100); border: 0; border-bottom: 1px solid rgba(176, 194, 242, .22); font: 600 1.3rem/1.2 var(--serif); word-spacing: .1em; font-variation-settings: "opsz" 48; font-optical-sizing: none; transition: color .25s, padding .35s var(--ease), box-shadow .25s; }
.rotina-tab .t-curto { display: none; }
.rotina-tab:hover { color: #fff; }
.rotina-tab[aria-selected="true"] { color: #fff; padding-left: 18px; box-shadow: inset 3px 0 0 var(--gold-on-dark); }
.rotina-tab.is-hoje::after { content: "hoje"; font: 700 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-on-dark); }
.rotina-dia h3 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 20px; font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.4rem); }
.rotina-dia + .rotina-dia { margin-top: 56px; }
.rotina--pronta .rotina-dia + .rotina-dia { margin-top: 0; }
.rotina-hoje { font: 700 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--blue-800); background: var(--gold-on-dark); padding: 5px 8px; transform: translateY(-.35em); }
.rotina-hoje[hidden] { display: none; }
.rotina-lista { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--gold-on-dark); }
.rotina-lista li { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); gap: 16px; align-items: baseline; margin: 0; padding: 13px 0; border-bottom: 1px solid rgba(176, 194, 242, .22); break-inside: avoid; }
.rotina-lista .h { font: 600 1.35rem/1.2 var(--serif); color: var(--gold-on-dark); font-variant-numeric: tabular-nums; font-variation-settings: "opsz" 48; font-optical-sizing: none; }
.rotina-lista .a { color: var(--blue-100); font-size: 1.05rem; line-height: 1.4; }
.rotina-lista .is-destaque .a { color: #fff; font-weight: 600; }
.rotina-nota { max-width: none; margin: 24px 0 0; padding: 14px 18px; border-left: 3px solid var(--gold-on-dark); background: rgba(255, 255, 255, .07); color: var(--blue-50); font-size: 1rem; line-height: 1.55; }
.rotina-dia:focus-visible, .rotina-tab:focus-visible { outline-color: var(--focus-on-dark); }
@media (min-width: 1180px) { .rotina-lista { columns: 2; column-gap: 56px; } }
@media print {
  .rotina-tabs { display: none !important; }
  .rotina-dia { display: block !important; color: #000; }
  .rotina-dia[hidden] { display: block !important; }
}

/* páginas legais (política de privacidade e termos de uso) */
.hero.hero--plain { display: block; min-height: 0; }
.hero.hero--plain::before { display: none; }
.hero.hero--plain::after { display: block; background: radial-gradient(60% 140% at 18% 20%, rgba(74, 134, 184, .30), rgba(74, 134, 184, 0) 70%); }
.hero.hero--plain .hero-in { padding: 64px var(--gutter) 56px; }
.hero--plain h1 { max-width: 18em; }
.hero--plain .lead { max-width: 52ch; }
.legal { padding-top: clamp(48px, 7vw, 88px); }
.legal-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.legal-lado { position: sticky; top: 24px; }
.legal-indice summary { cursor: pointer; list-style: none; font: 700 13px/1.3 var(--sans); text-transform: uppercase; letter-spacing: .16em; color: var(--gold-700); padding: 12px 0; min-height: 48px; display: flex; align-items: center; justify-content: space-between; border-top: 2px solid var(--blue-600); border-bottom: 1px solid var(--border-strong); }
.legal-indice summary::-webkit-details-marker { display: none; }
.legal-indice summary::after { content: "+"; font: 400 1.6rem var(--sans); color: var(--gold-700); }
.legal-indice[open] summary::after { content: "−"; }
.legal-indice ol { list-style: none; margin: 0; padding: 0; counter-reset: li; }
.legal-indice li { counter-increment: li; margin: 0; border-bottom: 1px solid var(--border); }
.legal-indice a { display: grid; grid-template-columns: 2.1em minmax(0, 1fr); gap: 6px; align-items: baseline; min-height: 44px; padding: 10px 0; text-decoration: none; color: var(--text-2); font-size: .95rem; line-height: 1.35; }
.legal-indice a::before { content: counter(li, decimal-leading-zero); font: 700 .78rem/1 var(--sans); letter-spacing: .08em; color: var(--gold-700); }
.legal-indice a:hover { color: var(--blue-600); }
.legal-corpo { counter-reset: sec; min-width: 0; }
.legal-meta { max-width: none; margin: 0 0 8px; padding-left: 14px; border-left: 3px solid var(--gold); font-size: .92rem; line-height: 1.55; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 2px 20px; }
.legal-sec { counter-increment: sec; padding: 36px 0 12px; border-top: 1px solid var(--border-strong); margin-top: 28px; }
.legal-sec:first-of-type { margin-top: 20px; }
.legal-sec h2 { display: flex; align-items: baseline; gap: 14px; font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.05rem); margin-bottom: 16px; }
.legal-sec h2::before { content: counter(sec, decimal-leading-zero); flex: none; font: 700 .8rem/1 var(--sans); letter-spacing: .14em; color: var(--gold-700); }
.legal-sec p, .legal-sec li { font-size: 1.04rem; line-height: 1.7; color: var(--text-2); }
.legal-sec ul { padding-left: 1.2em; margin: 0 0 1.1em; max-width: 68ch; }
.legal-sec li::marker { color: var(--gold); }
.legal-ver { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border-strong); font-weight: 600; }

.form-privacidade { max-width: none; margin: 0 0 22px; font-size: .95rem; line-height: 1.55; color: var(--text-3); }

/* mapa do Google só depois do clique */
.map--consent { display: grid; place-items: center; min-height: clamp(320px, 50vw, 460px); padding: clamp(24px, 5vw, 48px); text-align: center; background-color: var(--bg-cream-2); background-image: repeating-linear-gradient(0deg, rgba(14, 41, 115, .07) 0 1px, transparent 1px 48px), repeating-linear-gradient(90deg, rgba(14, 41, 115, .07) 0 1px, transparent 1px 48px); }
.map-ph { max-width: 46ch; display: flex; flex-direction: column; align-items: center; }
.map-pin { width: 44px; height: 44px; color: var(--blue-600); margin-bottom: 8px; }
.map-titulo { font: 600 1.6rem/1.2 var(--serif); color: var(--blue-600); margin: 0 0 10px; word-spacing: .1em; }
.map-aviso { font-size: 1rem; line-height: 1.55; color: var(--text-2); margin: 0 0 22px; }
.map--consent iframe { grid-area: 1 / 1; }
.map--consent.is-ativo { display: block; padding: 0; min-height: 0; background: var(--bg-cream-2); }

/* responsivo */
@media (max-width: 900px) {
  .admissao, .legal-grid { grid-template-columns: 1fr; }
  .admissao-lado, .legal-lado { position: static; }
  .rotina { grid-template-columns: 1fr; margin-top: 32px; gap: 28px; }
  .rotina-tabs { flex-direction: row; display: none; gap: 3px; border: 0; }
  .rotina--pronta .rotina-tabs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
  @media (scripting: enabled) { .rotina-tabs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); } }
  .rotina-tab { justify-content: center; text-align: center; min-height: 48px; padding: 0; font: 600 .95rem/1 var(--sans); letter-spacing: .02em; border: 1px solid rgba(176, 194, 242, .4); }
  .rotina-tab .t-longo { display: none; }
  .rotina-tab .t-curto { display: inline; }
  .rotina-tab[aria-selected="true"] { padding-left: 0; background: var(--bg-bone); color: var(--blue-600); border-color: var(--bg-bone); box-shadow: none; }
  .rotina-tab.is-hoje::after { content: ""; position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-on-dark); }
  .rotina-tab.is-hoje[aria-selected="true"]::after { background: var(--gold); }
  .rotina-lista li { grid-template-columns: 4rem minmax(0, 1fr); gap: 12px; }
  .hero.hero--plain .hero-in { padding: 44px var(--gutter) 40px; }
  .hero > .ilustr { top: 12px; right: 12px; }
}
@media (max-width: 380px) { .rotina-tab { font-size: .85rem; } }

/* botão flutuante de contato (gerado por _tools/aplicar-dados.js entre <!--wa--> e <!--/wa-->) */
.wa-float { position: fixed; z-index: 60; right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 56px; height: 56px; padding: 0; border-radius: 28px; background: #25D366; color: #0A2E17; font: 700 16px/1 var(--sans, inherit); text-decoration: none; box-shadow: 0 6px 18px rgba(7,15,39,.30); border: 2px solid #fff; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(7,15,39,.38); }
.wa-float:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 3px; box-shadow: 0 0 0 6px #fff, 0 6px 18px rgba(7,15,39,.30); }
.wa-float svg { width: 30px; height: 30px; flex: none; fill: currentColor; }
.wa-float--tel svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wa-float__txt { display: none; }
@media (min-width: 700px) { .wa-float { padding: 0 22px 0 18px; } .wa-float__txt { display: inline; } }
.site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
@media (prefers-reduced-motion: reduce) { .wa-float { transition: none; } .wa-float:hover { transform: none; } }
