/* Step Up Initiative website. Same brand tokens as the Career Path Finder, tuned for a wider page.
   Layout rules:
   - ONE container (.wrap): max 1120px, 16px side gutter (24px from 768px up). Every section uses it,
     so every left and right edge lines up.
   - Mobile-first. Sections stack on phones and become grids from 768px.
   - Vertical rhythm from the --space scale only. Tap targets are at least 48px. */

@font-face { font-family: "Lexend"; src: url("../fonts/lexend-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-latin-wght-normal.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  --paper: #fbf8f3;
  --surface: #ffffff;
  --line: #e4ddd2;
  --ink: #1f2a37;
  --ink-muted: #566170;
  --deep-teal: #0f3b38;
  --teal: #0b7a70;
  --on-teal: #ffffff;
  --teal-soft: #e2f3f0;
  --amber: #f5a524;
  --amber-soft: #fff1db;
  --amber-ink: #8a4b06;
  --focus: #b06a00;
  --whatsapp: #1f7a45;
  --m1: #3fae9f; --m2: #0f8a7e; --m3: #0a5c55;
  --footer-bg: #0f3b38; --footer-ink: #d4f1ec; --footer-muted: #9fc9c3; --footer-line: #24524e;
  --shadow: 0 1px 2px rgba(31, 42, 55, .06), 0 6px 20px rgba(31, 42, 55, .06);

  --font-display: "Lexend", "Segoe UI", system-ui, sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, sans-serif;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;
  --radius-sm: 8px; --radius-md: 14px; --radius-lg: 22px; --radius-pill: 999px;
  --gutter: 16px;
  --header-h: 68px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #11191e; --surface: #18232a; --line: #2a3840;
    --ink: #eaf0f2; --ink-muted: #a9b6bd; --deep-teal: #cdeee9;
    --teal: #5fd3c4; --on-teal: #0b1a1c; --teal-soft: #173a37;
    --amber: #f5b94a; --amber-soft: #3a2614; --amber-ink: #fdba74;
    --focus: #f5b94a;
    --m1: #9fded5; --m2: #5fd3c4; --m3: #eaf0f2;
    --footer-bg: #0c1317; --footer-ink: #eaf0f2; --footer-muted: #a9b6bd; --footer-line: #2a3840;
    --shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #11191e; --surface: #18232a; --line: #2a3840;
  --ink: #eaf0f2; --ink-muted: #a9b6bd; --deep-teal: #cdeee9;
  --teal: #5fd3c4; --on-teal: #0b1a1c; --teal-soft: #173a37;
  --amber: #f5b94a; --amber-soft: #3a2614; --amber-ink: #fdba74;
  --focus: #f5b94a;
  --m1: #9fded5; --m2: #5fd3c4; --m3: #eaf0f2;
  --footer-bg: #0c1317; --footer-ink: #eaf0f2; --footer-muted: #a9b6bd; --footer-line: #2a3840;
  --shadow: none;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--space-4)); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  font: 500 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; color: var(--ink); text-wrap: balance; }
