/* ============================================================
   Karina Bertozzi — Psicóloga
   Inspiração: suzanawerner.com (sans direto + minimalista)
   Paleta: lavanda suave + bege em fundo branco
   ============================================================ */

:root {
  /* Paleta OFICIAL da marca (do manual de identidade da Karina) */
  --bg:          #FFFFFF;
  --bg-soft:     #FBF6F0;          /* bege muito leve */
  --bg-deep:     #F5E7E0;          /* BEGE OFICIAL — para faixas */
  --ink:         #333333;
  --ink-soft:    #555560;
  --ink-mute:    #8A8194;
  --line:        #EBDDD0;

  --accent:      #A992BB;          /* derivado claro do roxo oficial */
  --accent-soft: #E5D9E8;          /* roxo muito claro (highlight) */
  --accent-deep: #836C8E;          /* ROXO OFICIAL — botões e textos de destaque */
  --clay:        #C9A26B;          /* bege dourado (acento sutil) */

  --radius:      12px;
  --radius-lg:   18px;
  --shadow-sm:   0 4px 14px -8px rgba(47, 42, 56, .15);
  --shadow:     0 18px 40px -20px rgba(47, 42, 56, .22);

  --font: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --container: 1140px;
}

/* reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: opacity .2s ease, color .2s ease; }
a:hover { color: var(--accent-deep); }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 0; top: 0; background: var(--ink); color: #fff; padding: .8rem 1.2rem; z-index: 100; }

/* typography ------------------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { margin: 0 0 1em; color: var(--ink-soft); }

/* destaque inline (palavras coloridas dentro do parágrafo) */
.hl {
  color: var(--accent-deep);
  font-weight: 500;
  background: linear-gradient(180deg, transparent 65%, var(--accent-soft) 65%);
  padding: 0 .15em;
  border-radius: 3px;
}
.hl-clay {
  color: var(--clay);
  font-weight: 500;
  background: linear-gradient(180deg, transparent 65%, #F5E9D2 65%);
  padding: 0 .15em;
  border-radius: 3px;
}

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: .9rem;
}

/* layout ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.4rem;
}
section { padding: clamp(4rem, 8vw, 6.5rem) 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

.bg-soft { background: var(--bg-soft); }
.bg-deep { background: var(--bg-deep); }

/* buttons --------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: 1rem 1.8rem;
  border-radius: var(--radius);
  border: 0;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .2s ease, background .25s ease, box-shadow .25s ease;
  text-align: center;
}
.btn-primary {
  background: var(--accent-deep);
  color: #fff;
  box-shadow: 0 8px 22px -10px rgba(131, 108, 142, .55);
}
.btn-primary:hover { background: #6B587A; color: #fff; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--accent); color: var(--ink); }
.btn-sm   { padding: .65rem 1.1rem; font-size: .9rem; }
.btn-block { width: 100%; }

/* header ---------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 2px 12px -8px rgba(47, 42, 56, .1);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.4rem;
  gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); }
.brand-logo {
  height: 56px;
  width: auto;
  display: block;
}
.brand-mono {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  color: #fff; font-weight: 600; font-size: 1rem; letter-spacing: .04em;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-weight: 600; font-size: 1.05rem; }
.brand-text small { font-size: .7rem; color: var(--ink-mute); letter-spacing: .04em; font-weight: 400; }
.footer-brand .brand-logo { height: 64px; }
@media (max-width: 580px) { .brand-logo { height: 44px; } }

.site-nav { display: flex; gap: 1.8rem; font-size: .92rem; color: var(--ink-soft); font-weight: 500; }
.site-nav a:hover { color: var(--accent-deep); }

.nav-toggle {
  display: none; width: 44px; height: 44px;
  background: transparent; border: 0;
  flex-direction: column; gap: 5px; align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* hero ------------------------------------------------------ */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: min(88vh, 880px);
  padding: 0;
  overflow: hidden;
  position: relative;
  background: var(--bg-deep);
}

