/* =========================================================
   Gabriela Mariano de Castro — Psicologia
   Paleta: sage / verde musgo · azul pastel · terracota
   Tipografia: Lora (títulos) + Source Sans 3 (texto)
   ========================================================= */

:root {
  --bg:            #F7F4ED;
  --surface:       #FFFFFF;
  --surface-alt:   #EFEDE2;

  --sage:          #8FA37E;   /* sage green */
  --sage-deep:     #6C8060;   /* verde musgo suave */
  --olive:         #A9B58C;   /* verde oliva claro */

  --blue:          #A9C6D4;   /* azul pastel */
  --blue-soft:     #DCE8ED;

  --terracotta:      #B26B47; /* terracota / laranja amarronzado */
  --terracotta-deep: #98572F;
  --terracotta-soft: #E9CDB9;

  --ink:      #35322C;
  --muted:    #635D54;
  --line:     #DED9CC;

  --maxw: 1120px;
  --radius: 14px;
  --shadow: 0 18px 40px -24px rgba(53, 50, 44, 0.35);

  --font-head: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--terracotta-deep); }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 4.6vw, 3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); }
h3 { font-size: 1.185rem; }

p { margin: 0 0 1rem; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin: 0 0 0.9rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 237, 0.85);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(247, 244, 237, 0.95);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px; gap: 1rem;
}
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.25; }
.brand-name { font-family: var(--font-head); font-size: 1.12rem; color: var(--ink); font-weight: 600; }
.brand-role { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.04em; }

.nav { display: flex; align-items: center; }
.nav-list {
  list-style: none; display: flex; gap: 1.6rem; margin: 0; padding: 0;
  align-items: center;
}
.nav-list a {
  text-decoration: none; color: var(--ink); font-size: 0.95rem; font-weight: 500;
  padding: 0.35rem 0; border-bottom: 2px solid transparent; transition: border-color .15s ease, color .15s ease;
}
.nav-list a:hover { color: var(--sage-deep); border-bottom-color: var(--sage); }
.nav-cta {
  background: var(--sage-deep); color: #fff !important; border-radius: 999px;
  padding: 0.5rem 1.15rem !important; border-bottom: none !important;
}
.nav-cta:hover { background: var(--ink); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--surface); cursor: pointer; position: relative;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  content: ""; position: absolute; left: 50%; width: 20px; height: 2px;
  background: var(--ink); transform: translateX(-50%); transition: .2s ease;
}
.nav-toggle-bar { top: 50%; margin-top: -1px; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after  { top: 0; transform: translateX(-50%) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 0.98rem;
  padding: 0.85rem 1.5rem; border-radius: 999px; transition: transform .12s ease, background .18s ease, color .18s ease;
  border: 1.5px solid transparent; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--terracotta); color: #fff; border-color: var(--terracotta); }
.btn-primary:hover { background: var(--terracotta-deep); border-color: var(--terracotta-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--sage-deep); }
.btn-ghost:hover { background: var(--sage-deep); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(90% 120% at 88% 0%, rgba(169, 198, 212, 0.28), transparent 60%),
    linear-gradient(180deg, #F1EFE4, var(--bg));
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
}
.hero-inner {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.hero-text .lead {
  font-size: 1.15rem; color: var(--muted); max-width: 34ch; margin-bottom: 1.75rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 1.5rem; }
.hero-note {
  font-size: 0.9rem; color: var(--muted); max-width: 46ch; margin: 0;
  padding-left: 0.9rem; border-left: 3px solid var(--olive);
}
.hero-figure {
  margin: 0.35rem 0 0; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow);
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; object-position: center top; aspect-ratio: 4 / 5; }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--surface-alt); }
.section-intro, .section-note {
  color: var(--muted); max-width: 60ch;
}
.section-intro { font-size: 1.08rem; margin-bottom: 2.25rem; }
.section-note {
  font-size: 0.9rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
}