p { text-wrap: pretty; }
img, svg { display: block; max-width: 100%; }
a { color: var(--teal); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.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; }
.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 50; padding: var(--space-3) var(--space-4); background: var(--surface); color: var(--ink); border-radius: var(--radius-sm); box-shadow: var(--shadow); font-weight: 700; }
.skip:focus { top: var(--space-3); }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: calc(1120px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 24px; } body { font-size: 18px; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 52px; padding: 0 var(--space-5); border: 0; border-radius: var(--radius-md);
  background: var(--teal); color: var(--on-teal); box-shadow: var(--shadow);
  font: 700 17px/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.ghost { background: var(--teal-soft); color: var(--teal); box-shadow: none; }
.btn.whatsapp { background: var(--whatsapp); color: #ffffff; }
.btn.light { background: var(--surface); color: var(--ink); }
.actions { display: flex; flex-direction: column; gap: var(--space-3); }
.actions .btn { width: 100%; }
@media (min-width: 560px) { .actions { flex-direction: row; flex-wrap: wrap; } .actions .btn { width: auto; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.logo-link { display: flex; align-items: center; min-height: 48px; border-radius: var(--radius-sm); }
.logo-link img { height: 36px; width: auto; }
.nav { display: none; }
.nav ul { list-style: none; padding: 0; display: flex; align-items: center; gap: var(--space-1); }
.nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--space-3); border-radius: var(--radius-sm); color: var(--ink-muted); font-weight: 700; font-size: 16px; text-decoration: none; }
.nav a:not(.btn):hover { color: var(--ink); background: var(--teal-soft); }
.nav .btn { min-height: 44px; font-size: 16px; padding: 0 var(--space-4); margin-left: var(--space-2); }
.menu-btn { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 48px; padding: 0 var(--space-3); margin-right: calc(-1 * var(--space-3)); border: 0; border-radius: var(--radius-sm); background: none; color: var(--ink); font: 700 16px var(--font-body); cursor: pointer; }
.menu-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.menu-btn .close { display: none; }
.menu-btn[aria-expanded="true"] .open { display: none; }
.menu-btn[aria-expanded="true"] .close { display: block; }
/* Mobile menu panel */
.nav.open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.nav.open ul { flex-direction: column; align-items: stretch; gap: 0; padding: var(--space-2) var(--gutter) var(--space-4); max-width: calc(1120px + 2 * var(--gutter)); margin-inline: auto; }
.nav.open a:not(.btn) { display: flex; min-height: 52px; padding: 0; font-size: 18px; color: var(--ink); border-bottom: 1px solid var(--line); border-radius: 0; }
.nav.open a:not(.btn):hover { background: none; color: var(--teal); }
.nav.open .btn { width: 100%; margin: var(--space-4) 0 0; min-height: 52px; font-size: 17px; }
@media (min-width: 960px) {
  .menu-btn { display: none; }
  .nav, .nav.open { display: block; position: static; background: none; border: 0; box-shadow: none; }
  .nav.open ul { flex-direction: row; align-items: center; padding: 0; gap: var(--space-1); }
  .nav.open a:not(.btn) { display: inline-flex; min-height: 48px; padding: 0 var(--space-3); font-size: 16px; color: var(--ink-muted); border: 0; border-radius: var(--radius-sm); }
  .nav.open .btn { width: auto; margin: 0 0 0 var(--space-2); min-height: 44px; font-size: 16px; }
}

/* Sections */
main { flex: 1; }
.section { padding-block: var(--space-8); }
@media (min-width: 768px) { .section { padding-block: var(--space-9); } }
.section.tint { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: var(--space-3); max-width: 680px; margin-bottom: var(--space-6); }
@media (min-width: 768px) { .section-head { margin-bottom: var(--space-7); } }
.eyebrow { font-size: 14px; font-weight: 800; line-height: 18px; text-transform: uppercase; letter-spacing: .08em; color: var(--teal); }
h2 { font-size: clamp(28px, 4.2vw, 40px); }
h3 { font-size: 20px; line-height: 1.3; }
.lead { font-size: clamp(18px, 2.1vw, 21px); line-height: 1.55; color: var(--ink-muted); }
.muted { color: var(--ink-muted); }

/* Hero */
.hero { padding-block: var(--space-7) var(--space-8); }
.hero-grid { display: grid; gap: var(--space-7); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: var(--space-5); }
.hero h1 { font-size: clamp(36px, 7vw, 60px); line-height: 1.08; letter-spacing: -0.025em; }
.hero h1 em { font-style: normal; color: var(--teal); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; padding: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 var(--space-3); border-radius: var(--radius-pill); background: var(--teal-soft); color: var(--teal); font-size: 15px; font-weight: 700; }
.chip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.hero-art { display: none; }
@media (min-width: 900px) {
  .hero { padding-block: var(--space-8) var(--space-9); }
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
  .hero-art { display: block; }
}
.hero-art svg { width: 100%; height: auto; }
.art-bg { fill: var(--teal-soft); }
.art-1 { fill: var(--m1); } .art-2 { fill: var(--m2); } .art-3 { fill: var(--m3); } .art-dot { fill: var(--amber); }
.art-card { fill: var(--surface); stroke: var(--line); }
.art-line { fill: var(--line); }
.art-accent { fill: var(--teal); }

/* Cards */
.grid { display: grid; gap: var(--space-4); }
@media (min-width: 640px) { .grid.two, .grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid.four { grid-template-columns: repeat(4, 1fr); } .grid { gap: var(--space-5); } }
.card { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.section.tint .card { background: var(--paper); box-shadow: none; }
.card p { color: var(--ink-muted); font-size: 16px; }
.icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--radius-md); background: var(--teal-soft); color: var(--teal); flex: none; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon.amber { background: var(--amber-soft); color: var(--amber-ink); }

/* Steps (the brand's rising steps) */
.steps { list-style: none; padding: 0; display: grid; gap: var(--space-4); counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); align-items: end; gap: var(--space-5); } }
.step { position: relative; display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); border-radius: var(--radius-lg); background: var(--teal-soft); }
.step-num { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius-md); background: var(--teal); color: var(--on-teal); font: 700 18px var(--font-display); }
.step p { color: var(--ink-muted); font-size: 16px; }
@media (min-width: 768px) {
  .step:nth-child(1) { min-height: 260px; }
  .step:nth-child(2) { min-height: 300px; }
  .step:nth-child(3) { min-height: 340px; }
  .step:nth-child(3)::after { content: ""; position: absolute; top: -10px; right: 24px; width: 20px; height: 20px; border-radius: 50%; background: var(--amber); }
}