.hero-text {
  display: flex;
  align-items: center;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.4rem, 4vw, 3rem) clamp(3rem, 7vw, 5.5rem)
           max(1.4rem, calc((100vw - var(--container)) / 2 + 1.4rem));
  background:
    radial-gradient(700px 500px at 20% 30%, var(--accent-soft), transparent 60%),
    radial-gradient(500px 400px at 0% 100%, var(--bg-soft), transparent 60%),
    var(--bg);
}
.hero-text-inner { max-width: 560px; }

.hero h1 .accent { color: var(--accent-deep); }
.hero h1 .clay   { color: var(--clay); }
.hero .hero-sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 32em;
  margin-bottom: 1.8rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-badges {
  list-style: none; padding: 1.6rem 0 0; margin: 2rem 0 0;
  display: flex; flex-wrap: wrap; gap: 1rem 1.6rem;
  border-top: 1px solid var(--line);
}
.hero-badges li {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .9rem; color: var(--ink-soft);
}
.hero-badges svg { color: var(--accent-deep); }

.hero-photo {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-deep), var(--accent-soft));
}
.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.photo-fallback-art {
  display: none; position: absolute; inset: 0;
  flex-direction: column; align-items: center; justify-content: center;
  gap: .4rem; color: #fff;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
}
.photo-fallback-art span { font-size: 4.5rem; font-weight: 600; }
.photo-fallback-art small { font-size: .85rem; letter-spacing: .15em; text-transform: uppercase; opacity: .9; }
.hero-photo.photo-fallback .photo-fallback-art { display: flex; }

/* compatibilidade: photo-frame ainda usado em .sobre-photo */
.photo-frame {
  position: relative;
  width: 100%; max-width: 440px;
  aspect-ratio: 3/4;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--bg-soft), var(--accent-soft));
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.photo-frame.photo-fallback .photo-fallback-art { display: flex; }

/* dores ----------------------------------------------------- */
.dores { background: var(--bg-soft); }
.dores-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.dor {
  background: #fff;
  padding: 2rem 1.6rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.dor:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent-soft); }
.dor-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.dor h3 { margin-bottom: .4rem; color: var(--accent-deep); }
.dor p { margin: 0; font-size: .94rem; }

.dores .cta-line { text-align: center; margin-top: 2.5rem; }

/* terapia (pilares) ---------------------------------------- */
.terapia { background: var(--bg); }
.pilares { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.pilar {
  text-align: left;
  padding: 2.2rem 1.8rem;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.pilar-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent-deep); color: #fff;
  font-weight: 600; font-size: 1rem; margin-bottom: 1rem;
}
.pilar h3 { margin-bottom: .5rem; }
.pilar p  { margin: 0; font-size: .96rem; }

/* sobre ----------------------------------------------------- */
.sobre { background: var(--bg-soft); }
.sobre-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.sobre-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--bg-soft), var(--accent-soft));
}
.sobre-photo img { width: 100%; height: 100%; object-fit: cover; }
.sobre-photo .photo-fallback-art { display: none; }
.sobre-photo.photo-fallback .photo-fallback-art { display: flex; position: absolute; inset: 0; }

.sobre-text p { font-size: 1.05rem; line-height: 1.75; }
.sobre-text .btn { margin-top: 1rem; }

