/* ============================================
   Dayane Bezerra — Psicóloga Clínica
   Tokens derivados da identidade visual (Cardo + Roboto)
   ============================================ */

:root{
  --bg:            #FFFDFC;
  --bg-soft:       #F7D7D0;
  --bg-alt:        #EBEFF2;
  --surface:       #FFFFFF;
  --surface-line:  #F0DAD3;
  --text:          #3A2222;
  --text-muted:    #7A5A52;
  --accent:        #8C162C;
  --accent-strong: #730202;
  --accent-deep:   #400101;
  --nude:          #BF9984;
  --on-accent:     #FFFDFC;
  --shadow-tint:   rgba(64,1,1,.28);
  --scrollbar-fg:  #8C162C;

  --serif: 'Cardo', Georgia, 'Times New Roman', serif;
  --sans: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:            #241012;
    --bg-soft:       #3A1319;
    --bg-alt:        #2C1518;
    --surface:       #331419;
    --surface-line:  #4A2027;
    --text:          #F5E6E1;
    --text-muted:    #D6AFA6;
    --accent:        #E48A98;
    --accent-strong: #F0A6B0;
    --accent-deep:   #FBD9DD;
    --nude:          #D9B79F;
    --on-accent:     #2A0D10;
    --shadow-tint:   rgba(0,0,0,.5);
    --scrollbar-fg:  #E48A98;
  }
}
:root[data-theme="dark"]{
  --bg:            #241012;
  --bg-soft:       #3A1319;
  --bg-alt:        #2C1518;
  --surface:       #331419;
  --surface-line:  #4A2027;
  --text:          #F5E6E1;
  --text-muted:    #D6AFA6;
  --accent:        #E48A98;
  --accent-strong: #F0A6B0;
  --accent-deep:   #FBD9DD;
  --nude:          #D9B79F;
  --on-accent:     #2A0D10;
  --shadow-tint:   rgba(0,0,0,.5);
  --scrollbar-fg:  #E48A98;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family:var(--sans);
  color:var(--text);
  background:var(--bg);
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
}

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

h1,h2,h3{
  font-family:var(--serif);
  color:var(--accent-strong);
  font-weight:400;
  line-height:1.22;
  margin:0 0 1rem;
  text-wrap:balance;
}

p{ margin:0 0 1.1rem; }

.container{
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:0 24px;
  position:relative;
  z-index:2;
}
.narrow{ max-width:820px; }
.center{ text-align:center; }

/* ---------- Progress bar ---------- */
.scroll-progress{
  position:fixed;
  top:0; left:0;
  height:3px;
  width:0%;
  background:var(--accent);
  z-index:60;
  transition:width .1s linear;
}

