/* ===== Tokens (paleta do manual de marca) ===== */
:root {
  --rosa: #c09d99;
  --cotton: #f7f3f0;
  --beige: #e1d5cb;
  --nuts: #98796b;
  --desert: #bca89f;
  --desert-bright: #e0d2cb;
  --nuts-deep: #6b493d;
  --cocoa: #4a322a;
  --wood: #68473b;

  --font-head: "Montserrat", "Cormorant Garamond", Georgia, serif;
  --font-body: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--wood);
  background: var(--cotton);
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(3rem, 8vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: 1.6rem; margin-top: 2em; }
h4 { font-size: 1.25rem; margin-bottom: .4em; }

p { margin: 0 0 1.1em; }

:focus-visible {
  outline: 3px solid var(--rosa);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--wood);
  color: var(--cotton);
  padding: .6rem 1rem;
  border-radius: 8px;
  z-index: 100;
}
.skip:focus { left: 8px; }

/* ===== Layout helpers ===== */
.container { width: min(1120px, 100% - 3rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 3rem); margin-inline: auto; }
.center { text-align: center; }

.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-alt { background: var(--beige); }
.section-rose { background: var(--rosa); color: var(--cocoa); }

.kicker {
  font-size: .85rem;
  letter-spacing: .08em;
  margin-bottom: .8rem;
  color: var(--nuts-deep);
}

.sub {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--nuts);
}

/* ===== Botões ===== */
.btn {
  display: inline-block;
  padding: .9rem 1.8rem;
  border-radius: 999px;
  background: var(--wood);
  color: var(--cotton);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  text-align: center;
  border: 2px solid var(--wood);
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--nuts); border-color: var(--nuts); }

.btn-small { padding: .55rem 1.2rem; font-size: .85rem; }

.btn-ghost { background: transparent; color: var(--wood); }
.btn-ghost:hover { background: var(--wood); border-color: var(--wood); color: var(--cotton); }

.btn-light { background: var(--cotton); color: var(--wood); border-color: var(--cotton); }
.btn-light:hover { background: var(--beige); border-color: var(--beige); }

/* ===== Cabeçalho ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(247, 243, 240, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--beige);
}

.header-inner {
  width: min(1240px, 100% - 3rem);
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; }
.brand img {
  height: 46px;
  width: auto;
  background: #fff;
  padding: .2rem .5rem;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(104, 71, 59, .18);
}
.brand span {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--nuts-deep);
}

.nav { display: flex; gap: 1.6rem; }
.nav a {
  text-decoration: none;
  font-size: .9rem;
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav a:hover { border-color: var(--rosa); }

/* ===== Hero ===== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--header-h));
  background: var(--beige);
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 7vw, 6rem);
}

.lead { font-size: 1.15rem; max-width: 30em; margin-bottom: 2rem; }

.actions {
  display: table;
  margin-inline: auto;
  border-spacing: 1rem 0;
}
.actions .btn { display: table-cell; vertical-align: middle; }

@media (max-width: 520px) {
  /* stacked: both buttons share the wider one's width, block centered */
  .actions { display: flex; flex-direction: column; width: fit-content; }
  .actions .btn { display: block; text-align: center; }
}

.hero-image { position: relative; min-height: 360px; }
.hero-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* keep headroom + seated subject; crop floor and curtain edge first */
  object-position: 60% 20%;
}

/* ===== Cartões de serviços ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--beige);
}
.card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.card-art { width: 100%; display: block; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 1.6rem; }
.card h3 { margin-top: 0; font-size: 1.5rem; }
.card .sub { font-size: 1.05rem; margin-bottom: .8rem; }
.card .meta { font-weight: 600; font-size: .9rem; margin-bottom: 1rem; }
.more {
  margin-top: auto;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  color: var(--nuts-deep);
}
.more:hover { color: var(--wood); text-decoration: underline; }

/* ===== Listas e passos ===== */
.list { margin: 0 0 1.5rem; padding: 0; list-style: none; }
.list li { position: relative; padding-left: 1.5rem; margin-bottom: .45rem; }
.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .8em;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--rosa);
}

.two-cols { columns: 2; column-gap: 2.5rem; }
.two-cols li { break-inside: avoid; }

.steps {
  list-style: none;
  counter-reset: step;
  margin: 1.5rem 0 0;
  padding: 0;
}
.steps > li {
  counter-increment: step;
  position: relative;
  margin-bottom: 1.2rem;
  padding: 1.4rem 1.5rem 1rem 4.2rem;
  background: var(--cotton);
  border-radius: var(--radius);
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 1.2rem;
  top: 1.3rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--wood);
  color: var(--cotton);
  font-weight: 600;
  font-size: .9rem;
}
.steps .list { margin-bottom: .5rem; }

