/* ===== Base ===== */
html { scroll-behavior: auto; }
::selection { background: #f5a623; color: #0b0f16; }

*:focus-visible {
  outline: 2px solid #f5a623;
  outline-offset: 2px;
  border-radius: 4px;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f5f7fb; }
::-webkit-scrollbar-thumb { background: #dde3ec; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #c7cfdc; }

/* ===== Balanced line breaks (titles + body) =====
   Headings wrap onto visually even lines instead of leaving a lonely
   short last line; body copy avoids single-word orphans on the last line. */
h1, h2, h3, h4,
.eyebrow, .lead, .h1, .h2, .h3 {
  text-wrap: balance;
}
p, li, blockquote, figcaption,
.body-text, .check-item, .certificate__body, .testimonial p, .include-card p, .reason-row p {
  text-wrap: pretty;
}

/* ===== Type scale (standardized across the page) =====
   h1  56/48/36px  weight 800  , hero headline only
   h2  36/28px     weight 800  , section titles
   h3  20px        weight 800  , card / subsection titles
   lead 18px       weight 400  , intro paragraph under a section title
   body 15px       weight 400  , default reading text (lists, cards, quotes)
   caption 13px    weight 400/600 , fine print, meta, privacy microcopy
   eyebrow 11px    mono, weight 600, uppercase , small label above a title
*/
.h1 {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  font-size: 2.25rem;
}
.h2 {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  font-size: 1.75rem;
}
.h3 {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  line-height: 1.3;
  font-size: 1.25rem;
}
.eyebrow {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.lead {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.65;
}
.body-text {
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.65;
}
.text-caption {
  font-size: 0.8125rem;
  line-height: 1.5;
}

@media (max-width: 639px) {
  .hero-title { font-size: 40px; }
  .cta-final-title { font-size: 35px; }
}
@media (min-width: 640px) {
  .h1 { font-size: 2.75rem; }
  .h2 { font-size: 2.25rem; }
}
@media (min-width: 1024px) {
  .h1 { font-size: 50px; }
  .h2 { font-size: 45px; }
}

/* ===== Standard section spacing (Section > Column model) ===== */
.section-block {
  padding-top: 30px;
  padding-bottom: 30px;
  margin-top: 30px;
  margin-bottom: 30px;
}
.section-block-top {
  padding-bottom: 30px;
  margin-bottom: 30px;
}
@media (max-width: 639px) {
  .section-block-top {
    padding-bottom: 56px;
    margin-bottom: 0;
  }
  #inscricao {
    margin-top: 0;
  }
}

/* ===== Hero ambient background ===== */
.hero-ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0) 100%);
}
.hero-ambient img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.08;
}

/* ===== Thank-you page ambient background ===== */
.thanks-ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%);
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%);
}
.thanks-ambient img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.08;
}