/* ---------- Botões ---------- */
.btn{
  display:inline-block;
  font-family:var(--sans);
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  font-size:.82rem;
  text-decoration:none;
  padding:1.05rem 2.1rem;
  border-radius:3px;
  border:2px solid transparent;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:hover{ transform:translateY(-3px); }
.btn:active{ transform:translateY(-1px); }
.btn:focus-visible{ outline:3px solid var(--nude); outline-offset:2px; }

.btn-primary{
  background:var(--accent);
  color:var(--on-accent);
  box-shadow:0 10px 24px -6px var(--shadow-tint);
}
.btn-primary:hover{ background:var(--accent-strong); box-shadow:0 16px 30px -8px var(--shadow-tint); }

.btn-light{
  background:var(--bg);
  color:var(--accent-strong);
  box-shadow:0 10px 24px -6px var(--shadow-tint);
}
.btn-light:hover{ background:var(--bg-soft); box-shadow:0 16px 30px -8px var(--shadow-tint); }

.btn-outline{
  background:transparent;
  color:var(--on-accent);
  border-color:var(--on-accent);
}
.btn-outline:hover{ background:var(--on-accent); color:var(--accent-deep); }

.cta-wrap{ margin-top:2.75rem; }

/* ---------- Header ---------- */
.site-header{
  background:var(--bg);
  padding:14px 0;
  border-bottom:1px solid var(--surface-line);
  position:sticky;
  top:0;
  z-index:50;
  transition:box-shadow .25s ease;
}
.site-header.is-scrolled{ box-shadow:0 8px 22px -12px var(--shadow-tint); }
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.header-logo{ height:56px; width:auto; }
.crp{
  font-size:.72rem;
  letter-spacing:.08em;
  color:var(--nude);
  font-weight:500;
}
.theme-toggle{
  border:1px solid var(--surface-line);
  background:var(--surface);
  color:var(--text-muted);
  border-radius:999px;
  width:38px;
  height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  font-size:1rem;
  margin-left:14px;
  transition:transform .4s ease, background .2s ease, color .2s ease;
}
.theme-toggle:hover{ color:var(--accent); }
.theme-toggle.is-spinning{ transform:rotate(180deg); }
.theme-toggle:focus-visible{ outline:3px solid var(--nude); outline-offset:2px; }
.header-right{ display:flex; align-items:center; }

/* ---------- Elementos decorativos ---------- */
.deco{ position:absolute; pointer-events:none; z-index:1; }
.deco-ring{
  border-radius:50%;
  border:1.5px solid currentColor;
  opacity:.35;
}
.deco-dot{
  border-radius:50%;
  background:currentColor;
  opacity:.5;
}
.deco-sparkle{
  font-family:var(--serif);
  opacity:.55;
  line-height:1;
  animation:twinkle 3.6s ease-in-out infinite;
}
.deco-sparkle.delay-1{ animation-delay:.6s; }
.deco-sparkle.delay-2{ animation-delay:1.4s; }
.deco-line{ opacity:.4; }

@keyframes twinkle{
  0%, 100%{ opacity:.25; transform:scale(.85); }
  50%{ opacity:.75; transform:scale(1.05); }
}
@keyframes float-y{
  0%, 100%{ transform:translateY(0); }
  50%{ transform:translateY(-12px); }
}

/* ---------- Hero ---------- */
.hero{
  background:linear-gradient(180deg, var(--bg-soft) 0%, var(--bg-alt) 100%);
  padding:70px 0 90px;
  position:relative;
  overflow:hidden;
}
.hero-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:56px;
  align-items:center;
}
.hero-text h1{
  font-size:clamp(2.1rem, 4vw, 3.1rem);
  display:flex;
  flex-direction:column;
  gap:.15em;
}
.hero-text h1 span:first-child{ color:var(--accent-deep); font-weight:700; }
.hero-sub{
  font-size:1.08rem;
  max-width:46ch;
  color:var(--text);
}
.hero-photo{
  position:relative;
  animation:float-y 7s ease-in-out infinite;
}
.hero-photo-frame{
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 30px 60px -20px var(--shadow-tint);
}
.hero-photo img{
  aspect-ratio:4/5;
  object-fit:cover;
  width:100%;
  transition:transform .6s ease;
}
.hero-photo:hover img{ transform:scale(1.045); }

/* ---------- Seção genérica ---------- */
.section{ padding:90px 0; position:relative; overflow:hidden; }

[data-reveal]{ opacity:1; transform:none; }
.reveal-enabled [data-reveal]{
  opacity:0;
  transform:translateY(22px);
  transition:opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1);
}
.reveal-enabled [data-reveal].is-visible{ opacity:1; transform:none; }

/* ---------- Seção: mente ---------- */
.section-mind{ background:var(--bg); color:var(--text); }
.section-mind h2{ font-size:clamp(1.7rem, 3vw, 2.3rem); margin-bottom:1.6rem; }
.section-mind p{ font-size:1.08rem; }
.section-mind .highlight{
  font-family:var(--serif);
  font-style:italic;
  font-size:1.3rem;
  color:var(--accent);
  margin-top:1.8rem;
}

/* ---------- Seção: benefícios ---------- */
.section-benefits{ background:var(--accent-deep); color:var(--on-accent); }
.section-benefits h2{
  color:var(--on-accent);
  font-size:clamp(1.7rem, 3vw, 2.3rem);
  max-width:820px;
  margin:0 auto 3rem;
}
.benefits-grid{ display:grid; grid-template-columns:repeat(4, 1fr); gap:24px; }
.benefit-card{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.25);
  border-radius:10px;
  padding:32px 22px;
  text-align:center;
  transition:transform .3s ease, background .3s ease, border-color .3s ease;
}
.benefit-card:hover{
  transform:translateY(-6px);
  background:rgba(255,255,255,.14);
  border-color:rgba(255,255,255,.45);
}
.benefit-icon{
  display:block;
  font-size:1.6rem;
  color:var(--bg-soft);
  margin-bottom:14px;
  transition:transform .3s ease;
}
.benefit-card:hover .benefit-icon{ transform:scale(1.2) rotate(8deg); }
.benefit-card p{ font-size:.98rem; margin:0; color:var(--bg-soft); }

