:root {
  /* Brand core */
  --kw-red: #ce011f;
  --kw-black: #000000;
  --kw-white: #ffffff;
  --kw-dark-gray: #2f2b2c;

  /* Layout & surfaces */
  --maps-cyan: #00aeef;
  --maps-blue: #2b3990;
  --maps-purple: #662d91;
  --maps-pink: #ed1e79;
  --maps-orange: #f15a24;
  --text-dark: #222222;
  --hero-gradient: linear-gradient(
    90deg,
    #00b4db 0%,
    #0083b0 25%,
    #4a00e0 50%,
    #d31027 75%,
    #ff7e5f 100%
  );

  --page-bg: #ffffff;
  --page-shell: #ffffff;
  --surface-light: #ffffff;

  /* Type */
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", Arial, sans-serif;
  --color-text-main: var(--text-dark);
  --color-text-soft: #555555;

  /* 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 */

.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: flex-end;
  padding: 1.25rem 1rem;
}

.header-logo {
  max-height: 48px;
  height: auto;
  width: auto;
  filter: brightness(0) invert(1);
}

.collab-logos {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0;
  width: auto;
  margin-top: 0;
}

/* HERO DINÂMICA (CAPA) */

.hero-section {
  position: relative;
  min-height: 100vh;
  background: var(--hero-gradient);
  color: var(--kw-white);
  overflow: hidden;
  display: flex;
  align-items: stretch;
  padding-top: 60px;
}

.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: 0;
  padding-left: 2rem;
}

.hero-title {
  margin: 0 0 25px;
  font-size: clamp(3.2rem, 5vw, 5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: var(--kw-white);
}

.hero-subtitle {
  margin: 0 0 20px;
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 500;
  color: #ffffff;
}

.hero-description {
  margin: 0 0 30px;
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.hero-author {
  margin: 0 0 40px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  font-style: normal;
}

.hero-cta-btn {
  display: inline-block;
  margin-top: 18px;
  padding: 16px 40px;
  background-color: #ffffff;
  color: var(--maps-blue);
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-radius: 4px;
  border: 2px solid var(--maps-blue);
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.hero-cta-btn:hover {
  transform: translateY(-4px);
  background-color: var(--maps-blue);
  color: #ffffff;
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.25);
}

.hero-cta-btn--orange {
  background-color: var(--maps-orange);
  color: #ffffff;
  border-color: var(--maps-orange);
}

.hero-cta-btn--orange:hover {
  background-color: var(--maps-orange);
  color: #ffffff;
}

.hero-visuals-container {
  position: absolute;
  right: -5%;
  bottom: -15%;
  width: 60%;
  height: 100%;
  min-height: 420px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.hero-accent-shape {
  position: absolute;
  width: 600px;
  height: 600px;
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  z-index: 1;
  bottom: -15%;
  right: -5%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-overlay {
  position: absolute;
  width: 90%;
  left: 50%;
  height: auto;
  max-width: 600px;
  object-fit: contain;
  z-index: 2;
  opacity: 0.5;
  pointer-events: none;
  top: -5%;
  left: 50%;
  transform: translateX(-50%);
}

.hero-coach-img {
  position: absolute;
  bottom: -30%;
  right: 8%;
  height: auto;
  width: 70%;
  max-width: none;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  filter: grayscale(100%) contrast(115%);
  z-index: 10;
}

/* SECTIONS */

.section {
  padding-block: 3.5rem;
  background-color: #ffffff;
  border-bottom: 1px solid #eeeeee;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

.section:nth-of-type(even) {
  background-color: #ffffff;
}

.section--enquadramento {
  background-color: #ffffff !important;
}

.section-header {
  max-width: 620px;
  margin-bottom: 2.4rem;
}

.section-header-full {
  max-width: none;
}

.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;
  color: var(--text-dark);
}

.section-intro {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text-dark);
  line-height: 1.8;
}

/* Para quem é */

.pillars-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
}

.card {
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  border: 1px solid #e2e2e2;
  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: #d0d0d0;
}

.pillar-card h3,
.next-card h3,
.structure-item h3 {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dark);
}

.pillar-card p,
.next-card p,
.structure-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-dark);
  line-height: 1.8;
}

/* Próximo nível */

.grid-next-level {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin: 0 auto;
  max-width: 1200px;
}

/* Section-specific color accents */

/* Enquadramento – azul claro */
#enquadramento.section {
  border-bottom-color: var(--maps-cyan);
}

#enquadramento .section-header h2 {
  color: var(--maps-cyan);
}

/* Para quem é – azul escuro */
#para-quem.section {
  border-bottom-color: var(--maps-blue);
}

