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

:root {
  --navy: #081e3f;
  --navy-mid: #0a2e5e;
  --red: #c0150f;
  --red-bright: #e01a12;
  --gold: #d4a017;
  --light: #f0f3f7;
  --white: #ffffff;
  --gray: #8a9ab5;
  --font-head: 'Oswald', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--navy);
  overflow-x: hidden;
}

/* ─── NAVBAR ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 68px;
  background: rgba(8,30,63,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--red);
}
.logo {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--white);
  letter-spacing: 2px;
}
.logo span { color: var(--red); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover { color: var(--red); }
.nav-cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 8px 20px;
  font-size: 0.8rem !important;
  letter-spacing: 2px !important;
}
.nav-cta:hover { background: var(--red-bright); color: var(--white) !important; }

/* ─── HERO ─── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(8,30,63,0.92) 0%, rgba(192,21,15,0.4) 100%),
    url('https://images.unsplash.com/photo-1584820927498-cfe5211fd8bf?w=1600&q=80') center/cover no-repeat;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-accent {
  position: absolute;
  right: -120px; top: 50%;
  transform: translateY(-50%);
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192,21,15,0.25) 0%, transparent 65%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 140px 5% 80px;
  animation: fadeUp .9s ease both;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(192,21,15,0.2);
  border: 1px solid rgba(192,21,15,0.5);
  color: #f08080;
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 6px 16px;
  margin-bottom: 28px;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.6); }
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: 1px;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.hero-title .accent { color: var(--red); }
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 44px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 36px;
  text-decoration: none;
  border: 2px solid var(--red);
  transition: all .25s;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.btn-primary:hover { background: var(--red-bright); border-color: var(--red-bright); transform: translateY(-2px); }
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 36px;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.5);
  transition: all .25s;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.btn-secondary:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }
.hero-stats {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.stat {
  padding: 28px 40px;
  border-right: 1px solid rgba(255,255,255,0.1);
  animation: fadeUp .9s ease both;
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  color: var(--white);
  font-weight: 700;
}
.stat-num .unit { color: var(--red); font-size: 1.4rem; }
.stat-label {
  font-size: 0.8rem;
  color: var(--gray);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── SECTION COMMONS ─── */
section { padding: 100px 5%; }
.section-tag {
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-tag::before {
  content: '';
  width: 30px; height: 2px;
  background: var(--red);
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.1;
}
.section-title.light { color: var(--white); }

/* ─── CURSOS ─── */
#cursos { background: var(--light); }
.cursos-intro {
  max-width: 600px;
  margin-bottom: 60px;
}
.cursos-intro p {
  font-size: 1.05rem;
  color: #4a5a75;
  line-height: 1.7;
  margin-top: 16px;
}
.cursos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.curso-card {
  position: relative;
  background: var(--white);
  padding: 48px 40px;
  overflow: hidden;
  transition: transform .3s;
  cursor: pointer;
}
.curso-card:hover { transform: translateY(-6px); z-index: 2; box-shadow: 0 20px 60px rgba(8,30,63,0.15); }
.curso-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.curso-card:hover::before { transform: scaleX(1); }
.curso-num {
  font-family: var(--font-head);
  font-size: 5rem;
  color: rgba(8,30,63,0.06);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 12px;
}
.curso-icon {
  width: 56px; height: 56px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.6rem;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.curso-level {
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.curso-name {
  font-family: var(--font-head);
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.2;
}
.curso-desc {
  font-size: 0.95rem;
  color: #5a6a85;
  line-height: 1.6;
  margin-bottom: 24px;
}
.curso-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  padding: 16px 0;
  border-top: 1px solid var(--light);
  border-bottom: 1px solid var(--light);
}
.meta-item { font-size: 0.8rem; color: var(--gray); }
.meta-item strong { display: block; color: var(--navy); font-weight: 600; font-size: 0.9rem; }
.btn-curso {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--red);
  padding-bottom: 4px;
  transition: color .2s, gap .2s;
}
.btn-curso:hover { color: var(--red); gap: 14px; }

/* ─── WHY ─── */
#porque {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
#porque::before {
  content: 'AISAPH';
  position: absolute;
  right: -40px; bottom: -60px;
  font-family: var(--font-head);
  font-size: 18rem;
  font-weight: 700;
  color: rgba(255,255,255,0.02);
  line-height: 1;
  pointer-events: none;
  letter-spacing: -10px;
}
.porque-header { max-width: 560px; margin-bottom: 70px; }
.porque-header p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-top: 16px;
}
.porque-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}
.porque-item {
  padding: 44px;
  border: 1px solid rgba(255,255,255,0.07);
  transition: background .3s;
}
.porque-item:hover { background: rgba(255,255,255,0.04); }
.porque-item .icon-wrap {
  width: 50px; height: 50px;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 24px;
}
.porque-item h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.porque-item p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}

/* ─── PARCEIROS ─── */
#parceiros { background: var(--white); padding: 60px 5%; }
.parceiros-label {
  text-align: center;
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 40px;
}
.parceiros-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 50px;
}
.parceiro-tag {
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(8,30,63,0.25);
  font-weight: 700;
  transition: color .2s;
  cursor: default;
}
.parceiro-tag:hover { color: var(--navy); }

