/* ============================================================
   TOU NEM AI — estilos da marca
   Paleta: creme #FBF6E9 | azul-noite #1B2A4A | teal #2A9D8F
           amarelo #F4C531 | rosa #E56B6F | verde WA #25D366
   ============================================================ */

:root {
  --cream: #FBF6E9;
  --navy: #1B2A4A;
  --navy-70: rgba(27, 42, 74, 0.7);
  --navy-60: rgba(27, 42, 74, 0.6);
  --navy-45: rgba(27, 42, 74, 0.45);
  --teal: #2A9D8F;
  --yellow: #F4C531;
  --yellow-dark: #C99612;
  --pink: #E56B6F;
  --wa: #25D366;
  --wa-dark: #1DA851;
  --shadow: 4px 4px 0 0 #1B2A4A;
  --shadow-sm: 3px 3px 0 0 #1B2A4A;
  --radius-lg: 1.75rem;
  --radius-md: 1.25rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--navy);
  font-family: 'Nunito', system-ui, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, .font-display, .btn, .brand-name {
  font-family: 'Baloo 2', system-ui, sans-serif;
}

.c-teal { color: var(--teal); font-style: normal; }
.c-yellow { color: var(--yellow-dark); font-style: normal; }

/* ---------------- Botões ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 2px solid var(--navy);
  border-radius: 1.1rem;
  padding: 0.7rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); box-shadow: 1px 1px 0 0 #1B2A4A; }
.btn .i { width: 1.1rem; height: 1.1rem; }
.btn-lg { padding: 0.85rem 1.9rem; font-size: 1.15rem; }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; flex-shrink: 0; }
.btn-wa:hover { background: var(--wa-dark); }
.btn-outline { background: #fff; color: var(--navy); }
.btn-outline:hover { background: var(--yellow); }
.btn-close .i { transition: transform 0.2s ease; }
.btn-close:hover .i { transform: rotate(90deg); }

/* ---------------- Cabeçalho ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 246, 233, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid rgba(27, 42, 74, 0.1);
}
.topbar-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.topbar-narrow { max-width: 64rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-icon {
  width: 2.6rem; height: 2.6rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal); color: #fff;
  border-radius: 0.9rem;
  box-shadow: var(--shadow-sm);
}
.brand-icon svg { width: 1.5rem; height: 1.5rem; }
.brand-name { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.01em; }
.topbar-note {
  font-weight: 700; font-size: 0.85rem; color: var(--navy-70);
  background: #fff; border: 2px solid rgba(27, 42, 74, 0.15);
  border-radius: 999px; padding: 0.35rem 0.9rem;
}

/* ---------------- Hero ---------------- */
.hero { position: relative; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; pointer-events: none; }
.blob-teal { width: 18rem; height: 18rem; background: rgba(42, 157, 143, 0.15); left: -6rem; top: -6rem; }
.blob-yellow { width: 15rem; height: 15rem; background: rgba(244, 197, 49, 0.25); right: -5rem; top: 10rem; }
.blob-teal-sm { width: 14rem; height: 14rem; background: rgba(42, 157, 143, 0.1); right: -4rem; top: -4rem; }

.hero-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 3.5rem;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1fr 1fr; padding-top: 4rem; }
}

