/* ==========================================================================
   Fonts
   ========================================================================== */
@font-face {
  font-family: 'Space Grotesk';
  src: url('/assets/fonts/SpaceGrotesk-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/assets/fonts/SpaceGrotesk-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/assets/fonts/SpaceGrotesk-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/assets/fonts/IBMPlexSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/assets/fonts/IBMPlexSans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/assets/fonts/IBMPlexSans-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   PMS OCEANUS — Design tokens
   ========================================================================== */
:root {
  /* Color */
  --navy: #0A3A5C;
  --ocean: #0E5677;
  --teal: #1D93A8;
  --aqua: #4FC3D9;
  --foam: #F5F9FA;
  --foam-deep: #E9F1F3;
  --ink: #0D1B24;
  --white: #FFFFFF;
  --ink-soft: #45606E;

  /* Type */
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', sans-serif;

  /* Type scale (fluid) */
  --fs-sm: clamp(0.875rem, 0.83rem + 0.2vw, 0.95rem);
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  --fs-lg: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --fs-xl: clamp(1.5rem, 1.35rem + 0.75vw, 2rem);
  --fs-2xl: clamp(2rem, 1.7rem + 1.5vw, 2.9rem);
  --fs-3xl: clamp(2.6rem, 2.1rem + 2.4vw, 4rem);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5.5rem;
  --space-2xl: 8rem;

  /* Layout */
  --container: 1180px;
  --radius: 10px;
  --border: 1px solid rgba(10, 58, 92, 0.12);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
}
ul[class], ol[class] { list-style: none; padding: 0; }
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea { font: inherit; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--foam);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  font-weight: 700;
}

h2 { font-size: var(--fs-2xl); letter-spacing: -0.01em; }
h3 { font-size: var(--fs-lg); }

p { color: var(--ink-soft); max-width: 62ch; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -60px;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 8px 8px;
  z-index: 200;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-base);
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }

.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 8px 24px -8px rgba(29, 147, 168, 0.55);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--ocean);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(14, 86, 119, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid rgba(10, 58, 92, 0.25);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  border-color: var(--teal);
  color: var(--teal);
}

.btn-on-dark {
  background: var(--white);
  color: var(--navy);
}
.btn-on-dark:hover, .btn-on-dark:focus-visible {
  background: var(--foam);
  transform: translateY(-2px);
}

.btn-lg { padding: 1.1rem 2.25rem; font-size: var(--fs-lg); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 249, 250, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(245, 249, 250, 0.97);
  box-shadow: 0 1px 0 rgba(10, 58, 92, 0.08), 0 12px 24px -18px rgba(10, 58, 92, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: 0.85rem;
}

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 42px; width: auto; flex-shrink: 0; }

.main-nav { display: flex; align-items: center; gap: var(--space-lg); }
.nav-cta { display: none; }
.nav-links { display: flex; gap: var(--space-md); }
.nav-links a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--navy);
  padding: 0.4rem 0.1rem;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--teal);
  transition: right 0.25s var(--ease);
}
.nav-links a:hover::after, .nav-links a:focus-visible::after { right: 0; }

.header-cta-btn { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(3rem, 6vw, var(--space-xl));
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.75fr);
  align-items: center;
  gap: var(--space-lg);
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: var(--space-sm);
}

.hero h1 {
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-md);
  max-width: 15ch;
}

.hero-lede {
  font-size: var(--fs-lg);
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: var(--space-md);
}

.hero-courses {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: var(--space-lg);
}
.hero-courses li {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  background: var(--white);
  border: var(--border);
  padding: 0.5rem 1rem;
  border-radius: 999px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  justify-self: center;
}
.hero-art svg { width: 100%; height: 100%; }

/* ==========================================================================
   Section rhythm + wave dividers
   ========================================================================== */
.section { padding-block: var(--space-2xl); }
.section-tint { background: var(--foam-deep); }
.section-dark {
  background: linear-gradient(135deg, var(--navy), var(--ocean) 70%);
  color: var(--white);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(245, 249, 250, 0.82); }

