/* Paideia — site institucional. HTML, CSS e JavaScript puros, sem dependências externas. */
:root {
  --hero-1: #1e1b4b;
  --hero-2: #3730a3;
  --brand: #312e81;
  --accent: #6366f1;
  --hero-accent: #c7d2fe;
  --soft: #eef0fb;
  --link: #4f46e5;
  --ink: #1b2733;
  --muted: #5b6875;
  --line: #e3e8ed;
  --paper: #ffffff;
  --radius: 16px;
  --shadow: 0 24px 60px rgba(15, 30, 45, .16);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "DejaVu Sans", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; }
code { font: .9em ui-monospace, "DejaVu Sans Mono", monospace; background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 5px; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: #fff; color: var(--brand); border-radius: 8px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; height: 72px; background: rgba(255,255,255,.95); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--brand); flex: none; }
.icon { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.brand-name { color: var(--brand); font-size: 22px; font-weight: 800; letter-spacing: -.04em; }
.brand-name span { color: var(--accent); }
.main-nav { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 600; }
.main-nav a { color: #44515e; text-decoration: none; }
.main-nav a:hover { color: var(--link); }
.main-nav .nav-cta { padding: 10px 16px; color: #fff; background: var(--brand); border-radius: 9px; }
.main-nav .nav-cta:hover { color: #fff; filter: brightness(1.15); }
.menu-toggle { display: none; border: 0; background: none; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; margin: 5px 0; background: var(--brand); transition: .2s; }

/* hero */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(115deg, var(--hero-1) 0%, var(--hero-2) 100%); }
.hero-grid { position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px); background-size: 46px 46px; mask-image: linear-gradient(90deg, transparent, #000 40%, #000 70%, transparent); }
.hero-content { position: relative; display: grid; grid-template-columns: .95fr 1.05fr; gap: 48px; align-items: center; padding: 72px 0 84px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; color: var(--hero-accent); font-size: 12px; font-weight: 700; letter-spacing: .16em; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hero-accent); box-shadow: 0 0 0 5px rgba(255,255,255,.1); }
h1 { margin-bottom: 20px; font-size: clamp(36px, 4.8vw, 60px); font-weight: 800; letter-spacing: -.035em; }
h1 span { color: var(--hero-accent); }
.hero-lead { margin-bottom: 12px; font-size: 19px; font-weight: 600; color: #fff; }
.hero-description { color: rgba(255,255,255,.78); font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 26px; }
.button { display: inline-flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 20px; border-radius: 10px; font-size: 15px; font-weight: 700; text-decoration: none; transition: transform .15s, filter .15s, background .15s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--brand); background: #fff; }
.button-quiet { color: #fff; }
.button-quiet:hover { background: rgba(255,255,255,.1); }
.button-solid { color: #fff; background: var(--brand); }
.button-solid:hover { filter: brightness(1.15); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 6px 12px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: rgba(255,255,255,.88); font-size: 13px; }
.hero-shot { margin: 0; }
.hero-shot figcaption { margin-top: 12px; color: rgba(255,255,255,.65); font-size: 13px; text-align: center; }
.window { overflow: hidden; border-radius: 12px; background: #1e1e2e; box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.12); }
.window-bar { display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; background: #11111b; }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #45475a; }
.window-bar i:first-child { background: #f38ba8; }
.window-bar i:nth-child(2) { background: #f9e2af; }
.window-bar i:nth-child(3) { background: #a6e3a1; }
.window-bar span { margin-left: 8px; color: #a6adc8; font-size: 12px; }

/* sections */
.section { padding: 92px 0; }
.section-soft { background: var(--soft); }
.section-dark { color: #fff; background: linear-gradient(115deg, var(--hero-1), var(--hero-2)); }
.section-dark .section-heading p:not(.kicker), .section-dark article p { color: rgba(255,255,255,.78); }
.section-dark .kicker { color: var(--hero-accent); }
.kicker { margin-bottom: 14px; color: var(--link); font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.section-heading { max-width: 720px; margin-bottom: 44px; }
.section-heading h2, .split h2 { margin-bottom: 14px; font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; }
.section-heading p, .split p { color: var(--muted); font-size: 17px; }
.note { max-width: 860px; margin: 32px 0 0; padding: 14px 18px; border-left: 4px solid var(--accent); background: var(--soft); color: var(--muted); font-size: 14px; border-radius: 0 10px 10px 0; }

/* features */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.feature { padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-number { display: inline-block; margin-bottom: 14px; color: var(--accent); font-size: 13px; font-weight: 800; }
.feature h3 { margin-bottom: 8px; font-size: 19px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* gallery */
.gallery-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.gallery-tabs button { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: 600 14px var(--font); cursor: pointer; }
.gallery-tabs button[aria-selected="true"] { color: #fff; background: var(--brand); border-color: var(--brand); }
.gallery-view { margin: 0; }
.zoom img { width: 100%; }
.zoom { display: block; width: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #1e1e2e; box-shadow: var(--shadow); cursor: zoom-in; }
.gallery-view figcaption { margin-top: 14px; color: var(--muted); font-size: 15px; }
.lightbox { max-width: min(1100px, 96vw); padding: 0; border: 0; border-radius: 12px; background: #11111b; }
.lightbox::backdrop { background: rgba(5,10,15,.82); }
.lightbox { overflow: hidden; }
.lightbox img { width: auto; max-width: 100%; max-height: 92vh; object-fit: contain; }
.lightbox-close { position: absolute; top: 8px; right: 10px; width: 38px; height: 38px; border: 0; border-radius: 50%; color: #fff; background: rgba(0,0,0,.55); font-size: 24px; line-height: 1; cursor: pointer; }

/* roles */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.mini-title { margin: 30px 0 10px; font-size: 16px; }
.ticks { margin: 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding: 6px 0 6px 28px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.roles { display: grid; gap: 14px; }
.role { padding: 20px 22px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; }
.role h3 { margin-bottom: 6px; font-size: 18px; }
.role p { margin: 0; color: var(--muted); font-size: 15px; }

/* tech */
.tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.tech-grid article { padding: 24px; border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); background: rgba(255,255,255,.05); }
.tech-grid h3 { margin-bottom: 8px; font-size: 18px; }
.tech-grid p { margin: 0; font-size: 15px; }

/* obtain */
.small { margin-top: 12px; font-size: 14px !important; }
.steps ol { counter-reset: step; margin: 0 0 26px; padding: 0; list-style: none; }
.steps ol > li { counter-increment: step; position: relative; display: grid; gap: 2px; padding: 0 0 18px 52px; }
.steps ol > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--brand); font-weight: 800; }
.steps ol > li span { color: var(--muted); font-size: 15px; }
.roadmap { padding: 20px 22px; border-radius: 12px; background: var(--soft); }
.roadmap h3 { margin-bottom: 8px; font-size: 16px; }
.roadmap ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 15px; }

/* family */
.family { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.family-card { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.family-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.family-card > span:nth-child(2) { flex: 1; display: grid; }
.family-card small { color: var(--muted); font-size: 14px; }
.family-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; flex: none; }
.fam-bookroom .family-mark { background: #102b46; }
.fam-dentarius .family-mark { background: #0f3d52; }
.fam-ergasia .family-mark { background: #7c2d12; }
.fam-paideia .family-mark { background: #312e81; }

/* footer */
.site-footer { padding: 34px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-inner p { margin: 0; color: var(--muted); font-size: 14px; }
.back-top { font-size: 14px; font-weight: 600; text-decoration: none; }
.brand-footer .brand-mark { width: 32px; height: 32px; }
.brand-footer .icon { width: 23px; height: 23px; }
.brand-footer .brand-name { font-size: 19px; }

@media (max-width: 920px) {
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 72px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 18px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 14px 30px rgba(0,0,0,.08); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .main-nav .nav-cta { margin-top: 10px; text-align: center; border: 0; }
  .hero-content, .split { grid-template-columns: 1fr; }
  .hero-content { padding: 48px 0 60px; gap: 36px; }
  .section { padding: 64px 0; }
}
@media (max-width: 520px) {
  .container { width: calc(100% - 32px); }
  .hero-lead { font-size: 17px; }
  .button { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
