/* ==========================================================================
   Candeia — estilos globais
   Medidas e cores tiradas dos PDFs do layout (V4 de nov/2026, frame 1440px)
   ========================================================================== */

/* Bai Jamjuree (Google Fonts, SIL OFL) hospedada localmente: a CSP só permite
   font-src 'self'. Subconjunto latin, que cobre o português. */
@font-face {
  font-family: "Bai Jamjuree";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/bai-jamjuree-600.woff2") format("woff2");
}

@font-face {
  font-family: "Bai Jamjuree";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/bai-jamjuree-700.woff2") format("woff2");
}

:root {
  --color-header-bg: #fffbe2;
  --color-cream: #f1ecc9;
  --color-dark: #282828;
  --color-orange: #ff571b;
  --color-orange-light: #ff7d06;
  --color-terracotta: #c45a3c;
  /* Variações com contraste WCAG AA (relatório de acessibilidade, nov/2026) */
  --color-orange-title: #f94100;   /* títulos grandes sobre creme: 3,04:1 */
  --color-orange-text: #d53800;    /* menu ativo sobre #fffbe2: 4,58:1 */
  --color-orange-small: #c43400;   /* texto pequeno sobre creme: 4,58:1 */
  --color-terracotta-dark: #ab4e34; /* fundo do Sobre o curso: 4,54:1 */
  --color-moss-dark: #738e57;      /* rótulo das frentes: 3,07:1 */
  --color-brown: #74351f;
  --color-text: #000000;

  /* Blocos decorativos e frentes (V4) */
  --color-mustard: #daa63d;
  --color-sage: #9ab37f;
  --color-clay: #c88461;
  --color-olive: #6e7a48;
  --color-moss: #809e61;

  --font-base: Arial, Helvetica, "Segoe UI", sans-serif;
  --font-display: "Bai Jamjuree", var(--font-base);

  --content-width: 1240px;
  --container-padding: 24px;

  --radius-card: 25px;
  --radius-pill: 24px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.15;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

p {
  margin: 0;
}

/* Evita viúvas (palavra sozinha na última linha) em todo o site. */
p,
li {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

.container {
  width: 100%;
  max-width: calc(var(--content-width) + 2 * var(--container-padding));
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 294px;
  min-height: 48px;
  padding: 0 32px;
  line-height: 1;
  border-radius: var(--radius-pill);
  background: var(--color-orange);
  color: var(--color-dark);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--color-orange-light);
}

/* Divisor "• —— •" do layout (marrom no claro, creme no escuro) */
.divider {
  width: 96px;
  height: auto;
}

/* ---- Header ---- */

.site-header {
  position: relative;
  z-index: 3;
  background: var(--color-header-bg);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo__mark {
  width: 53px;
  height: 62px;
}

.logo__wordmark {
  width: 167px;
  height: 47px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  margin: 5px 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 38px;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 42px;
  font-weight: bold;
  font-size: 16px;
  color: var(--color-dark);
}

.site-nav__list a:hover,
.site-nav__list a:focus-visible,
.site-nav__list a[aria-current="page"] {
  color: var(--color-orange-text);
}

/* ---- Hero ---- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: 64px 92px;
  /* Colagem: largura, deslocamento vertical (a partir do topo do hero) e quanto
     passa da borda direita do conteúdo — o PNG tem margem transparente lateral. */
  --collage-width: 573px;
  --collage-top: -128px;
  --collage-overhang: 53px;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: 65px;
  line-height: 75px;
  font-weight: 700;
  color: var(--color-brown);
  margin: 0;
}

.hero__subtitle {
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1.17;
  font-weight: 600;
  color: var(--color-orange-title);
  margin: 6px 0 0;
}

.hero .divider {
  margin: 18px 0 38px;
}

.hero__text {
  font-size: 20px;
  line-height: 1.15;
  max-width: 563px;
}

.hero__text p+p {
  margin-top: 23px;
}

.hero .btn {
  margin-top: 50px;
}

.hero__visual {
  position: absolute;
  top: var(--collage-top);
  right: calc(max(var(--container-padding), (100% - var(--content-width)) / 2) - var(--collage-overhang));
  width: var(--collage-width);
}

.hero--sobre {
  padding-block: 82px 74px;
  --collage-width: 512px;
  --collage-top: -236px;
  --collage-overhang: 23px;
}

.hero--sobre .hero__content {
  max-width: 650px;
}

.hero--sobre .hero__text {
  font-size: 15px;
  max-width: 640px;
}

.hero--sobre .hero__text p+p {
  margin-top: 17px;
}

.hero--sobre .divider {
  margin: 14px 0 36px;
}

.hero--cursos {
  padding-block: 82px 64px;
  --collage-width: 576px;
  --collage-top: -385px;
  --collage-overhang: 56px;
}

.hero--cursos .hero__content,
.hero--cursos .hero__text {
  max-width: 640px;
}

.hero--cursos .hero__subtitle {
  font-size: 24px;
}

.section__title.section__title--sm {
  font-size: 57px;
}

.hero--cursos .divider {
  margin: 14px 0 46px;
}

/* ---- Seções ---- */

.section {
  position: relative;
  z-index: 1;
  padding-block: 92px 110px;
}

.section--dark {
  background: var(--color-dark);
  color: var(--color-cream);
}

.section--cream {
  background: var(--color-cream);
}

.section--compact {
  padding-block: 55px 72px;
}

.section__title {
  font-family: var(--font-display);
  font-size: 65px;
  line-height: 1.17;
  font-weight: 700;
  color: var(--color-orange);
  margin: 0;
}

.section__title--md {
  font-size: 40px;
  line-height: 1.1;
}

.section__title--brown {
  color: var(--color-brown);
}

.section__subtitle {
  font-size: 20px;
  font-weight: bold;
  margin: 4px 0 0;
}

.section__head {
  margin-bottom: 64px;
}

.section__head .divider {
  margin-top: 22px;
}

.section__text {
  font-size: 20px;
  line-height: 1.15;
  max-width: 1180px;
  margin-top: 46px;
}

.section__text p+p {
  margin-top: 23px;
}

.section__title+.divider {
  margin-top: 18px;
}

.section__title+.divider+.section__text {
  margin-top: 34px;
}

.section__text+.card-grid {
  margin-top: 60px;
}

/* ---- Cards (banda terracota + corpo) ---- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 31px 22px;
}

.card {
  border-radius: var(--radius-card);
  background: var(--color-cream);
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  min-height: 318px;
}

.card--dark .card__text {
  font-size: 17px;
}

.card--dark {
  background: var(--color-dark);
  color: var(--color-cream);
}

.card__band {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 0 24px;
  background: var(--color-terracotta);
  color: var(--color-cream);
  border-radius: var(--radius-card);
  text-align: center;
}

.card__title {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.1;
  font-weight: 600;
  text-transform: uppercase;
  margin: 0;
}

.card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 36px 20px 24px;
  text-align: center;
}

.card__text {
  font-size: 16px;
  line-height: 1.25;
  max-width: 360px;
}

.card__link {
  margin-top: auto;
  font-size: 14px;
  font-weight: bold;
  color: var(--color-orange);
}

.card__link:hover,
.card__link:focus-visible {
  text-decoration: underline;
}

/* ---- Pilares (Home): pílula com contorno + descrição, separados por linha ---- */

.pillar {
  display: grid;
  grid-template-columns: minmax(0, 459px) minmax(0, 1fr);
  align-items: center;
  gap: 46px;
  padding-block: 20px;
  border-bottom: 1px solid var(--color-sage);
  max-width: 1203px;
}

.pillar:last-child {
  border-bottom: 0;
}

.pillar__label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  margin: 0 0 0 7px;
  padding: 0 20px;
  border: 1px solid var(--color-moss);
  border-radius: var(--radius-card);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.15;
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-moss);
}