.badges { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.badge {
  display: inline-block;
  border: 2px solid var(--navy);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: var(--shadow-sm);
}
.badge-outline { background: #fff; }
.badge-pink { background: var(--pink); color: #fff; transform: rotate(-1deg); }

.hero h1 {
  margin-top: 1.4rem;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
}
.underline-yellow {
  background-image: linear-gradient(to top, var(--yellow) 32%, transparent 32%);
  padding: 0 0.15em;
}
.lead { margin-top: 1.2rem; max-width: 34rem; font-size: 1.1rem; color: var(--navy-70); }

.hero-actions { margin-top: 1.8rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.hero-count { font-weight: 700; font-size: 0.9rem; color: var(--navy-60); }

.hero-chips { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: #fff; border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-weight: 700; font-size: 0.85rem; color: var(--navy-70);
  box-shadow: 0 1px 3px rgba(27, 42, 74, 0.12);
}

.hero-figure { position: relative; max-width: 30rem; margin: 0 auto; width: 100%; }
.hero-frame {
  border: 4px solid var(--navy);
  border-radius: 2.5rem;
  overflow: hidden;
  box-shadow: 8px 8px 0 0 var(--teal);
}
.hero-tag {
  position: absolute; top: -0.8rem; right: -0.8rem;
  background: var(--pink); color: #fff;
  border: 2px solid var(--navy);
  border-radius: 1rem;
  padding: 0.45rem 1rem;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700; font-size: 0.85rem;
  transform: rotate(6deg);
  box-shadow: var(--shadow-sm);
}

/* ---------------- WhatsApp ---------------- */
.whatsapp { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; width: 100%; }
.whatsapp-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  background: #fff;
  border: 3px solid var(--navy);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  box-shadow: 6px 6px 0 0 var(--wa);
}
.wa-icon {
  width: 3.6rem; height: 3.6rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--wa); color: #fff;
  border-radius: 1.2rem;
  box-shadow: var(--shadow-sm);
}
.wa-icon svg { width: 2rem; height: 2rem; }
.wa-text { flex: 1 1 18rem; }
.wa-text h2 { font-size: 1.35rem; font-weight: 800; }
.wa-text p { color: var(--navy-70); font-size: 0.98rem; margin-top: 0.25rem; }
.whatsapp-compact { box-shadow: 5px 5px 0 0 var(--wa); }
.whatsapp-compact .wa-text h2 { font-size: 1.2rem; }

/* ---------------- Catálogo ---------------- */
.catalog { max-width: 72rem; margin: 0 auto; padding: 3.5rem 1.25rem 0; width: 100%; scroll-margin-top: 5rem; }
.catalog-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.catalog-head h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; }
.catalog-head p { color: var(--navy-60); margin-top: 0.3rem; }
.counter {
  background: rgba(42, 157, 143, 0.15); color: var(--teal);
  font-weight: 800; font-size: 0.85rem;
  border-radius: 999px; padding: 0.4rem 1rem;
  white-space: nowrap;
}

.filters { margin-top: 1.8rem; display: flex; flex-direction: column; gap: 1rem; }
.search { position: relative; max-width: 28rem; }
.search svg {
  position: absolute; left: 1rem; top: 50%;
  transform: translateY(-50%);
  width: 1.2rem; height: 1.2rem;
  color: var(--navy-45);
  pointer-events: none;
}
.search input {
  width: 100%;
  border: 2px solid rgba(27, 42, 74, 0.15);
  border-radius: 1.1rem;
  background: #fff;
  padding: 0.8rem 1rem 0.8rem 3rem;
  font: inherit;
  font-weight: 600;
  color: var(--navy);
}
.search input::placeholder { color: var(--navy-45); }
.search input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(42, 157, 143, 0.2);
}

.chips-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip-btn {
  border: 2px solid rgba(27, 42, 74, 0.15);
  background: #fff; color: var(--navy-70);
  border-radius: 999px;
  padding: 0.5rem 1.05rem;
  font: inherit; font-weight: 800; font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.chip-btn:hover { border-color: rgba(27, 42, 74, 0.4); color: var(--navy); }
.chip-btn.active {
  background: var(--navy); color: #fff; border-color: var(--navy);
  box-shadow: 2px 2px 0 0 var(--teal);
}

.grid {
  margin-top: 2rem;
  display: grid;
  gap: 1.8rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------------- Cartões de vídeo ---------------- */
.card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 2px solid rgba(27, 42, 74, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  box-shadow: 4px 4px 0 0 rgba(27, 42, 74, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--navy);
  box-shadow: 6px 6px 0 0 var(--navy);
}
.card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(27, 42, 74, 0.05);
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.card:hover .card-thumb img { transform: scale(1.05); }
.card-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(27, 42, 74, 0);
  transition: background 0.2s ease;
}
.card:hover .card-overlay { background: rgba(27, 42, 74, 0.3); }
.card-play {
  width: 3.5rem; height: 3.5rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--yellow);
  border: 2px solid var(--navy);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  opacity: 0; transform: scale(0.75);
  transition: all 0.2s ease;
}
.card-play svg { width: 1.4rem; height: 1.4rem; margin-left: 2px; }
.card:hover .card-play { opacity: 1; transform: scale(1); }

