/* ===========================
   Patria Academy 2027 — Estágio
   Paleta oficial KV 2027 (CORES.svg):
     Branco #FFFFFF · Mint #B6FFE3 · Brand #88AAFF · Navy #0D0D39
   Tipografia oficial: TG Haido Grotesk (fallback Inter)
   =========================== */

@font-face {
  font-family: 'TG Haido Grotesk';
  src: url('fonts/TGHaidoGrotesk-Light.woff2') format('woff2'),
       url('fonts/TGHaidoGrotesk-Light.otf')  format('opentype');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'TG Haido Grotesk';
  src: url('fonts/TGHaidoGrotesk-Regular.woff2') format('woff2'),
       url('fonts/TGHaidoGrotesk-Regular.otf')  format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'TG Haido Grotesk';
  src: url('fonts/TGHaidoGrotesk-Medium.woff2') format('woff2'),
       url('fonts/TGHaidoGrotesk-Medium.otf')  format('opentype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'TG Haido Grotesk';
  src: url('fonts/TGHaidoGrotesk-SemiBold.woff2') format('woff2'),
       url('fonts/TGHaidoGrotesk-SemiBold.otf')  format('opentype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'TG Haido Grotesk';
  src: url('fonts/TGHaidoGrotesk-Bold.woff2') format('woff2'),
       url('fonts/TGHaidoGrotesk-Bold.otf')  format('opentype');
  font-weight: 700; font-style: normal; font-display: swap;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

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

::selection { background: #88AAFF; color: #0D0D39; }

body {
  font-family: 'TG Haido Grotesk', 'Inter', Arial, sans-serif;
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
  background: #ffffff;
  color: #0D0D39;
  overflow-x: hidden;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.003em;
  line-height: 1.65;
}

p { line-height: 1.65; padding-top: .05em; padding-bottom: .05em; font-weight: 500; }

.font-display       { font-family: 'TG Haido Grotesk', 'Inter', Arial, sans-serif; font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }
.font-display-italic{ font-family: 'TG Haido Grotesk', 'Inter', Arial, sans-serif; font-weight: 600; font-style: normal; color: inherit; line-height: 1.2; }

/* Garante que acentos e ascenders não sejam cortados em títulos com leading-[1] do Tailwind */
h1, h2, h3, h4 { padding-top: .08em; padding-bottom: .06em; }

/* ----- Header / Nav ----- */
#header {
  transition: background-color .35s ease, box-shadow .35s ease, padding .35s ease;
  background-color: transparent;
}
#header.is-scrolled {
  background-color: #ffffff;
  box-shadow: 0 6px 20px rgba(13,13,57,.08);
}
#header .nav-link { color: #ffffff; transition: color .25s ease; }
#header.is-scrolled .nav-link { color: #0D0D39; }
#header .nav-link::after {
  content: '';
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: #88AAFF;
  transition: width .3s ease;
}
#header .nav-link:hover::after,
#header .nav-link.is-active::after { width: 100%; }
/* Logo Patria Academy 2027 — duas variantes (branco / navy) alternando no scroll */
#header .header-logo { opacity: 1; display: inline-flex; align-items: center; }
#header .header-logo .logo-light { display: inline-block; }
#header .header-logo .logo-dark  { display: none; }
#header.is-scrolled .header-logo .logo-light { display: none; }
#header.is-scrolled .header-logo .logo-dark  { display: inline-block; }
#header .hamburger span { background-color: #ffffff; transition: background-color .25s ease, transform .3s ease, opacity .3s ease; }
#header.is-scrolled .hamburger span { background-color: #0D0D39; }
#header.menu-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#header.menu-open .hamburger span:nth-child(2) { opacity: 0; }
#header.menu-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----- Mobile nav overlay ----- */
#mobile-nav {
  position: fixed; inset: 0; z-index: 60;
  background: linear-gradient(165deg, #0D0D39 0%, #1A1A55 100%);
  transform: translateY(-100%);
  transition: transform .45s cubic-bezier(.65,0,.35,1);
}
#mobile-nav.is-open { transform: translateY(0); }
#mobile-nav a { color: #fff; }

/* ----- Hero ----- */
.hero-bg {
  background:
    radial-gradient(ellipse at 80% 30%, rgba(136,170,255,.10) 0%, transparent 55%),
    linear-gradient(160deg, #0D0D39 0%, #1A1A55 45%, #252570 100%);
}
.hero-grid-overlay { display: none; }
.hero-vignette {
  background: radial-gradient(ellipse at 75% 50%, transparent 0%, rgba(13,13,57,.55) 70%);
  pointer-events: none;
}
.hero-rule { background: linear-gradient(90deg, #88AAFF 0%, #88AAFF 70%, transparent 100%); }

/* ----- Reveal on scroll ----- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }

/* ----- Botões: retângulo com raio 10px (Patria Academy 2027) ----- */
.btn-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 32px 14px;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1;
  transition: transform .3s ease, background-color .3s ease, box-shadow .3s ease, color .3s ease, border-color .3s ease;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(136,170,255,.32); }

/* primário azul claro #88AAFF sobre fundo claro */
.btn-gold,
.btn-brand { background: #88AAFF; color: #0D0D39; }
.btn-gold:hover,
.btn-brand:hover { background: #6f95f5; }

/* secundário mint #B6FFE3 sobre fundo azul escuro */
.btn-mint { background: #B6FFE3; color: #0D0D39; }
.btn-mint:hover { background: #9bf3d0; box-shadow: 0 14px 30px rgba(182,255,227,.35); }

.btn-ghost { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-ghost:hover { background: #fff; color: #0D0D39; }
.btn-navy { background: #0D0D39; color: #fff; }
.btn-navy:hover { background: #1A1A55; }

/* ----- Cards "Por que se inscrever" (legado, não usado nesta versão) ----- */
.reason-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(13,13,57,.08);
  border-radius: 4px;
  padding: 40px 32px 36px;
  transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease;
  overflow: hidden;
}
.reason-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 0; height: 3px;
  background: #88AAFF;
  transition: width .5s ease;
}
.reason-card:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(13,13,57,.12); border-color: rgba(136,170,255,.5); }
.reason-card:hover::before { width: 100%; }
.reason-num {
  font-family: 'TG Haido Grotesk', 'Inter', Arial, sans-serif;
  font-weight: 600;
  font-size: 56px;
  line-height: 1;
  color: #88AAFF;
  letter-spacing: -.03em;
}

/* ----- Sobre: foto polaroid (legado) ----- */
.polaroid {
  position: relative;
  background: #fff;
  padding: 14px 14px 60px;
  box-shadow: 0 30px 70px rgba(13,13,57,.18), 0 6px 20px rgba(13,13,57,.08);
  transform: rotate(-2deg);
  transition: transform .5s ease, box-shadow .5s ease;
}
.polaroid:hover { transform: rotate(0deg) scale(1.02); }
.polaroid::after {
  content: 'Patria Academy · 2027';
  position: absolute; left: 0; right: 0; bottom: 16px;
  text-align: center;
  font-family: 'TG Haido Grotesk', 'Inter', Arial, sans-serif;
  font-weight: 500;
  color: #0D0D39;
  letter-spacing: .12em;
  font-size: 13px;
}

/* ----- Pré-requisitos cards (fundo azul escuro -> mint) ----- */
.req-card {
  position: relative;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(6px);
  padding: 28px 26px;
  transition: background .35s ease, border-color .35s ease, transform .35s ease;
  border-radius: 10px;
}
.req-card:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(182,255,227,.55);
  transform: translateY(-4px);
}

/* ----- Benefícios cards (cards brancos sobre fundo navy) ----- */
.benefit-card {
  position: relative;
  padding: 28px 26px;
  border-radius: 10px;
  transition: transform .35s ease, box-shadow .35s ease;
}
.benefit-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.benefit-card-white { background: #ffffff; }
.benefit-card-mint  { background: #B6FFE3; }
.benefit-card-brand { background: #88AAFF; }

.benefit-amount { color: #88AAFF; font-family: 'TG Haido Grotesk', 'Inter', Arial, sans-serif; font-weight: 600; }

/* ----- Vídeo institucional (placeholder 16:9, sobre fundo claro) ----- */
.video-placeholder {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  background:
    radial-gradient(ellipse at center, rgba(182,255,227,.12) 0%, transparent 65%),
    linear-gradient(160deg, #0D0D39 0%, #1A1A55 100%);
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 22px 50px rgba(13,13,57,.18);
  display: flex; align-items: center; justify-content: center;
}
.video-placeholder::before { content: none; }
.video-placeholder > div { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }

/* Vídeo institucional embed (YouTube 16:9) */
.video-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(13,13,57,.18);
  background: #0D0D39;
}
.video-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ----- Depoimentos (YouTube Shorts) — fundo azul escuro -> mint ----- */
.depoimento-card {
  position: relative;
  transition: transform .4s ease, box-shadow .4s ease;
}
.depoimento-card:hover { transform: translateY(-6px); }

.depoimento-placeholder {
  background:
    radial-gradient(ellipse at center, rgba(182,255,227,.10) 0%, transparent 65%),
    linear-gradient(160deg, #0D0D39 0%, #1A1A55 100%);
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
}
.depoimento-placeholder::before { content: none; }
.depoimento-placeholder .placeholder-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px;
  text-align: center;
  padding: 0 20px;
}
.depoimento-placeholder .play-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(182,255,227,.18);
  border: 1px solid rgba(182,255,227,.55);
}
.depoimento-placeholder .play-circle svg path { fill: #B6FFE3 !important; }
.depoimento-placeholder .placeholder-label {
  font-family: 'TG Haido Grotesk', 'Inter', Arial, sans-serif;
  font-weight: 600;
  color: #fff;
  font-size: 20px;
  letter-spacing: .03em;
}
.depoimento-frame {
  position: relative;
  width: 100%;
  padding-bottom: 177.78%; /* 9:16 vertical (Shorts) */
  background: #0D0D39;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(13,13,57,.18);
}
.depoimento-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.depoimento-frame::after {
  content: ''; position: absolute; inset: 0;
  border: 1px solid rgba(182,255,227,.0);
  pointer-events: none;
  border-radius: 10px;
  transition: border-color .35s ease;
}
.depoimento-card:hover .depoimento-frame::after { border-color: rgba(182,255,227,.65); }

/* ----- Frame com cor azul atrás das fotos (Sobre o Patria) ----- */
.photo-frame {
  position: relative;
}
.photo-frame::before {
  content: '';
  position: absolute;
  width: 100%; height: 100%;
  background: #88AAFF;
  z-index: 0;
  border-radius: 4px;
}
.photo-frame-tl::before { top: -14px; left: -14px; }
.photo-frame-tr::before { top: -14px; right: -14px; }
.photo-frame-bl::before { bottom: -14px; left: -14px; }
.photo-frame-br::before { bottom: -14px; right: -14px; }

@media (max-width: 767px) {
  .photo-frame-tl::before, .photo-frame-tr::before,
  .photo-frame-bl::before, .photo-frame-br::before {
    top: auto; bottom: auto; left: auto; right: auto;
  }
  .photo-frame-tl::before { top: -8px; left: -8px; }
  .photo-frame-tr::before { top: -8px; right: -8px; }
  .photo-frame-bl::before { bottom: -8px; left: -8px; }
  .photo-frame-br::before { bottom: -8px; right: -8px; }
}

/* ----- Áreas de atuação (fundo claro -> brand) ----- */
.area-card { display: block; cursor: pointer; width: 100%; text-align: center; }
.area-card:hover { background: rgba(255,255,255,.10); }

/* Ícone das áreas (substitui números 01-07) — line-art geométrico estilo clássico */
.area-icon {
  width: 44px; height: 44px;
  display: block; margin: 0 auto;
  transition: stroke .35s ease, transform .35s ease;
}
.area-card-light:hover .area-icon { transform: translateY(-2px); }

.area-card-light {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(13,13,57,.08);
  border-radius: 10px;
  padding: 28px 26px;
  transition: background .35s ease, border-color .35s ease, transform .35s ease, box-shadow .35s ease;
}
.area-card-light:hover {
  background: #ffffff;
  border-color: rgba(136,170,255,.6);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(13,13,57,.10);
}
.area-card-light.bg-patria-gold,
.area-card-light.bg-patria-gold:hover,
.area-card-light.bg-patria-brand,
.area-card-light.bg-patria-brand:hover { background: #88AAFF; border-color: #88AAFF; }

/* ----- Modal área ----- */
.area-modal {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.area-modal.is-open { opacity: 1; visibility: visible; }
.area-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(8,22,58,.78);
  backdrop-filter: blur(6px);
  cursor: pointer;
}
.area-modal-panel {
  position: relative;
  background: #ffffff;
  width: 100%; max-width: 760px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 56px 40px 48px;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(8,22,58,.45);
  transform: translateY(20px) scale(.98);
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.area-modal.is-open .area-modal-panel { transform: translateY(0) scale(1); }
.area-modal-panel::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: #88AAFF;
  border-radius: 10px 10px 0 0;
}
.area-modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: #0D0D39;
  background: transparent;
  transition: background .25s ease, color .25s ease;
}
.area-modal-close:hover { background: #0D0D39; color: #fff; }
body.modal-open { overflow: hidden; }

@media (max-width: 480px) {
  .area-modal-panel { padding: 48px 24px 36px; }
}

/* ----- Etapas timeline (fundo claro -> brand) ----- */
.step {
  position: relative;
  background: #fff;
  border: 1px solid rgba(13,13,57,.08);
  border-radius: 10px;
  padding: 28px 24px 26px;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(13,13,57,.10); border-color: rgba(136,170,255,.6); }
.step-num {
  font-family: 'TG Haido Grotesk', 'Inter', Arial, sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  color: #88AAFF;
}
.step-date {
  display: block;
  font-family: 'TG Haido Grotesk', 'Inter', Arial, sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #88AAFF;
  margin-top: 6px;
}
.step.is-navy .step-num,
.step.is-navy .step-date { color: #B6FFE3; }

/* ----- Counter / Stats ----- */
.stat-num { font-family: 'TG Haido Grotesk', 'Inter', Arial, sans-serif; font-weight: 700; letter-spacing: -.02em; line-height: 1; }

/* ----- Frooty case (legado) ----- */
.case-stat { border-left: 2px solid #88AAFF; }

/* ----- Footer (fundo branco) ----- */
footer .social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid rgba(13,13,57,.20);
  border-radius: 10px;
  transition: background .3s ease, border-color .3s ease, transform .3s ease;
}
footer .social-icon:hover { background: #88AAFF; border-color: #88AAFF; transform: translateY(-2px); }
footer .social-icon svg { fill: #0D0D39; transition: fill .3s ease; }
footer .social-icon:hover svg { fill: #ffffff; }

/* ----- Float CTA mobile ----- */
.float-cta {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  display: none;
  background: #88AAFF; color: #0D0D39;
  padding: 12px 22px; border-radius: 10px;
  font-weight: 700; letter-spacing: .02em; font-size: 13px;
  box-shadow: 0 14px 30px rgba(13,13,57,.25);
}
@media (max-width: 767px) { .float-cta { display: inline-flex; } }

/* ----- Decorative ornament ----- */
.ornament {
  display: inline-flex; align-items: center; gap: 18px;
  font-family: 'TG Haido Grotesk', 'Inter', Arial, sans-serif;
  font-weight: 500;
  color: #88AAFF;
  letter-spacing: .22em; text-transform: uppercase;
  font-size: 13px;
  line-height: 1.2;
}
.ornament::before, .ornament::after {
  content: ''; display: inline-block;
  width: 42px; height: 1px; background: #88AAFF;
}
/* sobre fundo escuro */
section[style*="bg-section"] .ornament,
section.bg-patria-navy .ornament,
section.bg-patria-deep .ornament,
#inscricao .ornament,
footer .ornament { color: #B6FFE3; }
section[style*="bg-section"] .ornament::before,
section[style*="bg-section"] .ornament::after,
#inscricao .ornament::before,
#inscricao .ornament::after { background: #B6FFE3; }

@media (max-width: 480px) {
  .ornament { font-size: 12px; gap: 14px; letter-spacing: .2em; }
  .ornament::before, .ornament::after { width: 28px; }
}

/* ----- Marquee (logos portfolio) ----- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 64px; align-items: center; width: max-content; animation: marquee 36s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ----- Linha fina ----- */
.fine-rule { background: linear-gradient(90deg, transparent 0%, #88AAFF 20%, #88AAFF 80%, transparent 100%); height: 1px; }
/* em seções escuras */
section[style*="bg-section"] .fine-rule,
#inscricao .fine-rule,
footer .fine-rule,
.area-modal-panel + .fine-rule { background: linear-gradient(90deg, transparent 0%, #B6FFE3 20%, #B6FFE3 80%, transparent 100%); }

/* ----- Shimmer accent ----- */
.shimmer-line {
  background: linear-gradient(90deg, transparent, #B6FFE3 40%, #B6FFE3 60%, transparent);
  height: 1px;
  position: relative;
  overflow: hidden;
}
.shimmer-line::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
  animation: shimmer 3.5s ease-in-out infinite;
}
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(200%); } }

@media (max-width: 767px) {
  .polaroid { transform: rotate(-1deg); }
  .reason-num { font-size: 44px; }
}