.pillar__text {
  font-size: 20px;
  line-height: 1.3;
  color: var(--color-cream);
  max-width: 670px;
}

/* ---- Frentes (Sobre): rótulo verde + descrição em faixa escura ---- */

.frentes {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.frente {
  display: grid;
  grid-template-columns: minmax(0, 398px) minmax(0, 1fr);
  align-items: center;
  min-height: 120px;
  background: var(--color-dark);
  color: var(--color-cream);
  border-radius: var(--radius-card);
}

.frente__label {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-height: 120px;
  margin: 0;
  padding: 0 20px;
  background: var(--color-olive);
  border-radius: var(--radius-card);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.15;
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
}

.frente:nth-child(even) .frente__label {
  background: var(--color-moss-dark);
}

.frente__text {
  padding: 20px 24px 20px 44px;
  font-size: 17px;
  line-height: 1.3;
}

/* ---- Decoração: abas nas bordas e trio de blocos ao lado dos títulos ---- */

/* Aba arredondada que atravessa a divisa entre duas seções, colada na borda
   da janela. Fica dentro da seção de baixo, com top negativo. */
.deco-tab {
  position: absolute;
  z-index: 2;
  top: var(--tab-top, -55px);
  left: 0;
  width: 140px;
  height: 84px;
  border-radius: 0 22px 22px 0;
  background: var(--tab-color, var(--color-mustard));
  pointer-events: none;
}

.deco-tab--right {
  left: auto;
  right: 0;
  border-radius: 22px 0 0 22px;
}

.deco-tab--sm {
  width: 100px;
  height: 90px;
}

/* Aba mais centrada na divisa (Cursos e foto do Sobre) */
.deco-tab--low {
  --tab-top: -42px;
}

/* Aba dentro da seção, ao lado do CTA de fechamento (Sobre) */
.deco-tab--inside {
  --tab-top: 72px;
}

.deco-tab--mustard { --tab-color: var(--color-mustard); }
.deco-tab--sage { --tab-color: var(--color-sage); }
.deco-tab--clay { --tab-color: var(--color-clay); }

/* Três blocos alinhados ao título; o último encosta na borda direita. */
.swatches {
  position: absolute;
  right: 0;
  top: var(--swatch-top, 97px);
  display: flex;
  gap: 34px;
  pointer-events: none;
}

.swatches span {
  width: 108px;
  height: 66px;
  border-radius: 12px;
}

.swatches span:last-child {
  border-radius: 12px 0 0 12px;
}

.swatches--lg {
  --swatch-top: 91px;
  gap: 32px;
}

/* Seção compacta (O que nos orienta): título de 40px */
.swatches--compact {
  --swatch-top: 59px;
}

.swatches--lg span {
  width: 132px;
  height: 84px;
  border-radius: 14px;
}

.swatches--lg span:last-child {
  width: 138px;
  border-radius: 14px 0 0 14px;
}

.swatch--mustard { background: var(--color-mustard); }
.swatch--sage { background: var(--color-sage); }
.swatch--clay { background: var(--color-clay); }

/* ---- Cursos ---- */

.courses {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.course {
  display: grid;
  grid-template-columns: minmax(0, 700px) minmax(0, 1fr);
  background: var(--color-terracotta-dark);
  border-radius: var(--radius-card);
}

.course__main {
  display: flex;
  gap: 25px;
  padding: 12px;
  background: var(--color-cream);
  color: var(--color-text);
  border-radius: var(--radius-card);
}

.course__photo {
  flex-shrink: 0;
  width: 375px;
  aspect-ratio: 1;
  border-radius: 15px;
  object-fit: cover;
}

.course__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 12px;
  min-width: 0;
}

.course__title {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 34px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-orange-title);
  margin: 0;
}