#para-quem .section-header h2 {
  color: var(--maps-blue);
}

#para-quem .pillar-card {
  border-color: var(--maps-blue);
}

#para-quem .pillar-card h3 {
  color: var(--maps-blue);
}

/* O Teu Próximo Nível – roxo */
#implementacao.section {
  border-bottom-color: var(--maps-purple);
}

#implementacao .section-header h2 {
  color: var(--maps-purple);
}

#implementacao .next-card h3 {
  color: var(--maps-purple);
}

#implementacao .next-card {
  border-top: 3px solid var(--maps-purple);
}

/* Estrutura & Investimento – laranja */
#estrutura.section {
  border-bottom-color: var(--maps-orange);
}

#estrutura .section-header h2 {
  color: var(--maps-orange);
}

#estrutura .structure-item-accent {
  border-color: var(--maps-orange);
}

#estrutura .structure-item-accent h3,
#estrutura .structure-item-accent p {
  color: var(--maps-orange);
}

.next-card {
  flex: 0 1 calc(33.333% - 20px);
  min-width: 300px;
  max-width: 380px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Estrutura & investimento */

.structure-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 2.3rem;
}

.structure-item-accent {
  border-color: #e2e2e2;
}

.structure-item {
  flex: 0 1 calc(33.333% - 20px);
  min-width: 260px;
  max-width: 360px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.section-cta-wrapper {
  margin-top: 2.5rem;
  text-align: center;
}

/* FORMADOR */

.coach-layout {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Secção do formador mais compacta em altura */
#formador.section {
  padding-block: 2.4rem;
}

#formador.section {
  border-bottom-color: var(--kw-red);
}

.coach-text h2 {
  color: var(--kw-red);
}

.coach-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: left;
}

.coach-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.coach-photo-wrapper {
  width: 150px;
  height: 150px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  padding: 0;
  border: none;
  box-shadow: none;
}

.coach-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 1px solid #eaeaea;
  background: none;
}

.coach-name {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 700;
}

.coach-role {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--kw-red);
  font-weight: 700;
  margin-top: 15px;
  text-align: center;
  display: block;
}

.coach-text h2 {
  margin: 0 0 15px;
  font-size: 2rem;
  font-weight: 700;
}

.coach-text .section-intro {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
}

.section-intro-mobile {
  display: none;
}

/* FOOTER */

.site-footer {
  border-top: 1px solid var(--kw-red);
  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-logo {
  max-height: 30px;
  height: auto;
  width: auto;
}

.footer-meta-text {
  margin: 0;
  text-align: center;
}

/* RESPONSIVO */

@media (max-width: 960px) {
  .pillars-layout,
  .structure-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .coach-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .coach-layout {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    margin: 0 auto;
  }

  .coach-text {
    align-items: center;
  }

  .section-intro-desktop {
    display: none;
  }

  .section-intro-mobile {
    display: block;
    margin-top: 0.75rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #555555;
    text-align: left;
  }

  .hero-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 100svh;
    padding-top: 100px;
    padding-bottom: 0;
    position: relative;
    overflow: hidden;
  }

  .hero-section-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-block: 0;
  }

  .hero-text-container {
    position: relative;
    z-index: 20;
    width: 100%;
    text-align: center;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
  }

  .hero-title {
    font-size: 3rem;
    line-height: 1.1;
    margin: 0 auto 20px auto;
  }

  .hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.4;
    margin: 0 auto 20px auto;
  }

  .hero-description {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    text-align: center;
  }

  .hero-author {
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    text-align: center;
  }

  .hero-cta-btn {
    margin-left: auto;
    margin-right: auto;
    margin-top: 16px;
  }

  .collab-logos {
    gap: 15px;
  }

  .collab-logos .header-logo {
    max-height: 36px;
  }

  .hero-visuals-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-top: auto;
    padding: 0;
    right: auto;
    bottom: 10%;
    height: auto;
  }

  .hero-coach-img {
    position: relative;
    max-width: 85%;
    bottom: -60%;
    height: auto;
    max-height: 80vh;
    margin: 0 auto;
    display: block;
    object-fit: contain;
    object-position: bottom center;
    left: auto;
    right: auto;
  }

  .hero-accent-shape {
    width: 500px;
    height: 500px;
    left: 50%;
    bottom: -20%;
    right: auto;
    transform: translateX(-50%);
    z-index: 1;
  }
}

@media (max-width: 720px) {
  .shell {
    padding-inline: 1.25rem;
  }

  .pillars-layout,
  .grid-next-level,
  .structure-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@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;
  }
}