/* ============================================
   TEMA CLARO — CORES GOOGLE APPSHEET
   ============================================ */
:root {
  --bg: #F8F9FA;
  --bg-alt: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F1F3F4;
  --border: #DADCE0;
  --border-light: #E8EAED;
  --text: #202124;
  --text-muted: #5F6368;
  --blue: #1A73E8;
  --blue-hover: #1557B0;
  --blue-soft: rgba(26, 115, 232, 0.08);
  --blue-glow: rgba(26, 115, 232, 0.15);
  --green: #1E8E3E;
  --green-soft: rgba(30, 142, 62, 0.08);
  --amber: #F9AB00;
  --amber-soft: rgba(249, 171, 0, 0.08);
  --star: #F9AB00;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.04);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ============================================
   UTILITÁRIOS
   ============================================ */
.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); border: 0;
}

.section {
  padding: 3rem 0 2rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.section-label::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--blue);
}

.section-title {
  font-size: clamp(1.25rem, 3.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0 0 1.5rem;
  max-width: 640px;
  line-height: 1.7;
}

/* ============================================
   CARD PADRÃO
   ============================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

/* ============================================
   BOTÕES
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  position: relative;
  text-align: center;
  line-height: 1.2;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 14px var(--blue-glow);
}

.btn-primary:hover {
  background: var(--blue-hover);
  box-shadow: 0 6px 20px var(--blue-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface-2);
  border-color: var(--text-muted);
  transform: translateY(-1px);
}

.btn-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
}

/* ============================================
   HEADER
   ============================================ */
header {
  padding: 0.85rem 0 0.75rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.header-brand {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.header-brand small {
  display: none;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.header-slogan {
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
  flex-shrink: 0;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 2rem 0 1.5rem;
  display: grid;
  gap: 1.5rem;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -15%;
  width: 50%;
  height: 70%;
  background: radial-gradient(circle, rgba(26, 115, 232, 0.04), transparent 70%);
  pointer-events: none;
}

.hero-content {
  display: grid;
  gap: 0.85rem;
  position: relative;
  z-index: 1;
}

.hero-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--blue-soft);
  border: 1px solid rgba(26, 115, 232, 0.1);
  font-size: 0.73rem;
  color: var(--blue);
  font-weight: 500;
}

.hero h1 {
  font-size: clamp(1.65rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--text);
}

.hero h1 .highlight {
  color: var(--blue);
}

.hero p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 600px;
  line-height: 1.7;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  position: relative;
  z-index: 1;
}

.hero-stat {
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.hero-stat-value {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.hero-stat-label {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

/* Imagem do curso no hero */
.hero-illustration {
  display: none;
  position: relative;
  z-index: 1;
  align-items: center;
  justify-content: center;
}

.hero-image-wrapper {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(26, 115, 232, 0.12);
  border: 1px solid var(--border);
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.hero-image-wrapper:hover {
  transform: scale(1.01);
  box-shadow: 0 12px 40px rgba(26, 115, 232, 0.18);
}

.hero-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   SEÇÃO DE DOR
   ============================================ */
.pain-grid {
  display: grid;
  gap: 0.75rem;
}

.pain-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 250ms ease, box-shadow 250ms ease;
  box-shadow: var(--shadow);
}

.pain-item:hover {
  border-color: var(--amber);
  box-shadow: var(--shadow-lg);
}

.pain-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--amber-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.pain-text h4 {
  margin: 0 0 0.15rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.pain-text p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ============================================
   PROJETOS PRÁTICOS
   ============================================ */
.projects-grid {
  display: grid;
  gap: 0.85rem;
}

.project-card {
  padding: 1.1rem 1.1rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: border-color 250ms ease, transform 250ms ease, box-shadow 250ms ease;
}

.project-card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.project-image {
  width: 100%;
  height: 140px;
  border-radius: var(--radius-xs);
  background: var(--surface-2);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card h3 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.project-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ============================================
   GRADE CURRICULAR
   ============================================ */
.curriculum-list {
  display: grid;
  gap: 0.6rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.curriculum-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.9rem;
  line-height: 1.5;
  transition: border-color 250ms ease, box-shadow 250ms ease;
  box-shadow: var(--shadow);
}

.curriculum-list li:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-lg);
}

.curriculum-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.curriculum-content strong {
  font-size: 0.92rem;
}

.curriculum-title-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.curriculum-detail {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.curriculum-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.curriculum-tag {
  display: inline-block;
  margin-left: 0;
  padding: 0.08rem 0.45rem;
  border-radius: 999px;
  background: var(--amber-soft);
  font-size: 0.65rem;
  font-weight: 600;
  color: #E37400;
  white-space: nowrap;
  width: fit-content;
}

/* ============================================
   DEPOIMENTOS
   ============================================ */
.testimonials-grid {
  display: grid;
  gap: 0.85rem;
}

.testimonial-card {
  padding: 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: border-color 250ms ease, transform 250ms ease, box-shadow 250ms ease;
}

.testimonial-card:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.testimonial-stars {
  color: var(--star);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.4rem;
}

.testimonial-stars small {
  color: var(--text-muted);
  font-size: 0.74rem;
  letter-spacing: 0;
  margin-left: 0.3rem;
}

.testimonial-card blockquote {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.testimonial-avatar {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--blue);
  flex-shrink: 0;
}

.testimonial-author div { line-height: 1.3; }
.testimonial-author strong { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.testimonial-author small { display: block; font-size: 0.72rem; color: var(--text-muted); }

/* ============================================
   OFERTA FINAL
   ============================================ */
.offer {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--blue);
  background: linear-gradient(165deg, var(--blue-soft), rgba(26, 115, 232, 0.03));
  position: relative;
  overflow: hidden;
}

.offer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--blue-glow), transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.offer > * { position: relative; }

.offer h2 {
  font-size: clamp(1.15rem, 3vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 0.5rem;
  line-height: 1.2;
  color: var(--text);
}

.offer p {
  color: var(--text-muted);
  margin: 0 auto 1rem;
  max-width: 580px;
  font-size: 0.92rem;
}

.offer-anchor {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.5rem 0 1.2rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px dashed var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.offer-anchor s { color: #999; }
.offer-anchor strong { color: var(--blue); font-size: 0.9rem; }
.offer-tag { color: var(--text-muted); font-size: 0.75rem; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding: 2.5rem 0 0;
  background: var(--surface-2);
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin: 0 0 0.8rem;
}

.footer-col p,
.footer-col a {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
  display: block;
}

.footer-col a:hover { color: var(--blue); }

.footer-col .footer-brand {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
  text-transform: none;
  letter-spacing: -0.02em;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.55rem;
  margin-top: 0.5rem;
  border-radius: 999px;
  background: var(--green-soft);
  border: 1px solid rgba(30, 142, 62, 0.12);
  font-size: 0.7rem;
  color: var(--green);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li + li { margin-top: 0.35rem; }

.footer-bottom {
  margin-top: 2rem;
  padding: 1.2rem 0 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
}

.footer-bottom small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-bottom-links a {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.footer-bottom-links a:hover { color: var(--blue); }

/* ============================================
   POPUP
   ============================================ */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
  padding: 1rem;
}

.popup-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.popup-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  transform: translateY(24px) scale(0.97);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-lg);
}

.popup-overlay.active .popup-modal {
  transform: translateY(0) scale(1);
}

.popup-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  border: none;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 180ms ease, color 180ms ease;
}

.popup-close:hover {
  background: var(--border);
  color: var(--text);
}

.popup-modal .popup-icon {
  font-size: 2.2rem;
  margin-bottom: 0.65rem;
}

.popup-modal h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.popup-modal p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 1.2rem;
  line-height: 1.6;
}

.popup-modal .btn {
  width: 100%;
}

/* ============================================
   SCROLLBAR GLOBAL
   ============================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #bbb; }

/* ============================================
   TABLET (>= 640px)
   ============================================ */
@media (min-width: 640px) {
  .btn-group {
    flex-direction: row;
    align-items: center;
  }

  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .pain-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .header-brand small {
    display: inline;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ============================================
   DESKTOP (>= 960px)
   ============================================ */
@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    padding: 3.5rem 0 3rem;
    gap: 2.5rem;
  }

  .hero-illustration {
    display: flex;
  }

  .section {
    padding: 4rem 0 3rem;
  }

  .card {
    padding: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

/* ============================================
   ANIMAÇÕES
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.5s ease forwards;
  }

  .fade-in:nth-child(2) { animation-delay: 0.08s; }
  .fade-in:nth-child(3) { animation-delay: 0.16s; }
  .fade-in:nth-child(4) { animation-delay: 0.24s; }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