/* duvidas (FAQ) -------------------------------------------- */
.duvidas { background: var(--bg); }
.faq-list { max-width: 800px; margin: 0 auto; display: grid; gap: .7rem; }
.faq details {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq details[open] { border-color: var(--accent-soft); background: #fff; box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  font-weight: 500;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { color: var(--accent-deep); transition: transform .25s ease; flex-shrink: 0; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { margin: 0; padding: 0 1.4rem 1.3rem; font-size: .96rem; color: var(--ink-soft); }
.faq details strong { color: var(--ink); }

/* CTA final ------------------------------------------------- */
.cta-final {
  background: linear-gradient(135deg, var(--accent-deep), #5C4D74);
  color: #fff;
  text-align: center;
  padding: clamp(4rem, 8vw, 6rem) 0;
}
.cta-final h2 { color: #fff; max-width: 720px; margin: 0 auto .6em; }
.cta-final h2 .clay { color: #F0DBB8; }
.cta-final p { color: #E8DFF1; font-size: 1.1rem; margin-bottom: 2rem; }
.cta-final .btn-primary { background: #fff; color: var(--accent-deep); box-shadow: 0 12px 28px -10px rgba(0,0,0,.3); }
.cta-final .btn-primary:hover { background: var(--bg-soft); color: var(--accent-deep); }

/* footer ---------------------------------------------------- */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 3rem 0 1.5rem;
  color: var(--ink-soft);
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
.footer-grid h4 { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .5rem; }
.footer-grid a { color: var(--ink-soft); }
.footer-grid a:hover { color: var(--accent-deep); }
.footer-brand { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.footer-brand strong { font-weight: 600; color: var(--ink); display: block; }
.footer-brand small { font-size: .8rem; color: var(--ink-mute); }
.footer-meta {
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
  font-size: .8rem;
  color: var(--ink-mute);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
}
.footer-meta a { color: var(--accent-deep); }

/* whatsapp float -------------------------------------------- */
.wa-float {
  position: fixed; bottom: 1.4rem; right: 1.4rem;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px -8px rgba(37,211,102,.55);
  z-index: 40; transition: transform .25s ease;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }

/* form (agendar) ------------------------------------------- */
.agendar { background: var(--bg-soft); }
.agendar-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.agendar-list { list-style: none; margin: 1.4rem 0 0; padding: 0; }
.agendar-list li { padding: .7rem 0; border-bottom: 1px dashed var(--line); font-size: .96rem; }
.agendar-list li:last-child { border-bottom: 0; }
.agendar-list strong { color: var(--ink); }
.form {
  background: #fff;
  padding: clamp(1.8rem, 3vw, 2.4rem);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.form-row { margin-bottom: 1rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: flex; flex-direction: column; gap: .35rem; font-size: .88rem; font-weight: 500; color: var(--ink); }
.form label small { color: var(--ink-mute); font-weight: 400; }
.form input, .form select, .form textarea {
  font: inherit;
  width: 100%;
  padding: .85rem 1rem;
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 10px;
  color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(169, 146, 187,.2);
}
.form textarea { resize: vertical; min-height: 110px; }
.form-check { margin: 1.2rem 0 1.4rem; }
.check { display: flex; align-items: flex-start; gap: .6rem; font-size: .82rem; color: var(--ink-soft); font-weight: 400; }
.check input { width: auto; margin-top: .2rem; accent-color: var(--accent-deep); flex-shrink: 0; }
.check a { color: var(--accent-deep); text-decoration: underline; }
.form-note { font-size: .82rem; color: var(--ink-mute); text-align: center; margin: 1rem 0 0; }
.form-note strong { color: var(--clay); }

/* legal pages ---------------------------------------------- */
.legal-page { padding: 3rem 0 5rem; background: var(--bg); }
.legal-inner { max-width: 800px; margin: 0 auto; }
.legal-inner h1 { font-size: clamp(2rem, 4vw, 2.4rem); margin-bottom: .3em; }
.legal-meta { font-size: .85rem; color: var(--ink-mute); border-bottom: 1px solid var(--line); padding-bottom: 1.5rem; margin-bottom: 2rem; }
.legal-inner section { margin-bottom: 2rem; padding: 0; }
.legal-inner h2 { font-size: 1.3rem; color: var(--accent-deep); margin-bottom: .6rem; }
.legal-inner ul { padding-left: 1.2rem; color: var(--ink-soft); }
.legal-back { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 2rem; font-size: .9rem; color: var(--accent-deep); }

/* responsivo ------------------------------------------------ */
@media (max-width: 940px) {
  .site-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-nav.is-open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column;
    padding: 1.4rem; gap: 1rem;
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
  }
  .sobre-grid, .agendar-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-text {
    padding: 2.5rem 1.4rem 3rem;
    order: 2;
  }
  .hero-photo {
    order: 1;
    height: 55vh;
    min-height: 380px;
    max-height: 520px;
  }
  .photo-frame { max-width: 340px; }
  .dores-grid { grid-template-columns: repeat(2, 1fr); }
  .pilares { grid-template-columns: 1fr; }
  .footer-meta { justify-content: center; text-align: center; }
}
@media (max-width: 580px) {
  .dores-grid { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
