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

:root {
  /* Cores (idênticas ao projeto do Método RCN, para manter a identidade) */
  --background: #f5f3ee;
  --foreground: #2f2504;
  --card: #ffffff;
  --primary: #2f2504;
  --primary-foreground: #f5f3ee;
  --secondary: #efefef;
  --muted-foreground: #79786b;
  --gold: #dba958;
  --gold-foreground: #2f2504;
  --brown: #5d5b4c;
  --border: #d9d5cb;
  --stone: #938f83;

  --radius-md: 0.8rem;
  --radius-lg: 1rem;
  --radius-xl: 1.4rem;
  --radius-2xl: 1.8rem;
  --radius-3xl: 2.2rem;

  --font-sans: 'Open Sans', ui-sans-serif, system-ui, sans-serif;
  --font-heading: 'Raleway', ui-sans-serif, system-ui, sans-serif;

  --shadow-soft: 0 8px 30px -12px rgba(47, 37, 4, 0.12);
  --shadow-soft-lg: 0 24px 60px -20px rgba(47, 37, 4, 0.18);
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
h1, h2 { font-family: var(--font-heading); }

.container { max-width: 72rem; margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 768px) { .container { padding-inline: 2rem; } }
.container--sm { max-width: 42rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
}

/* ==========================================================================
   REVEAL ON SCROLL
   ========================================================================== */
/* Por padrão o conteúdo já fica visível. Só é escondido quando o
   script.js confirma (com a classe "has-js") que está rodando de
   verdade — se o JS for bloqueado por algum motivo, o texto nunca
   fica preso invisível. */
.reveal-up {
  transition: opacity 0.6s cubic-bezier(0.21, 0.47, 0.32, 0.98),
              transform 0.6s cubic-bezier(0.21, 0.47, 0.32, 0.98);
}
.has-js .reveal-up { opacity: 0; transform: translateY(24px); }
.reveal-up.is-visible { opacity: 1; transform: translateY(0); }
.reveal-up[data-delay="0"] { transition-delay: 0s; }
.reveal-up[data-delay="1"] { transition-delay: 0.1s; }
.reveal-up[data-delay="2"] { transition-delay: 0.2s; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-xl);
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}
.btn--gold {
  background-color: var(--gold);
  color: var(--gold-foreground);
  box-shadow: var(--shadow-soft);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft-lg); filter: brightness(1.03); }
.btn--outline {
  background-color: transparent;
  color: var(--foreground);
  border-color: rgba(93, 91, 76, 0.3);
}
.btn--full { width: 100%; }
.btn--disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.round-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background-color: var(--card);
  color: var(--foreground);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.footer__social .round-btn:hover { border-color: var(--gold); color: var(--gold); }

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background-color: rgba(245, 243, 238, 0.9);
  backdrop-filter: blur(8px);
}
.navbar__inner {
  max-width: 72rem;
  margin-inline: auto;
  display: flex;
  height: 4.5rem;
  align-items: center;
  padding-inline: 1.25rem;
}
@media (min-width: 768px) { .navbar__inner { padding-inline: 2rem; } }
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--foreground);
}
.navbar__logo-icon {
  display: flex;
  height: 2.25rem;
  width: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background-color: var(--primary);
  color: var(--primary-foreground);
}

/* ==========================================================================
   HERO / INTRODUÇÃO
   ========================================================================== */
.hero { position: relative; overflow: hidden; padding-block: 4.5rem 3.5rem; }
@media (min-width: 768px) { .hero { padding-block: 6rem 4.5rem; } }

.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__blob { position: absolute; border-radius: 9999px; filter: blur(64px); }
.hero__blob--gold { top: -6rem; right: -6rem; height: 20rem; width: 20rem; background-color: rgba(219, 169, 88, 0.12); }
.hero__blob--brown { top: 8rem; left: -8rem; height: 18rem; width: 18rem; background-color: rgba(93, 91, 76, 0.1); }

.hero__content { text-align: center; }
.hero__title {
  margin-top: 0.75rem;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-wrap: balance;
}
@media (min-width: 768px) { .hero__title { font-size: 2.75rem; } }
.hero__desc {
  margin: 1.25rem auto 0;
  max-width: 34rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}
@media (min-width: 768px) { .hero__desc { font-size: 1.0625rem; } }

/* ==========================================================================
   GRADE DE CURSOS
   ========================================================================== */
.courses { padding-block: 1rem 5rem; }
@media (min-width: 768px) { .courses { padding-block: 1rem 6.5rem; } }

.courses__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .courses__grid { grid-template-columns: repeat(3, 1fr); }
}

.course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-3xl);
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.course-card:not(.course-card--soon):hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft-lg);
}

.course-card__status {
  display: inline-block;
  align-self: flex-start;
  border-radius: 9999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background-color: var(--secondary);
  color: var(--muted-foreground);
}
.course-card__status--live { background-color: var(--gold); color: var(--gold-foreground); }

.course-card__icon {
  display: flex;
  height: 3rem;
  width: 3rem;
  margin-top: 1rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  background-color: var(--secondary);
  color: var(--stone);
}

.course-card__title {
  margin-top: 1.25rem;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--foreground);
}
.course-card__desc {
  margin-top: 0.75rem;
  flex: 1;
  line-height: 1.6;
  color: var(--muted-foreground);
}
.course-card .btn { margin-top: 1.75rem; }

.course-card--soon { background-color: var(--secondary); border-style: dashed; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { border-top: 1px solid var(--border); background-color: var(--background); padding-block: 3rem; }
.footer__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
@media (min-width: 768px) { .footer__top { flex-direction: row; align-items: flex-start; } }
.footer__brand { text-align: center; }
@media (min-width: 768px) { .footer__brand { text-align: left; } }
.footer__tagline {
  margin-top: 0.75rem;
  max-width: 22rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}
.footer__social { display: flex; align-items: center; gap: 0.75rem; }

.footer__bottom {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
@media (min-width: 768px) { .footer__bottom { flex-direction: row; } }
.footer__nav { display: flex; align-items: center; gap: 1.5rem; }
.footer__nav a { transition: color 0.2s ease; }
.footer__nav a:hover { color: var(--foreground); }
