:root {
  --navy: #263959;
  --orange: #f38d33;
  --white: #ffffff;
  --gray-light: #f5f5f5;
  --gray-dark: #333333;

  --navy-tint-1: #3a5079;
  --navy-tint-2: #4d6aa0;
  --orange-tint-1: #f7ac6a;

  --bg-deep: #0a0e1a;
  --bg-panel: #131a2c;
  --bg-panel-border: rgba(255, 255, 255, 0.08);
  --text-primary: #f4f6fb;
  --text-muted: rgba(244, 246, 251, 0.66);

  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Lato', sans-serif;
  --font-hero: 'Montserrat', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background:
    radial-gradient(ellipse 900px 520px at 12% 8%, rgba(243, 141, 51, 0.10), transparent 60%),
    radial-gradient(ellipse 800px 600px at 88% 38%, rgba(77, 106, 160, 0.16), transparent 60%),
    radial-gradient(ellipse 700px 520px at 25% 92%, rgba(243, 141, 51, 0.07), transparent 60%),
    var(--bg-deep);
  background-attachment: fixed;
}

/* ===== Motion: scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== HERO — hub F3Exatas ===== */
.hub-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-deep);
}

.hub-hero-glow {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 25%, rgba(243, 141, 51, 0.30), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(77, 106, 160, 0.45), transparent 50%),
    linear-gradient(135deg, var(--bg-deep) 0%, var(--navy-tint-1) 55%, var(--bg-deep) 100%);
  background-size: 200% 200%;
  animation: hub-glow-shift 16s ease-in-out infinite;
}

.hub-hero-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1.5px),
    radial-gradient(rgba(255, 255, 255, 0.3) 1px, transparent 1.5px);
  background-size: 140px 140px, 90px 90px;
  background-position: 0 0, 45px 60px;
  opacity: 0.06;
}

@keyframes hub-glow-shift {
  0%   { background-position: 0% 0%; }
  50%  { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

.hub-hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.hub-hero-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.hub-hero-title {
  font-family: var(--font-hero);
  font-variant: small-caps;
  letter-spacing: 0.02em;
  font-weight: 800;
  font-size: 44px;
  line-height: 1.2;
  color: var(--white);
}

.hub-hero-title span {
  color: var(--orange);
}

.hub-hero-subtitle {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
}

.hub-scroll-cue {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 17px;
  color: var(--white);
  text-decoration: none;
  background: var(--orange);
  padding: 16px 34px;
  border-radius: 30px;
  box-shadow: 0 12px 26px rgba(243, 141, 51, 0.4);
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}

.hub-scroll-cue:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(243, 141, 51, 0.5);
}

.hub-scroll-arrow {
  display: inline-block;
  animation: hub-arrow-bounce 1.6s ease-in-out infinite;
}

@keyframes hub-arrow-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ===== SEÇÃO: cabeçalhos de seção compartilhados ===== */
.section-heading {
  text-align: center;
  margin-bottom: 40px;
}

.section-kicker {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
}

.section-title {
  font-family: var(--font-heading);
  font-variant: small-caps;
  letter-spacing: 0.02em;
  font-weight: 800;
  font-size: 32px;
  color: var(--text-primary);
  margin: 10px 0 12px;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-muted);
}

/* ===== SEÇÃO: paths-section (as quatro frentes) ===== */
.paths-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px;
}

.paths-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.path-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 3 / 4.3;
  display: flex;
  flex-direction: column;
  box-shadow: 0 14px 30px rgba(38, 57, 89, 0.16);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
}

.path-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 44px rgba(38, 57, 89, 0.26);
}

.path-card-provas   { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-tint-2) 100%); }
.path-card-concursos { background: linear-gradient(160deg, var(--orange) 0%, #d9701c 100%); }
.path-card-cursos   { background: linear-gradient(160deg, var(--navy-tint-1) 0%, var(--navy) 100%); }
.path-card-mentorias { background: linear-gradient(160deg, var(--navy-tint-2) 0%, var(--orange-tint-1) 100%); }

.path-card-top {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.path-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
}

.path-badge-soon {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.18);
  padding: 4px 10px;
  border-radius: 20px;
}

.detail-badge-soon {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid var(--orange);
  padding: 3px 10px;
  border-radius: 20px;
}

.path-card-icon {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.path-card-icon img {
  width: 132px;
  height: 132px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.3));
}

.path-card-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64%;
  background: linear-gradient(to top, rgba(10, 16, 30, 0.88) 0%, rgba(10, 16, 30, 0.7) 45%, transparent 100%);
  z-index: 1;
}

.path-card-body {
  position: relative;
  z-index: 2;
  padding: 0 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.path-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 21px;
  color: var(--white);
}

.path-desc {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.path-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  color: var(--white);
  margin-top: 6px;
  transition: gap 0.3s ease, color 0.3s ease;
}

/* Invisible overlay link that makes the whole card clickable for mouse/touch users.
   Hidden from the accessibility tree and tab order — the visible .path-cta below
   remains the one real, focusable link for keyboard and screen-reader users. */
.path-card-stretch {
  position: absolute;
  inset: 0;
  z-index: 4;
}

.path-cta span {
  transition: transform 0.3s ease;
}

.path-cta:hover {
  color: var(--orange-tint-1);
}

.path-cta:hover span {
  transform: translateX(4px);
}

