/* =========================================================
   Maria Juliana — Psicóloga · landing page
   Paleta quente/orgânica (direção "Acolhedor")
   ========================================================= */

:root {
  /* Fundos */
  --cream: #f5f1e8;
  --light: #fffdf8;
  --sand: #ece2cf;
  /* Verdes */
  --sage: #9aa07f;
  --sage-soft: #cfd6b3;
  --sage-tile: #dfe3cb;
  --green-text: #7c8463;
  --green-dark: #353b2c;
  /* Terracota */
  --terra: #b15c3c;
  --terra-dark: #9a4e32;
  --terra-soft: #c9a07f;
  /* Texto */
  --ink: #4f4d43;
  --ink-soft: #5c5a4e;
  --muted: #7c7a6e;
  --muted-2: #9a917c;
  --sand-text: #a08c6b;
  /* Acento */
  --wa: #25d366;
  /* Fontes */
  --font-serif: "Spectral", Georgia, serif;
  --font-sans: "Mulish", system-ui, sans-serif;
  /* Layout */
  --pad-x: clamp(20px, 5vw, 52px);
  --pad-y: clamp(56px, 9vw, 110px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.container-narrow { max-width: 1000px; }
.container-faq { max-width: 780px; }
.container-contact { max-width: 760px; }

.section { padding-block: var(--pad-y); }
.section-cream { background: var(--cream); }
.section-light { background: var(--light); }
.section-sand  { background: var(--sand); }
.section-sage  { background: var(--sage); color: #f5f3ea; }
.section-terra { background: var(--terra); color: #f7ede6; padding-block: clamp(60px, 10vw, 120px); }

/* ---------- Eyebrow / titles ---------- */
.eyebrow {
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 22px;
}
.eyebrow-terra { color: var(--terra); }
.eyebrow-light { color: #e3e6d2; }
.eyebrow-sand  { color: var(--sand-text); }

.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  color: var(--green-dark);
  margin: 0;
}
.section-title-left { text-align: left; }
.section-title-center { text-align: center; margin: 0 0 clamp(28px, 4vw, 44px); }
.section-title--wide { max-width: 520px; margin: 0 0 clamp(36px, 5vw, 52px); }
.section-subtitle { font-size: 15px; color: var(--muted-2); margin: 0; }

.section-head-center { text-align: center; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head-center .section-title { margin: 0 0 10px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 44px;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.03); }
.btn-primary { background: var(--terra); color: #fff; }
.btn-contrast { background: #f7ede6; color: var(--terra-dark); font-weight: 700; }
.btn-sm { font-size: 14px; padding: 10px 20px; border-radius: 40px; }
.btn-lg { font-size: 16px; padding: 16px 34px; }
.btn-primary.btn-lg { box-shadow: 0 10px 26px rgba(177, 92, 60, .26); }
.btn-contrast.btn-lg { padding: 17px 38px; margin-bottom: 30px; }

.link-quiet {
  color: var(--green-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 16px 8px;
}
.link-terra {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--terra);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.link-quiet:hover, .link-terra:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 241, 232, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #e6dcc6;
}
.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.brand-icon { height: 34px; width: auto; flex: none; align-self: center; }
.brand-name {
  font-family: var(--font-serif);
  font-size: clamp(17px, 2.4vw, 20px);
  color: var(--green-dark);
  white-space: nowrap;
}
.brand-role {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--cream); }
.hero-blob {
  position: absolute;
  width: min(60vw, 560px);
  height: min(60vw, 560px);
  background: var(--sage-soft);
  border-radius: 46% 54% 60% 40% / 52% 44% 56% 48%;
  top: -18%;
  right: -12%;
  opacity: .45;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 104px) var(--pad-x);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.hero-copy { flex: 1 1 360px; min-width: 300px; }
.hero-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 5.6vw, 4.1rem);
  line-height: 1.08;
  color: var(--green-dark);
  margin: 0 0 22px;
  letter-spacing: -.02em;
}
.hero-title em { font-style: italic; color: var(--green-text); }
.hero-lead {
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 34px;
  max-width: 440px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-media { flex: 1 1 320px; min-width: 280px; display: flex; justify-content: center; }

.photo-frame {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 5 / 6;
  margin: 0;
  transform: rotate(-3deg);
}
.photo-frame::before {
  content: "";
  position: absolute;
  inset: -10px;
  background: var(--terra);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}
.photo-clip {
  position: absolute;
  inset: 0;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  overflow: hidden;
  /* fundo atrás da foto transparente — combina com a paleta.
     Com uma foto COM fundo, este gradiente nem aparece. */
  background: linear-gradient(160deg, #aab089, #8a9472);
}
.photo-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 14%;
}

/* ---------- Sobre + ACP ---------- */
.sobre-grid { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 64px); }
.sobre-lead {
  flex: 1 1 360px;
  min-width: 300px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.5;
  color: #fbfbf4;
  margin: 0;
}
.sobre-detail { flex: 1 1 320px; min-width: 280px; }
.sobre-detail p { font-size: 16px; line-height: 1.75; margin: 0 0 22px; color: #f1f2e6; }
.acp-card { background: rgba(255, 255, 255, .14); border-radius: 18px; padding: 26px 24px; }
.acp-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 21px;
  margin: 0 0 12px;
}
.acp-card p { font-size: 15px; line-height: 1.75; margin: 0; color: #f1f2e6; }

/* ---------- Como posso ajudar ---------- */
.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(14px, 2vw, 22px);
  margin-bottom: 24px;
}
.help-card {
  background: var(--light);
  border-radius: 20px;
  padding: 30px 26px;
  box-shadow: 0 8px 26px rgba(53, 59, 44, .06);
}
.help-icon { display: block; width: 40px; height: 40px; border-radius: 50%; margin-bottom: 18px; }
.icon-a { background: var(--sand); }
.icon-b { background: var(--sage-tile); }
.help-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 20px;
  color: var(--green-dark);
  margin: 0 0 8px;
}
.help-text { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }

.value-card { background: var(--sand); border-radius: 22px; padding: clamp(28px, 4vw, 40px); }
.value-card .eyebrow { margin-bottom: 18px; letter-spacing: .14em; }
.value-statement {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(19px, 2.4vw, 26px);
  line-height: 1.5;
  color: var(--green-dark);
  margin: 0;
  max-width: 720px;
}

/* ---------- Como funciona ---------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(18px, 3vw, 32px);
}
.works-card { display: flex; flex-direction: column; background: var(--cream); border-radius: 20px; padding: 34px 30px; }
.works-icon { width: 48px; height: 48px; border-radius: 50%; margin-bottom: 20px; flex: none; }
.works-icon-sage  { background: var(--sage); }
.works-icon-tan   { background: var(--terra-soft); }
.works-icon-terra { background: var(--terra); }
.works-title { font-family: var(--font-serif); font-weight: 500; font-size: 21px; color: var(--green-dark); margin: 0 0 8px; }
.works-text { font-size: 15px; line-height: 1.65; color: var(--muted); margin: 0; }

/* ---------- Formação ---------- */
.qual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(18px, 3vw, 32px);
}
.qual-item { display: flex; gap: 14px; align-items: baseline; font-size: 16px; color: var(--ink); }
.qual-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--terra); flex: none; transform: translateY(-2px); }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--light);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 5px 18px rgba(53, 59, 44, .05);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px clamp(20px, 3vw, 28px);
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-serif);
  font-size: clamp(16px, 2vw, 19px);
  color: var(--green-dark);
}
.faq-sign { font-family: var(--font-serif); font-size: 24px; color: var(--terra); line-height: 1; flex: none; }
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .38s cubic-bezier(.4, 0, .2, 1);
}
.faq-answer-inner { overflow: hidden; }
.faq-answer-text {
  padding: 0 clamp(20px, 3vw, 28px) 22px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .3s ease, transform .3s ease;
}
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-item.open .faq-answer-text { opacity: 1; transform: none; }