.course__info .divider {
  width: 88px;
  margin: 10px 0 24px;
}

.course__teacher {
  font-size: 20px;
  font-weight: bold;
}

.course__role {
  font-size: 16px;
}

.course__cta {
  min-width: 200px;
  min-height: 50px;
  margin-top: 32px;
  border-radius: 8px;
  font-size: 16px;
  letter-spacing: 0;
}

.course__about {
  padding: 38px 8px 40px 32px;
  color: var(--color-cream);
}

.course__about-title {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  margin: 0;
}

.course__about .divider {
  width: 92px;
  margin: 22px 0 28px 6px;
}

.course__about-text {
  font-size: 19.5px;
  line-height: 1.58;
  padding-left: 8px;
  max-width: 500px;
}

/* ---- CTA de fechamento ---- */

.cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  margin-top: 70px;
}

.cta__title {
  font-size: 27px;
  font-weight: bold;
  color: var(--color-brown);
}

.section--dark .cta__title {
  color: var(--color-cream);
}

.section--closing {
  padding-block: 50px 104px;
}

.section--closing .cta {
  margin-top: 0;
}

/* ---- Foto em largura total (Sobre) ---- */

.photo-band {
  position: relative;
  height: 617px;
}

.photo-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Footer ---- */

.site-footer {
  background: var(--color-orange);
  color: var(--color-dark);
}

.site-footer .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 57px;
  font-size: 20px;
}

.site-footer__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.site-footer__group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-footer__pages {
  white-space: nowrap;
}

.site-footer__social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 4px;
}

.site-footer__social img {
  height: 26px;
  width: auto;
  filter: brightness(0) opacity(0.85);
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  text-decoration: underline;
}

.site-footer__copy {
  position: absolute;
  right: 20px;
}

.site-footer__legal {
  padding: 8px var(--container-padding);
  border-top: 1px solid rgba(40, 40, 40, 0.25);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-align: center;
}

/* ---- Contato ---- */

.contact {
  padding-block: 98px 96px;
}

.contact__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: calc(656px + 2 * var(--container-padding));
  text-align: center;
}

.contact__icon {
  width: 64px;
  height: 64px;
}

.contact__eyebrow {
  margin-top: 30px;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-orange-small);
}

.contact__title {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-size: 46px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--color-brown);
}

.contact__text {
  margin-top: 24px;
  font-size: 17px;
  line-height: 1.4;
}

.contact__channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.contact__channel {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--color-dark);
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: bold;
  color: var(--color-text);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color 0.2s ease;
}

