/* =========================================================
   Infotec — sistema visual
   Paleta derivada do logotipo: preto, azul #16B4E4, amarelo #FCD200.
   Azul profundo (#0A6688) é usado para texto/botões por contraste AA.
   ========================================================= */
:root {
  --ink: #0F1418;
  --ink-soft: #27313A;
  --muted: #4E5A63;
  --line: #DCE3E7;
  --line-strong: #C4CED4;
  --paper: #F4F6F7;
  --white: #FFFFFF;
  --cyan: #16B4E4;
  --cyan-soft: #E2F4FB;
  --blue: #0A6688;
  --blue-hover: #08506B;
  --yellow: #FCD200;
  --yellow-soft: #FFF5C2;
  --ok: #146C43;
  --ok-soft: #E3F4EA;
  --err: #B42318;
  --err-soft: #FDECEA;
  --warn-soft: #FFF5D6;

  --f-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem; --s-9: 6.5rem;
  --r-s: 6px; --r-m: 12px; --r-l: 20px;
  --shadow: 0 1px 2px rgba(15, 20, 24, .06), 0 8px 24px -12px rgba(15, 20, 24, .18);
  --wrap: 1200px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink);
  background: var(--white); text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-hover); text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.12; margin: 0 0 var(--s-4); letter-spacing: -0.015em; font-weight: 650; }
h1 { font-size: clamp(2.3rem, 1.6rem + 3.2vw, 4.1rem); letter-spacing: -0.03em; font-weight: 700; }
h2 { font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.55rem); letter-spacing: -0.025em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 var(--s-4); }
ul, ol { padding-left: 1.2em; }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -0.22em; }
.icon-lg { width: 1.9rem; height: 1.9rem; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--yellow); }

