/* ==========================================================================
   JV PRÁXIS · Folha de estilos do site institucional
   Organização: 1 Fontes · 2 Variáveis · 3 Base · 4 Componentes · 5 Cabeçalho
   6 Abertura · 7 Serviços · 8 Formatos · 9 Método · 10 Áreas · 11 Guia e FAQ
   12 Contato · 13 Presidência e rodapé · 14 Telas menores · 15 Preferências
   ========================================================================== */

/* 1 · Fontes ------------------------------------------------------------- */
@font-face {
  font-family: "Noto Serif Local";
  src: url("../assets/tipografia/noto-serif-regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Noto Serif Local";
  src: url("../assets/tipografia/noto-serif-italic.woff") format("woff");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

/* 2 · Variáveis (cores, medidas e fontes) ---------------------------------- */
:root {
  --navy: #11243b;
  --navy-deep: #0b1b2f;
  --navy-raised: #1b314a;
  --cream: #faf8f1;
  --paper: #fffefa;
  --sand: #f0ece1;
  --gold: #e9c991;
  --gold-soft: #f4d9a7;
  --bronze: #6f4f22;
  --teal: #136f64;
  --teal-deep: #0e5a51;
  --ink: #182b41;
  --muted: #4a5865;
  --muted-light: #c9d3dc;
  --line: #ded8ca;
  --line-strong: #c9c2b3;
  --line-dark: #3a4c61;
  --focus: #0b6a5e;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --section-space: clamp(3.5rem, 7vw, 6.25rem);
  --header-h: 4.6rem;
  --serif: "Noto Serif Local", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: .2rem;
}

/* 3 · Base ----------------------------------------------------------------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--cream); font: 1rem/1.6 var(--sans); }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; color: inherit; }
figure, p, dl, dd, h1, h2, h3, h4, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.14; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.1rem + 3.7vw, 3.75rem); letter-spacing: -.03em; line-height: 1.1; }
h2 { font-size: clamp(1.95rem, 1.2rem + 2.3vw, 2.95rem); letter-spacing: -.028em; }
h3 { letter-spacing: -.02em; }
p { text-wrap: pretty; }
strong { font-weight: 700; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.hero :focus-visible, .method :focus-visible, .contact-copy :focus-visible { outline-color: var(--gold); }
main:focus, section:focus { outline: none; }

.container { width: min(calc(100% - 2 * var(--gutter)), 76rem); margin-inline: auto; }
.section { padding-block: var(--section-space); }
.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { flex: none; width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 1.6rem; height: 1.6rem; stroke-width: 1.5; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link { position: fixed; z-index: 20; top: .7rem; left: .7rem; padding: .7rem 1rem; color: var(--ink); background: var(--paper); transform: translateY(-180%); }
.skip-link:focus { transform: none; }

/* 4 · Componentes ---------------------------------------------------------- */
.eyebrow { display: flex; align-items: center; gap: .65rem; color: var(--bronze); font-size: .78rem; font-weight: 750; letter-spacing: .13em; line-height: 1.4; text-transform: uppercase; }
.eyebrow-on-dark { color: var(--gold); }
.eyebrow + h2, .eyebrow + h3 { margin-top: 1rem; }
.signal { width: .5rem; height: .5rem; flex: none; border-radius: 50%; background: currentColor; }
.section-number { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; flex: none; border: 1px solid currentColor; border-radius: 50%; font-size: .72rem; font-variant-numeric: tabular-nums; letter-spacing: 0; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3rem; padding: .7rem 1.15rem; border: 1px solid transparent; border-radius: var(--radius); font-size: .95rem; font-weight: 700; line-height: 1.3; text-align: center; text-decoration: none; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.button-small { min-height: 2.75rem; padding: .5rem .95rem; font-size: .9rem; }
.button-gold { color: var(--navy-deep); background: var(--gold); }
.button-gold:hover { background: var(--gold-soft); }
.button-primary { color: var(--paper); background: var(--navy); }
.button-primary:hover { background: var(--teal-deep); }
.button-outline { color: var(--navy); border-color: #a39679; background: transparent; }
.button-outline:hover { background: var(--sand); border-color: var(--bronze); }
.button-wide { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; color: var(--teal-deep); font-size: .92rem; font-weight: 700; text-decoration-color: #8fa8a2; }
.text-link:hover { text-decoration-color: currentColor; }
.text-link-on-dark { color: var(--paper); text-decoration-color: #ffffff66; }

summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.expand-mark { position: relative; display: block; width: 1rem; height: 1rem; flex: none; color: var(--teal); }
.expand-mark::before, .expand-mark::after { position: absolute; top: calc(50% - 1px); left: 0; width: 100%; height: 2px; background: currentColor; content: ""; }
.expand-mark::after { transform: rotate(90deg); transition: transform .2s ease; }
details[open] > summary .expand-mark::after { transform: none; }

.section-heading { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 1.25rem 3rem; align-items: end; margin-bottom: clamp(1.8rem, 3.5vw, 2.8rem); }
.section-heading > p { max-width: 27rem; padding-bottom: .3rem; color: var(--muted); }

/* 5 · Cabeçalho e navegação --------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: block; flex: none; width: clamp(9.8rem, 17vw, 13.5rem); }
.site-nav { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.9rem); }
.site-nav a:not(.button) { position: relative; padding-block: .6rem; color: var(--ink); font-size: .92rem; font-weight: 650; text-decoration: none; }
.site-nav a:not(.button)::after { position: absolute; right: 0; bottom: .12rem; left: 0; height: 2px; background: var(--teal); content: ""; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.site-nav a:not(.button):hover::after, .site-nav a[aria-current]::after { transform: scaleX(1); }
.site-nav a[aria-current]:not(.button) { color: var(--teal-deep); }
.menu-toggle { display: none; }

/* 6 · Abertura ------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-top: clamp(2.3rem, 4.2vw, 3.7rem); color: var(--paper); background: linear-gradient(132deg, var(--navy-deep), var(--navy) 68%, #1d3650); }
.hero::before { position: absolute; z-index: -1; inset: -28rem auto auto -12rem; width: 47rem; aspect-ratio: 1; border: 1px solid #ddbb8030; border-radius: 50%; box-shadow: 0 0 0 2.4rem #ddbb800a, 0 0 0 5rem #ddbb8008; content: ""; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); align-items: center; gap: clamp(2rem, 4.6vw, 4.5rem); }
.hero-copy .eyebrow { margin-bottom: 1.1rem; }
.hero h1 { font-size: clamp(2.2rem, 1rem + 2.9vw, 3.3rem); }
.hero h1 em { display: block; color: var(--gold); }
.hero-description { max-width: 36rem; margin-top: 1.2rem; color: var(--muted-light); font-size: clamp(1.02rem, 1.4vw, 1.14rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.2rem; margin-top: 1.5rem; }
.hero-hint { max-width: 31rem; margin-top: .7rem; color: var(--muted-light); font-size: .88rem; }

.hero-figure { padding: 0 0 .65rem .65rem; }
.hero-figure picture { position: relative; z-index: 0; display: block; isolation: isolate; }
.hero-figure picture::before { position: absolute; z-index: -1; inset: .65rem .65rem -.65rem -.65rem; border: 1px solid #d5ad73a8; content: ""; }
.hero-figure img { aspect-ratio: 1.12; object-fit: cover; object-position: 66% 56%; background: var(--navy-raised); }
.hero-figure figcaption { margin-top: 1.05rem; color: var(--muted-light); font-size: .8rem; line-height: 1.45; }
.hero-figure figcaption a { color: var(--gold); }

.hero-situations { margin-top: clamp(1.6rem, 3vw, 2.2rem); padding-block: clamp(1.2rem, 2.4vw, 1.6rem) clamp(1.6rem, 3.2vw, 2.4rem); border-top: 1px solid var(--line-dark); }
.situations-title { color: var(--gold); font: 750 .78rem/1.4 var(--sans); letter-spacing: .13em; text-transform: uppercase; }
.situations { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; margin-top: 1rem; }
.situation { position: relative; display: flex; flex-direction: column; gap: .4rem; height: 100%; padding: 1.05rem 1.1rem 1rem; border: 1px solid #ffffff2e; border-radius: var(--radius); color: var(--paper); background: #ffffff0d; text-decoration: none; transition: background-color .2s ease, border-color .2s ease; }
.situation:hover { border-color: var(--gold); background: #ffffff17; }
.situation .icon-lg { color: var(--gold); margin-bottom: .15rem; }
.situation strong { font-size: 1.02rem; line-height: 1.3; }
.situation-text { color: var(--muted-light); font-size: .88rem; line-height: 1.45; }
.situation-go { display: inline-flex; align-items: center; gap: .35rem; margin-top: auto; padding-top: .55rem; color: var(--gold); font-size: .84rem; font-weight: 700; }
.situation:hover .situation-go .icon { transform: translateX(.15rem); }
.situation-go .icon { transition: transform .2s ease; }
.situation.is-urgent { border-color: var(--gold); background: #e9c9911c; }
.situation-tag { position: absolute; top: 1rem; right: 1rem; padding: .15rem .5rem; border-radius: 99px; color: var(--navy-deep); background: var(--gold); font-size: .72rem; font-weight: 750; line-height: 1.5; }
.situations-more { margin-top: 1rem; color: var(--muted-light); font-size: .9rem; }
.situations-more a { color: var(--paper); font-weight: 650; text-decoration-color: #ffffff66; }
.situations-more a:hover { text-decoration-color: currentColor; }
.hero-areas { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.1rem; margin-top: 1.3rem; padding-top: 1rem; border-top: 1px solid var(--line-dark); color: var(--muted-light); font-size: .86rem; }
.hero-areas ul { display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; }
.hero-areas a { display: inline-block; padding-block: .3rem; color: var(--paper); font-weight: 650; text-decoration-color: #ffffff55; }
.hero-areas a:hover { text-decoration-color: currentColor; }

/* 7 · Serviços ----------------------------------------------------------------- */
.services { background: var(--sand); border-bottom: 1px solid var(--line); }
.services-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 2.2rem clamp(2rem, 6vw, 5.8rem); align-items: start; }
.services-intro { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.services-intro > p:not(.eyebrow) { max-width: 28rem; margin-top: 1.05rem; color: var(--muted); }
.scope-notes { display: grid; gap: .8rem; max-width: 30rem; margin-top: 1.6rem; }
.scope-note { padding: .95rem 1.1rem; border-left: 3px solid #a47c43; background: var(--paper); }
.scope-note .eyebrow { font-size: .74rem; }
.scope-note p { margin-top: .5rem; color: var(--muted); font-size: .9rem; }
.side-figure { max-width: 30rem; margin-top: 1.5rem; }
.side-figure img { aspect-ratio: 1.7; object-fit: cover; background: var(--sand); }
.services-figure { max-width: none; }
.services-figure img { aspect-ratio: 2.8; object-position: 50% 45%; }
.side-figure figcaption, .example-figure figcaption, .location-figure figcaption { padding-top: .5rem; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.side-figure a, .example-figure a, .location-figure a { color: var(--teal-deep); }

.services-list { border-top: 1px solid var(--line-strong); }
.service { border-bottom: 1px solid var(--line-strong); }
.service[open] { background: var(--paper); }
.service summary { display: grid; grid-template-columns: 1.9rem minmax(0, 1fr) 1rem; gap: .75rem; align-items: center; min-height: 4.1rem; padding: .8rem 1rem .8rem .8rem; }
.service summary:hover { background: #fffefa99; }
.service-number { color: var(--bronze); font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.service-title { display: block; color: var(--ink); font-size: clamp(1rem, 1.4vw, 1.1rem); font-weight: 720; line-height: 1.35; }
.service summary:hover .service-title { color: var(--teal-deep); }
.service-hint { display: block; margin-top: .1rem; color: var(--muted); font-size: .86rem; font-weight: 400; line-height: 1.4; }
.service-body { display: grid; gap: 1.05rem; padding: .25rem 1.2rem 1.45rem 3.45rem; }
.service-facts { display: grid; gap: .85rem; }
.service-facts > div { display: grid; grid-template-columns: 8.6rem minmax(0, 1fr); gap: .8rem; }
.service-facts dt { color: var(--teal-deep); font-size: .84rem; font-weight: 750; line-height: 1.5; }
.service-facts dd { color: var(--muted); font-size: .95rem; }
.service-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.3rem; }
.service.is-urgent { box-shadow: inset 3px 0 var(--gold); }

/* 8 · Formatos de apoio ----------------------------------------------------------- */
.support-formats { background: var(--paper); }
.format-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; }
.format-card { display: flex; flex-direction: column; gap: .95rem; min-width: 0; padding: 1.25rem 1.15rem 1.2rem; border: 1px solid var(--line); border-top: 3px solid #a47c43; background: var(--cream); }
.format-card header { display: grid; gap: .5rem; align-content: start; }
.format-kind { color: var(--bronze); font-size: .76rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.format-card h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); }
.format-row h4 { margin-bottom: .2rem; color: var(--teal-deep); font-size: .84rem; font-weight: 750; line-height: 1.4; }
.format-row p { color: var(--muted); font-size: .92rem; line-height: 1.55; }
.format-row-result { padding-top: .85rem; border-top: 1px solid var(--line); }
.format-card footer { margin-top: auto; padding-top: .25rem; }
@supports (grid-template-rows: subgrid) {
  .format-grid { row-gap: .9rem; }
  .format-card { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: .95rem; }
}
.format-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; margin-top: 1.6rem; padding: 1rem 1.2rem; border-left: 3px solid var(--teal); background: var(--sand); }
.format-foot p { max-width: 42rem; color: var(--muted); font-size: .94rem; }
.format-foot strong { color: var(--ink); }

/* 9 · Método e exemplo ------------------------------------------------------------- */
.method { color: var(--paper); background: var(--navy); }
.method .section-heading > p { color: var(--muted-light); }
.method-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 3rem; }
.method-steps li { position: relative; min-width: 0; padding: 1.5rem 1.1rem .15rem 0; border-top: 1px solid #8e7c5e; }
.step-number { position: absolute; top: -.9rem; left: 0; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); background: var(--navy); font-size: .72rem; font-weight: 750; }
.method-steps h3 { font-size: clamp(1.2rem, 1.9vw, 1.6rem); }
.method-steps p { margin-top: .5rem; color: var(--muted-light); font-size: .9rem; }

.example { background: var(--cream); }
.example-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 5.5vw, 4.5rem); align-items: center; }
.example-figure { align-self: start; }
.example-figure img { aspect-ratio: 1.22; object-fit: cover; object-position: 54% 44%; background: var(--sand); }
.example-copy h3 { max-width: 33rem; font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.6rem); letter-spacing: -.025em; }
.example-copy > p:not(.eyebrow) { margin-top: .8rem; color: var(--muted); }
.example-list { margin-top: 1.1rem; border-top: 1px solid var(--line); }
.example-list > div { display: grid; grid-template-columns: 7.2rem minmax(0, 1fr); gap: .75rem; padding-block: .7rem; border-bottom: 1px solid var(--line); }
.example-list dt { color: var(--teal-deep); font-size: .86rem; font-weight: 750; }
.example-list dd { color: var(--muted); font-size: .92rem; }
.example-note { margin-top: .9rem; color: var(--muted); font-size: .84rem; }

/* 10 · Áreas de atuação ---------------------------------------------------------- */
.areas { background: var(--paper); border-top: 1px solid var(--line); }
.areas-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 1.8rem clamp(2rem, 5.5vw, 4.5rem); align-items: start; }
.areas-intro > p:not(.eyebrow) { max-width: 29rem; margin-top: .95rem; color: var(--muted); }
.location-figure { margin-top: 1.5rem; }
.location-figure img { aspect-ratio: 2.1; object-fit: cover; object-position: 50% 66%; background: var(--sand); }
.area-list { border-top: 1px solid var(--line-strong); }
.area { border-bottom: 1px solid var(--line-strong); }
.area[open] { background: var(--cream); box-shadow: inset 3px 0 var(--teal); }
.area:target { background: var(--cream); }
.area summary { display: grid; grid-template-columns: minmax(7.5rem, .4fr) minmax(0, .6fr) 1rem; gap: .3rem 1rem; align-items: center; min-height: 3.9rem; padding: .75rem 1rem .75rem .9rem; }
.area summary:hover { background: var(--cream); }
.area-name { font-family: var(--serif); font-size: 1.3rem; letter-spacing: -.02em; line-height: 1.2; }
.area-meta { color: var(--muted); font-size: .9rem; line-height: 1.4; }
.area-body { display: grid; gap: .8rem; padding: .2rem 1.1rem 1.35rem .9rem; }
.area-body > div { display: grid; grid-template-columns: 8.4rem minmax(0, 1fr); gap: .8rem; }
.area-body dt { color: var(--teal-deep); font-size: .84rem; font-weight: 750; line-height: 1.5; }
.area-body dd { color: var(--muted); font-size: .93rem; }

/* 11 · Guia para OSCs e perguntas frequentes ----------------------------------------- */
.guide { background: var(--sand); border-block: 1px solid var(--line); }
.faq { background: var(--cream); }
.split-grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 1.8rem clamp(1.5rem, 6vw, 5rem); align-items: start; }
.split-intro { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.split-intro > p:not(.eyebrow) { max-width: 28rem; margin-top: .95rem; color: var(--muted); }
.split-intro .text-link { margin-top: .6rem; }
.guide .side-figure { max-width: 22rem; }
.guide .side-figure img { aspect-ratio: 1.25; object-position: 50% 38%; }

.accordion { border-top: 1px solid var(--line-strong); }
.accordion > details { border-bottom: 1px solid var(--line-strong); }
.accordion summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.8rem; padding: .8rem .9rem; color: var(--ink); font-size: 1rem; font-weight: 720; line-height: 1.4; }
.accordion summary:hover { color: var(--teal-deep); background: #fffefa99; }
.accordion > details[open] { background: var(--paper); }
.accordion details > p { padding: 0 .9rem 1.05rem; color: var(--muted); font-size: .95rem; }
.guide-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.6rem; padding: .1rem .9rem 1.3rem; }
.guide-label { margin-bottom: .4rem; color: var(--teal-deep); font-size: .84rem; font-weight: 750; }
.guide-body ul { display: grid; gap: .45rem; color: var(--muted); font-size: .92rem; }
.guide-body li { position: relative; padding-left: 1.05rem; }
.guide-body li::before { position: absolute; top: .62em; left: 0; width: .38rem; height: .38rem; background: var(--bronze); content: ""; transform: rotate(45deg); }
.guide-body .guide-check li::before { top: .5em; width: .5rem; height: .28rem; border-bottom: 2px solid var(--teal); border-left: 2px solid var(--teal); background: none; transform: rotate(-45deg); }
.guide-note { display: flex; gap: .8rem; margin-top: 1.1rem; padding: 1rem 1.1rem; border-left: 3px solid var(--teal); background: var(--paper); color: var(--muted); font-size: .92rem; }
.guide-note .icon { margin-top: .2rem; color: var(--teal); }
.guide-note strong { color: var(--ink); }

/* 12 · Contato ------------------------------------------------------------------- */
.contact { color: var(--paper); background: linear-gradient(145deg, var(--navy-deep), var(--navy-raised)); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); grid-template-areas: "cabecalho caixa" "blocos caixa"; grid-template-rows: auto 1fr; gap: 1.8rem clamp(2rem, 6vw, 5.5rem); align-items: start; }
.contact-head { grid-area: cabecalho; }
.contact-card { grid-area: caixa; }
.contact-blocks { grid-area: blocos; }
.contact-head > p:not(.eyebrow) { max-width: 32rem; margin-top: .95rem; color: var(--muted-light); }
.contact-blocks { display: grid; gap: 1.5rem; max-width: 32rem; }
.contact-blocks h3 { margin-bottom: .55rem; color: var(--gold); font: 750 .78rem/1.4 var(--sans); letter-spacing: .13em; text-transform: uppercase; }
.contact-checklist { display: grid; gap: .4rem; color: var(--paper); font-size: .96rem; }
.contact-checklist li { display: flex; align-items: center; gap: .55rem; }
.contact-checklist .icon { color: var(--gold); }
.contact-steps { display: grid; gap: .65rem; counter-reset: passo; color: var(--paper); font-size: .96rem; }
.contact-steps li { position: relative; padding-left: 2.2rem; counter-increment: passo; }
.contact-steps li::before { position: absolute; top: .05rem; left: 0; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font-size: .72rem; font-weight: 750; content: counter(passo); }
.contact-who, .contact-privacy { color: var(--muted-light); font-size: .92rem; }
.contact-who a, .contact-privacy a { color: var(--paper); }
.contact-privacy { display: flex; gap: .6rem; }
.contact-privacy .icon { margin-top: .22rem; color: var(--gold); }