.tag {
  position: absolute; top: 0.7rem; left: 0.7rem;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.72rem; font-weight: 800;
}
.tag-iniciante { background: var(--teal); color: #fff; }
.tag-intermedio { background: var(--yellow); color: var(--navy); }
.tag-avancado { background: var(--pink); color: #fff; }
.tag-duration {
  position: absolute; bottom: 0.7rem; right: 0.7rem;
  background: rgba(27, 42, 74, 0.85); color: #fff;
  border-radius: 0.6rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem; font-weight: 800;
}

.card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--teal); }
.card-title { margin-top: 0.35rem; font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.card-desc {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: var(--navy-60);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Cartão "Em breve" */
.card-soon {
  border-style: dashed;
  border-color: rgba(27, 42, 74, 0.25);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: none;
  cursor: default;
}
.card-soon:hover { transform: none; box-shadow: none; border-color: rgba(27, 42, 74, 0.25); }
.card-soon .card-thumb img { opacity: 0.85; filter: saturate(0.85); }
.tag-soon {
  background: var(--navy); color: var(--yellow);
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.card-soon .card-cat { color: var(--navy-45); }
.card-soon .card-title { color: var(--navy-70); }
.card-soon .card-desc { color: rgba(27, 42, 74, 0.55); }

/* ---------------- Estado vazio ---------------- */
.empty[hidden] {
  display: none;
}
.empty {
  margin-top: 3rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.9rem;
  text-align: center;
  border: 2px dashed rgba(27, 42, 74, 0.2);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.6);
  padding: 3.5rem 1.5rem;
}
.empty-icon { font-size: 2.4rem; }
.empty-title { font-family: 'Baloo 2', sans-serif; font-size: 1.3rem; font-weight: 700; }
.empty-text { max-width: 22rem; font-size: 0.9rem; color: var(--navy-60); }

/* ---------------- Formador ---------------- */
.instructor { max-width: 72rem; margin: 0 auto; padding: 4.5rem 1.25rem 0; width: 100%; }
.instructor-card {
  position: relative;
  display: grid;
  gap: 1.8rem;
  align-items: center;
  background: #fff;
  border: 4px solid var(--navy);
  border-radius: 2.5rem;
  padding: 2rem;
  box-shadow: 8px 8px 0 0 var(--yellow);
  overflow: hidden;
}
@media (min-width: 700px) {
  .instructor-card { grid-template-columns: auto 1fr; gap: 2.5rem; padding: 2.5rem; }
}
.instructor-photo { position: relative; margin: 0 auto; }
.photo-circle {
  width: 11rem; height: 11rem;
  border: 4px solid var(--navy);
  border-radius: 50%;
  background: linear-gradient(to bottom, rgba(42, 157, 143, 0.25), rgba(42, 157, 143, 0.5));
  overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
  box-shadow: var(--shadow);
}
.photo-circle img { height: 92%; width: auto; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(27, 42, 74, 0.25)); }
.photo-badge {
  position: absolute; top: -0.4rem; right: -0.4rem;
  width: 2.8rem; height: 2.8rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--yellow);
  border: 2px solid var(--navy);
  border-radius: 50%;
  font-size: 1.3rem;
  transform: rotate(12deg);
  box-shadow: var(--shadow-sm);
}
.kicker {
  display: inline-block;
  background: rgba(42, 157, 143, 0.15); color: var(--teal);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.instructor-info h2 { margin-top: 0.7rem; font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 800; }
.instructor-info > p { margin-top: 0.7rem; max-width: 36rem; color: var(--navy-70); }
.instructor-chips { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.instructor-chips .chip { background: var(--cream); border: 2px solid rgba(27, 42, 74, 0.1); box-shadow: none; }

/* ---------------- Rodapé ---------------- */
.footer { margin-top: 5rem; border-top: 2px solid rgba(27, 42, 74, 0.1); background: rgba(255, 255, 255, 0.6); }
.footer-inner {
  max-width: 72rem; margin: 0 auto;
  padding: 2.5rem 1.25rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.9rem;
  text-align: center;
}
.footer-inner p { max-width: 28rem; font-size: 0.9rem; color: var(--navy-60); }
.footer-small { font-size: 0.78rem; font-weight: 700; color: var(--navy-45); }

/* ============================================================
   PÁGINA DE VISUALIZAÇÃO (video.html)
   ============================================================ */
.watch {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  flex: 1;
}
.player-frame {
  border: 4px solid var(--navy);
  border-radius: 2rem;
  overflow: hidden;
  background: var(--navy);
  box-shadow: 8px 8px 0 0 var(--teal);
}
.player-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.watch-desc {
  margin-top: 1.8rem;
  background: #fff;
  border: 2px solid rgba(27, 42, 74, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.8rem;
  box-shadow: 4px 4px 0 0 rgba(27, 42, 74, 0.08);
}
.meta { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.meta span {
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  font-size: 0.72rem; font-weight: 800;
}
.meta .m-cat { background: rgba(42, 157, 143, 0.15); color: var(--teal); text-transform: uppercase; letter-spacing: 0.06em; }
.meta .m-level { background: rgba(27, 42, 74, 0.1); color: var(--navy-70); }
.meta .m-duration { background: transparent; color: var(--navy-45); padding-left: 0; }
.watch-desc h1 { margin-top: 0.8rem; font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 800; }
.watch-desc p { margin-top: 0.6rem; color: var(--navy-70); max-width: 46rem; }

.watch .whatsapp-card { margin-top: 2rem; }
.watch-back { margin-top: 2rem; display: flex; justify-content: center; }

.not-found {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; text-align: center; min-height: 60vh;
}
.not-found h1 { font-size: 1.7rem; font-weight: 800; }
.not-found p { max-width: 24rem; color: var(--navy-60); }

@media (max-width: 560px) {
  .topbar-note { display: none; }
  .whatsapp-card { padding: 1.25rem; }
  .btn-wa { width: 100%; justify-content: center; }
}
