/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #1B3A5C;
  --navy-light: #24507A;
  --navy-dark: #122840;
  --white: #FFFFFF;
  --gray-50: #F7F8FA;
  --gray-100: #ECEEF2;
  --gray-200: #D8DCE3;
  --gray-600: #5A6270;
  --gray-800: #2C2F36;
  --gold: #B8934A;
  --max-width: 960px;
  --header-height: 64px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--navy);
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== HEADER / NAV ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--navy);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.header-inner {
  width: 100%;
  max-width: var(--max-width);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== MAIN CONTENT ===== */
main {
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height) - 80px);
}

/* ===== HOME: HERO EM TELA CHEIA ===== */
.home-hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  margin-top: calc(-1 * var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--navy-dark);
}

.home-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(14, 35, 56, 0.72) 0%, rgba(14, 35, 56, 0.42) 45%, rgba(14, 35, 56, 0.85) 100%);
}

.home-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}

.home-hero-mark {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  margin: 0 auto 28px;
}

.home-hero h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 56px;
  font-weight: 600;
  line-height: 1.12;
  color: var(--white);
  max-width: 14ch;
  margin: 0 auto 20px;
}

.home-hero-sub {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  max-width: 44ch;
  margin: 0 auto;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.hero-scroll svg {
  width: 18px;
  height: 18px;
  animation: heroNudge 2.4s ease-in-out infinite;
}

@keyframes heroNudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll svg { animation: none; }
}

/* ===== HOME: CAIXAS DAS SEÇÕES ===== */
.home-sections {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 88px 24px 96px;
}

.home-sections-lead {
  text-align: center;
  margin-bottom: 48px;
}

.home-sections-lead h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}

.home-sections-lead p {
  font-size: 15px;
  color: var(--gray-600);
  max-width: 50ch;
  margin: 0 auto;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.section-box {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  padding: 36px 28px 0;
  background: var(--white);
  transition: border-color 0.25s, background 0.25s;
}

.section-box:hover {
  border-color: var(--navy);
  background: var(--gray-50);
}

.section-box-icon {
  color: var(--navy);
  margin-bottom: 22px;
}

.section-box-icon svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.1;
}

.section-box h3 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}

.section-box p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--gray-600);
  flex-grow: 1;
  margin-bottom: 28px;
}

.section-box-action {
  border-top: 1px solid var(--gray-100);
  padding: 16px 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-box-action svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.6;
  transition: transform 0.25s;
}

.section-box:hover .section-box-action svg {
  transform: translateX(4px);
}

.page-hero {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
  padding: 48px 24px;
  text-align: center;
}

.page-hero h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.page-hero p {
  font-size: 15px;
  color: var(--gray-600);
  max-width: 540px;
  margin: 0 auto;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
}

/* ===== EMBED CONTAINER ===== */
.embed-wrapper {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 10px;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.embed-wrapper iframe {
  width: 100%;
  height: 600px;
  border: none;
}

.embed-placeholder {
  text-align: center;
  padding: 60px 24px;
  color: var(--gray-600);
}

.embed-placeholder .placeholder-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.embed-placeholder p {
  font-size: 14px;
}

.embed-placeholder code {
  display: block;
  margin-top: 12px;
  background: var(--gray-100);
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--gray-800);
  text-align: left;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  word-break: break-all;
}

/* ===== ACCORDION (TREINAMENTOS) ===== */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion-item {
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
}

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background 0.2s;
}

.accordion-header:hover {
  background: var(--gray-50);
}

.accordion-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
}

.accordion-subtitle {
  font-size: 13px;
  color: var(--gray-600);
  font-weight: 400;
  margin-top: 2px;
}

.accordion-chevron {
  width: 20px;
  height: 20px;
  color: var(--gray-600);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 16px;
}

.accordion-item.open .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.accordion-body-inner {
  padding: 0 24px 24px;
}

.accordion-body-inner .embed-wrapper {
  min-height: 400px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 24px;
  font-size: 13px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    padding: 12px 24px 20px;
    gap: 4px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 12px 16px;
    font-size: 15px;
  }

  .home-hero {
    height: 92vh;
    min-height: 480px;
  }

  .home-hero h1 {
    font-size: 34px;
    max-width: 16ch;
  }

  .home-hero-sub {
    font-size: 14px;
  }

  .home-hero-mark {
    height: 38px;
    margin-bottom: 20px;
  }

  .home-sections {
    padding: 56px 20px 64px;
  }

  .home-sections-lead {
    margin-bottom: 32px;
  }

  .home-sections-lead h2 {
    font-size: 23px;
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section-box {
    padding: 28px 24px 0;
  }

  .page-hero {
    padding: 32px 20px;
  }

  .page-hero h1 {
    font-size: 22px;
  }

  .container {
    padding: 32px 20px;
  }

  .embed-wrapper iframe {
    height: 450px;
  }

  .site-logo {
    font-size: 13px;
  }
}

/* ===== HEADER TRANSPARENTE NA HOME ===== */
.home-page .site-header {
  background: transparent;
  box-shadow: none;
  transition: background 0.3s, box-shadow 0.3s;
}

.home-page .site-header.scrolled {
  background: var(--navy);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.home-page main {
  margin-top: 0;
}

@media (max-width: 768px) {
  .home-page .nav-links.open {
    background: var(--navy-dark);
  }
}