/* ---------- Seção: juntas ---------- */
.section-together{ background:var(--bg-alt); }
.section-together::before{
  content:"";
  position:absolute; inset:0;
  background-image:radial-gradient(currentColor 1.2px, transparent 1.2px);
  background-size:26px 26px;
  color:var(--nude);
  opacity:.16;
  z-index:0;
}
.section-together h2{ font-size:clamp(1.5rem, 2.6vw, 2rem); margin-bottom:1.8rem; }
.section-together p{ font-size:1.05rem; }
.together-list{ list-style:none; margin:2.2rem 0 0; padding:0; display:grid; gap:18px; }
.together-list li{
  background:var(--surface);
  border-left:4px solid var(--accent);
  padding:20px 24px;
  border-radius:4px;
  font-size:1.02rem;
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.together-list li:hover{
  transform:translateX(6px);
  box-shadow:0 12px 26px -14px var(--shadow-tint);
  border-color:var(--accent-strong);
}

/* ---------- Seção: terapia online ---------- */
.section-online{ background:var(--bg-soft); }
.online-grid{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:start; }
.online-statement p{
  font-family:var(--serif);
  font-size:clamp(1.4rem, 2.6vw, 1.9rem);
  color:var(--accent-deep);
  line-height:1.4;
  margin:0;
}
.online-benefits{ display:flex; flex-direction:column; gap:28px; }
.online-benefit{ transition:transform .25s ease; }
.online-benefit:hover{ transform:translateX(4px); }
.online-benefit h3{ font-size:1.2rem; color:var(--accent); margin-bottom:.4rem; }
.online-benefit p{ margin:0; font-size:.98rem; }

/* ---------- Seção: sobre ---------- */
.section-about{ background:var(--bg); }
.about-grid{ display:grid; grid-template-columns:.85fr 1.15fr; gap:64px; align-items:center; }
.about-photo{ border-radius:12px; overflow:hidden; box-shadow:0 30px 60px -20px var(--shadow-tint); }
.about-photo img{
  aspect-ratio:4/5;
  object-fit:cover;
  width:100%;
  transition:transform .6s ease;
}
.about-photo:hover img{ transform:scale(1.045); }
.eyebrow{
  display:block;
  font-size:.85rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--nude);
  font-weight:700;
  margin-bottom:.4rem;
}
.about-text h2{ font-size:clamp(1.9rem, 3.2vw, 2.6rem); }
.about-text p{ font-size:1.03rem; }

/* ---------- Footer ---------- */
.site-footer{ background:var(--accent-deep); padding:56px 0 34px; position:relative; overflow:hidden; }
.footer-inner{ display:flex; flex-direction:column; align-items:center; gap:22px; text-align:center; }
.footer-logo{ height:80px; width:auto; }
.footer-crp{ font-size:.75rem; letter-spacing:.08em; color:var(--nude); }
.footer-copy{ font-size:.78rem; color:rgba(255,253,252,.55); }

/* ---------- Responsivo ---------- */
@media (max-width: 900px){
  .hero-grid, .about-grid, .online-grid{ grid-template-columns:1fr; }
  .hero-photo{ order:-1; max-width:340px; margin:0 auto; }
  .about-photo{ max-width:340px; margin:0 auto; }
  .benefits-grid{ grid-template-columns:repeat(2, 1fr); }
  .section{ padding:64px 0; }
}
@media (max-width: 520px){
  .benefits-grid{ grid-template-columns:1fr; }
  .btn{ width:100%; text-align:center; }
  .header-logo{ height:44px; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .btn{ transition:none; }
  .hero-photo{ animation:none; }
  .deco-sparkle{ animation:none; }
  .reveal-enabled [data-reveal]{ opacity:1; transform:none; transition:none; }
}