.wave-divider {
  display: block;
  width: 100%;
  height: clamp(40px, 6vw, 90px);
  line-height: 0;
}
.wave-divider svg { width: 100%; height: 100%; display: block; }

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-lg);
}
.section-head p { font-size: var(--fs-lg); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center p { margin-inline: auto; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
  display: block;
  margin-bottom: 0.6rem;
}

/* ==========================================================================
   Sobre
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}
.about-figure {
  position: relative;
  aspect-ratio: 4 / 3.1;
}
.about-figure svg { width: 100%; height: 100%; }

/* ==========================================================================
   Formações
   ========================================================================== */
.courses-list {
  display: grid;
  gap: 1.5px;
  background: rgba(10, 58, 92, 0.12);
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.course-row {
  background: var(--white);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
}
.course-icon {
  width: 56px; height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--foam-deep);
  color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  border-left: 3px solid var(--teal);
}
.course-icon svg { width: 28px; height: 28px; }
.course-row h3 { margin-bottom: 0.35rem; }
.course-row p { margin: 0; max-width: 58ch; }
.course-link {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--teal);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.course-link svg { width: 1.1em; height: 1.1em; transition: transform 0.2s var(--ease); }
.course-link:hover svg, .course-link:focus-visible svg { transform: translateX(3px); }

/* ==========================================================================
   Formação à medida
   ========================================================================== */
.tailored {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}
.tailored-tags {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}
.tailored-tag {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
}
.tailored-tag svg { width: 22px; height: 22px; color: var(--teal); flex-shrink: 0; }

/* ==========================================================================
   Como funciona (timeline)
   ========================================================================== */
.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-md);
  counter-reset: step;
}
.timeline-step { position: relative; padding-top: var(--space-lg); }
.timeline-step::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  position: absolute;
  top: 0; left: 0;
}
.timeline-step::after {
  content: "";
  position: absolute;
  top: 22px; left: 44px;
  width: calc(100% - 20px);
  height: 2px;
  background: rgba(10, 58, 92, 0.15);
}
.timeline-step:last-child::after { display: none; }
.timeline-step h3 { font-size: var(--fs-base); margin-bottom: 0.4rem; }
.timeline-step p { font-size: 0.92rem; }

/* ==========================================================================
   Porquê / trust
   ========================================================================== */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.trust-item svg { width: 34px; height: 34px; color: var(--aqua); margin-bottom: 1rem; }
.trust-item h3 { color: var(--white); margin-bottom: 0.5rem; }

/* ==========================================================================
   Para quem
   ========================================================================== */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.audience-card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  padding: var(--space-md);
  border-top: 3px solid var(--teal);
}
.audience-card svg { width: 30px; height: 30px; color: var(--teal); margin-bottom: 0.9rem; }
.audience-card h3 { font-size: var(--fs-base); margin-bottom: 0.35rem; }
.audience-card p { font-size: 0.92rem; margin: 0; }

/* ==========================================================================
   CTA final
   ========================================================================== */
.cta-final {
  text-align: center;
  padding-block: var(--space-2xl);
}
.cta-final h2 {
  max-width: 20ch;
  margin-inline: auto;
  margin-bottom: var(--space-md);
}
.cta-final .btn { margin-inline: auto; }
.cta-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ==========================================================================
   Contactos
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-xl);
}
.contact-list { display: grid; gap: 1.1rem; margin-top: var(--space-md); }
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
}
.contact-item svg { width: 24px; height: 24px; color: var(--teal); flex-shrink: 0; }
.contact-item .label { font-size: 0.82rem; color: var(--ink-soft); display: block; }
.contact-item .value { font-family: var(--font-display); font-weight: 600; color: var(--navy); }
.contact-item a.value:hover, .contact-item a.value:focus-visible { color: var(--teal); }

.contact-note {
  background: var(--foam-deep);
  border-radius: var(--radius);
  padding: var(--space-lg);
}
.contact-note h3 { margin-bottom: 0.75rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: rgba(245, 249, 250, 0.7);
  padding-block: var(--space-lg);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.footer-inner img { height: 30px; width: auto; }
.footer-inner small { font-size: 0.85rem; }

/* ==========================================================================
   Reveal on scroll (single orchestrated pass)
   Progressive enhancement: hidden state only applies once JS has confirmed
   it can run (html.js) and add .is-visible — a no-JS visitor always sees
   full content immediately.
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 320px; margin-inline: auto; }
  .about-grid { grid-template-columns: 1fr; }
  .about-figure { order: -1; max-width: 380px; margin-inline: auto; }
  .tailored { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: var(--space-lg); }
  .timeline-step::after { display: none; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    inset: 0 0 auto auto;
    top: 0;
    height: 100vh;
    width: min(320px, 82vw);
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 6.5rem var(--space-lg) var(--space-lg);
    transform: translateX(100%);
    transition: transform 0.3s var(--ease);
    box-shadow: -20px 0 40px -20px rgba(10, 58, 92, 0.3);
  }
  .main-nav.is-open { transform: translateX(0); }
  .nav-links { flex-direction: column; gap: var(--space-md); }
  .nav-links a { font-size: 1.1rem; }
  .nav-toggle { display: flex; }
  .course-row { grid-template-columns: auto 1fr; }
  .course-link { grid-column: 1 / -1; }
  .nav-cta { display: inline-flex; margin-top: var(--space-lg); }
}

@media (max-width: 620px) {
  .audience-grid { grid-template-columns: 1fr; }
  .tailored-tags { grid-template-columns: 1fr; }
  .header-inner { padding-block: 0.7rem; }
  .brand img { height: 34px; }
}

@media (max-width: 480px) {
  .header-cta-btn { display: none; }
}
