:root {
  /* Brand core */
  --kw-red: #ce011f;
  --kw-black: #000000;
  --kw-white: #ffffff;
  --kw-dark-gray: #2f2b2c;

  /* Layout & surfaces */
  --page-bg: #f5f5f5;
  --page-shell: #ffffff;
  --surface-light: #f7f7f7;

  /* Type */
  --font-sans: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", Arial, sans-serif;
  --color-text-main: #000000;
  --color-text-soft: #666666;

  /* Borders & grid */
  --border-soft: #d4d4d4;
  --border-strong: #111111;

  /* Radii */
  --radius-sm: 2px;
  --radius-md: 4px;
}

/* Reset básico */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  background-color: var(--page-bg);
  color: var(--color-text-main);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Shell genérico */

.shell {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 1.5rem;
}

/* HEADER */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: transparent;
  border-bottom: none;
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 0;
}

.header-logo {
  max-height: 48px;
  height: auto;
  width: auto;
  filter: brightness(0) invert(1);
}

.collab-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  width: 100%;
  margin-top: 20px;
}

.collab-separator {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 300;
  opacity: 0.8;
}

/* HERO DINÂMICA (CAPA) */

.hero-section {
  position: relative;
  min-height: 100vh;
  background-color: var(--kw-red);
  color: var(--kw-white);
  overflow: hidden;
  display: flex;
  align-items: stretch;
  padding-top: 120px;
}

.hero-section-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy {
  max-width: 520px;
  z-index: 2;
  margin-top: -5%;
}

.hero-title {
  margin: 0 0 40px;
  font-size: clamp(3.2rem, 5vw, 5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.08em;
  text-transform: uppercase;
  color: var(--kw-white);
}

.hero-subtitle {
  margin: 0 0 50px;
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  color: var(--kw-white);
}

.hero-stats {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--kw-white);
  font-weight: 500;
  font-size: 1.1rem;
}

.stats-separator {
  opacity: 0.8;
}

.hero-cta-btn {
  display: inline-block;
  margin-top: 35px;
  padding: 16px 40px;
  background-color: #ffffff;
  color: var(--kw-red, #ce011f);
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.hero-cta-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.25);
}

.hero-cta-btn--red {
  background-color: var(--kw-red);
  color: #ffffff;
}

.hero-cta-btn--red:hover {
  background-color: var(--kw-red);
  color: #ffffff;
}

.hero-visuals-container {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 55%;
  height: 100%;
  min-height: 420px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.hero-accent-shape {
  position: absolute;
  width: 550px;
  height: 550px;
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  z-index: 1;
  bottom: -20%;
  right: -7%;
}

.hero-squad-img {
  position: absolute;
  bottom: 0;
  right: -25%;
  height: auto;
  width: 130%;
  max-width: none;
  object-fit: contain;
  display: block;
  z-index: 10;
  filter: grayscale(100%) contrast(100%);
}

.hero-image-credit {
  position: absolute;
  bottom: 10px;
  right: 14px;
  z-index: 20;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

/* SECTIONS EDITORIAIS */

.section {
  padding-block: 3.5rem;
  background-color: var(--page-shell);
  border-bottom: 1px solid var(--kw-red);
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

.section:nth-of-type(even) {
  background-color: var(--surface-light);
}

.section-header {
  max-width: 620px;
  margin-bottom: 2.4rem;
}

.section.section-muted .section-header {
  max-width: 900px;
}

.section-header-full {
  max-width: 100%;
  width: 100%;
}

.section-header-centered {
  margin-inline: auto;
  text-align: center;
}

.section-eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

.section h2 {
  margin: 0 0 0.8rem;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.section-intro {
  margin: 0;
  font-size: 0.98rem;
  color: var(--color-text-soft);
  line-height: 1.8;
}

/* ENQUADRAMENTO - Largura Total */
.section-enquadramento {
  padding: 80px 20px;
  padding-inline: 0;
  background-color: #ffffff !important;
}

.enquadramento-wrapper {
  width: 100%;
  max-width: 100%;
  padding-inline: 1.5rem;
  background-color: #ffffff;
}

.section-header-enquadramento {
  max-width: 100%;
  width: 100%;
}

.section-header-enquadramento .section-intro {
  max-width: 100%;
}

.section-enquadramento h2 {
  color: #1a1a1a;
}

.section-enquadramento .section-intro {
  color: #4a4a4a;
  font-weight: 400;
}

@media (min-width: 768px) {
  .enquadramento-wrapper {
    padding-inline: 4rem;
  }
}

@media (min-width: 1200px) {
  .enquadramento-wrapper {
    padding-inline: 6rem;
  }
}

/* MÓDULOS */

.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
  margin-top: 1.8rem;
}

.card {
  border-radius: var(--radius-sm);
  background-color: var(--page-shell);
  border: 1px solid var(--kw-red);
  padding: 1.4rem 1.4rem 1.35rem;
  box-shadow: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-color: var(--kw-red);
}

.module-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.card-title {
  margin: 0 0 0.8rem;
  font-weight: 600;
  font-size: 0.98rem;
}

.card-body {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-soft);
  line-height: 1.7;
}

/* FORMADORES */

.trainers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
  margin-top: 2rem;
}

.trainer-card {
  text-align: center;
  padding-top: 2.1rem;
}

.trainer-avatar-wrapper {
  width: 132px;
  height: 132px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  padding: 0;
  border: 2px solid var(--kw-red);
  box-shadow: none;
}

.trainer-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: none;
  background: none;
}