.skip { position: absolute; left: 1rem; top: -100px; background: var(--ink); color: #fff; padding: .7rem 1rem; z-index: 100; border-radius: var(--r-s); }
.skip:focus { top: 1rem; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 68ch; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: .925rem; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px;
  padding: .7rem 1.35rem; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  font: 700 1rem/1.2 var(--f-body); text-decoration: none; transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-accent { background: var(--yellow); color: var(--ink); }
.btn-accent:hover { background: #ffe14d; color: var(--ink); }
.btn-ghost-light { color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }
.btn-sm { min-height: 40px; padding: .45rem 1rem; font-size: .95rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn .spinner { display: none; }
.btn.is-loading .spinner { display: inline-block; }
.spinner { width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.textlink { font-weight: 700; display: inline-flex; gap: .35rem; align-items: center; }

/* ---------- Cabeçalho ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: var(--s-4); min-height: var(--header-h); }
.brand { display: block; flex: none; border-radius: 8px; overflow: hidden; line-height: 0; }
.brand img { height: 52px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; }
.main-nav a { display: block; padding: .55rem .62rem; border-radius: var(--r-s); color: var(--ink); text-decoration: none; font-size: .96rem; white-space: nowrap; }
.main-nav a:hover { background: var(--paper); }
.main-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--cyan); border-radius: 0; }
.header-actions { display: flex; align-items: center; gap: var(--s-2); }
.header-actions .btn { white-space: nowrap; }
@media (max-width: 1440px) { .account-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .main-nav a { padding: .5rem .5rem; font-size: .94rem; } }
.account-link { white-space: nowrap; display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .7rem; color: var(--ink); text-decoration: none; font-size: .95rem; border-radius: var(--r-s); }
.account-link:hover { background: var(--paper); color: var(--ink); }
.menu-toggle { display: none; margin-left: auto; align-items: center; gap: .4rem; background: none; border: 2px solid var(--ink); border-radius: 999px; padding: .5rem .95rem; font: 700 .95rem var(--f-body); color: var(--ink); cursor: pointer; min-height: 44px; }

@media (max-width: 1300px) {
  .menu-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }
  .main-nav { display: none; position: fixed; inset: var(--header-h) 0 0 0; background: #fff; overflow-y: auto; padding: var(--s-5) 1.25rem var(--s-8); border-top: 1px solid var(--line); }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { font: 600 1.35rem var(--f-display); padding: .85rem .25rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--cyan); padding-left: .9rem; }
  .main-nav .nav-cta { display: flex !important; margin-top: var(--s-5); }
  .header-actions { order: 3; }
}
.main-nav .nav-cta { display: none; }
@media (max-width: 520px) {
  .brand img { height: 44px; }
  .account-link span { display: none; }
}
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { padding: var(--s-8) 0 var(--s-8); background: var(--paper); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s-7); align-items: center; }
.hero h1 { max-width: 14ch; }
.hero .lead { margin-bottom: var(--s-6); }
.hero-secondary { margin-top: var(--s-5); display: flex; gap: .6rem; align-items: center; color: var(--ink-soft); }
.hero-secondary .icon { color: var(--blue); }
.hero-figure { margin: 0; position: relative; }
.hero-figure picture, .hero-figure img { border-radius: var(--r-l); }
.hero-figure img { aspect-ratio: 860/602; object-fit: cover; width: 100%; background: #1b1715; }
.hero-figure::before { content: ""; position: absolute; inset: -14px 28px auto auto; width: 38%; height: 14px; background: var(--yellow); border-radius: 6px 6px 0 0; }
.hero-figure::after { content: ""; position: absolute; left: -14px; bottom: 28px; width: 14px; height: 40%; background: var(--cyan); border-radius: 6px 0 0 6px; }
.hero-figure figcaption { margin-top: var(--s-3); font-size: .925rem; color: var(--muted); }
@media (max-width: 900px) {
  .hero { padding-top: var(--s-6); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .hero-figure::after { left: -8px; width: 8px; }
}

/* ---------- Seções ---------- */
.section { padding: var(--s-9) 0; }
.section-paper { background: var(--paper); }
.section-tight { padding: var(--s-8) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: var(--s-5); margin-bottom: var(--s-7); flex-wrap: wrap; }
.section-head h2 { margin: 0; max-width: 22ch; }
.section-head p { margin: var(--s-3) 0 0; max-width: 58ch; color: var(--ink-soft); }
@media (max-width: 700px) { .section { padding: var(--s-8) 0; } }

/* Conceito da marca */
.concept { background: var(--ink); color: #fff; padding: var(--s-7) 0; }
.concept p { font: 600 clamp(1.35rem, 1rem + 1.4vw, 2.05rem)/1.25 var(--f-display); margin: 0; max-width: 34ch; letter-spacing: -0.02em; }
.concept-row { display: flex; align-items: center; gap: var(--s-6); justify-content: space-between; flex-wrap: wrap; }
.mark-bars { display: flex; gap: 8px; }
.mark-bars span { width: 44px; height: 10px; border-radius: 5px; background: var(--cyan); }
.mark-bars span:nth-child(2) { background: var(--yellow); }
.mark-bars span:nth-child(3) { background: #fff; }

/* Diferenciais */
.features { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.feature { padding: var(--s-6) var(--s-5) var(--s-6) 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: var(--s-4); align-items: start; }
.feature:not(:nth-child(3n+1)) { padding-left: var(--s-5); border-left: 1px solid var(--line); }
.feature .icon { width: 1.7rem; height: 1.7rem; color: var(--blue); margin-top: .15rem; }
.feature h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.feature p { margin: 0; color: var(--muted); font-size: .98rem; }
@media (max-width: 900px) {
  .features { grid-template-columns: 1fr 1fr; }
  .feature:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .feature:nth-child(even) { padding-left: var(--s-5); border-left: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .features { grid-template-columns: 1fr; }
  .feature:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* ---------- Encontre seu caminho (elemento-assinatura) ---------- */
.paths { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.path { border-bottom: 1px solid var(--line-strong); }
.path a.path-link { display: grid; grid-template-columns: 4.2rem 1fr minmax(0, 26rem) auto; gap: var(--s-5); align-items: center; padding: var(--s-5) 0; color: var(--ink); text-decoration: none; position: relative; }
.path-icon { width: 4.2rem; height: 4.2rem; border-radius: 16px; display: grid; place-items: center; background: var(--tone, var(--cyan-soft)); }
.path-icon .icon { width: 1.8rem; height: 1.8rem; }
.path-title { font: 650 clamp(1.45rem, 1rem + 1.6vw, 2.35rem)/1.1 var(--f-display); letter-spacing: -0.025em; }
.path-desc { color: var(--muted); margin: 0; }
.path-go { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--blue); white-space: nowrap; }
.path a.path-link::before { content: ""; position: absolute; left: 0; bottom: -1px; height: 3px; width: 0; background: var(--bar, var(--cyan)); transition: width .35s ease; }
.path a.path-link:hover::before, .path a.path-link:focus-visible::before { width: 100%; }
.path a.path-link:hover .path-title { color: var(--blue-hover); }
.path:nth-child(1) { --tone: var(--cyan-soft); --bar: var(--cyan); }
.path:nth-child(2) { --tone: var(--yellow-soft); --bar: var(--yellow); }
.path:nth-child(3) { --tone: #EEF0F2; --bar: var(--ink); }
.path:nth-child(4) { --tone: var(--cyan-soft); --bar: var(--blue); }
@media (max-width: 900px) {
  .path a.path-link { grid-template-columns: 3.2rem 1fr; gap: var(--s-3) var(--s-4); }
  .path-icon { width: 3.2rem; height: 3.2rem; border-radius: 12px; }
  .path-desc, .path-go { grid-column: 2; }
}

/* ---------- Cursos ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--s-5); }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: .4rem .95rem; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; color: var(--ink); font: 600 .95rem var(--f-body); cursor: pointer; text-decoration: none; }
.chip:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.chip[aria-pressed="true"], .chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: var(--s-5); }
.course-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.course-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.course-cover { aspect-ratio: 16/9; position: relative; background: var(--ink); overflow: hidden; }
.course-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-art { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 1rem 1.1rem; color: #fff; }
.cover-art .glyph { position: absolute; right: -6%; top: -18%; width: 62%; aspect-ratio: 1; border-radius: 28%; border: 14px solid var(--c1, var(--cyan)); transform: rotate(-12deg); }
.cover-art .glyph::after { content: ""; position: absolute; left: 22%; top: 22%; width: 34%; height: 34%; border-radius: 30%; background: var(--c2, var(--yellow)); }
.cover-art span { position: relative; font: 600 .9rem var(--f-body); background: rgba(15,20,24,.75); padding: .2rem .55rem; border-radius: 4px; }
.cover-art[data-tone="1"] { --c1: var(--yellow); --c2: var(--cyan); }
.cover-art[data-tone="2"] { --c1: #fff; --c2: var(--cyan); }
.cover-art[data-tone="3"] { --c1: var(--cyan); --c2: #fff; }
.course-body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.course-body h3 { margin: 0; font-size: 1.25rem; }
.course-body h3 a { color: var(--ink); text-decoration: none; }
.course-body h3 a:hover { color: var(--blue); text-decoration: underline; }
.course-body p { margin: 0; color: var(--muted); font-size: .98rem; }
.course-meta { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; padding: .15rem .55rem; border-radius: 4px; background: var(--paper); color: var(--ink-soft); }
.tag-cat { background: var(--cyan-soft); color: #064C66; }
.course-actions { margin-top: auto; padding-top: var(--s-3); display: flex; flex-wrap: wrap; gap: .5rem; }
.course-actions .btn { flex: 1 1 auto; }
.empty { border: 2px dashed var(--line-strong); border-radius: var(--r-m); padding: var(--s-7) var(--s-5); text-align: center; color: var(--ink-soft); }
.empty .icon { width: 2rem; height: 2rem; color: var(--blue); margin-bottom: var(--s-3); }

/* Catálogo */
.catalog { display: grid; grid-template-columns: 280px 1fr; gap: var(--s-7); align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 1rem); background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: var(--s-5); }
.filters fieldset { border: 0; padding: 0; margin: 0 0 var(--s-5); }
.filters legend { font: 650 1rem var(--f-display); margin-bottom: var(--s-2); }
.filters label.opt { display: flex; gap: .55rem; align-items: center; padding: .3rem 0; cursor: pointer; }
.filters input[type=radio] { width: 1.15rem; height: 1.15rem; accent-color: var(--blue); }
.result-bar { display: flex; justify-content: space-between; gap: var(--s-4); align-items: center; margin-bottom: var(--s-5); flex-wrap: wrap; }
@media (max-width: 900px) {
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filters-toggle { display: inline-flex; }
}

/* Página de curso */
.course-hero { background: var(--paper); padding: var(--s-7) 0; border-bottom: 1px solid var(--line); }
.course-hero-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: var(--s-7); align-items: center; }
.course-hero .course-cover { border-radius: var(--r-l); }
.course-layout { display: grid; grid-template-columns: 1fr 340px; gap: var(--s-8); align-items: start; }
.course-aside { position: sticky; top: calc(var(--header-h) + 1rem); border: 1px solid var(--line); border-radius: var(--r-m); padding: var(--s-5); background: #fff; }
.facts { margin: 0 0 var(--s-5); }
.facts div { display: grid; grid-template-columns: 1.4rem 1fr; gap: .2rem .6rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; grid-column: 2; font-size: .9rem; color: var(--muted); }
.facts dd { margin: 0; grid-column: 2; }
.facts .icon { grid-row: span 2; color: var(--blue); margin-top: .2rem; }
.prose h2 { font-size: 1.6rem; margin-top: var(--s-7); }
.prose h2:first-child { margin-top: 0; }
ul.ticks { list-style: none; padding: 0; }
ul.ticks li { position: relative; padding-left: 1.9rem; margin-bottom: .55rem; }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 1rem; height: .55rem; border-left: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(-45deg); }
.pending { background: var(--paper); border-left: 4px solid var(--line-strong); padding: var(--s-4) var(--s-5); border-radius: 0 var(--r-s) var(--r-s) 0; color: var(--ink-soft); }
@media (max-width: 960px) {
  .course-hero-grid, .course-layout { grid-template-columns: 1fr; }
  .course-aside { position: static; }
}

/* ---------- Inclusão ---------- */
.inclusion { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--s-8); align-items: start; }
.inclusion h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); max-width: 16ch; }
.principles { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.principles li { padding: var(--s-4) 0; border-bottom: 1px solid var(--line-strong); display: flex; gap: var(--s-3); align-items: baseline; font-size: 1.08rem; }
.principles li::before { content: ""; width: .6rem; height: .6rem; flex: none; border-radius: 2px; background: var(--yellow); transform: translateY(-.1em); }
@media (max-width: 900px) { .inclusion { grid-template-columns: 1fr; gap: var(--s-6); } }

/* ---------- Serviços ---------- */
.services { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: auto auto; gap: var(--s-5); }
.service { border-radius: var(--r-l); padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); background: #fff; border: 1px solid var(--line); }
.service.big { grid-row: span 2; background: var(--ink); color: #fff; border: 0; }
.service.big p, .service.big li { color: #D6DEE3; }
.service.big h3 { color: #fff; font-size: 1.8rem; }
.service h3 { font-size: 1.45rem; margin: 0; }
.service .icon-lg { color: var(--blue); }
.service.big .icon-lg { color: var(--yellow); }
.service ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.service li { font-size: .92rem; padding: .2rem .6rem; border: 1px solid var(--line); border-radius: 999px; }
.service.big li { border-color: rgba(255,255,255,.25); }
.service .btn-row { margin-top: auto; padding-top: var(--s-3); }
@media (max-width: 860px) { .services { grid-template-columns: 1fr; } .service.big { grid-row: auto; } }

/* ---------- Equipe ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.member figure { margin: 0; }
.member img { border-radius: var(--r-m); aspect-ratio: 270/338; object-fit: cover; width: 100%; background: #2a2421; }
.member h3 { margin: var(--s-4) 0 .1rem; font-size: 1.35rem; }
.member .role { color: var(--blue); font-weight: 700; margin-bottom: var(--s-3); }
.member ul { list-style: none; padding: 0; margin: var(--s-3) 0 0; }
.member li { padding: .45rem 0; border-top: 1px solid var(--line); font-size: .95rem; display: flex; gap: .5rem; }
.member li .icon { color: var(--blue); margin-top: .15rem; }
@media (max-width: 860px) { .team { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .team { grid-template-columns: 1fr; } .member img { max-width: 360px; } }

.community { display: grid; grid-template-columns: auto 1fr; gap: var(--s-6); background: var(--yellow-soft); border-radius: var(--r-l); padding: var(--s-7); }
.community .icon-lg { width: 3rem; height: 3rem; color: var(--ink); }
.community h2 { max-width: 24ch; }
@media (max-width: 700px) { .community { grid-template-columns: 1fr; padding: var(--s-6) var(--s-5); } }

/* ---------- Chamada final ---------- */
.final-cta { background: var(--ink); color: #fff; padding: var(--s-9) 0; position: relative; overflow: hidden; }
.final-cta h2 { color: #fff; font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.6rem); max-width: 16ch; }
.final-cta p { color: #CFD8DD; max-width: 52ch; font-size: 1.15rem; margin-bottom: var(--s-6); }
.final-cta::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 320px; height: 320px; border: 28px solid var(--cyan); border-radius: 80px; transform: rotate(-12deg); opacity: .9; }
@media (max-width: 700px) { .final-cta::after { width: 180px; height: 180px; border-width: 18px; right: -70px; bottom: -70px; } }

/* ---------- Páginas internas ---------- */
.page-hero { background: var(--paper); padding: var(--s-7) 0 var(--s-7); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.4rem); max-width: 20ch; }
.page-hero .lead { margin-bottom: 0; }
.page-hero .btn-row { margin-top: var(--s-5); }
.crumbs { font-size: .9rem; margin-bottom: var(--s-4); color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: .3rem; color: var(--line-strong); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: start; }
.split-wide { grid-template-columns: 1.15fr .85fr; }
@media (max-width: 900px) { .split, .split-wide { grid-template-columns: 1fr; gap: var(--s-6); } }
.steps-list { list-style: none; counter-reset: s; padding: 0; margin: 0; }
.steps-list li { counter-increment: s; display: grid; grid-template-columns: 3rem 1fr; gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.steps-list li::before { content: counter(s); width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 700 1rem var(--f-display); }
.steps-list h3 { font-size: 1.1rem; margin: .3rem 0 .2rem; }
.steps-list p { margin: 0; color: var(--muted); }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: .75rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.info-list .icon { color: var(--blue); margin-top: .2rem; }
.note { display: flex; gap: .75rem; padding: var(--s-4) var(--s-5); border-radius: var(--r-m); background: var(--cyan-soft); color: #073D52; }
.note .icon { margin-top: .2rem; }
.note-warn { background: var(--warn-soft); color: #5A4300; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); padding: var(--s-6); }
.section-paper .panel { border-color: transparent; }

/* FAQ */
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { cursor: pointer; list-style: none; padding: var(--s-4) 2.5rem var(--s-4) 0; position: relative; font: 600 1.12rem var(--f-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .4rem; top: 1.35rem; width: .65rem; height: .65rem; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.6rem; }
.faq details > div { padding: 0 0 var(--s-5); color: var(--ink-soft); max-width: 70ch; }

/* ---------- Formulários ---------- */
.form { display: grid; gap: var(--s-5); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: .35rem; }
.field label, .field .label { font-weight: 700; font-size: .98rem; }
.field .opt-label { font-weight: 400; color: var(--muted); }
.hint { font-size: .9rem; color: var(--muted); margin: 0; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], input[type=date], input[type=time], input[type=datetime-local], input[type=url], select, textarea {
  width: 100%; font: 1rem/1.4 var(--f-body); color: var(--ink); background: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--r-s);
  padding: .75rem .85rem; min-height: 48px; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 120px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(10,102,136,.22); }
[aria-invalid="true"] { border-color: var(--err) !important; }
.field-error { color: var(--err); font-size: .93rem; font-weight: 700; display: flex; gap: .35rem; align-items: flex-start; margin: 0; }
.field-error .icon { margin-top: .12rem; }
.check { display: grid; grid-template-columns: 1.4rem 1fr; gap: .6rem; align-items: start; cursor: pointer; }
.check input { width: 1.3rem; height: 1.3rem; margin: .15rem 0 0; accent-color: var(--blue); }
.choices { display: grid; gap: .6rem; border: 0; padding: 0; margin: 0; }
.choices legend { font-weight: 700; margin-bottom: .5rem; padding: 0; }
.choice { display: flex; gap: .7rem; align-items: flex-start; border: 1.5px solid var(--line-strong); border-radius: var(--r-m); padding: .85rem 1rem; cursor: pointer; background: #fff; }
.choice:hover { border-color: var(--muted); }
.choice:has(input:checked) { border-color: var(--blue); background: var(--cyan-soft); }
.choice input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; accent-color: var(--blue); flex: none; }
.choice strong { display: block; }
.choice span.small { color: var(--muted); }
.choices-row { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.privacy-box { font-size: .93rem; background: var(--paper); border-radius: var(--r-m); padding: var(--s-4) var(--s-5); color: var(--ink-soft); }
.privacy-box p:last-child { margin: 0; }
.conditional[hidden] { display: none; }
.form-section { border: 0; padding: 0; margin: 0; display: grid; gap: var(--s-5); }
.form-section > legend { font: 650 1.3rem var(--f-display); padding: 0; margin-bottom: var(--s-2); }

/* Indicador de etapas */
.stepper { list-style: none; display: flex; gap: .5rem; padding: 0; margin: 0 0 var(--s-6); counter-reset: st; flex-wrap: wrap; }
.stepper li { counter-increment: st; display: flex; align-items: center; gap: .5rem; font-size: .95rem; color: var(--muted); padding-right: .8rem; }
.stepper li::before { content: counter(st); width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; font-weight: 700; background: #fff; }
.stepper li[aria-current="step"] { color: var(--ink); font-weight: 700; }
.stepper li[aria-current="step"]::before { background: var(--ink); color: #fff; border-color: var(--ink); }
.stepper li.done::before { content: "✓"; background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }

/* Horários */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .6rem; }
.slot-meta { font-size: .88rem; color: var(--muted); }

/* ---------- Alertas e status ---------- */
.alert { display: flex; gap: .75rem; padding: var(--s-4) var(--s-5); border-radius: var(--r-m); border: 1px solid; margin-bottom: var(--s-5); }
.alert .icon { margin-top: .2rem; }
.alert p:last-child { margin: 0; }
.alert-ok { background: var(--ok-soft); border-color: #A6D8BC; color: #0D4A2D; }
.alert-err { background: var(--err-soft); border-color: #F2B8B1; color: #7A160E; }
.alert-info { background: var(--cyan-soft); border-color: #A9DDF0; color: #073D52; }
.alert-warn { background: var(--warn-soft); border-color: #F0D88A; color: #5A4300; }
.alert ul { margin: .3rem 0 0; }
.status { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .9rem; padding: .2rem .7rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line-strong); }
.status::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--muted); }
.status[data-tone="ok"]::before { background: var(--ok); }
.status[data-tone="wait"]::before { background: #C99400; }
.status[data-tone="bad"]::before { background: var(--err); }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line-strong); }
.timeline li { padding: 0 0 var(--s-4) var(--s-5); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .45rem; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); }
.protocol { font: 700 1.6rem var(--f-display); letter-spacing: .04em; background: var(--yellow-soft); padding: .35rem .8rem; border-radius: var(--r-s); display: inline-block; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--ink); color: #CFD8DD; padding: var(--s-8) 0 var(--s-6); font-size: .97rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: var(--s-6); }
.footer-grid h2 { font-size: 1rem; color: #fff; margin-bottom: var(--s-3); letter-spacing: 0; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-brand img { height: 60px; width: auto; border-radius: 6px; margin-bottom: var(--s-4); }
.footer-legal { border-top: 1px solid rgba(255,255,255,.14); margin-top: var(--s-7); padding-top: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); justify-content: space-between; font-size: .9rem; }
.footer-legal ul { display: flex; flex-wrap: wrap; gap: var(--s-4); list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: .55rem; }
.footer-contact .icon { color: var(--cyan); margin-top: .2rem; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* WhatsApp flutuante: discreto, fora do caminho de formulários */
.wa-float {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 30;
  display: inline-flex; align-items: center; gap: .5rem; padding: .7rem; border-radius: 999px; background: #fff; color: var(--ink);
  border: 1.5px solid var(--line-strong); box-shadow: var(--shadow); text-decoration: none; font-weight: 700; font-size: .95rem;
}
.wa-float .icon { width: 1.5rem; height: 1.5rem; color: #128C4A; }
.wa-float .wa-label { display: none; }
.wa-float:hover { color: var(--ink); border-color: var(--ink); }
.wa-float:hover .wa-label, .wa-float:focus-visible .wa-label { display: inline; padding-right: .3rem; }
.wa-float.is-hidden { display: none; }
body.menu-open .wa-float { display: none; }
.site-footer { padding-bottom: calc(var(--s-6) + 64px); }

/* Área do aluno */
.dash { display: grid; grid-template-columns: 240px 1fr; gap: var(--s-7); }
.dash-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .2rem; }
.dash-nav a { display: flex; gap: .6rem; align-items: center; padding: .6rem .8rem; border-radius: var(--r-s); color: var(--ink); text-decoration: none; }
.dash-nav a:hover { background: var(--paper); }
.dash-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.card-list { display: grid; gap: var(--s-4); }
.item { border: 1px solid var(--line); border-radius: var(--r-m); padding: var(--s-5); background: #fff; }
.item-head { display: flex; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; align-items: center; margin-bottom: var(--s-2); }
.item h3 { margin: 0; font-size: 1.15rem; }
@media (max-width: 860px) { .dash { grid-template-columns: 1fr; } .dash-nav ul { display: flex; flex-wrap: wrap; } }
.auth { max-width: 520px; margin: 0 auto; }

/* Novidades */
.news-list { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* Movimento */
@media (prefers-reduced-motion: no-preference) {
  .hero-intro > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero-intro > *:nth-child(2) { animation-delay: .07s; }
  .hero-intro > *:nth-child(3) { animation-delay: .14s; }
  .hero-intro > *:nth-child(4) { animation-delay: .21s; }
  .hero-figure { animation: rise .9s .1s cubic-bezier(.2,.7,.2,1) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Impressão */
@media print { .site-header, .site-footer, .wa-float, .btn { display: none !important; } }

/* Barra de consentimento (só aparece se Analytics estiver configurado) */
.consent-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 640px; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-m); box-shadow: var(--shadow); padding: var(--s-4) var(--s-5); display: grid; gap: var(--s-3); }
.consent-bar p { margin: 0; font-size: .95rem; }

@media (max-width: 1300px) {
  .header-actions { margin-left: auto; order: 2; }
  .menu-toggle { order: 3; margin-left: 0; }
}

.mb-8 { margin-bottom: var(--s-8); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.flash-wrap { margin-top: 1.5rem; }
.mb-5 { margin-bottom: var(--s-5); }
.course-aside .btn { width: 100%; }
.h3 { font-size: 1.3rem; }
.h2 { font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.55rem); }

.form-grid { align-items: start; }
.field { align-content: start; }
.choices-row { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.choice span.small { display: block; line-height: 1.45; margin-top: .15rem; }
@media (max-width: 1300px) {
  .main-nav .nav-cta .btn { font: 700 1rem/1.2 var(--f-body); padding: .7rem 1.35rem; border-radius: 999px; border: 2px solid transparent; }
  .main-nav .nav-cta .btn-primary { color: #fff; }
  .main-nav .nav-cta .btn-secondary { border-color: var(--ink); }
}

/* =========================================================
   Ajustes solicitados: textos justificados, cabeçalho e rodapé pretos
   ========================================================= */
/* Textos corridos justificados (com hifenização em português para evitar espaços grandes) */
main p, main li, main dd, .faq details > div {
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
}
/* Exceções: elementos curtos ou centralizados não devem ser justificados */
main .empty p, main .btn-row, main .chips, main .stepper li, main .protocol, main .hero-figure figcaption,
main .course-meta, main .tag, main .status, main .crumbs li, main .path-desc, main .note, main .alert p,
main .choice, main .field-error, main .hint, main .check span, main label, main .facts dd, main .info-list li,
main .principles li, main .member li, main table, main .admin-top {
  text-align: left;
  -webkit-hyphens: manual;
  hyphens: manual;
}
main .empty p { text-align: center; }

/* Cabeçalho preto */
.site-header { background: #000; border-bottom: 1px solid #000; }
.site-header .brand { border-radius: 0; }
.main-nav a { color: #fff; }
.main-nav a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.main-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--yellow); }
.account-link { color: #fff; }
.account-link:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.menu-toggle { color: #fff; border-color: #fff; }
.site-header :focus-visible { outline-color: var(--yellow); }
.site-header .btn-primary { background: var(--yellow); color: #000; }
.site-header .btn-primary:hover { background: #ffe14d; color: #000; }
@media (max-width: 1300px) {
  .main-nav { background: #000; border-top-color: #222; }
  .main-nav a { border-bottom-color: #2a2a2a; }
  .main-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--yellow); }
  .main-nav .nav-cta .btn-secondary { color: #fff; border-color: #fff; }
}

/* Rodapé preto */
.site-footer { background: #000; }

/* ===== Sobre Nós: layout compacto ===== */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--s-7); align-items: start; }
.about-grid h2 { margin-bottom: var(--s-3); }
.about-values { background: var(--paper); border-radius: var(--r-m); padding: var(--s-5) var(--s-5) var(--s-3); }
.principles-compact { border-top: 0; }
.principles-compact li { padding: .55rem 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
.principles-compact li:last-child { border-bottom: 0; }
.team-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem var(--s-4); margin-bottom: var(--s-5); }
.team-head h2, .team-head p { margin: 0; }
.team-head p { color: var(--muted, #555); }
.team-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.profile { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: var(--s-5); background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: var(--s-5); align-items: start; }
.profile-lead { grid-column: 1 / -1; grid-template-columns: 180px minmax(0, 1fr); }
.profile-photo { margin: 0; }
.profile-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r-s, 8px); background: #2a2421; display: block; }
.profile h3 { margin: 0 0 .1rem; font-size: 1.3rem; }
.profile .role { color: var(--blue); font-weight: 700; margin: 0 0 var(--s-3); font-size: .95rem; }
.profile-body > p { font-size: .98rem; margin: 0 0 var(--s-3); }
.profile-label { font-family: var(--f-body); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted, #555); margin: var(--s-4) 0 var(--s-2, .5rem); font-weight: 700; }
.profile-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.profile-tags li { display: inline-flex; align-items: center; gap: .35rem; font-size: .86rem; line-height: 1.3; padding: .35rem .65rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); text-align: left; }
.profile-tags .icon { width: 1rem; height: 1rem; color: var(--blue); flex: none; }
.profile-awards { list-style: none; margin: var(--s-3) 0 0; padding: 0; }
.profile-awards li { display: flex; gap: .55rem; align-items: flex-start; font-size: .92rem; line-height: 1.45; padding: .6rem .8rem; background: var(--yellow-soft); border-radius: var(--r-s, 8px); text-align: left; }
.profile-awards li + li { margin-top: .4rem; }
.profile-awards .icon { width: 1.15rem; height: 1.15rem; flex: none; margin-top: .1rem; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: var(--s-5); } .team-list { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .profile, .profile-lead { grid-template-columns: 96px minmax(0, 1fr); gap: var(--s-4); padding: var(--s-4); } }
.about-intro, .about-intro + .section-tight, .about-intro ~ .section-tight { padding: var(--s-7) 0; }
@media (max-width: 1440px) { .main-nav a { font-size: .88rem; padding: .5rem .45rem; } }
.profile:not(.profile-lead) .profile-tags { display: block; }
.profile:not(.profile-lead) .profile-tags li { display: flex; border: 0; background: none; border-radius: 0; padding: .3rem 0; border-bottom: 1px solid var(--line); }
.profile:not(.profile-lead) .profile-tags li:last-child { border-bottom: 0; }
.main-nav a { font-size: .9rem; padding: .5rem .5rem; }
.account-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 1460px) { .main-nav a { font-size: .86rem; padding: .5rem .4rem; } .main-nav ul { gap: 0; } .site-header .btn-primary { padding-left: 1rem; padding-right: 1rem; } }
@media (max-width: 560px) {
  .profile, .profile-lead { display: block; }
  .profile-photo { float: left; width: 88px; margin: 0 var(--s-4) var(--s-3) 0; }
  .profile-body h3 { padding-top: .5rem; }
  .profile-body > p:first-of-type { clear: none; }
  .profile-body > p:nth-of-type(2) { clear: left; }
  .profile-body > p.role + p { clear: left; padding-top: var(--s-2); }
  .profile .profile-tags { display: block; }
  .profile .profile-tags li { display: flex; border: 0; background: none; border-radius: 0; padding: .3rem 0; border-bottom: 1px solid var(--line); }
  .profile .profile-tags li:last-child { border-bottom: 0; }
}

/* ===== Logo vetorial, bandeira e botão do currículo ===== */
.brand { border-radius: 0; overflow: visible; }
.brand img { height: 46px; width: auto; display: block; }
@media (max-width: 1300px) { .brand img { height: 40px; } }
@media (max-width: 400px) { .brand img { height: 34px; } }
.site-footer .footer-brand img { height: 52px; width: auto; }
.br-flag { display: inline-flex; flex: none; line-height: 0; margin-left: var(--s-2); border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.br-flag svg { display: block; border-radius: 2.5px; }
.header-actions .btn .icon { width: 1.05rem; height: 1.05rem; }
.empty h2 { margin-top: var(--s-3); }
.site-header .header-row { width: min(100% - 2.5rem, 1380px); gap: .75rem; }
@media (min-width: 1301px) {
  .brand img { height: 40px; }
  .main-nav ul { gap: 0; }
  .main-nav a { font-size: .86rem; padding: .5rem .42rem; }
  .header-actions { gap: .35rem; }
  .header-actions .btn-sm { padding-left: .95rem; padding-right: .95rem; }
}
@media (min-width: 1500px) { .main-nav a { font-size: .92rem; padding: .5rem .55rem; } .brand img { height: 46px; } }