.contact-card { display: grid; gap: 1rem; min-width: 0; padding: clamp(1.25rem, 3.4vw, 2rem); border-top: 3px solid var(--gold); color: var(--ink); background: var(--paper); }
.contact-card h3 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); letter-spacing: -.025em; }
.contact-card-lead { margin-top: -.5rem; color: var(--muted); font-size: .92rem; }
.contact-form { display: grid; gap: .8rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.field label { display: block; margin-bottom: .25rem; color: var(--ink); font-size: .86rem; font-weight: 720; }
.field :is(input, select, textarea) { display: block; width: 100%; min-height: 2.9rem; padding: .5rem .65rem; border: 1px solid #8d8574; border-radius: .15rem; color: var(--ink); background: var(--paper); font-size: .95rem; font-weight: 400; }
.field textarea { min-height: 5.4rem; resize: vertical; }
.field ::placeholder { color: #6a7480; opacity: 1; }
.field :is(input, select, textarea):focus-visible { outline-offset: 1px; border-color: var(--focus); }
.field .is-prefilled { animation: prefilled 2.4s ease-out; }
@keyframes prefilled { 0%, 55% { background: #e6f3ef; box-shadow: 0 0 0 3px #136f6455; } 100% { background: var(--paper); box-shadow: 0 0 0 0 #136f6400; } }
.prefill-note { padding: .55rem .75rem; border-left: 3px solid var(--teal); background: #e9f3f0; color: var(--ink); font-size: .88rem; }
.preview { display: grid; gap: .35rem; }
.preview-title { color: var(--ink); font-size: .86rem; font-weight: 720; }
.preview pre { margin: 0; max-height: 13rem; overflow: auto; padding: .75rem .85rem; border: 1px dashed #a39679; background: var(--sand); color: var(--ink); font: .88rem/1.55 var(--sans); white-space: pre-wrap; overflow-wrap: anywhere; }
.contact-actions { display: grid; gap: .6rem; }
.contact-actions .button { justify-content: flex-start; text-align: left; overflow-wrap: anywhere; }
.copy-button { display: inline-flex; align-items: center; gap: .45rem; justify-self: start; min-height: 2.75rem; padding: .35rem .2rem; border: 0; background: none; color: var(--teal-deep); font-size: .9rem; font-weight: 700; cursor: pointer; }
.copy-button span { text-decoration: underline; text-decoration-color: #8fa8a2; text-underline-offset: .2em; }
.copy-button:hover span { text-decoration-color: currentColor; }
.copy-status { min-height: 0; color: var(--teal-deep); font-size: .86rem; font-weight: 650; }
.copy-status:empty { display: none; }
.contact-small { color: var(--muted); font-size: .82rem; }

/* 13 · Presidência e rodapé ------------------------------------------------------- */
.about { padding-block: 1.9rem; background: var(--paper); border-bottom: 1px solid var(--line); }
.president-card { display: grid; grid-template-columns: clamp(4.4rem, 8vw, 6rem) minmax(0, 1fr); align-items: center; gap: 1.1rem; }
.president-photo { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 32%; border: 1px solid var(--line); }
.president-copy { display: grid; gap: .25rem; max-width: 44rem; color: var(--muted); font-size: .92rem; }
.president-copy .eyebrow { font-size: .74rem; }
.president-copy h2 { margin-top: 0; color: var(--ink); font-size: clamp(1.4rem, 2vw, 1.75rem); letter-spacing: -.02em; }
.president-role { color: var(--teal-deep); font-weight: 700; }

.site-footer { background: var(--paper); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1.4rem; min-height: 5.2rem; padding-block: .9rem; }
.footer-inner .brand { width: 10rem; }
.footer-inner p { color: var(--muted); font-size: .86rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; }
.credits { padding-block: 1.2rem 1.8rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.credits h2 { margin-bottom: .5rem; color: var(--ink); font: 750 .78rem/1.4 var(--sans); letter-spacing: .13em; text-transform: uppercase; }
.credits > p { max-width: 62rem; }
.credits ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem 2rem; margin-top: .8rem; }
.credits li { position: relative; padding-left: 1.1rem; line-height: 1.5; }
.credits li::before { position: absolute; top: .6em; left: 0; width: .32rem; height: .32rem; background: var(--bronze); content: ""; transform: rotate(45deg); }
.credits a { color: var(--teal-deep); }

/* 14 · Telas menores ----------------------------------------------------------------- */
@media (max-width: 1100px) {
  .format-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .situations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1020px) {
  .header-inner { flex-wrap: wrap; gap: .15rem .9rem; min-height: var(--header-h); }
  .site-nav { width: 100%; flex-wrap: wrap; gap: .35rem 1.1rem; padding-bottom: .6rem; }
  .site-header:not(.menu-ready) { position: relative; }
  .menu-ready .menu-toggle { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; padding: .45rem .7rem; border: 1px solid #a39679; border-radius: var(--radius); color: var(--ink); background: var(--paper); font-size: .88rem; font-weight: 700; cursor: pointer; }
  .menu-close-icon, .menu-toggle[aria-expanded="true"] .menu-open-icon { display: none; }
  .menu-toggle[aria-expanded="true"] .menu-close-icon { display: block; }
  .menu-ready .site-nav { position: absolute; top: 100%; right: calc(-1 * var(--gutter)); left: calc(-1 * var(--gutter)); display: none; flex-direction: column; align-items: stretch; gap: .1rem; width: auto; padding: .4rem var(--gutter) .9rem; border-bottom: 1px solid var(--line); background: var(--paper); box-shadow: 0 .6rem 1rem #11243b1f; }
  .menu-ready .site-nav a:not(.button) { padding-block: .75rem; border-bottom: 1px solid var(--line); }
  .menu-ready .site-nav a:not(.button)::after { display: none; }
  .menu-ready .site-nav a[aria-current]:not(.button) { box-shadow: inset 3px 0 var(--teal); padding-left: .7rem; }
  .menu-ready .site-nav .button { align-self: stretch; margin-top: .6rem; }
  .menu-ready[data-menu-open="true"] .site-nav { display: flex; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: calc(var(--header-h) + .75rem); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 1.7rem; }
  .hero-figure { max-width: 46rem; }
  .hero-figure img { aspect-ratio: 1.8; object-position: 50% 50%; }
  .section-heading { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .areas-grid, .split-grid, .example-grid { grid-template-columns: minmax(0, 1fr); }
  .services-grid { display: flex; flex-direction: column; gap: 0; }
  .services-intro { display: contents; }
  .services-main { order: 4; margin-top: 1.7rem; }
  .scope-notes { order: 5; max-width: none; margin-top: 1.7rem; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "cabecalho" "caixa" "blocos"; grid-template-rows: none; }
  .services-intro, .split-intro { position: static; }
  .guide .side-figure { display: none; }
  .method-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.8rem; }
  .example-figure { order: 2; }
  .example-figure img { aspect-ratio: 1.6; }
  .location-figure img { aspect-ratio: 2.4; }
  .credits ul { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  :root { --header-h: 4.2rem; }
  .hero { padding-top: 2.3rem; }
  .hero-figure img { aspect-ratio: 1.7; }
  .hero-actions .button { width: 100%; }
  .situations { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
  .situation { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: .9rem; row-gap: .1rem; align-items: center; padding: .85rem 1rem; }
  .situation .icon-lg { grid-row: 1 / span 2; margin: 0; }
  .situation strong { grid-column: 2; }
  .situation-text { grid-column: 2; }
  .situation-go { grid-column: 3; grid-row: 1 / span 2; padding: 0; margin: 0; }
  .situation-go span { display: none; }
  .situation-tag { position: static; grid-column: 2; justify-self: start; margin-top: .3rem; }
  .format-grid { grid-template-columns: minmax(0, 1fr); }
  .format-card { display: flex; grid-row: auto; }
  .services-figure { display: none; }
  .president-card { align-items: start; }
  .service summary { grid-template-columns: 1.7rem minmax(0, 1fr) 1rem; padding-left: .6rem; }
  .service-body { padding: .15rem 1rem 1.3rem 1rem; }
  .service-facts > div, .area-body > div { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
  .area summary { grid-template-columns: minmax(0, 1fr) 1rem; }
  .area-meta { grid-column: 1; grid-row: 2; }
  .area-name { grid-column: 1; }
  .area summary .expand-mark { grid-column: 2; grid-row: 1 / span 2; }
  .method-steps { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 1.7rem; }
  .method-steps li { margin-left: .9rem; padding: 0 0 1.3rem 1.6rem; border-top: 0; border-left: 1px solid #8e7c5e; }
  .method-steps li:last-child { padding-bottom: 0; border-left-color: transparent; }
  .step-number { top: 0; left: -.9rem; }
  .method-steps p { margin-top: .25rem; }
  .example-list > div { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
  .guide-body { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .footer-inner p { flex-basis: 100%; order: 2; }
  .format-foot { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 400px) {
  h1 { font-size: 2.12rem; }
  .brand { width: 9.6rem; }
}

/* 15 · Preferências do visitante ----------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