/* ===== Nav ===== */
.nav-link {
  color: #333d4d;
  transition: color 0.15s ease;
  position: relative;
}
.nav-link:hover { color: #0b0f16; }
.nav-link-mobile {
  display: block;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(11,15,22,0.06);
}

/* ===== Form card ===== */
.form-card {
  background: #3b6fed;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 24px 60px -30px rgba(59,111,237,0.5);
}
.form-card h3 {
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: center;
  font-size: 1.875rem;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  background: #f5f7fb;
  border: 1px solid #dde3ec;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 16px;
  color: #0b0f16;
  font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field input::placeholder { color: #8891a0; }
.field input:focus { outline: none; border-color: #3b6fed; background: #ffffff; }
.field input.is-invalid { border-color: #e5484d; }
.field__error {
  display: block;
  min-height: 15px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  margin-top: 4px;
}

.btn-cta {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffc247, #f5a623);
  color: #1a1102;
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 15px 24px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 14px 30px -14px rgba(245, 166, 35, 0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
  isolation: isolate;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(245, 166, 35, 0.7); }
.btn-cta:active { transform: scale(0.98); }
.btn-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 2px;
  background-image: radial-gradient(transparent, transparent, #d98a0f, #ffffff, #fff6da, transparent, transparent);
  background-size: 300% 300%;
  filter: drop-shadow(0 0 5px rgba(217, 138, 15, 0.65));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: btn-cta-shine 9s linear infinite;
  pointer-events: none;
}
@keyframes btn-cta-shine {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-cta::before { animation: none; }
}

/* ===== Card panel (generic light card) ===== */
.card-panel {
  background: #ffffff;
  border: 1px solid rgba(11,15,22,0.08);
  border-radius: 18px;
  padding: 28px;
}

/* ===== Chips ===== */
.chip {
  background: #f5f7fb;
  border: 1px solid #dde3ec;
  color: #0b0f16;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
}

/* ===== Curriculum prop (tank photo, above the title) ===== */
.curriculum-prop {
  display: block;
  margin: -46px auto -46px;
  width: 100%;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 40px rgba(11,15,22,0.16));
}
@media (min-width: 640px) {
  .curriculum-prop {
    width: 640px;
    margin-top: -75px;
    margin-bottom: -75px;
  }
}

/* ===== Curriculum list ===== */
.curriculum-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid rgba(11,15,22,0.08);
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  color: #0b0f16;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.curriculum-item:hover {
  transform: scale(1.02);
  border-color: rgba(59,111,237,0.35);
  box-shadow: 0 8px 20px rgba(11,15,22,0.06);
}
.curriculum-item span {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  color: #d98a0f;
  flex-shrink: 0;
}

/* ===== Reasons ===== */
.reason-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.reason-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  padding: 10px;
  border-radius: 50%;
  background: #3b6fed;
  color: #ffffff;
}
.reason-row h3 {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: #0b0f16;
  margin: 0 0 6px;
}
.reason-row p {
  font-size: 0.9375rem;
  color: #5b6474;
  margin: 0;
  line-height: 1.65;
}

/* ===== Moodboard gallery ===== */
.moodboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 240px 240px 220px;
  grid-template-areas:
    "a a b b"
    "a a c d"
    "e e e e";
  gap: 16px;
}
.moodboard__item {
  position: relative;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(11,15,22,0.08);
  transition: transform 0.3s ease;
}
.moodboard__item--a { grid-area: a; }
.moodboard__item--b { grid-area: b; }
.moodboard__item--c { grid-area: c; }
.moodboard__item--d { grid-area: d; }
.moodboard__item--e { grid-area: e; }
.moodboard__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.moodboard__item:hover img { transform: scale(1.05); }
.moodboard__item figcaption {
  position: absolute;
  left: 12px; bottom: 12px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #0b0f16;
  background: rgba(255,255,255,0.92);
  border-radius: 999px;
}

@media (max-width: 900px) {
  .moodboard {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-template-areas:
      "a"
      "b"
      "c"
      "d"
      "e";
  }
  .moodboard__item { aspect-ratio: 4/3; }
}

/* ===== Includes ===== */
.include-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(11,15,22,0.08);
  border-radius: 14px;
  padding: 20px;
  overflow: hidden;
}
.include-card h3 { font-size: 1.25rem; font-weight: 800; color: #0b0f16; margin: 0 0 6px; font-family: "Archivo", sans-serif; }
.include-card p { font-size: 0.9375rem; color: #5b6474; margin: 0; line-height: 1.65; }
.include-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 1px;
  background-image: radial-gradient(transparent, transparent, #ffe9a8, #ffffff, #fff6da, transparent, transparent);
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: btn-cta-shine 11s linear infinite;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .include-card::before { animation: none; }
}

/* ===== Certificate ===== */
.certificate-frame {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(11,15,22,0.08);
  box-shadow: 0 30px 60px -35px rgba(11,15,22,0.3);
}
.certificate-frame img { display: block; width: 100%; height: auto; }

/* ===== Check items ===== */
.check-item {
  position: relative;
  padding-left: 28px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #333d4d;
  line-height: 1.65;
}
.check-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #f5a623;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 10px;
}

/* ===== Testimonials ===== */
.testimonial {
  background: #ffffff;
  border: 1px solid rgba(11,15,22,0.08);
  border-radius: 16px;
  padding: 24px;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 20px 40px -32px rgba(11,15,22,0.25);
}
.testimonial p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #333d4d;
  margin: 0;
}
.testimonial--feature { background: linear-gradient(155deg, #fff8ec, #ffffff); border-color: rgba(245,166,35,0.35); }
.testimonial--feature p { font-size: 1.125rem; color: #0b0f16; font-weight: 500; line-height: 1.65; }
.testimonial footer {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #3b6fed, #f5a623);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.testimonial footer strong { display: block; font-size: 0.9375rem; font-weight: 700; color: #0b0f16; }
.testimonial footer span { font-size: 0.8125rem; color: #8891a0; }

/* ===== Mentor section striped pattern bg (radial fade) ===== */
.mentor-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(245, 166, 35, 0.16) 0,
    rgba(245, 166, 35, 0.16) 1px,
    transparent 1px,
    transparent 14px
  );
  -webkit-mask-image: radial-gradient(ellipse 130% 130% at center, #000 70%, transparent 100%);
  mask-image: radial-gradient(ellipse 130% 130% at center, #000 70%, transparent 100%);
}

/* ===== Testimonial marquee (two rows, opposite directions, edge fade) ===== */
.testimonial-marquee {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
}
.testimonial-marquee__row { overflow: hidden; }
.testimonial-marquee__track {
  display: flex;
  width: max-content;
  animation: testimonial-marquee-scroll 40s linear infinite;
}
.testimonial-marquee__track--reverse { animation-direction: reverse; }
.testimonial-marquee__row:hover .testimonial-marquee__track {
  animation-play-state: paused;
}
.testimonial-marquee__group {
  display: flex;
  flex-shrink: 0;
  gap: 20px;
  padding-right: 20px;
}
.testimonial-card {
  width: 320px;
  flex-shrink: 0;
  cursor: default;
}
.testimonial-card p {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@keyframes testimonial-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.testimonial-marquee__fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 15%;
  pointer-events: none;
  z-index: 1;
}
.testimonial-marquee__fade--left {
  left: 0;
  background: linear-gradient(to right, #ffffff, transparent);
}
.testimonial-marquee__fade--right {
  right: 0;
  background: linear-gradient(to left, #ffffff, transparent);
}
@media (prefers-reduced-motion: reduce) {
  .testimonial-marquee__track { animation: none; }
}

/* ===== Logo marquee (infinite loop, edge fade) ===== */
.logo-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.logo-marquee__track {
  display: flex;
  width: max-content;
  animation: logo-marquee-scroll 28s linear infinite;
}
.logo-marquee__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 64px;
  padding-right: 64px;
}
.logo-marquee img {
  height: 59px;
  width: auto;
  max-width: none;
  object-fit: contain;
  flex-shrink: 0;
}
@keyframes logo-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-marquee__track { animation: none; }
}

/* ===== Mentor photo (cutout, bleeds to section bottom) ===== */
.mentor-photo img {
  width: 100%;
  max-width: 380px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 30px 30px rgba(11,15,22,0.16));
}

/* ===== Mentor / info cards ===== */
.info-card {
  background: linear-gradient(135deg, #2551c9, #3b6fed);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 16px 20px;
  flex: 1;
  min-width: 190px;
}
.info-card span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #d7e2ff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.info-card p { font-size: 14px; font-weight: 700; color: #ffffff; margin: 0; line-height: 1.45; }

/* ===== Accordion ===== */
.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  color: #0b0f16;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  text-align: left;
  padding: 20px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.accordion-icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  position: relative;
  margin-left: 16px;
}
.accordion-icon::before, .accordion-icon::after {
  content: "";
  position: absolute;
  background: #d98a0f;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}
.accordion-icon::before { width: 12px; height: 2px; }
.accordion-icon::after { width: 2px; height: 12px; }
.accordion-item.is-open .accordion-icon::after { transform: translate(-50%, -50%) rotate(90deg) scaleY(0); }

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.accordion-panel__inner { overflow: hidden; }
.accordion-item.is-open .accordion-panel { grid-template-rows: 1fr; }
.accordion-panel p { padding: 0 4px 20px; font-size: 0.9375rem; color: #5b6474; margin: 0; line-height: 1.65; }

/* ===== CTA final wrapper ===== */
.cta-final { }

/* ===== Reveal (GSAP handles final state; this is the pre-reveal baseline) ===== */
[data-reveal], [data-hero-el] {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-hero-el] {
    opacity: 1 !important;
    transform: none !important;
  }
}