/* ─── DEPOIMENTOS ─── */
#depoimentos { background: var(--light); }
.dep-header { text-align: center; margin-bottom: 60px; }
.dep-header p { font-size: 1.05rem; color: #4a5a75; margin-top: 12px; }
.dep-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.dep-card {
  background: var(--white);
  padding: 40px;
  position: relative;
  border-bottom: 3px solid transparent;
  transition: border-color .3s, transform .3s;
}
.dep-card:hover { border-color: var(--red); transform: translateY(-4px); }
.dep-quote {
  font-family: var(--font-head);
  font-size: 5rem;
  color: var(--red);
  line-height: .6;
  margin-bottom: 20px;
  opacity: 0.4;
}
.dep-text {
  font-size: 1rem;
  color: #3a4a65;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 28px;
}
.dep-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.dep-avatar {
  width: 44px; height: 44px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--white);
  font-weight: 700;
  flex-shrink: 0;
}
.dep-name { font-family: var(--font-head); font-size: 0.9rem; letter-spacing: 1px; color: var(--navy); text-transform: uppercase; }
.dep-role { font-size: 0.8rem; color: var(--gray); }

/* ─── IN-COMPANY ─── */
#incompany {
  background: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 100px 5%;
}
.incompany-img {
  position: relative;
  height: 500px;
  overflow: hidden;
}
.incompany-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
}
.incompany-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(192,21,15,0.2), transparent 60%);
}
.incompany-badge {
  position: absolute;
  bottom: 30px; right: -20px;
  z-index: 2;
  background: var(--red);
  color: var(--white);
  padding: 20px 30px;
  font-family: var(--font-head);
  text-align: center;
  box-shadow: 0 10px 40px rgba(192,21,15,0.4);
}
.incompany-badge .num { font-size: 2.5rem; font-weight: 700; display: block; }
.incompany-badge .label { font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; opacity: .8; }
.incompany-content p {
  font-size: 1.05rem;
  color: #4a5a75;
  line-height: 1.7;
  margin: 20px 0 32px;
}
.incompany-list { list-style: none; margin-bottom: 40px; }
.incompany-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.95rem;
  color: #3a4a65;
  padding: 14px 0;
  border-bottom: 1px solid var(--light);
  line-height: 1.5;
}
.incompany-list li::before {
  content: '▸';
  color: var(--red);
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ─── CALENDARIO ─── */
#calendario { background: var(--navy); }
.cal-header { max-width: 600px; margin-bottom: 60px; }
.cal-header p { color: rgba(255,255,255,0.6); line-height: 1.7; margin-top: 14px; }
.cal-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.turmas { }
.turma {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background .2s;
}
.turma:last-child { border-bottom: none; }
.turma-date {
  background: var(--red);
  padding: 12px 16px;
  text-align: center;
  min-width: 64px;
  flex-shrink: 0;
}
.turma-date .day {
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--white);
  font-weight: 700;
  line-height: 1;
}
.turma-date .month {
  font-family: var(--font-head);
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
}
.turma-info h4 {
  font-family: var(--font-head);
  color: var(--white);
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.turma-info span {
  font-size: 0.85rem;
  color: var(--gray);
}
.turma-tag {
  margin-left: auto;
  font-family: var(--font-head);
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
}

/* Formulário */
.form-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 44px;
}
.form-card h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.form-card p { font-size: 0.9rem; color: var(--gray); margin-bottom: 32px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
}
.form-group input,
.form-group select {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color .2s;
  -webkit-appearance: none;
}
.form-group input::placeholder { color: rgba(255,255,255,0.3); }
.form-group input:focus,
.form-group select:focus { border-color: var(--red); }
.form-group select option { background: var(--navy); }
.btn-submit {
  width: 100%;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 18px;
  border: none;
  cursor: pointer;
  transition: background .25s;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.btn-submit:hover { background: var(--red-bright); }

/* ─── CTA FINAL ─── */
#cta-final {
  background: var(--red);
  padding: 100px 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}
#cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 30px,
    rgba(0,0,0,0.03) 30px,
    rgba(0,0,0,0.03) 60px
  );
}
.cta-content { position: relative; z-index: 1; }
.cta-content .section-tag { justify-content: center; color: rgba(255,255,255,0.7); }
.cta-content .section-tag::before { background: rgba(255,255,255,0.5); }
.cta-content h2 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 4rem);
  text-transform: uppercase;
  color: var(--white);
  margin: 16px 0 20px;
  line-height: 1.1;
}
.cta-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin: 0 auto 44px;
  line-height: 1.65;
}
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-white {
  display: inline-block;
  background: var(--white);
  color: var(--red);
  font-family: var(--font-head);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 18px 44px;
  text-decoration: none;
  font-weight: 600;
  transition: all .25s;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.btn-white:hover { background: var(--navy); color: var(--white); }
.btn-outline-white {
  display: inline-block;
  background: transparent;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 18px 44px;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.6);
  transition: all .25s;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

/* ─── FOOTER ─── */
footer {
  background: #04121f;
  padding: 60px 5% 30px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 30px;
}
.footer-logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.footer-logo span { color: var(--red); }
.footer-desc { font-size: 0.9rem; color: rgba(255,255,255,0.4); line-height: 1.65; margin-bottom: 24px; }
.footer-contact a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color .2s;
}
.footer-contact a:hover { color: var(--white); }
.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color .2s;
}
.footer-col ul a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.25);
}
.social-links { display: flex; gap: 16px; }
.social-links a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all .2s;
  font-family: var(--font-head);
  font-weight: 700;
}
.social-links a:hover { background: var(--red); border-color: var(--red); color: var(--white); }

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .cursos-grid { grid-template-columns: 1fr; }
  .porque-grid { grid-template-columns: 1fr; }
  #incompany { grid-template-columns: 1fr; }
  .incompany-img { height: 300px; }
  .cal-layout { grid-template-columns: 1fr; }
  .dep-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}