/* ============================================
   Almar Psicologia Clínica — Persona B (Acolhedor Orgânico)
   Paleta: azul acinzentado, terracota, bege, verde suave, branco
   Motivos: natureza, mar/ondas, mandala — minimalista
   ============================================ */

:root {
  --cream:      #F6F1E8;
  --cream-2:    #EFE7D7;
  --sand:       #E4D8C3;
  --sage:       #97A689;
  --sage-700:   #5C6B50;
  --moss:       #3D4937;
  --terracotta: #C07F58;
  --terracotta-soft: #E7C9A8;
  --blue:       #5E7682;  /* azul acinzentado — o "mar" */
  --blue-deep:  #3B4C55;  /* mergulho / profundidade */
  --blue-soft:  #AFC0C6;
  --ink:        #2E2A24;
  --muted:      #6E675C;
  --line:       rgba(60, 56, 46, 0.12);

  --radius:     20px;
  --radius-lg:  28px;
  --shadow-sm:  0 6px 20px rgba(59, 76, 85, 0.08);
  --shadow-md:  0 18px 50px rgba(59, 76, 85, 0.14);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Mulish', system-ui, -apple-system, sans-serif;

  --maxw: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 110px 0; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; color: var(--moss); }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; }
h1 em { font-style: italic; color: var(--blue); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 18px;
}
.eyebrow--light { color: var(--terracotta-soft); }

.lead { font-size: 1.18rem; color: var(--muted); }

.section__head { max-width: 620px; margin: 0 auto 56px; text-align: center; }
.section__head--left { margin-left: 0; text-align: left; }
.section__sub { margin-top: 14px; color: var(--muted); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 15px 30px; border-radius: 100px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  min-height: 52px; text-align: center;
}
.btn--primary { background: var(--sage-700); color: var(--cream); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--moss); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--sage-700); border-color: var(--sage); }
.btn--ghost:hover { background: var(--sage-700); color: var(--cream); border-color: var(--sage-700); }
.btn--block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(246, 241, 232, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 24px rgba(59,76,85,.06); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--moss); }
.brand__mark { display: inline-flex; flex-shrink: 0; }
img.brand__mark { width: 40px; height: 40px; object-fit: contain; }
.brand__text { font-family: var(--font-display); font-size: 1.32rem; font-weight: 600; line-height: 1; display: flex; flex-direction: column; gap: 4px; letter-spacing: .02em; }
.brand__text small { font-family: var(--font-body); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-weight: 600; font-size: 0.95rem; color: var(--ink); transition: color .2s ease; }
.nav a:hover, .nav a.active { color: var(--terracotta); }
.nav__cta { padding: 11px 22px; border-radius: 100px; background: var(--sage-700); color: var(--cream) !important; }
.nav__cta:hover { background: var(--moss); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--moss); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Wave divider (ondas / mar) ===== */
.wave-divider { position: absolute; left: 0; right: 0; line-height: 0; pointer-events: none; z-index: 1; }
.wave-divider svg { width: 100%; height: 90px; display: block; }
.wave-divider svg path { fill: var(--cream); }

/* ===== Hero ===== */
.hero { position: relative; padding: 150px 0 120px; overflow: hidden; }
.hero__art { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(48px); }
.blob--1 { width: 460px; height: 460px; background: var(--sage); top: -120px; right: -90px; opacity: .32; }
.blob--2 { width: 360px; height: 360px; background: var(--terracotta-soft); bottom: -60px; left: -80px; opacity: .5; }
.blob--3 { width: 520px; height: 520px; background: var(--blue-soft); top: 50%; left: 50%; transform: translate(-50%,-50%); opacity: .25; }
.hero__mandala { position: absolute; width: 360px; top: 60px; right: -90px; opacity: .06; }

.hero .wave-divider { bottom: -1px; }
.hero .wave-divider svg path { fill: var(--blue); }