/* ===== SEÇÃO: detail-section (o que tem em cada frente) ===== */
.detail-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px 100px;
}

.detail-row {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 90px;
}

.detail-row:last-child { margin-bottom: 0; }

.detail-row-reverse { flex-direction: row-reverse; }

.detail-media {
  flex: 0 0 300px;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35);
}

.detail-media img {
  width: 52%;
  height: 52%;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.3));
}

.detail-media-provas    { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-tint-2) 100%); }
.detail-media-concursos { background: linear-gradient(160deg, var(--orange) 0%, #d9701c 100%); }
.detail-media-cursos    { background: linear-gradient(160deg, var(--navy-tint-1) 0%, var(--navy) 100%); }
.detail-media-mentorias { background: linear-gradient(160deg, var(--navy-tint-2) 0%, var(--orange-tint-1) 100%); }

.detail-copy {
  flex: 1;
  min-width: 0;
}

.detail-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

.detail-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 26px;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.detail-desc {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 18px;
  max-width: 480px;
}

.detail-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  list-style: none;
}

.detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-primary);
}

.detail-list li::before {
  content: "\2713";
  flex-shrink: 0;
  color: var(--orange);
  font-weight: 700;
}

.detail-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  color: var(--orange);
  transition: gap 0.3s ease, color 0.3s ease;
}

.detail-cta span {
  transition: transform 0.3s ease;
}

.detail-cta:hover {
  color: var(--orange-tint-1);
}

.detail-cta:hover span {
  transform: translateX(4px);
}

/* ===== SEÇÃO: why-choose (badges conectados por linha) ===== */
.why-choose {
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px 24px;
}

.why-steps {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  padding-top: 12px;
}

.why-steps::before {
  content: "";
  position: absolute;
  top: 54px;
  left: 10%;
  right: 10%;
  height: 0;
  border-top: 2px dashed var(--orange-tint-1);
  z-index: 0;
}

.why-step {
  flex: 1;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.why-badge {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-badge img { width: 36px; height: 36px; }

.why-badge-navy { background: var(--navy); }
.why-badge-orange { background: var(--orange); }

.why-step:hover .why-badge {
  transform: translateY(-6px) scale(1.06);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.45);
}

.why-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
  max-width: 160px;
}

/* ===== SEÇÃO: faq-section ===== */
.faq-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 70px 24px 100px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--bg-panel-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-panel);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  border-color: var(--orange);
}

.faq-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 15px;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  color: var(--orange);
  font-size: 20px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-chevron {
  transform: rotate(90deg);
}

.faq-answer {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  padding: 0 20px 18px;
}

/* ===== RODAPÉ ===== */
.site-footer {
  background: var(--navy);
  padding: 70px 24px 24px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 200px;
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  color: var(--orange);
  margin-bottom: 6px;
}

.footer-desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.footer-social-btn {
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.footer-social-btn:hover {
  border-color: var(--orange);
  background: rgba(243, 141, 51, 0.15);
}

.footer-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
  margin-bottom: 6px;
}

.footer-link {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--orange);
}

.footer-bottom {
  width: 100%;
  text-align: center;
  padding-top: 30px;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-legal-links {
  width: 100%;
  text-align: center;
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 12.5px;
}

.footer-legal-links a { color: rgba(255, 255, 255, 0.5); text-decoration: none; }
.footer-legal-links a:hover { color: var(--orange); }

/* ===== RESPONSIVO (tablet) ===== */
@media (max-width: 900px) {
  .paths-grid { grid-template-columns: repeat(2, 1fr); }

  .detail-row,
  .detail-row-reverse {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }

  .detail-media { flex: 0 0 auto; width: 220px; }
  .detail-kicker { justify-content: center; }
  .detail-desc { margin-left: auto; margin-right: auto; }
  .detail-list { align-items: flex-start; margin-left: auto; margin-right: auto; width: fit-content; }
}

/* ===== RESPONSIVO (celular) ===== */
@media (max-width: 640px) {
  .hub-hero { min-height: 100vh; }
  .hub-hero-title { font-size: 30px; }
  .hub-hero-subtitle { font-size: 15px; }
  .hub-hero-logo { width: 84px; height: 84px; }

  .paths-section { padding: 60px 20px; }
  .paths-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .path-card { aspect-ratio: 1 / 1.1; border-radius: 16px; }
  .path-card-top { top: 10px; left: 10px; right: 10px; }
  .path-number { font-size: 11px; }
  .path-card-icon img { width: 64px; height: 64px; }
  .path-card-overlay { height: 72%; }
  .path-card-body { padding: 0 12px 14px; gap: 3px; }
  .path-title { font-size: 15px; }
  .path-desc { display: none; }
  .path-cta { font-size: 11px; margin-top: 2px; gap: 5px; }

  .section-title { font-size: 24px; }
  .section-subtitle { font-size: 14px; }

  .detail-section,
  .why-choose,
  .faq-section {
    padding: 50px 20px;
  }

  .detail-row { margin-bottom: 60px; }
  .detail-title { font-size: 22px; }
  .detail-media { width: 180px; }

  .why-steps {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }

  .why-steps::before { display: none; }

  .site-footer { padding: 50px 20px 20px; gap: 32px; }
  .footer-col { min-width: 100%; }
  .footer-desc { max-width: 100%; }
}