/* ===== Duas colunas (Sobre / Livro) ===== */
.split {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.split-reverse { grid-template-columns: 4fr 7fr; }
.split .btn {
  display: block;
  width: fit-content;
  margin-inline: auto;
}

/* buttons inside narrow single-column sections center under their text */
.narrow .btn {
  display: block;
  width: fit-content;
  margin-inline: auto;
}

.portrait { width: 100%; border-radius: var(--radius); aspect-ratio: 2 / 3; object-fit: cover; }
.book { width: min(100%, 340px); margin-inline: auto; border-radius: 6px; box-shadow: 0 18px 40px rgba(104, 71, 59, .25); }

.section-rose .kicker { color: var(--cocoa); }
.stat { margin-top: 1.8rem; font-size: 1rem; text-align: center; }
.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 4rem;
  line-height: 1;
  font-weight: 600;
}

/* ===== Formações ===== */
.training {
  background: var(--cotton);
  border-left: 4px solid var(--rosa);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.6rem 1.8rem;
  margin-bottom: 3.5rem;
}

.credentials-title { margin-top: 1rem; }
.credentials-title + h3 { margin-top: 0; }

/* ===== Contacto ===== */
.contact {
  padding: clamp(4rem, 9vw, 7rem) 0;
  background: var(--wood);
  color: var(--cotton);
}
.contact .kicker { color: var(--desert-bright); }
.contact .btn-light { margin-top: .5rem; }
.contact-meta { margin: 2.2rem 0 0; color: var(--desert-bright); font-size: .95rem; }

/* ===== Rodapé ===== */
.site-footer {
  position: relative;
  padding: 3rem 1.5rem 2.5rem;
  background: var(--wood);
  color: var(--cotton);
  text-align: center;
}
.footer-inner p { margin-bottom: .8rem; }
.tagline { font-family: var(--font-head); font-style: italic; font-size: 1.5rem; }
.social { display: flex; justify-content: center; gap: 1.5rem; }
.social a { text-decoration: none; border-bottom: 1px solid var(--desert-bright); }
.social a:hover { border-color: var(--cotton); }
.copy { font-size: .8rem; opacity: .8; margin: 1.5rem 0 0; }

.to-top {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cotton);
  color: var(--wood);
  text-decoration: none;
  font-weight: 600;
}

/* ===== Responsivo ===== */
@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-image { order: -1; min-height: 320px; }
  /* show the full portrait image on mobile: no absolute cover crop */
  .hero-image img { position: static; width: 100%; height: auto; object-position: 50% 50%; }
  .split, .split-reverse { grid-template-columns: 1fr; }
  .portrait { max-width: 420px; margin-inline: auto; }
}

@media (max-width: 1040px) {
  :root { --header-h: 118px; }
  /* header wraps to its own row below 1040px (single row needs ~1008px,
     so 961-1040 used to overflow before wrapping; 2026-11-06 audit F5) */
  .site-header { height: auto; }
  .header-inner {
    height: auto;
    min-height: var(--header-h);
    flex-wrap: wrap;
    align-content: center;
    row-gap: .5rem;
  }
  .brand { white-space: nowrap; }
  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 1.2rem;
    row-gap: .4rem;
    padding: .5rem 1rem .9rem;
    flex-wrap: wrap;   /* nav links wrap to extra rows instead of scrolling (audit F1) */
  }
  .nav a {
    padding: .55rem .15rem; /* ~44px touch targets (audit F4) */
  }
}

@media (max-width: 820px) {
  /* tight header: wordmark text goes, logo plate carries the brand */
  .brand span { display: none; }
}

/* phone tier: nav takes 2 rows (content 510px > inner), wrapped header is
   ~173-179px tall — --header-h tracks that so anchor scroll-padding stays
   honest (audit F3); min-height floor dropped, height is content-driven */
@media (max-width: 600px) {
  :root { --header-h: 190px; }
  .header-inner { min-height: 0; }
}

/* smallest phones: nav packs to 3 rows (measured at 320px) -> header ~225px */
@media (max-width: 420px) {
  :root { --header-h: 232px; }
}

/* small phones: keep row 1 (logo + CTA) on ONE line — it needed 302px vs
   272px inner at 320px, which wrapped the CTA to a 3rd header row (audit F2) */
@media (max-width: 400px) {
  .header-inner { gap: .75rem; }
  .brand img { height: 40px; }
  .btn-small { padding: .5rem 1rem; font-size: .8rem; }
}

@media (max-width: 600px) {
  .two-cols { columns: 1; }
  .steps > li { padding-left: 3.6rem; }
  .to-top { position: static; margin: 1.5rem auto 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