.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero__text h1 { margin-bottom: 22px; }
.hero__text .lead { margin-bottom: 32px; max-width: 36ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.hero__note { font-size: 0.92rem; color: var(--muted); }

/* ===== Photo frames (moldura orgânica) ===== */
.photo-frame { position: relative; overflow: hidden; box-shadow: var(--shadow-md); background: var(--cream-2); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-frame::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); pointer-events: none;
}
.photo-frame--hero {
  aspect-ratio: 4 / 5; max-width: 440px; margin-left: auto;
  border-radius: 46% 54% 48% 52% / 40% 42% 58% 60%;
}
.photo-frame--about {
  aspect-ratio: 5 / 6; max-width: 460px;
  border-radius: 54% 46% 52% 48% / 56% 52% 48% 44%;
}
.hero__media { position: relative; }
.hero__media::before {
  content: ''; position: absolute; z-index: -1;
  width: 100%; max-width: 440px; aspect-ratio: 4/5; right: -18px; top: 22px;
  border-radius: 46% 54% 48% 52% / 40% 42% 58% 60%;
  border: 1.5px solid var(--terracotta-soft); margin-left: auto;
}

/* ===== Faixa Almar ===== */
.almar-band { position: relative; background: var(--blue); color: var(--cream); text-align: center; padding: 92px 0; overflow: hidden; }
.almar-band__inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.almar-band__mark { width: 96px; height: 96px; object-fit: contain; opacity: .9; margin: 0 auto 22px; }
.almar-band h2 { color: var(--cream); margin-bottom: 16px; }
.almar-band p { color: rgba(246,241,232,.92); font-size: 1.18rem; }

/* ===== Sobre ===== */
.sobre__inner { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 60px; align-items: center; }
.sobre__role { color: var(--terracotta); font-weight: 600; margin: -4px 0 18px; letter-spacing: .01em; }
.pull-quote {
  font-family: var(--font-display); font-style: italic; font-size: 1.32rem; line-height: 1.45;
  color: var(--blue); border-left: 3px solid var(--terracotta);
  padding: 6px 0 6px 24px; margin: 26px 0;
}
.sobre__text p { margin-bottom: 18px; color: var(--muted); }
.formacao { list-style: none; display: grid; gap: 9px; margin: 22px 0 20px; }
.formacao li { position: relative; padding-left: 26px; color: var(--muted); font-size: 0.96rem; }
.formacao li::before { content: ''; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--terracotta); }
.cred { font-size: 0.92rem; font-weight: 600; color: var(--sage-700) !important; letter-spacing: .01em; }