/* ---------- Onde atendo / mapa ---------- */
.map-section { display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 52px); align-items: center; }
.map-copy { flex: 1 1 280px; min-width: 260px; }
.place-title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(26px, 3.4vw, 38px); color: var(--green-dark); margin: 0 0 12px; line-height: 1.15; }
.map-address { font-size: 15px; line-height: 1.65; color: var(--ink-soft); margin: 0 0 18px; max-width: 360px; }
.map-text { font-size: 16px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 24px; max-width: 380px; }

.map-figure {
  flex: 1 1 340px;
  min-width: 300px;
  position: relative;
  display: block;
  height: clamp(200px, 30vw, 280px);
  border-radius: 22px;
  overflow: hidden;
  background: var(--sage-tile);
  text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease;
}
.map-figure:hover { box-shadow: 0 12px 30px rgba(53, 59, 44, .14); transform: translateY(-2px); }
.map-line { position: absolute; background: var(--sage-soft); }
.map-line-h1 { width: 160%; height: 3px; top: 32%; left: -30%; transform: rotate(-7deg); }
.map-line-h2 { width: 160%; height: 3px; top: 64%; left: -30%; transform: rotate(6deg); }
.map-line-v1 { width: 3px; height: 160%; left: 34%; top: -30%; transform: rotate(5deg); }
.map-line-v2 { width: 3px; height: 160%; left: 66%; top: -30%; transform: rotate(-6deg); }
.map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 24px;
  background: var(--terra);
  border-radius: 50% 50% 50% 0;
  box-shadow: 0 8px 18px rgba(177, 92, 60, .4);
  transform: translate(-50%, -100%) rotate(-45deg);
  transform-origin: center;
}

