/* ============================================================
   Atlantes — Individual Course Pages (curso.css)
   Shared layout for all course landing pages.
   Body class: atl-curso
   ============================================================ */

:root {
  --blue: #0066ff; --blue-dark: #002b5c; --blue-deep: #001932;
  --blue-soft: #eaf6ff; --cyan: #16c7ff; --green: #20c86b;
  --text: #0b1f33; --muted: #5d7085; --line: #dcecf8;
  --shadow: 0 24px 60px rgba(0,40,90,.12);
}

*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);background:#fff;line-height:1.6;-webkit-font-smoothing:antialiased}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}
h1,h2,h3,h4{font-family:"Cormorant Garamond",Georgia,serif;font-weight:600;line-height:1}
.container{width:min(1180px,92%);margin:0 auto}

/* Header */
header{position:fixed;top:0;left:0;right:0;z-index:100;background:rgba(255,255,255,.88);backdrop-filter:blur(18px);border-bottom:1px solid rgba(220,236,248,.72)}
.nav{height:76px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand img{width:206px;height:auto;object-fit:contain}
.menu{display:flex;align-items:center;gap:18px;color:#1f3a52;font-size:14px;font-weight:800}
.menu a:hover{color:var(--blue)}
.menu-cta{background:var(--green);color:#fff !important;padding:12px 18px;border-radius:999px;box-shadow:0 14px 30px rgba(32,200,107,.24)}
.mobile-toggle{display:none;background:transparent;border:0;color:var(--blue-dark);cursor:pointer;padding:8px}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:52px;padding:0 26px;border-radius:999px;font-weight:800;font-size:15px;font-family:inherit;transition:.2s;cursor:pointer}
.btn-green{background:var(--green);color:#fff}
.btn-green:hover{filter:brightness(.95)}
.btn-primary{background:var(--blue);color:#fff}
.btn-primary:hover{background:var(--blue-dark)}
.btn-outline{border:2px solid rgba(255,255,255,.5);color:#fff}
.btn-outline:hover{background:rgba(255,255,255,.12)}
.btn-ghost{border:2px solid var(--line);color:var(--blue-dark);background:#fff}
.btn-ghost:hover{border-color:var(--blue);color:var(--blue)}

/* Tag */
.tag{display:inline-flex;border-radius:999px;padding:8px 14px;background:var(--blue-soft);color:var(--blue);font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.1em}

/* ============================================================
   HERO
   ============================================================ */
.curso-hero{
  min-height:78vh;display:flex;align-items:center;position:relative;
  overflow:hidden;color:#fff;padding:120px 0 80px;
  background-size:cover;background-position:center;
}
/* SEO: imagem de fundo via <img> real */
.bg-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
  pointer-events:none;
  z-index:0;
}
.curso-hero::before{
  content:"";position:absolute;inset:0;z-index:1;
  background:linear-gradient(110deg,rgba(0,25,50,.95) 0%,rgba(0,55,110,.78) 42%,rgba(0,20,50,.5) 100%);
}
.curso-hero::after{
  content:"";position:absolute;left:0;right:0;bottom:-1px;height:130px;
  background:linear-gradient(to top,#fff,transparent);
}
.curso-hero .container{position:relative;z-index:2;max-width:780px}
.curso-hero .tag{background:rgba(255,255,255,.14);color:#eaf9ff;margin-bottom:18px}
.curso-hero h1{font-size:clamp(42px,5.8vw,76px);line-height:1.03;letter-spacing:-.02em;margin-bottom:18px}
.curso-hero .sub{font-size:18px;color:#dff2ff;line-height:1.62;max-width:600px;margin-bottom:30px}
.curso-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}

/* Stats bar */
.curso-stats{
  display:flex;background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.18);border-radius:14px;
  overflow:hidden;backdrop-filter:blur(10px);width:fit-content;
}
.curso-stat{padding:12px 24px;border-right:1px solid rgba(255,255,255,.15);text-align:center}
.curso-stat:last-child{border-right:none}
.curso-stat strong{display:block;font-family:'Inter',Arial,sans-serif;font-size:24px;font-weight:800;letter-spacing:-0.04em;color:#fff;line-height:1}
.curso-stat em{font-style:normal;font-size:11px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:#bfe6ff;display:block;margin-top:3px}

/* ============================================================
   MAIN LAYOUT: 2 cols — content + sticky aside
   ============================================================ */
.curso-main{padding:52px 0 68px}
.curso-layout{display:grid;grid-template-columns:1fr 340px;gap:60px;align-items:start}

/* Content blocks */
.curso-content>div{padding-bottom:38px;margin-bottom:38px;border-bottom:1px solid var(--line)}
.curso-content>div:last-child{padding-bottom:0;margin-bottom:0;border-bottom:none}
.curso-content h2{font-size:clamp(26px,3vw,38px);color:var(--blue-deep);margin-bottom:18px;line-height:1.1}
.curso-content p{color:var(--muted);font-size:16px;line-height:1.7;margin-bottom:12px}
.curso-content p:last-child{margin-bottom:0}

/* Authority callout (for cave/tech pages) */
.authority-box{
  background:linear-gradient(135deg,var(--blue-deep),#002b5c);
  border-radius:20px;padding:28px 30px;color:#fff;margin-top:6px;
}
.authority-box strong{display:block;font-family:'Inter',Arial,sans-serif;font-size:22px;font-weight:800;letter-spacing:-0.03em;margin-bottom:8px;color:#eaf9ff}
.authority-box p{color:#cfe6ff;font-size:15px;line-height:1.6;margin:0}

/* Check list */
.check-list{list-style:none;display:flex;flex-direction:column;gap:10px}
.check-list li{display:flex;align-items:flex-start;gap:10px;font-size:15px;color:var(--text);line-height:1.5}
.check-list li::before{
  content:"";width:20px;height:20px;flex-shrink:0;border-radius:999px;margin-top:2px;
  background:var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230066ff' d='m9 16.17-4.17-4.17-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/13px no-repeat;
}
.check-list.green li::before{
  background-color:rgba(32,200,107,.12);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2320c86b' d='m9 16.17-4.17-4.17-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
}

/* Requirements */
.req-list{list-style:none;display:flex;flex-direction:column;gap:8px}
.req-list li{display:flex;align-items:baseline;gap:10px;font-size:15px;color:var(--muted);line-height:1.5}
.req-list li::before{content:"·";color:var(--blue);font-size:20px;line-height:1;flex-shrink:0}

/* Level cards (for course families like tech/cave/especialidades) */
.level-cards{display:flex;flex-direction:column;gap:16px}
.level-card{
  border:1px solid var(--line);border-radius:18px;padding:22px 24px;
  display:flex;gap:18px;align-items:flex-start;transition:.2s;
}
.level-card:hover{border-color:var(--cyan);box-shadow:0 8px 28px rgba(0,40,90,.08)}
.level-card-num{
  width:36px;height:36px;border-radius:999px;background:var(--blue-soft);
  color:var(--blue);font-weight:900;font-size:14px;display:flex;
  align-items:center;justify-content:center;flex-shrink:0;margin-top:2px;
}
.level-card h3{font-size:21px;color:var(--blue-deep);margin-bottom:6px}
.level-card p{font-size:14px;color:var(--muted);line-height:1.58;margin:0}
.level-card .level-meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.level-card .level-meta em{
  font-style:normal;background:var(--blue-soft);color:var(--blue-dark);
  font-size:11px;font-weight:800;padding:5px 10px;border-radius:999px;
}

/* ============================================================
   STICKY ASIDE / CTA CARD
   ============================================================ */
.curso-aside{position:sticky;top:96px}
.cta-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:28px;box-shadow:0 16px 48px rgba(0,40,90,.1)}
.cta-badge{
  display:inline-flex;align-items:center;gap:6px;
  background:var(--blue-soft);color:var(--blue);
  font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.1em;
  padding:6px 12px;border-radius:999px;margin-bottom:14px;
}
.cta-card h3{font-size:22px;color:var(--blue-deep);margin-bottom:8px;line-height:1.18}
.cta-price-main{font-size:15px;color:var(--muted);margin-bottom:2px}
.cta-price-main strong{font-size:26px;font-weight:800;color:var(--blue-deep)}
.cta-price-sub{font-size:13px;color:var(--muted);margin-bottom:6px}
.cta-price-obs{font-size:12px;color:var(--muted);margin-bottom:16px;padding:8px 10px;background:var(--surface);border-radius:8px;line-height:1.5}
.cta-price-obs strong{color:var(--blue-deep)}
.cta-card .cta-sub{font-size:14px;color:var(--muted);line-height:1.6;margin-bottom:20px}
.cta-card .btn{width:100%;margin-bottom:10px}
.cta-card .btn:last-of-type{margin-bottom:0}
.trust-chips{display:flex;flex-direction:column;gap:6px;margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}
.trust-chips span{font-size:12px;font-weight:700;color:var(--muted);display:flex;align-items:center;gap:6px}
.trust-chips span::before{content:"✓";color:var(--green);font-weight:900}

/* ============================================================
   PROGRESSION STRIP
   ============================================================ */
.progression{background:var(--blue-soft);padding:30px 0;overflow:hidden}
.progression-inner{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:0;row-gap:12px}
.prog-step{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:100px;text-align:center}
.prog-dot{width:30px;height:30px;border-radius:999px;background:var(--line);border:2px solid var(--line);display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;color:var(--muted)}
.prog-step.active .prog-dot{background:var(--blue);border-color:var(--blue);color:#fff;box-shadow:0 0 0 4px rgba(0,102,255,.18)}
.prog-step.done .prog-dot{background:var(--green);border-color:var(--green);color:#fff}
.prog-label{font-size:11px;font-weight:700;color:var(--muted);line-height:1.3}
.prog-step.active .prog-label{color:var(--blue);font-weight:800}
.prog-line{width:36px;height:2px;background:var(--line);flex-shrink:0}

/* ============================================================
   FINAL CTA BANNER
   ============================================================ */
.curso-cta{
  background:radial-gradient(circle at 16% 0%,rgba(22,199,255,.14),transparent 32%),
    linear-gradient(180deg,#001932 0%,#002b5c 100%);
  color:#fff;text-align:center;padding:60px 0;
}
.curso-cta h2{font-size:clamp(36px,4.5vw,64px);line-height:1.04;margin-bottom:14px}
.curso-cta p{color:#cfe6ff;font-size:17px;max-width:540px;margin:0 auto 30px;line-height:1.65}
.cta-actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:center}

/* ============================================================
   FOOTER
   ============================================================ */
footer{background:var(--blue-deep);color:#fff;padding:70px 0 34px}
.footer-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:22px;align-items:start}
.footer-card{border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);border-radius:24px;padding:22px}
.footer-card img{width:210px;background:transparent;margin-bottom:16px}
.footer-card p,.footer-card a{color:#dff6ff;font-size:14px;line-height:1.55;display:block;margin-bottom:8px}
.footer-card h3{color:#fff;font-size:30px;margin-bottom:12px}
.footer-card a:hover{color:var(--cyan)}
.bottom{margin-top:22px;padding-top:18px;border-top:1px solid rgba(255,255,255,.12);color:#bcd6e8;font-size:13px;display:flex;justify-content:space-between;gap:18px}

/* Sticky mobile CTA */
.sticky-mobile{display:none;position:fixed;left:12px;right:12px;bottom:12px;z-index:110;border-radius:999px;background:var(--green);color:#fff;font-weight:800;font-family:inherit;text-align:center;padding:16px;box-shadow:0 16px 40px rgba(32,200,107,.34)}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media(max-width:1040px){
  .menu{display:none}
  .curso-layout{grid-template-columns:1fr}
  .curso-aside{position:static}
  .footer-grid{grid-template-columns:1fr}
}
/* SDI/TDI logo no hero das páginas de curso */
.sdi-hero-logo {
  display: block;
  width: 96px;
  height: auto;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
  opacity: .88;
}

@media(max-width:720px){
  .brand img{width:176px}
  .curso-hero{padding:110px 0 70px;min-height:auto}
  .curso-stats{width:100%}
  .curso-stat{flex:1;padding:10px 8px}
  .bottom{flex-direction:column;text-align:center;gap:8px}
  .level-card{flex-direction:column;gap:12px}
}

/* ---------- CARDS DE PRODUTO (página de Especialidades) ----------
   Migração: estes estilos vinham do <style> de Curso-Especialidades.html e
   não foram portados; a grade de cards ficava sem estilo. Restaurado do
   protótipo aprovado (2026-06-06). */
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 8px;
}
@media (max-width: 860px) { .products-grid { grid-template-columns: 1fr; } }
.product-card {
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, border-color .2s;
}
.product-card:hover {
  border-color: #0066ff;
  box-shadow: 0 6px 28px rgba(0,80,200,.1);
}
.product-img {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
}
.product-img .bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}
.product-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0b1f33;
  margin: 0 0 2px;
  line-height: 1.2;
}
.product-subtitle {
  font-size: 12px;
  font-weight: 700;
  color: #0066ff;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}
.product-card-body {
  padding: 14px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.product-card-desc {
  font-size: 14px;
  color: #445;
  line-height: 1.6;
  margin: 0;
}
.product-includes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.product-includes li {
  font-size: 13px;
  color: #334;
  display: flex;
  align-items: flex-start;
  gap: 7px;
}
.product-includes li::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='8' fill='%2322c55e'/%3E%3Cpath d='M4.5 8l2.5 2.5 4.5-4.5' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}
.product-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.product-chips em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  background: #f0f4fa;
  color: #334;
  border-radius: 6px;
  padding: 3px 10px;
}
.product-card-footer {
  padding: 0 22px 20px;
  margin-top: auto;
}
.product-buy-btn {
  display: block;
  background: #16a34a;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  text-align: center;
  padding: 14px 20px;
  border-radius: 10px;
  text-decoration: none;
  transition: filter .18s, transform .12s;
  letter-spacing: .01em;
}
.product-buy-btn:hover { filter: brightness(.92); transform: translateY(-1px); }