.contact__channel:hover,
.contact__channel:focus-visible {
  background: var(--color-header-bg);
}

.contact__channel svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.contact__form {
  width: 100%;
  margin-top: 40px;
  text-align: left;
}

/* ---- Página de estado (em construção / 404) ---- */

.state-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding-block: 96px;
}

.state-page .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.state-page__icon {
  width: 72px;
  height: 72px;
}

.state-page__eyebrow {
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-orange-small);
}

.state-page__title {
  font-family: var(--font-display);
  font-size: 45px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--color-brown);
  margin: 0;
  max-width: 16ch;
}

.state-page__text {
  font-size: 18px;
  line-height: 1.5;
  max-width: 52ch;
}

.state-page__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-dark);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--color-dark);
  color: var(--color-cream);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Quebras de linha do Figma: só valem com o layout completo (desktop). */
@media (min-width: 1281px) {
  p:has(.lb) {
    text-wrap: wrap;
  }
}

@media (max-width: 1280px) {
  .lb {
    display: none;
  }
}

@media (max-width: 1180px) {
  .hero__visual {
    opacity: 0.35;
  }

  /* Sem espaço ao lado do título: os blocos colidiriam com o texto. */
  .swatches {
    display: none;
  }

  .course {
    grid-template-columns: 1fr;
  }

  .course__about {
    padding-top: 30px;
  }
}

@media (max-width: 960px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    background: var(--color-header-bg);
    border-bottom: 1px solid rgba(40, 40, 40, 0.08);
    padding: 16px var(--container-padding) 24px;
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .nav-toggle {
    display: block;
  }

  .hero,
  .hero--sobre,
  .hero--cursos {
    padding-block: 48px 56px;
  }

  .hero__visual {
    position: static;
    width: 100%;
    max-width: 260px;
    height: 300px;
    overflow: hidden;
    margin: 0 auto 32px;
    opacity: 1;
  }

  .hero__visual img {
    margin-top: -40%;
  }

  .card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .course__main {
    flex-direction: column;
  }

  .course__photo {
    width: 100%;
  }

  .course__info {
    padding: 0 12px 12px;
  }
}

@media (max-width: 720px) {
  .contact {
    padding-block: 56px 64px;
  }

  .contact__title {
    font-size: 32px;
  }

  .contact__channels {
    grid-template-columns: 1fr;
  }

  .logo__mark {
    width: 40px;
    height: 47px;
  }

  .logo__wordmark {
    width: 130px;
    height: 37px;
  }

  .site-header__inner {
    min-height: 72px;
  }

  .hero__title,
  .section__title {
    font-size: 40px;
  }

  .section__title--md {
    font-size: 30px;
  }

  .section__title.section__title--sm {
    font-size: 40px;
  }

  .hero__subtitle {
    font-size: 20px;
  }

  .hero__text,
  .section__text {
    font-size: 17px;
  }

  .btn {
    min-width: 0;
    width: 100%;
  }

  .section {
    padding-block: 56px;
  }

  .section__head {
    margin-bottom: 40px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 0;
  }

  .card__body {
    gap: 32px;
  }

  .course__title {
    font-size: 26px;
    line-height: 1.1;
  }

  .hero__title {
    line-height: 1.1;
  }

  .card__title {
    font-size: 24px;
  }

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

  .pillar__label {
    min-height: 72px;
    margin: 0;
    font-size: 20px;
  }

  .pillar__text {
    font-size: 16px;
  }

  .frente {
    grid-template-columns: 1fr;
  }

  .frente__label {
    min-height: 72px;
    font-size: 22px;
  }

  .frente__text {
    padding: 20px 24px 24px;
  }

  .deco-tab {
    top: calc(var(--tab-top, -55px) / 2);
    width: 70px;
    height: 42px;
    border-radius: 0 12px 12px 0;
  }

  .deco-tab--right {
    border-radius: 12px 0 0 12px;
  }

  /* No celular a aba ao lado do CTA cobriria o texto. */
  .deco-tab--inside {
    display: none;
  }

  .course__about-text {
    font-size: 17px;
  }

  .cta__title {
    font-size: 24px;
  }

  .photo-band {
    height: 320px;
  }

  .site-footer .container {
    flex-direction: column;
    gap: 8px;
    padding-block: 16px;
    font-size: 16px;
  }

  .site-footer__copy {
    position: static;
  }

  /* No celular: redes numa linha, páginas na outra — sem "·" solto. */
  .site-footer__links {
    flex-direction: column;
  }

  .site-footer__sep {
    display: none;
  }

  .site-footer__pages {
    font-size: 14px;
    gap: 6px;
  }

  .site-footer__legal {
    font-size: 11px;
  }

  .state-page__title {
    font-size: 32px;
  }
}