/* ---------- Contato ---------- */
.container-contact { text-align: center; }
.contact-headline { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: clamp(28px, 4.4vw, 46px); line-height: 1.15; margin: 0 0 16px; }
.contact-text { font-size: clamp(15px, 1.7vw, 18px); line-height: 1.7; color: #f0d8cc; margin: 0 auto 36px; max-width: 460px; }
.btn-contrast svg { color: var(--terra-dark); }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; font-size: 15px; color: #f0d8cc; }
.contact-links a { color: #f7ede6; text-decoration: none; }
.contact-links a:hover { text-decoration: underline; }
.contact-mail { cursor: pointer; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--green-dark); color: #bcc0a8; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; padding-block: clamp(40px, 6vw, 64px); }
.footer-brand { flex: 1 1 260px; min-width: 240px; }
.footer-brand-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.footer-icon { height: 40px; width: auto; flex: none; }
.footer-name { font-family: var(--font-serif); color: var(--cream); font-size: 22px; margin: 0; }
.footer-meta { font-size: 14px; line-height: 1.7; margin: 0; }
.footer-col { flex: 0 1 auto; font-size: 14px; line-height: 1.9; }
.footer-col p { margin: 0; }
.footer-label { color: #8b9170; text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 700; margin: 0 0 10px; }
.footer-link { color: #bcc0a8; text-decoration: none; display: block; }
.footer-link:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px var(--pad-x); text-align: center; font-size: 12px; color: #7e8568; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 60;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wa);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, .45);
  animation: wabob 3s ease-in-out infinite;
}

/* ---------- Animações ---------- */
@keyframes wabob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Mobile — direção "Acolhedor" (02)
   ========================================================= */
@media (max-width: 640px) {
  /* Como posso ajudar: grid 2 colunas, cards compactos só com ícone + título */
  .help-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .help-card { padding: 18px 16px; border-radius: 16px; }
  .help-icon { width: 30px; height: 30px; margin-bottom: 12px; }
  .help-title { font-family: var(--font-sans); font-weight: 700; font-size: 14px; }
  .help-text { display: none; }

  /* Como funciona: linhas com ícone à esquerda */
  .works-card { flex-direction: row; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; }
  .works-icon { width: 42px; height: 42px; margin-bottom: 0; }
  .works-title { font-size: 15px; }
  .works-text { font-size: 13px; }

  /* Hero um pouco mais compacto */
  .hero-lead { margin-bottom: 26px; }
}

/* Header compacto em telas estreitas: com o ícone, o rótulo "Psicóloga"
   ficaria colado no botão "Agendar" em celulares (~≤400px). Ocultá-lo
   abre respiro — o papel segue visível logo abaixo, no hero. */
@media (max-width: 420px) {
  .brand-role { display: none; }
}

/* ---------- Reduzir movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wa-float { animation: none; }
  .btn:hover, .map-figure:hover { transform: none; }
  .faq-answer, .faq-answer-text { transition: none; }
}
