/* IMG CURSOS — direção com unslop, de Damir Sokolovsky (@heydamir), CC BY 4.0. */
@font-face {
  font-family: "IBM Plex Sans";
  src: url("assets/fonts/ibm-plex-sans-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}
:root {
  color-scheme: light;
  --navy: #10416c;
  --deep: #132a40;
  --panel: #132e48;
  --green: #cfdf55;
  --green-hover: #e0e979;
  --ink: #182938;
  --muted: #4e6070;
  --meta: #5c6d7b;
  --light: #eef2f4;
  --line: #d4dce2;
  --outline: #8a9aa8;
  --paper: #fbfcfd;
  --white: #fff;
  --on-dark: #d3e0eb;
  --dark-line: #536779;
  --focus: #3478b6;
  --radius: 8px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 84px; }
body { margin: 0; font: 400 16px/1.55 var(--font); color: var(--ink); background: var(--paper); }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
figure, h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--deep); font-weight: 500; }
h1, h2 { text-wrap: balance; }
h2 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.08; letter-spacing: -.025em; }
h3 { font-size: 20px; line-height: 1.25; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
:is(.hero-copy, .enrollment) :focus-visible { outline-color: var(--green); }
.wrap { width: min(1240px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: fixed; inset: 8px auto auto 16px; z-index: 30; padding: 12px 16px; border-radius: var(--radius); background: var(--white); transform: translateY(-150%); }
.skip:focus { transform: none; }
.topbar { background: var(--light); color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; }
.topbar a:hover, .portal:hover, .hero-contact a:hover, .interest:hover, footer a:not(.brand):hover { text-decoration: underline; text-underline-offset: 4px; }
header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: var(--paper); }
.nav { display: flex; align-items: center; min-height: 72px; gap: 24px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; color: var(--deep); }
.mark { display: block; width: 44px; height: 44px; overflow: hidden; flex: none; }
.mark img { width: auto; height: 44px; max-width: none; }
.brand strong { font-size: 22px; line-height: 1; font-weight: 600; }
.brand strong span { font-weight: 400; }
.brand small { display: block; margin-top: 4px; font-size: 11px; color: var(--meta); line-height: 1.2; }
nav { margin-left: auto; display: flex; align-items: center; gap: 24px; }
nav a, .portal { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; white-space: nowrap; color: var(--muted); }
nav a:hover, nav a[aria-current] { color: var(--deep); text-decoration: underline; text-decoration-color: var(--navy); text-underline-offset: 8px; text-decoration-thickness: 2px; }
.portal { padding-left: 20px; border-left: 1px solid var(--line); color: var(--deep); }
svg { display: block; }
:is(.button, .menu-toggle, .eyebrow) svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.button, .text-link, .detail-button, .catalog-more, .menu-toggle, .close {
  display: inline-flex; justify-content: center; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 16px; border: 1px solid transparent; border-radius: var(--radius);
  font-size: 15px; font-weight: 500; line-height: 1.2;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}
.menu-toggle { display: none; }
.button { background: var(--navy); color: var(--white); }
.button:hover { background: var(--deep); }
.button.small { min-height: 44px; font-size: 13px; white-space: nowrap; background: transparent; border-color: var(--outline); color: var(--deep); }
.button.small:hover, .detail-button:hover, .catalog-more:hover { background: var(--light); color: var(--deep); }
/* Uma prancha de abertura: texto e demonstração com a mesma altura. */
.hero { padding: 32px 0 48px; }
.hero-frame { display: grid; border-radius: 16px; overflow: hidden; background: var(--panel); }
.hero-panels { display: grid; }
.hero-grid { display: grid; grid-area: 1 / 1; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); background: var(--panel); }
.hero-grid[inert]:not(.is-leaving) { visibility: hidden; }
.hero-grid.is-leaving { z-index: 1; pointer-events: none; }
.hero-controls { grid-row: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 2px 16px; border-top: 1px solid var(--dark-line); background: var(--deep); }
.hero-select { grid-area: 1 / 2; display: flex; }
.hero-rotation { grid-area: 1 / 3; justify-self: end; }
.hero-controls button { display: grid; place-items: center; width: 44px; min-height: 44px; padding: 0; border: 1px solid transparent; border-radius: var(--radius); color: var(--on-dark); background: transparent; touch-action: manipulation; transition: background-color 160ms var(--ease); }
.hero-controls button:hover { background: var(--panel); }
.hero-select button::before { content: ""; width: 10px; height: 10px; border: 1.5px solid var(--on-dark); border-radius: 50%; transition: background-color 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease); }
.hero-select button[aria-pressed="true"]::before { background: var(--green); border-color: var(--green); transform: scale(1.2); }
.hero-controls button:focus-visible { outline-color: var(--green); outline-offset: -3px; }
.hero-rotation svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hero-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 20px; padding: 44px; color: var(--white); }
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--meta); }
.hero .eyebrow { color: var(--on-dark); }
.hero :is(h1, h2) { color: var(--white); font-size: clamp(42px, 4.2vw, 64px); line-height: 1.04; letter-spacing: -.04em; text-wrap: initial; }
.lead { max-width: 38ch; font-size: 17px; line-height: 1.55; color: var(--on-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero .button, .enrollment .button { background: var(--green); color: var(--deep); }
.hero .button:hover, .enrollment .button:hover { background: var(--green-hover); }
.text-link { color: var(--white); border-color: var(--dark-line); }
.text-link:hover { background: #25445f; border-color: var(--on-dark); }
.hero-contact { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--dark-line); color: var(--on-dark); font-size: 13px; width: 100%; }
.hero-contact a { color: var(--white); font-variant-numeric: tabular-nums; }
.hero-photo { min-width: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; position: relative; }
.hero-photo img { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: 58% 47%; }
.hero-photo figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; align-items: baseline; padding: 12px 20px; background: var(--deep); color: var(--white); border-top: 1px solid var(--dark-line); font-size: 13px; }
.hero-photo figcaption span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.hero-photo figcaption span:first-child::before { content: ""; width: 12px; height: 8px; border: 1px solid var(--green); border-right-width: 3px; }
.section { padding: 64px 0; }
.courses, .about { background: var(--light); border-block: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 12px 32px; margin-bottom: 28px; }
.section-heading > p { max-width: 44ch; color: var(--muted); }
.section-heading .page-title { color: var(--deep); font-size: clamp(36px, 5vw, 60px); line-height: 1.05; letter-spacing: -.03em; padding: 0; border: 0; }
.course-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.course-card { display: flex; min-width: 0; flex-direction: column; border-radius: 12px; border: 1px solid var(--line); background: var(--white); overflow: hidden; }
.course-image { aspect-ratio: 16 / 10; overflow: hidden; background: var(--light); }
.course-image img { width: 100%; height: 100%; object-fit: cover; }
.course-content { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 16px; }
.tag { color: var(--meta); font-size: 13px; }
.course-content h3 { font-size: 19px; }
.course-content p { color: var(--muted); font-size: 14px; }
.course-bottom { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; row-gap: 0; margin-top: auto; padding-top: 12px; }
.detail-button, .catalog-more { min-height: 44px; background: var(--white); border-color: var(--outline); color: var(--deep); font-size: 14px; }
.interest, .inline-link, .detail-secondary { color: var(--navy); font-size: 14px; }
.interest { display: inline-flex; align-items: center; min-height: 44px; }
.inline-link, .detail-secondary { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
.benefits .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; }
.benefits .section-heading { align-items: start; margin: 0; }
.benefits h2 { max-width: 12ch; }
.benefit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
.benefit-grid article { border-top: 1px solid var(--line); padding-top: 16px; }
.benefit-grid p, .about p:not(.eyebrow) { margin-top: 8px; color: var(--muted); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); align-items: center; gap: 64px; }
.about-image { border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; }
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about h2 { margin-top: 8px; }
.about p:not(.eyebrow) { margin-top: 16px; max-width: 56ch; }
.about .inline-link { margin-top: 8px; }
.enrollment { padding: 48px 0; background: var(--panel); color: var(--on-dark); }
.enrollment-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.enrollment .eyebrow { color: var(--on-dark); }
.enrollment h2 { color: var(--white); margin: 8px 0 12px; }
.enrollment-info { display: flex; align-items: center; flex-wrap: wrap; gap: 0 20px; margin-top: 12px; font-size: 14px; font-variant-numeric: tabular-nums; }
.enrollment-info a { color: var(--white); text-decoration: underline; text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 44px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px 64px; }
.contact-details { display: grid; gap: 16px; align-content: start; justify-items: start; overflow-wrap: anywhere; }
.contact-details small { display: block; color: var(--meta); margin-bottom: 4px; font-size: 13px; }
.contact-details div > a { display: inline-flex; align-items: center; min-height: 40px; color: var(--navy); margin-right: 12px; }
.contact-details div > a:hover { text-decoration: underline; }
.contact-details > .inline-link { margin-block: -8px; }
.socials { display: flex; flex-wrap: wrap; font-size: 14px; }
.map { min-width: 0; display: grid; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.map iframe { width: 100%; height: clamp(248px, 26vw, 336px); border: 0; border-bottom: 1px solid var(--line); border-radius: 15px 15px 0 0; background: var(--light); }
.map-footer { padding: 16px 20px; }
.map-footer .button { max-width: 100%; }
footer { padding: 40px 0 0; border-top: 1px solid var(--line); background: var(--light); }
.footer-grid { display: grid; grid-template-columns: 1.55fr 1fr 1fr .85fr; gap: 24px; }
.footer-grid h3 { font-size: 15px; margin-bottom: 8px; }
.footer-grid p, .footer-grid > div > a:not(.brand) { color: var(--muted); font-size: 14px; }
.footer-grid > div > a:not(.brand) { display: flex; width: fit-content; align-items: center; min-height: 36px; }
.footer-grid p { margin-top: 12px; }
.copyright { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 16px 0; margin-top: 24px; border-top: 1px solid var(--line); color: var(--meta); font-size: 12px; }
.floating { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 16px; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); position: fixed; z-index: 12; background: #146a46; color: var(--white); border: 1px solid #fff5; border-radius: 24px; box-shadow: 0 4px 12px #132a4033; font-size: 14px; font-weight: 600; transition: background-color 160ms var(--ease); }
.floating:hover { background: #105437; }
.floating svg { width: 22px; height: 22px; fill: currentColor; }
dialog { --dialog-pad: 32px; width: min(600px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: var(--dialog-pad); border: 1px solid var(--line); border-radius: 16px; background: var(--white); color: var(--muted); }
dialog::backdrop { background: #132a40ae; }
dialog h2 { font-size: clamp(24px, 4vw, 36px); }
dialog > p { margin: 12px 0; }
.home-detail-body { display: grid; gap: 12px; margin-top: 12px; }
.home-detail-body ul { margin: 0; padding-inline-start: 24px; }
.home-detail-body li + li { margin-top: 4px; }
dialog .eyebrow { padding-right: 52px; }
dialog > .button { margin-top: 8px; }
dialog .close, #details .close { position: absolute; inset: 12px 12px auto auto; z-index: 1; width: 44px; min-height: 44px; padding: 0; background: var(--white); color: var(--deep); border: 1px solid var(--outline); border-radius: var(--radius); font-size: 24px; font-weight: 400; }
dialog .close:hover { background: var(--light); }
/* O catálogo preserva busca, filtros, listas e diálogos. */
.catalogs { gap: 20px; }
.catalog { padding: 24px; border: 1px solid var(--line); border-radius: 12px; }
.catalog-head .eyebrow, .catalog-meta { text-transform: none; letter-spacing: normal; font-weight: 400; color: var(--meta); }
.catalog-head :is(h2, h3) { font-size: 24px; line-height: 1.15; }
.catalog-tools { gap: 12px; }
.catalog-search { border-color: var(--outline); border-radius: var(--radius); }
.catalog-search:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.catalog-search svg, .catalog-cta svg { stroke-width: 1.5; }
.catalog-filters { gap: 8px; scrollbar-width: thin; padding: 4px; margin-inline: -4px; }
.catalog-filters::-webkit-scrollbar { display: revert; }
.chip { border-radius: var(--radius); min-height: 40px; border-color: var(--outline); padding: 4px 12px; }
.chip[aria-pressed="true"] { background: var(--light); color: var(--deep); border-color: var(--deep); font-weight: 600; }
.catalog-item { grid-template-columns: 80px minmax(0, 1fr) auto; padding: 12px 4px; gap: 12px; border-radius: var(--radius); transition: background-color 160ms var(--ease); }
.catalog-item:focus-visible { outline-offset: -3px; }
.catalog-thumb, .catalog-ead .catalog-thumb { width: 80px; height: 64px; border-radius: 6px; background: var(--light); }
.catalog-thumb svg { width: 18px; height: 18px; stroke: var(--muted); stroke-width: 1.5; }
.catalog-title, .catalog-cta, a[aria-current="page"] { font-weight: 600; }
.catalog-info { gap: 4px; }
.catalog-cta svg { transition: none; }
.catalog-item:hover .catalog-cta svg { transform: none; }
.catalog-more { display: flex; }
.catalog-more:hover span { color: var(--muted); }
#details { max-height: calc(100dvh - 32px); padding: var(--dialog-pad); }
.catalog-head h2 { color: var(--deep); letter-spacing: -.02em; }
@media (max-width: 740px) { .catalog-head h2 { text-wrap: wrap; } }
.detail-image { width: calc(100% + 2 * var(--dialog-pad)); max-width: none; height: clamp(152px, 31vw, 232px); object-fit: cover; margin: calc(-1 * var(--dialog-pad)) calc(-1 * var(--dialog-pad)) 24px; background: var(--light); }
.detail-note { border-left: 0; border-radius: var(--radius); padding: 12px; }
@media (max-width: 1080px) {
  .wrap { width: calc(100% - 48px); }
  .nav, nav { gap: 16px; }
  .portal { padding-left: 12px; }
  .hero-copy { padding: 36px; }
  .hero-break { display: none; }
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { gap: 32px; }
}
@media (max-width: 900px) {
  .nav > .button { display: none; }
  .hero-copy { padding: 32px; }
  .hero :is(h1, h2) { font-size: clamp(36px, 5.5vw, 52px); }
  .section { padding: 56px 0; }
}
@media (max-width: 740px) {
  html { scroll-padding-top: 72px; }
  .wrap { width: calc(100% - 32px); }
  .topbar .wrap { min-height: 32px; }
  .topbar .wrap > span { display: none; }
  .nav { min-height: 64px; gap: 8px; }
  .brand { gap: 8px; }
  .brand strong { font-size: 19px; }
  .brand small { font-size: 10px; }
  .mark, .mark img { height: 36px; }
  .mark { width: 36px; }
  .portal { font-size: 12px; padding: 0 4px; border: 0; margin-left: auto; }
  .menu-toggle { display: inline-grid; order: 3; width: 44px; min-height: 44px; padding: 0; color: var(--deep); background: var(--white); border-color: var(--outline); }
  nav { display: none; position: absolute; inset: calc(100% + 4px) 0 auto; margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 8px; box-shadow: 0 8px 24px #132a401a; }
  nav.open { display: grid; gap: 0; }
  nav a { padding-inline: 12px; }
  nav a:hover { background: var(--light); }
  .hero { padding: 16px 0 32px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding: 28px 24px; gap: 16px; }
  .hero :is(h1, h2) { max-width: 14ch; }
  .hero .actions :is(.button, .text-link) { padding-inline: 12px; font-size: 14px; }
  .hero-controls { grid-row: 1; padding: 2px 8px; border-top: 0; border-bottom: 1px solid var(--dark-line); }
  .hero-photo img { aspect-ratio: 3 / 2; height: auto; }
  .hero-photo figcaption { padding: 8px 12px; }
  .hero-contact { padding-top: 12px; }
  .section, .enrollment { padding: 40px 0; }
  .section-heading { margin-bottom: 20px; }
  .desktop { display: none; }
  .benefits .wrap, .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .benefits h2 { max-width: none; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .floating { width: 52px; min-height: 52px; padding: 0; border-radius: 50%; bottom: max(12px, env(safe-area-inset-bottom)); right: max(12px, env(safe-area-inset-right)); }
  .floating svg { width: 24px; height: 24px; }
  .floating span { display: none; }
}
@media (max-width: 480px) {
  .course-grid { grid-template-columns: minmax(0, 1fr); }
  .course-image { aspect-ratio: 16 / 9; }
  .benefit-grid { gap: 16px; }
  .catalog { padding: 16px; }
  .catalog-item { grid-template-columns: 64px minmax(0, 1fr); }
  .catalog-thumb, .catalog-ead .catalog-thumb { width: 64px; height: 56px; }
  dialog { --dialog-pad: 24px; }
}
@media (max-width: 345px) {
  .brand small { display: none; }
  .hero-copy { padding-inline: 16px; }
  .hero :is(h1, h2) { font-size: 34px; }
}
@keyframes surface-enter {
  from { opacity: 0; transform: translateY(var(--entry-shift, 8px)); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes course-detail-enter {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes course-backdrop-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}
.course-card { transition: border-color 160ms var(--ease); }
.course-card:focus-within, .course-card:hover { border-color: var(--outline); }
@media (prefers-reduced-motion: no-preference) {
  #details[open] { animation: course-detail-enter 350ms var(--ease); }
  #details[open]::backdrop { animation: course-backdrop-enter 220ms var(--ease); }
  .hero .actions .button svg { transition: transform 160ms var(--ease); }
  .hero .actions .button:is(:hover, :focus-visible) svg { transform: translateX(4px); }
}
@media (max-width: 740px) and (prefers-reduced-motion: no-preference) {
  nav.open { --entry-shift: -4px; animation: surface-enter 180ms var(--ease); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .hero-select button[aria-pressed="true"]::before { transform: none; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