.prose { max-width: 68ch; }
.prose p { color: var(--muted); }
.prose strong { color: var(--ink); font-weight: 600; }
.two-col { max-width: none; }
@media (min-width: 800px) {
  .two-col { columns: 2; column-gap: 3rem; }
  .two-col p { margin-top: 0; break-inside: avoid; }
}

/* ---------- Pillars ---------- */
.pillars {
  list-style: none; margin: 2.75rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem;
}
.pillars li {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.4rem; border-top: 3px solid var(--sage);
}
.pillars h3 { margin-bottom: 0.35rem; }
.pillars p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* ---------- Cards ---------- */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem;
}
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem 1.6rem; box-shadow: var(--shadow);
}
.card h3 { color: var(--sage-deep); margin-bottom: 0.55rem; }
.card p { margin: 0; color: var(--muted); }

/* ---------- Steps ---------- */
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.75rem;
  margin-top: 1rem;
}
.step { padding-top: 0.5rem; border-top: 2px solid var(--terracotta-soft); }
.step-num {
  font-family: var(--font-head); font-size: 1.5rem; color: var(--terracotta); display: block; margin-bottom: 0.4rem;
}
.step h3 { margin-bottom: 0.35rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* ---------- Sobre ---------- */
.sobre-inner {
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center;
}
.sobre-figure {
  margin: 0; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow);
}
.sobre-figure img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.sobre-crp { color: var(--sage-deep); font-weight: 600; margin-top: -0.4rem; margin-bottom: 1.2rem; }
.link-inline {
  display: inline-block; margin-top: 0.5rem; font-weight: 600; text-decoration: none;
  border-bottom: 2px solid var(--terracotta-soft); padding-bottom: 2px;
}
.link-inline:hover { border-bottom-color: var(--terracotta); }

/* ---------- Contato ---------- */
.contato { background: var(--sage-deep); color: #F4F1E8; }
.contato .eyebrow { color: var(--blue-soft); }
.contato h2 { color: #fff; }
.contato-lead { max-width: 54ch; color: #E7E4D6; }
.contato-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin: 1.75rem 0 1rem; }
.contato .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.6); }
.contato .btn-ghost:hover { background: #fff; color: var(--sage-deep); }
.contato-note { font-size: 0.9rem; color: #D6D3C4; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #D9D5CB; padding: 2.75rem 0; font-size: 0.92rem; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 2rem; }
.footer-name { font-family: var(--font-head); color: #fff; font-size: 1.05rem; margin: 0 0 0.15rem; }
.footer-crp { margin: 0; color: #B8B4A8; }
.footer-contact { text-align: right; }
.footer-contact a { color: #D9D5CB; text-decoration: none; }
.footer-contact a:hover { color: #fff; }
.footer-disclaimer {
  grid-column: 1 / -1; margin: 1.25rem 0 0; padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.12); color: #A9A599; max-width: 75ch;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-figure { order: -1; max-width: 420px; transform: none; }
  .hero-text .lead { max-width: none; }
  .sobre-inner { grid-template-columns: 1fr; }
  .sobre-figure { max-width: 360px; }

  .nav-toggle { display: block; }
  .nav-list {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1rem; display: none; box-shadow: var(--shadow);
  }
  .nav-list.is-open { display: flex; }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-list li:last-child { border-bottom: none; padding-top: 0.75rem; }
  .nav-list a { display: block; padding: 0.85rem 0; }
  .nav-cta { text-align: center; }
}

@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-contact { text-align: left; }
  .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Página legal (Política de Privacidade) ---------- */
.legal h1 { margin-bottom: 0.35rem; }
.legal-updated { color: var(--muted); font-size: 0.92rem; margin-bottom: 2.25rem; }
.legal-body { max-width: 72ch; }
.legal-body h2 {
  font-size: 1.25rem; margin-top: 2.5rem; margin-bottom: 0.6rem;
  padding-top: 1.25rem; border-top: 1px solid var(--line);
}
.legal-body p { color: var(--muted); }
.legal-body ul { color: var(--muted); margin: 0 0 1rem; padding-left: 1.2rem; }
.legal-body li { margin-bottom: 0.4rem; }
.legal-body a { overflow-wrap: anywhere; }
