:root {
  --black: #0a0a0a;
  --surface: #141414;
  --surface-2: #1a1a1a;
  --blue: #1a5fff;
  --blue-hover: #2563eb;
  --white: #ffffff;
  --muted: #94a3b8;
  --border: rgba(26, 95, 255, 0.22);
  --radius: 12px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--white);
  background: var(--black);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }

a,
button,
label {
  -webkit-tap-highlight-color: transparent;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--blue) 55%, transparent);
  outline-offset: 2px;
}

h1, h2, h3, .brand, .footer-brand, .kicker {
  font-family: "Montserrat", "Segoe UI", sans-serif;
}

.wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }

.brand-atlas { color: var(--white); font-weight: 800; letter-spacing: 0.06em; }
.brand-tech { color: var(--blue); font-weight: 800; letter-spacing: 0.06em; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--black) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: flex;
  gap: 0.35rem;
  align-items: baseline;
  font-size: 1.15rem;
  text-decoration: none;
}

.brand.has-logo { align-items: center; }

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  margin-right: 0.35rem;
  flex-shrink: 0;
}

.brand-logo.logo--redonda {
  border-radius: 50%;
  object-fit: cover;
}

.site-nav { display: flex; gap: 1.2rem; }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a:hover,
.site-nav a.is-active { color: var(--white); }

.site-nav a.nav-admin {
  color: #fff;
  background: var(--blue);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.site-nav a.nav-admin:hover {
  background: var(--blue-hover);
  color: #fff;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--white);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font: inherit;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(26, 95, 255, 0.18), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(26, 95, 255, 0.08), transparent 40%),
    linear-gradient(180deg, #0f0f0f, var(--black));
  overflow: hidden;
}

.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-slide.is-active { opacity: 1; }

.hero.has-slides::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.55), rgba(10,10,10,.82));
}

.hero-copy {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 5rem 0;
  max-width: 760px;
}

.hero-copy h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0 0 0.8rem;
  line-height: 1.15;
}

.kicker {
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.kicker .tech { color: var(--blue); }

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}

.btn:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--white);
  background: rgba(26, 95, 255, 0.08);
}

.btn-block { width: 100%; }

.section { padding: 4rem 0; }
.section-soft { background: var(--surface); border-block: 1px solid var(--border); }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-head h2 { margin: 0; font-size: 1.6rem; }
.section-head a { font-weight: 600; }

.page-hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #101010, var(--black));
}

.page-hero h1 { margin: 0.4rem 0; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-hero p { color: var(--muted); max-width: 640px; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.course-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.course-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: var(--shadow);
}

.course-card-link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.course-card-photo {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  background-size: cover;
  background-position: center;
}

.course-card-photo.is-empty {
  background:
    linear-gradient(135deg, rgba(26,95,255,.25), transparent 60%),
    linear-gradient(180deg, #1a1a1a, #0f0f0f);
}

.course-card-body { padding: 1rem 1.1rem 1.2rem; }

.course-card-cat {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}

.course-card-body h3 {
  margin: 0.45rem 0 0.25rem;
  font-size: 1.08rem;
  color: var(--white);
}

.course-card-meta,
.course-card-price {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.course-card-price { margin-top: 0.35rem; color: var(--white); font-weight: 600; }

.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.info-box {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.info-box p { margin: 0 0 1rem; }
.info-box p:last-child { margin-bottom: 0; }
.info-box a { color: var(--white); }

.feature-list {
  margin: 1rem 0 1.5rem;
  padding-left: 1.2rem;
  color: var(--muted);
}

.feature-list li { margin-bottom: 0.35rem; }

.filter-chips,
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.chip {
  display: inline-flex;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.chip:hover,
.chip.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.empty-state { color: var(--muted); text-align: center; padding: 2rem; }

.curso-hero { padding: 2rem 0 0; }
.curso-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.curso-hero-photo {
  min-height: 320px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-size: cover;
  background-position: center;
}

.curso-hero-photo.is-empty {
  background: linear-gradient(135deg, rgba(26,95,255,.2), #141414);
}

.curso-hero-copy h1 { margin: 0.3rem 0 0.8rem; font-size: clamp(1.8rem, 4vw, 2.4rem); }
.lead { color: var(--muted); font-size: 1.05rem; }

.curso-facts {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
  color: var(--muted);
}

.curso-facts li { margin-bottom: 0.35rem; }
.curso-facts strong { color: var(--white); }

.curso-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}

.curso-content h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.2rem;
}

.curso-content h2:first-child { margin-top: 0; }

.programa {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
}

.curso-sidebar { position: sticky; top: 88px; }

.sidebar-card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.sidebar-card h3 { margin: 0 0 0.5rem; }
.sidebar-price { font-size: 1.4rem; font-weight: 800; margin: 0 0 0.75rem; }

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  color: var(--muted);
}

.sidebar-list li { margin-bottom: 0.25rem; }
.sidebar-card .btn { margin-bottom: 0.5rem; }

.form-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

.form-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.form-card label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0f0f0f;
  color: var(--white);
  font: inherit;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--blue) 40%, transparent);
  border-color: var(--blue);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.check-row {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.check-row input { width: auto; margin-top: 0.2rem; }

.form-aside .hint {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.flash {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.92rem;
}

.flash-ok {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
}

.flash-erro {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.success-box {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 0;
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(26, 95, 255, 0.15);
  border: 2px solid var(--blue);
  color: var(--blue);
  font-size: 1.8rem;
  font-weight: 700;
}

.contact-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 2rem;
}

.contact-cards { display: grid; gap: 1rem; }

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s;
}

.contact-card:hover {
  border-color: var(--blue);
  color: inherit;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  flex-shrink: 0;
}

.contact-card strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.contact-card div span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.15rem;
}

.contact-icon svg {
  display: block;
}

.inst-photo {
  min-height: 320px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-size: cover;
  background-position: center;
}

.inst-photo.is-empty {
  background: linear-gradient(135deg, rgba(26,95,255,.18), #141414);
}

.site-footer {
  margin-top: 2rem;
  padding: 2.5rem 0 1rem;
  border-top: 1px solid var(--border);
  background: #080808;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.footer-brand { font-size: 1.1rem; margin: 0 0 0.5rem; }
.footer-label {
  margin: 0 0 0.5rem;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-grid p { margin: 0 0 0.35rem; color: var(--muted); font-size: 0.92rem; }
.footer-grid a { color: var(--white); }

.footer-copy {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 30;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  text-decoration: none;
}

.btn-wa {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
}

.btn-wa:hover {
  background: #1ebe57;
  border-color: #1ebe57;
  color: #fff;
}

.curso-wa-hint,
.sidebar-hint {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.sidebar-hint {
  margin: 0 0 0.85rem;
}

@media (max-width: 900px) {
  .split,
  .curso-hero-grid,
  .curso-layout,
  .form-layout,
  .contact-layout,
  .footer-grid { grid-template-columns: 1fr; }

  .curso-sidebar { position: static; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1rem;
    background: var(--black);
    border-bottom: 1px solid var(--border);
  }
  .site-nav.is-open { display: flex; }
  .form-row { grid-template-columns: 1fr; }
}