.trainer-name {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.trainer-role {
  margin: 0 0 0.7rem;
  font-size: 0.88rem;
  color: var(--kw-red);
  line-height: 1.1;
}

.trainer-bio {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-text-soft);
  line-height: 1.7;
}

/* PREÇOS */

.pricing-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
  margin-top: 2.3rem;
}

.pricing-card {
  border-radius: var(--radius-sm);
  padding: 1.6rem 1.7rem;
  background-color: var(--page-shell);
  border: 1px solid var(--kw-red);
  box-shadow: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.3s ease, border-color 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-color: var(--kw-red);
}

.early-bird-highlight {
  background-color: var(--kw-red);
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  transform: scale(1.03);
}

.early-bird-highlight .pricing-label,
.early-bird-highlight .pricing-value,
.early-bird-highlight .pricing-note {
  color: #ffffff;
}

.pricing-badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background-color: #ffffff;
  color: var(--kw-red);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pricing-label {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

.pricing-value {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  font-weight: 600;
}

.pricing-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-soft);
  line-height: 1.7;
}

.section-cta-wrapper {
  margin-top: 2.5rem;
  text-align: center;
}

/* FOOTER */

.site-footer {
  border-top: 1px solid var(--border-soft);
  background-color: var(--page-shell);
  padding-block: 2rem 2.4rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.8rem;
  color: var(--color-text-soft);
}

.footer-meta-text {
  margin: 0;
  text-align: center;
}

.footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.footer-logo {
  max-height: 30px;
  height: auto;
  width: auto;
}

/* RESPONSIVO */

@media (max-width: 960px) {
  .modules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trainers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .shell {
    padding-inline: 1.25rem;
  }

  .header-shell {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .modules-grid,
  .trainers-grid,
  .pricing-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-section {
    padding-top: 80px;
    min-height: auto;
  }

  .hero-section-grid {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 3.2rem;
    gap: 2rem;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: clamp(0.9rem, 3vw, 1rem);
    margin-bottom: 1.2rem;
  }

  .hero-stats {
    font-size: clamp(0.85rem, 2.5vw, 1rem);
    gap: 10px;
  }

  .hero-visuals-container {
    position: relative;
    width: 100%;
    min-height: 300px;
    margin-top: 2rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }

  .trainer-hero-img {
    max-height: 220px;
    bottom: 0;
  }

  .t-paulo {
    left: 5%;
    height: 60%;
  }

  .t-bruno {
    left: 40%;
    height: 70%;
  }

  .t-carla {
    right: 8%;
    height: 65%;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding-top: 70px;
  }

  .hero-section-grid {
    padding-block: 2.5rem;
  }

  .hero-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-visuals-container {
    min-height: 250px;
    margin-top: 1.5rem;
  }

  .trainer-hero-img {
    max-height: 180px;
  }

  .t-paulo {
    left: 2%;
    height: 55%;
  }

  .t-bruno {
    left: 35%;
    height: 65%;
  }

  .t-carla {
    right: 5%;
    height: 60%;
  }

  .hero-stats {
    font-size: 0.8rem;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 768px) {
  /* 1. Secção Hero: contentor principal em coluna, com espaço entre texto e equipa */
  .hero-section {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100svh;
    padding-top: 120px;
    padding-bottom: 40vh;
    overflow: hidden;
  }

  /* 2. Coluna do texto (topo) */
  .hero-copy {
    position: relative;
    width: 100%;
    padding: 0 20px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 30px;
    text-align: center;
    align-items: center;
  }

  .hero-title {
    font-size: 3rem;
    line-height: 1.1;
    margin: 0 auto 40px auto;
  }

  /* hero-subheading = hero-subtitle */
  .hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.4;
    margin: 0 auto 45px auto;
  }

  .hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    margin-bottom: 20px;
  }

  .hero-stats span:first-child::before {
    content: "· ";
  }

  .hero-stats span:last-child {
    flex-basis: 100%;
    text-align: center;
    margin-top: 5px;
  }

  .hero-stats span:last-child::before {
    content: "· ";
  }

  .hero-stats span:last-child::after {
    content: " ·";
  }

  .hero-stats .stats-separator:last-of-type {
    display: none;
  }

  .hero-cta-btn {
    margin-left: auto;
    margin-right: auto;
    margin-top: 55px;
  }

  .collab-logos {
    gap: 15px;
  }

  .collab-logos .header-logo {
    max-height: 36px;
  }

  /* 3. Coluna da equipa (base) */
  .hero-visuals-container {
    position: absolute;
    bottom: -70%;
    left: 0;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 10;
  }

  .hero-squad-img {
    position: relative;
    left: auto;
    right: auto;
    width: 180%;
    max-width: 1050px;
    height: auto;
    max-height: none;
    margin: 0 auto;
    display: block;
    object-fit: contain;
    object-position: bottom center;
  }

  /* 4. Círculo de fundo centrado e mais baixo atrás da equipa */
  .hero-accent-shape {
    width: 480px;
    height: 480px;
    left: 50%;
    bottom: -25%;
    right: auto;
    transform: translateX(-50%);
    z-index: 1;
  }
}