/* Audience split */
.split { display: grid; gap: var(--space-4); }
@media (min-width: 768px) { .split { grid-template-columns: 1fr 1fr; gap: var(--space-5); } }
.ticks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.ticks li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: 16px; }
.ticks svg { width: 20px; height: 20px; flex: none; margin-top: 3px; fill: none; stroke: var(--teal); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: var(--space-3); max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.section.tint .faq details { background: var(--paper); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 56px; padding: var(--space-3) var(--space-5); font: 600 17px/1.4 var(--font-display); cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(45deg) translateY(-3px); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding: 0 var(--space-5) var(--space-5); color: var(--ink-muted); font-size: 16px; }

/* Contact band */
.cta { display: grid; gap: var(--space-5); padding: var(--space-6) var(--space-5); border-radius: var(--radius-lg); background: var(--deep-teal); color: #ffffff; }
.cta h2 { color: #ffffff; }
.cta p { color: #cdeee9; }
:root[data-theme="dark"] .cta { background: var(--teal-soft); }
.section-head.flush { margin: 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta { background: var(--teal-soft); } }
@media (min-width: 768px) { .cta { grid-template-columns: 1.2fr 1fr; align-items: center; padding: var(--space-7); } .cta .actions { justify-content: flex-end; } }
.contact-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.contact-list a { color: inherit; font-weight: 700; }

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); padding-block: var(--space-7) var(--space-5); font-size: 16px; }
.footer-grid { display: grid; gap: var(--space-6); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--space-5); } }
.footer-brand { display: flex; flex-direction: column; gap: var(--space-4); max-width: 340px; }
.footer-brand img { height: 40px; width: auto; align-self: flex-start; }
.footer-brand p { color: var(--footer-muted); }
.site-footer h2 { font: 800 13px/1.4 var(--font-body); text-transform: uppercase; letter-spacing: .08em; color: var(--footer-muted); margin-bottom: var(--space-2); }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 40px; color: var(--footer-ink); text-decoration: none; font-weight: 600; }
.site-footer li a:hover { text-decoration: underline; }
.site-footer .static { display: block; padding-block: var(--space-2); color: var(--footer-muted); }
.social { flex-direction: row !important; gap: var(--space-2); }
.social a { width: 44px; height: 44px; justify-content: center; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--footer-ink) 10%, transparent); }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.footer-bottom { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--footer-line); color: var(--footer-muted); font-size: 14px; }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-bottom a { color: var(--footer-ink); }
:focus-visible { outline-color: var(--focus); }
.site-footer :focus-visible { outline-color: var(--amber); }

/* Legal pages */
.doc { padding-block: var(--space-7) var(--space-8); }
.doc-inner { max-width: 760px; display: flex; flex-direction: column; gap: var(--space-6); }
.doc h1 { font-size: clamp(32px, 5vw, 44px); }
.doc h2 { font-size: 22px; margin-bottom: var(--space-3); }
.doc h3 { font-size: 17px; margin: var(--space-3) 0 var(--space-2); }
.doc section > * + * { margin-top: var(--space-3); }
.doc p, .doc li { overflow-wrap: anywhere; }
.doc ul { padding-left: 22px; display: flex; flex-direction: column; gap: var(--space-2); }
.doc li::marker { color: var(--teal); }
.summary { background: var(--teal-soft); border-radius: var(--radius-lg); padding: var(--space-5); }
.summary ul { margin-top: var(--space-3); }
.doc .toc { flex-direction: row; }
.toc { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; padding: 0 !important; }
.toc a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-3); border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: 15px; font-weight: 700; text-decoration: none; }
.kv { display: flex; flex-direction: column; gap: var(--space-2); }
.kv div { display: flex; flex-direction: column; gap: 2px; padding: var(--space-3) var(--space-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.kv span { font-size: 14px; color: var(--ink-muted); }
.kv b { font-weight: 700; }

/* 404 */
.notfound { padding-block: var(--space-9); display: flex; flex-direction: column; gap: var(--space-5); align-items: flex-start; }
.notfound h1 { font-size: clamp(32px, 6vw, 52px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  .site-header, .site-footer, .cta, .skip { display: none; }
  body { background: #fff; color: #000; }
}

/* "Find my career" placements */
.after-steps { margin-top: var(--space-6); }
.contact .section-head { max-width: 760px; }
.contact-email { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 48px; max-width: 100%; font: 800 16px/1.3 var(--font-body); color: var(--teal); text-decoration: none; }
@media (min-width: 400px) { .contact-email { font-size: 18px; } }
@media (min-width: 768px) { .contact-email { font: 600 22px/1.3 var(--font-display); } }
.contact-email svg { width: 24px; height: 24px; flex: none; }
.contact-email span { min-width: 0; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* The contact email is long: let it wrap on small phones instead of overflowing. */
.site-footer li a.email { overflow-wrap: anywhere; }
.kv a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -10px; overflow-wrap: anywhere; }
