/* ==========================================================================
   FUNDO DE OLHO — Curso Presencial
   CSS mobile-first, sem dependências externas além das Web Fonts.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS DE MARCA
   -------------------------------------------------------------------------- */
:root {
  /* Cores — brandbook Fundo de Olho */
  --color-navy: #001E61;       /* Azul Marinho · Pantone 2758 C */
  --color-navy-soft: #0A2E7A;
  --color-blue: #2B7AE4;       /* Azul Claro · Pantone 2715 C */
  --color-sky: #87D1E6;        /* apoio, tons de vidro/lente */
  --color-coral: #FF574D;      /* Laranja/Vermelho · Pantone 172 C — CTAs/destaques */
  --color-coral-dark: #E23F35;
  --color-gold: #EFB74A;       /* apoio pontual */

  --color-bg: #FFFFFF;
  --color-bg-tint: #F4F7FC;
  --color-text: #101528;
  --color-text-muted: #4A5270;
  --color-text-on-navy: #EAF1FF;
  --color-border: #E1E7F3;

  /* Tipografia */
  --font-display: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --container-width: 1160px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --space-section: clamp(3rem, 6vw, 6rem);

  --shadow-card: 0 12px 32px -16px rgba(0, 30, 97, 0.25);
}

/* --------------------------------------------------------------------------
   2. RESET ENXUTO
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

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

img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-navy);
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; }
dl, dt, dd { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-navy);
  color: #fff;
  padding: 0.75em 1.25em;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   3. LAYOUT BASE
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: var(--space-section);
}

.section--tint { background: var(--color-bg-tint); }

.section--navy {
  background: var(--color-navy);
  color: var(--color-text-on-navy);
}
.section--navy h2 { color: #fff; }

.section__header {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section__lead {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}
.section--navy .section__lead { color: var(--color-sky); }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-coral);
  margin: 0 0 1rem;
}

/* --------------------------------------------------------------------------
   4. BOTÕES / CTAs
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.9em 1.6em;
  border-radius: var(--radius-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-coral);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(255, 87, 77, 0.6);
}
.btn--primary:hover,
.btn--primary:focus-visible { background: var(--color-coral-dark); transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--color-navy);
  border: 2px solid var(--color-navy);
}
.section--navy .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.5); }
.btn--ghost:hover,
.btn--ghost:focus-visible { background: rgba(0, 30, 97, 0.06); }
.section--navy .btn--ghost:hover,
.section--navy .btn--ghost:focus-visible { background: rgba(255,255,255,0.1); }

.btn--small { padding: 0.6em 1.1em; font-size: 0.9rem; }
.btn--large { padding: 1.05em 2em; font-size: 1.05rem; }
.btn--full { width: 100%; }

/* --------------------------------------------------------------------------
   5. HEADER
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}

.site-header__nav {
  display: none;
  gap: 1.75rem;
  font-weight: 500;
  font-size: 0.95rem;
}
.site-header__nav a:hover { color: var(--color-coral); }

@media (min-width: 900px) {
  .site-header__nav { display: flex; }
}

/* --------------------------------------------------------------------------
   6. HERO
   -------------------------------------------------------------------------- */
.hero { background: linear-gradient(180deg, #F4F7FC 0%, #FFFFFF 70%); }

.hero__inner {
  display: grid;
  gap: 2.5rem;
  padding-block: 2.5rem 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    padding-block: 4rem 4.5rem;
  }
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 46ch;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.5em 1em;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-navy);
  box-shadow: var(--shadow-card);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

.hero__media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 7 / 8;
}

.hero__strip {
  background: var(--color-navy);
  color: var(--color-text-on-navy);
}
.hero__strip-inner {
  padding-block: 1.5rem;
  font-size: 1rem;
}
.hero__strip-inner strong { color: var(--color-sky); }

/* --------------------------------------------------------------------------
   7. COMO FUNCIONA — steps
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}

.steps__item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.steps__index {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-coral);
  margin-bottom: 0.75rem;
}

.steps__item h3 { font-size: 1.05rem; margin-bottom: 0.4em; }
.steps__item p { color: var(--color-text-muted); font-size: 0.95rem; margin: 0; }

/* --------------------------------------------------------------------------
   8. CHECKLISTS (inclusos / diferenciais)
   -------------------------------------------------------------------------- */
.checklist {
  display: grid;
  gap: 0.9rem;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1.02rem;
}

.icon-check, .icon-x {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-check {
  stroke: var(--color-coral);
}
.checklist--light .icon-check { stroke: var(--color-sky); }

.icon-x { stroke: #98A0B8; }

.checklist--light li { color: var(--color-text-on-navy); font-size: 1.05rem; }

@media (min-width: 700px) {
  .checklist--light {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
  }
}

/* --------------------------------------------------------------------------
   9. INCLUSO / NÃO INCLUSO
   -------------------------------------------------------------------------- */
.incluso-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .incluso-grid {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}

.nao-incluso {
  background: var(--color-bg-tint);
  border: 1px dashed #C7D0E6;
  border-radius: var(--radius-md);
  padding: 1.5rem;
}
.nao-incluso h3 {
  font-size: 1rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}
.checklist--x li { color: var(--color-text-muted); }

/* --------------------------------------------------------------------------
   10. CARDS (para quem é)
   -------------------------------------------------------------------------- */
.cards-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-blue);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}
.card h3 { font-size: 1.05rem; }
.card p { color: var(--color-text-muted); font-size: 0.95rem; margin: 0; }

/* --------------------------------------------------------------------------
   11. LOCAL E DATA (WooCommerce)
   -------------------------------------------------------------------------- */
.turma-info dl {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 2rem;
}

@media (min-width: 700px) {
  .turma-info dl { grid-template-columns: repeat(4, 1fr); }
}

.turma-info dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 0.25em;
}
.turma-info dd {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-navy);
}

.local-galeria {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .local-galeria { grid-template-columns: repeat(3, 1fr); }
}
.local-galeria img {
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   12. OFERTA / CTA FINAL
   -------------------------------------------------------------------------- */
.oferta__inner {
  text-align: center;
  max-width: 720px;
}
.oferta h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
.oferta p { color: var(--color-sky); font-size: 1.05rem; }
.oferta__actions { justify-content: center; }

/* --------------------------------------------------------------------------
   13. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: #0A0F24;
  color: #9AA5C4;
  padding-block: 2rem;
  font-size: 0.85rem;
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
@media (min-width: 700px) {
  .site-footer__inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* --------------------------------------------------------------------------
   14. CTA FIXO MOBILE
   -------------------------------------------------------------------------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid var(--color-border);
  backdrop-filter: blur(6px);
}

@media (min-width: 900px) {
  .sticky-cta { display: none; }
}
