/* ===========================================================
   Samantha John — Psicóloga | style.css
   =========================================================== */

@font-face {
  font-family: "Nebulica";
  src: url("/assets/fonts/nebulica/nebulica-thin.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nebulica";
  src: url("/assets/fonts/nebulica/nebulica-extralight.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nebulica";
  src: url("/assets/fonts/nebulica/nebulica-light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nebulica";
  src: url("/assets/fonts/nebulica/nebulica-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nebulica";
  src: url("/assets/fonts/nebulica/nebulica-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nebulica";
  src: url("/assets/fonts/nebulica/nebulica-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nebulica";
  src: url("/assets/fonts/nebulica/nebulica-extrabold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nebulica";
  src: url("/assets/fonts/nebulica/nebulica-black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Apostrophic";
  src: url("/assets/fonts/apostrophic.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --c-teal: #0d393c;
  --c-teal-soft: #184641;
  --c-cream: #e0dfd1;
  --c-orange: #f6b94e;
  --c-red: #670000;

  --font-display: "Nebulica", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-logo: "Apostrophic", Georgia, "Times New Roman", serif;

  --fs-body: 19.2px;
  --fs-h2: 74.4px;
  --fs-h2-sobre: 67.2px;

  --container-w: 1200px;
  --radius-pill: 999px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-body);
  color: var(--c-teal);
  background: var(--c-cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 400; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

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

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--c-cream);
  color: var(--c-teal);
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

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

/* ---------- Utilitários ---------- */
.hl-amarelo {
  color: var(--c-orange);
  font-weight: 700;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  text-align: center;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.15;
  padding: 20px 44px;
  border-radius: var(--radius-pill);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover,
.btn:focus-visible { transform: translateY(-2px); }

.btn-light {
  background: var(--c-cream);
  color: var(--c-teal);
}
.btn-dark {
  background: var(--c-teal);
  color: var(--c-cream);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-teal);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-icon {
  height: 44px;
  width: auto;
  flex-shrink: 0;
}

.brand-text-img {
  height: 44px;
  width: auto;
  flex-shrink: 0;
}

.site-nav ul {
  display: flex;
  gap: 32px;
}

.site-nav a {
  color: var(--c-cream);
  font-size: 1.14rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  border-bottom-color: var(--c-orange);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--c-cream);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--c-teal);
  color: var(--c-cream);
  padding-block: 56px 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: stretch;
}

.hero-content {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.hero-eyebrow {
  font-size: 28px;
  font-weight: 600;
  color: var(--c-orange);
  margin: 0;
}

.hero-eyebrow-sub {
  font-size: 21px;
  font-weight: 400;
  color: var(--c-orange);
  margin: 0 0 16px;
}

.hero-manifesto {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: 31.2px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.cta-group {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.cta-group .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19.2px;
  line-height: 0.92;
  padding: 0 12px;
}

.btn-hero-saber { width: 210px; height: 78px; }
.btn-hero-conhecer { width: 182px; height: 78px; }

.hero-media {
  display: flex;
  justify-content: flex-end;
}

.hero-media img {
  width: 400px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: top center;
}

/* ---------- Sobre ---------- */
.sobre {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--c-teal);
  color: var(--c-cream);
  padding-block: 72px 0;
}

.sobre h2 {
  font-size: var(--fs-h2-sobre);
  font-weight: 700;
  margin-bottom: 40px;
}

.sobre-grid {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 48px;
  align-items: start;
}

.sobre-mural {
  display: flex;
  gap: 16px;
}

.sobre-mural-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sobre-mural-col.is-offset {
  margin-top: 32px;
}

.sobre-mural img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.sobre-texto {
  margin-top: 32px;
  font-size: 19.2px;
  font-weight: 300;
  line-height: 1.1;
  text-align: right;
}
.sobre-texto p { margin-bottom: 1.3em; }

.pilares {
  background: var(--c-orange);
  color: var(--c-teal);
  margin-top: 56px;
}

.pilares-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 80px;
  padding-block: 48px;
}

.pilar { text-align: center; max-width: 260px; margin-inline: auto; }
.pilar h3 {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.pilar p { font-size: 17.5px; font-weight: 300; line-height: 1.1; }

/* ---------- Meu Trabalho ---------- */
.trabalho {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-block: 88px;
  text-align: center;
  color: var(--c-teal);
}

.trabalho-video,
.trabalho-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.trabalho-poster { display: none; }

.trabalho-content {
  position: relative;
  z-index: 2;
}

.trabalho-icon {
  position: absolute;
  top: -64px;
  right: 24px;
  height: 49px;
  width: auto;
}

.trabalho h2 {
  text-transform: uppercase;
  font-weight: 900;
  font-size: var(--fs-h2);
  margin-bottom: 28px;
}

.trabalho p {
  margin-bottom: 1.2em;
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.2;
}

.trabalho p strong {
  font-weight: 700;
}

.trabalho .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto 0;
  width: 400px;
  height: 100px;
  max-width: 100%;
  font-size: 26.4px;
  line-height: 0.92;
  padding: 0 16px;
}

/* ---------- Dúvidas / Acordeão ---------- */
.duvidas {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--c-teal);
  color: var(--c-cream);
  padding-block: 88px;
}

.duvidas h2 {
  text-transform: uppercase;
  text-align: center;
  font-weight: 900;
  font-size: var(--fs-h2);
  margin-bottom: 48px;
}

.accordion {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 56px;
}

.accordion-item {
  border-bottom: 1px solid rgba(224, 223, 209, 0.2);
  padding-block: 18px;
}

.accordion-trigger {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--c-cream);
}

.accordion-trigger::before {
  content: "";
  flex-shrink: 0;
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 16px solid var(--c-orange);
  transition: transform 0.2s ease;
}

.accordion-trigger[aria-expanded="true"]::before {
  transform: rotate(90deg);
}

.accordion-panel {
  padding: 12px 0 0 30px;
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.2;
  color: rgba(224, 223, 209, 0.85);
}

/* ---------- Ebook ---------- */
.ebook {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--c-cream);
  color: var(--c-teal);
  padding-block: 88px;
}

.ebook h2 {
  text-align: center;
  font-weight: 700;
  font-size: var(--fs-h2);
  margin-bottom: 48px;
}

.ebook-grid {
  display: grid;
  grid-template-columns: 1fr 0.6fr;
  gap: 48px;
  align-items: stretch;
}

.ebook-texto {
  display: flex;
  flex-direction: column;
}

.ebook p {
  font-size: 19.2px;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1.2em;
}
.ebook p strong { font-weight: 700; }
.ebook .destaque { font-weight: 700; text-transform: uppercase; }

.ebook .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto auto 0;
  width: 180px;
  height: 70px;
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

.ebook-capa img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: rotate(7deg);
}

/* ---------- Contato / Footer ---------- */
.contato {
  background: var(--c-red);
  color: var(--c-orange);
  padding-block: 64px 48px;
}

.contato h2 {
  text-transform: uppercase;
  font-weight: 700;
  font-size: var(--fs-h2);
  margin-bottom: 32px;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.contato-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 21.6px;
  font-weight: 400;
  line-height: 1.2;
}

.contato-info a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.contato-info a:hover,
.contato-info a:focus-visible { text-decoration: underline; }

.social-icon {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.footer-icon-img { width: 100px; height: auto; }

.footer-name-img {
  width: 380px;
  max-width: 100%;
  height: auto;
}

/* ===========================================================
   Responsivo
   =========================================================== */
@media (max-width: 900px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--c-teal);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .site-nav.is-open { max-height: 320px; }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
  }
  .site-nav a {
    display: block;
    padding: 12px 0;
  }
  .nav-toggle { display: flex; }

  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-media { order: -1; max-width: 340px; margin-inline: auto; }

  .sobre-grid { grid-template-columns: 1fr; }
  .sobre-mural { max-width: 460px; margin-inline: auto; }
  .sobre-texto { text-align: left; }

  .pilares-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }

  :root {
    --fs-h2: 48px;
    --fs-h2-sobre: 43.2px;
  }

  .trabalho-icon { height: 34px; }

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

  .ebook-grid { grid-template-columns: 1fr; }
  .ebook-capa { order: -1; max-width: 320px; margin-inline: auto; }
  .ebook-capa img { height: auto; }
}

@media (max-width: 640px) {
  .brand-text-img { height: 34px; }
  .brand-icon { height: 34px; }
  .cta-group { flex-direction: column; align-items: center; }
}

/* ---------- Vídeo de fundo: leve no mobile ---------- */
@media (max-width: 767px) {
  .trabalho-video { display: none; }
  .trabalho-poster { display: block; }

  /* Escala tipográfica mobile: todo texto a 0.8x do valor já usado no mobile,
     EXCETO .hero-eyebrow/.hero-eyebrow-sub ("Terapia Online" / "Jovens e adultos").
     --fs-body/--fs-h2/--fs-h2-sobre são vars usadas em vários seletores (body,
     .trabalho p, accordion, botões, contato-info etc.) — mudar aqui cascateia
     pra tudo que usa var() automaticamente, sem precisar repetir em cada regra. */
  :root {
    --fs-body: 15.36px;
    --fs-h2: 38.4px;
    --fs-h2-sobre: 34.56px;
  }

  .site-nav a { font-size: 14.592px; }
  .pilar h3 { font-size: 15.36px; }
  .pilar p { font-size: 14px; }
  .sobre-texto { font-size: 15.36px; }
  .ebook p { font-size: 15.36px; }

  /* Hero: manifesto a 0.8x do valor mobile anterior (24.96px), entrelinha já reduzida antes */
  .hero-manifesto {
    font-size: 19.968px;
    line-height: 1.395;
  }

  /* Sobre: metade da distância vertical entre o mural de fotos e o texto */
  .sobre-texto { margin-top: 16px; }

  /* CTAs padronizados no formato do botão "Quero o ebook": mesma altura fixa para
     todos, largura de 60% da tela (só mobile) */
  .cta-group .btn,
  .trabalho .btn,
  .ebook .btn {
    width: 60vw;
    height: 70px;
    padding: 0 16px;
    font-size: var(--fs-body);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
  }

  /* Rodapé: logo/nome e links de contato menores para não estourar a largura da tela.
     .footer-brand tinha flex-shrink:0, então as imagens nunca encolhiam abaixo do
     tamanho natural (380px) e empurravam a página para o lado (barra horizontal).
     margin-inline:auto centraliza o bloco logo+nome (antes ficava alinhado à
     esquerda porque cada item quebrado de linha no flex-wrap vai pro início). */
  .footer-brand { flex-shrink: 1; margin-inline: auto; }
  .footer-icon-img { width: 56px; }
  .footer-name-img { width: 200px; }
  .contato-info { font-size: var(--fs-body); }
  .contato-info a { overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .trabalho-video { display: none; }
  .trabalho-poster { display: block; }
  .btn:hover, .btn:focus-visible { transform: none; }
}