/* ===== Cards ===== */
.cards { display: grid; gap: 26px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card { border-radius: var(--radius-lg); padding: 36px 30px; transition: transform .3s ease, box-shadow .3s ease; }
.card--service { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.card--service:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px; background: var(--cream-2); color: var(--blue); margin-bottom: 20px; }
.card h3 { margin-bottom: 12px; color: var(--moss); }
.card p { color: var(--muted); margin-bottom: 16px; }
.card__meta { font-size: 0.82rem; font-weight: 600; color: var(--terracotta); text-transform: uppercase; letter-spacing: .06em; }
.card--soft { background: var(--cream-2); border: 1px solid transparent; }
.card--soft:nth-child(2) { background: #E6EBEA; }
.card--soft:nth-child(3) { background: var(--sand); }
.card--soft h3 { margin-bottom: 10px; }
.card--soft p { margin-bottom: 0; }

.servicos { background: linear-gradient(180deg, var(--cream), #F1EBDF); }

/* ===== Ateliê (galeria de recursos expressivos) ===== */
.atelie { background: linear-gradient(180deg, #F1EBDF, var(--cream)); }
.gallery { columns: 3 260px; column-gap: 22px; }
.gallery__item {
  break-inside: avoid; margin: 0 0 22px; position: relative;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--cream-2); box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.gallery__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gallery__item img { width: 100%; height: auto; display: block; }
@media (max-width: 560px) {
  .gallery { columns: 2 150px; column-gap: 14px; }
  .gallery__item { margin-bottom: 14px; }
}

/* ===== Como funciona ===== */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; padding: 34px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step__num { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--blue); color: var(--cream); font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 18px; }
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { font-size: 0.95rem; color: var(--muted); }

/* ===== CTA intermediária ===== */
.cta-mid { position: relative; padding: 120px 0 96px; background: var(--moss); color: var(--cream); overflow: hidden; text-align: center; }
.cta-mid .wave-divider--top { top: -1px; }
.cta-mid .wave-divider--top svg path { fill: var(--cream); }
.cta-mid__art { position: absolute; inset: 0; pointer-events: none; }
.cta-mid .blob--3 { background: var(--sage); opacity: .28; }
.cta-mid__mandala { position: absolute; right: -120px; bottom: -120px; width: 320px; height: 320px; object-fit: contain; opacity: .14; }
.cta-mid__inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.cta-mid h2 { color: var(--cream); margin-bottom: 16px; }
.cta-mid p { color: rgba(246,241,232,.85); margin-bottom: 30px; font-size: 1.1rem; }
.cta-mid .btn--primary { background: var(--terracotta); }
.cta-mid .btn--primary:hover { background: var(--terracotta-soft); color: var(--moss); }

/* ===== FAQ ===== */
.faq__inner { max-width: 820px; margin: 0 auto; }
.accordion { display: flex; flex-direction: column; gap: 12px; }
.acc-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.acc-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; background: none; border: 0; cursor: pointer; font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; color: var(--moss); text-align: left; }
.acc-icon { flex-shrink: 0; color: var(--terracotta); transition: transform .3s ease; }
.acc-trigger[aria-expanded="true"] .acc-icon { transform: rotate(180deg); }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.acc-panel p { padding: 0 26px 24px; color: var(--muted); }

/* ===== Contato ===== */
.contato { background: linear-gradient(180deg, #F1EBDF, var(--cream)); }
.contato__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contato__text p { color: var(--muted); margin: 14px 0 26px; }
/* Conjunto de contato: WhatsApp, Instagram e e-mail com ícone, mesmo tamanho e alinhamento */
.contatos { list-style: none; display: flex; flex-direction: column; gap: 14px; margin: 22px 0 0; }
.contatos a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 600; color: var(--sage-700); }
.contatos a:hover { color: var(--moss); }
.contatos a:hover span { text-decoration: underline; }
.contatos svg { flex: 0 0 auto; width: 22px; height: 22px; }
.contatos .ico-wa { color: #25d366; }

.form { background: #fff; padding: 36px; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--cream); border: 1.5px solid var(--line); border-radius: 12px; transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(94,118,130,.22); }
.field textarea { resize: vertical; }
.field__error { display: block; font-size: 0.8rem; color: #b3503a; margin-top: 6px; min-height: 1em; }
.field input.invalid, .field textarea.invalid { border-color: #c9694f; }
.form__privacy { font-size: 0.82rem; color: var(--muted); margin: 6px 0 18px; }
.form__privacy a { color: var(--sage-700); text-decoration: underline; }
.form__feedback { margin-top: 14px; font-size: 0.9rem; font-weight: 600; color: var(--sage-700); text-align: center; min-height: 1.2em; }

/* ===== Footer ===== */
.site-footer { background: var(--blue-deep); color: rgba(246,241,232,.82); padding: 64px 0 26px; }
.footer__inner { display: grid; grid-template-columns: 1.5fr 1fr auto; gap: 40px; align-items: start; padding-bottom: 40px; border-bottom: 1px solid rgba(246,241,232,.16); }
.footer__brand { display: flex; gap: 14px; align-items: flex-start; }
.footer__brand .brand__mark { width: 44px; height: 44px; object-fit: contain; opacity: .92; }
.footer__brand p { color: var(--cream); font-family: var(--font-display); font-size: 1.15rem; line-height: 1.3; }
.footer__brand small { font-family: var(--font-body); font-size: 0.82rem; color: rgba(246,241,232,.7); line-height: 1.5; }
.footer__nav { display: flex; flex-direction: column; gap: 12px; }
.footer__nav a { color: rgba(246,241,232,.82); font-size: 0.95rem; transition: color .2s ease; }
.footer__nav a:hover { color: var(--terracotta-soft); }
.footer__contact { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.footer__wa { color: var(--cream); border-color: rgba(246,241,232,.3); }
.footer__wa svg { color: #25d366; }
.footer__wa:hover { background: rgba(246,241,232,.1); border-color: rgba(246,241,232,.5); color: var(--cream); }
.footer__social { display: inline-flex; align-items: center; gap: 10px; min-height: 32px; color: rgba(246,241,232,.82); font-size: 0.92rem; transition: color .2s ease; }
.footer__social svg { flex: 0 0 auto; width: 20px; height: 20px; }
.footer__social:hover { color: var(--terracotta-soft); }
.footer__base { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 24px; font-size: 0.86rem; flex-wrap: wrap; }
.footer__credit a { color: var(--terracotta-soft); text-decoration: underline; }

/* ===== WhatsApp flutuante ===== */
.wa-float {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 900;
  width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.45);
  will-change: transform, box-shadow;
  animation: wa-float 3.2s ease-in-out infinite, wa-pulse 2.8s ease-out 1.2s infinite;
}
.wa-float:hover { animation-play-state: paused; transform: scale(1.13); }
@keyframes wa-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes wa-pulse { 0% { box-shadow: 0 8px 24px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 8px 24px rgba(37,211,102,.45), 0 0 0 20px rgba(37,211,102,0); } 100% { box-shadow: 0 8px 24px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0); } }

/* ===== Animations on scroll ===== */
.animate-on-scroll { opacity: 0; transform: translateY(24px); transition: opacity .6s ease-out, transform .6s ease-out; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* Stagger: filhos de um grupo entram em sequência, não todos juntos */
.cards--3 > .animate-on-scroll:nth-child(2) { transition-delay: .12s; }
.cards--3 > .animate-on-scroll:nth-child(3) { transition-delay: .24s; }
.steps > .step:nth-child(2) { transition-delay: .1s; }
.steps > .step:nth-child(3) { transition-delay: .2s; }
.steps > .step:nth-child(4) { transition-delay: .3s; }
.accordion > .acc-item { /* o accordion inteiro é um animate-on-scroll; mantém leve */ }
.hero__media { transition-delay: .12s; }

/* Deriva contínua da arte de fundo (vida orgânica — Persona B) */
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes float-soft { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero__mandala { animation: spin-slow 140s linear infinite; will-change: transform; }
.cta-mid__mandala { animation: spin-slow 160s linear infinite; will-change: transform; }
.almar-band__mark { animation: float-soft 6.5s ease-in-out infinite; will-change: transform; }
[data-parallax] { will-change: transform; }

/* ===== Responsivo ===== */
@media (max-width: 900px) {
  .hero__inner, .sobre__inner, .contato__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__media { order: -1; }
  .photo-frame--hero, .photo-frame--about { margin: 0 auto; }
  .hero__media::before { display: none; }
  .sobre__media { order: 2; }
  .cards--3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__contact { align-items: flex-start; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed; top: 76px; right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-top: 1px solid var(--line);
    padding: 12px 24px 24px; transform: translateY(-120%); transition: transform .35s ease; box-shadow: var(--shadow-md);
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__cta { text-align: center; margin-top: 12px; }
  .nav-toggle { display: flex; }
  .section { padding: 80px 0; }
  .hero { padding: 130px 0 90px; }
  .wave-divider svg { height: 60px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards--3, .steps { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__contact { align-items: flex-start; }
  .form { padding: 26px 22px; }
  .wa-float { bottom: 1.25rem; right: 1.25rem; }
  .hero__actions .btn { width: 100%; }
  .brand__text { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .animate-on-scroll { opacity: 1 !important; transform: none !important; }
  [data-parallax] { transform: none !important; }
}
