/* Reset básico */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
}

:root {
  --bg: #0f1221;
  --surface: #161a33;
  --fg: #e9ecf1;
  --muted: #aab3c5;
  --primary: #6ea8fe;
  --accent: #58d6a8;
  --border: #272c4a;
  --shadow: 0 10px 30px rgba(0,0,0,0.25);
}

[data-theme="light"] {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --fg: #0c1326;
  --muted: #4b5675;
  --primary: #2b6ef6;
  --accent: #0bb489;
  --border: #d9e1f2;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(10px);
  background: color-mix(in oklab, var(--bg), transparent 40%);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { font-weight: 700; color: var(--fg); text-decoration: none; }
.brand .role { color: var(--accent); font-weight: 600; }
.nav { display: flex; gap: 16px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--fg); }
.nav button { background: transparent; color: var(--fg); border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; cursor: pointer; }

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  padding: 64px 20px;
}
.hero h1 { font-size: 44px; margin: 0 0 8px; }
.subtitle { color: var(--muted); margin: 0 0 16px; }
.cta { display: flex; gap: 12px; margin-top: 8px; }
.btn { padding: 10px 16px; border-radius: 10px; border: 1px solid var(--border); color: var(--fg); text-decoration: none; background: var(--surface); display: inline-block; line-height: 1; }
.btn.primary { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #0b0f1d; font-weight: 700; border: none; }
.hero-image img { width: 220px; height: 220px; object-fit: cover; border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow); }

.section { padding: 40px 0; }
.section h2 { margin: 0 0 16px; font-size: 28px; }

.badges { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.badges li { border: 1px solid var(--border); background: var(--surface); padding: 6px 10px; border-radius: 999px; color: var(--muted); }

.timeline { display: grid; gap: 14px; }
.card { border: 1px solid var(--border); background: var(--surface); border-radius: 12px; padding: 14px; box-shadow: var(--shadow); }
.card h3 { margin: 0; font-size: 18px; }
.card .meta { color: var(--muted); font-size: 14px; margin: 4px 0 8px; }
.card ul { margin: 0; padding-left: 18px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.tile { position: relative; overflow: hidden; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.tile img { width: 100%; height: 180px; object-fit: cover; object-position: center; display: block; }
.tile .tile-caption { padding: 10px; font-size: 14px; color: var(--muted); }
.tile .tile-caption .tile-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tile .tile-caption .tile-title { color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.contact {
  display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
}
.contact a { color: var(--fg); text-decoration: none; }

.site-footer { border-top: 1px solid var(--border); padding: 24px 0; color: var(--muted); }

.btn.small { padding: 6px 10px; font-size: 13px; border-radius: 8px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-image { order: -1; }
  .hero-image img { width: 160px; height: 160px; }
}

/* Acessibilidade: foco visível */
.nav a:focus-visible, .nav button:focus-visible, .btn:focus-visible, .contact a:focus-visible, .brand:focus-visible, .skip-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Banner do curso */
.curso-banner {
  margin-bottom: 12px;
}
.curso-banner img {
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: block;
  background: var(--surface);
}

/* Link de pulo para conteúdo */
.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--surface);
  color: var(--fg);
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  z-index: 1000;
}
.skip-link:focus {
  left: 8px;
}

