/* Zan Psychology */

:root {
  --dusk: #2b2233;
  --dusk-2: #3a2e45;
  --mist: #f4eff5;
  --tint: #ebe2ee;
  --lilac: #e6d3e8;
  --heather: #7d5a8c;
  --ink: #2b2233;
  --slate: #5f5866;
  --white: #ffffff;

  --display: "Nunito", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Figtree", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --space: clamp(52px, 6.5vw, 92px);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--heather); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--dusk); }

:focus-visible {
  outline: 2px solid var(--heather);
  outline-offset: 3px;
  border-radius: 4px;
}
.hero :focus-visible, .contact :focus-visible { outline-color: var(--lilac); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--white); color: var(--ink); padding: 8px 14px; z-index: 10;
}
.skip:focus { left: 12px; top: 12px; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1, h2, h3 {
  text-wrap: balance;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
}
h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); margin-bottom: 0.6em; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.005em; }

p { margin: 0 0 1em; max-width: 64ch; }

/* ---------- Buttons ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }

.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  transition: background-color 0.2s, color 0.2s;
}
.btn-light { background: var(--lilac); color: var(--dusk); }
.btn-light:hover { background: var(--white); color: var(--dusk); }
.btn-ghost { color: var(--lilac); padding-left: 0.4em; padding-right: 0.4em; text-decoration: underline; text-underline-offset: 5px; }
.btn-ghost:hover { color: var(--white); }
.btn-dark { background: var(--dusk); color: var(--white); }
.btn-dark:hover { background: var(--heather); color: var(--white); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--dusk);
  color: var(--mist);
  padding-bottom: clamp(64px, 8vw, 116px);
}

.hero-bar {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  padding-top: 28px; padding-bottom: 28px;
}

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--white);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--lilac); }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-mark path { stroke: var(--lilac); }
.brand-mark .m1 { stroke-width: 0.75; opacity: 0.6; }
.brand-mark .m2 { stroke-width: 0.9; opacity: 0.85; }
.brand-mark .m3 { stroke-width: 1.05; fill: rgba(230, 211, 232, 0.18); }
.brand-mark .dot { fill: var(--lilac); stroke: none; }

nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 26px; }
nav a {
  color: var(--lilac);
  text-decoration: none;
  font-family: var(--display);
  font-size: 0.98rem;
}
nav a:hover { color: var(--white); text-decoration: underline; }

.hero-body { position: relative; z-index: 2; padding-top: clamp(40px, 6vw, 84px); }
.hero-text { max-width: 640px; }

.hero h1 {
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 0.6em;
  text-wrap: initial;
}
.h1-lead {
  display: block;
  white-space: nowrap;
  font-size: clamp(2rem, 6.4vw, 3.9rem);
  font-weight: 800;
}
.h1-rest {
  display: block;
  margin-top: 0.15em;
  font-size: clamp(1.45rem, 3.4vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--lilac);
}
.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  color: var(--lilac);
  max-width: 34em;
  margin-bottom: 2em;
}

/* The symbol: three soft shapes that open out and gather in around the centre */
.soft {
  position: absolute;
  z-index: 1;
  width: min(50vw, 600px);
  aspect-ratio: 1;
  right: max(-8vw, calc((100vw - 1120px) / 2 - 150px));
  top: 50%;
  transform: translateY(-46%);
  pointer-events: none;
}
.soft-layer { position: absolute; transform: scale(var(--min, .4)); }
.soft-layer.l1 { inset: 4.5%; --min: .36; }
.soft-layer.l2 { inset: 17%;  --min: .42; }
.soft-layer.l3 { inset: 29%;  --min: .5; }
.shape { width: 100%; height: 100%; border-radius: 50%; box-sizing: border-box; border: 1.5px solid var(--lilac); }
.l1 .shape { opacity: 0.32; border-width: 1px; background: rgba(230, 211, 232, 0.03); }
.l2 .shape { opacity: 0.62; border-width: 1.2px; background: rgba(230, 211, 232, 0.07); }
.l3 .shape { border-width: 1.6px; background: rgba(230, 211, 232, 0.14); }
.soft-dot {
  position: absolute; inset: 46.5%;
  border-radius: 50%;
  background: var(--lilac);
}

@media (prefers-reduced-motion: no-preference) {
  .soft-layer { animation: gather 9s ease-in-out infinite; }
  .l1 { animation-name: gather-1; }
  .l2 { animation-name: gather-2; }
  .l3 { animation-name: gather-3; }
  .shape { animation: morph 9s ease-in-out infinite; }
  .shape.alt { animation-name: morph-alt; }
}
@media (prefers-reduced-motion: reduce) {
  .l1 { transform: scale(.85); } .l2 { transform: scale(.9); } .l3 { transform: scale(.95); }
}
@keyframes gather-1 { 0%, 100% { transform: scale(.36); } 50% { transform: scale(1.04); } }
@keyframes gather-2 { 0%, 100% { transform: scale(.42); } 50% { transform: scale(1.07); } }
@keyframes gather-3 { 0%, 100% { transform: scale(.5); }  50% { transform: scale(1.1); } }
@keyframes morph {
  0%, 100% { border-radius: 50%; transform: rotate(0deg); }
  25% { border-radius: 58% 42% 55% 45% / 45% 58% 42% 55%; }
  50% { border-radius: 60% 40% 52% 48% / 42% 60% 40% 58%; transform: rotate(14deg); }
  75% { border-radius: 44% 56% 47% 53% / 56% 44% 54% 46%; }
}
@keyframes morph-alt {
  0%, 100% { border-radius: 50%; transform: rotate(0deg); }
  25% { border-radius: 45% 55% 42% 58% / 55% 45% 58% 42%; }
  50% { border-radius: 42% 58% 60% 40% / 58% 40% 60% 42%; transform: rotate(-14deg); }
  75% { border-radius: 53% 47% 44% 56% / 46% 54% 45% 55%; }
}

/* ---------- Sections ---------- */

.section { padding: var(--space) 0; }
.section-tint { background: var(--tint); }

.intro { font-size: 1.15rem; color: var(--slate); margin-bottom: 1.6em; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.split-head p { color: var(--slate); }

.split-head h3 { margin: 1.8em 0 0.4em; font-size: 1.1rem; }

.concerns { border-top: 1px solid rgba(43, 34, 51, 0.14); }
.concerns details { border-bottom: 1px solid rgba(43, 34, 51, 0.14); }
.concerns summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 0.7em 2.2em 0.7em 1.6em;
  font-family: var(--display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.concerns summary::-webkit-details-marker { display: none; }
/* ring marker: fills when the item is open */
.concerns summary::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 0.6em; height: 0.6em;
  border: 1.5px solid var(--heather);
  border-radius: 50%;
  transform: translateY(-50%);
  transition: background-color 0.2s;
}
/* plus sign that turns into a cross */
.concerns summary::after {
  content: "+";
  position: absolute; right: 0.1em; top: 50%;
  transform: translateY(-52%);
  font-weight: 400;
  color: var(--heather);
  transition: transform 0.2s;
}
.concerns summary:hover { color: var(--heather); }
.concerns details[open] summary::before { background: var(--heather); }
.concerns details[open] summary::after { transform: translateY(-52%) rotate(45deg); }
.concerns details p {
  margin: -0.2em 0 0;
  padding: 0 2.2em 1.1em calc(clamp(1.2rem, 2vw, 1.5rem) * 1.6);
  color: var(--slate);
  font-size: 1rem;
}
@media (prefers-reduced-motion: reduce) {
  .concerns summary::before, .concerns summary::after { transition: none; }
}

.approaches {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.approaches dt {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.2;
  padding-top: 1em;
  border-top: 2px solid var(--heather);
  margin-bottom: 0.5em;
}
.approaches dd { margin: 0; color: var(--slate); }

.steps {
  list-style: none; margin: 1.4em 0 0; padding: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.steps li { counter-increment: step; position: relative; padding-top: 72px; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--heather);
  color: var(--heather);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
}
.steps li:first-child::before { background: var(--heather); color: var(--white); }
.steps li:not(:last-child)::after {
  content: "";
  position: absolute; top: 24px; left: 60px; right: -12px;
  border-top: 1px dashed rgba(125, 90, 140, 0.5);
}
.steps h3 { margin-bottom: 0.4em; }
.steps p { color: var(--slate); font-size: 1rem; }

.fee-panel {
  background: var(--white);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 44px);
}
.fees { margin: 0 0 28px; }
.fees > div {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 0.9em 0;
  border-bottom: 1px solid rgba(43, 34, 51, 0.12);
}
.fees > div:first-child { padding-top: 0; }
.fees dt { font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.fees dd { margin: 0; color: var(--slate); text-align: right; white-space: nowrap; display: flex; flex-direction: column; align-items: flex-end; }
.per { font-size: 0.92rem; margin-top: 2px; }
.fee-note { display: block; font-family: var(--body); font-weight: 400; font-size: 0.92rem; color: var(--slate); margin-top: 2px; }
.price {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.9rem;
  color: var(--dusk);
  letter-spacing: -0.02em;
  margin-right: 0.35em;
}
.fine { margin-top: 24px; }
.fine h3 { font-size: 1.05rem; margin: 1.4em 0 0.3em; }
.fine p { color: var(--slate); font-size: 0.98rem; margin-bottom: 0; }

.about {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.portrait { margin: 0; position: sticky; top: 32px; }
.portrait img { border-radius: 200px 200px 20px 20px; width: 100%; height: auto; }
.about-text h3 { margin: 1.5em 0 0.6em; }
.creds { list-style: none; margin: 0; padding: 0; }
.creds li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 0.55em 0;
  border-bottom: 1px solid rgba(43, 34, 51, 0.12);
  font-size: 1rem;
}
.creds span { color: var(--slate); font-variant-numeric: tabular-nums; }
.links { display: flex; gap: 24px; margin-top: 1.6em; font-family: var(--display); }

.contact { background: var(--dusk); color: var(--mist); }
.contact h2 { color: var(--white); }
.contact .intro { color: var(--lilac); }
.email {
  color: var(--white);
  font-family: var(--display);
  font-size: 1.15rem;
}
.email:hover { color: var(--lilac); }
.crisis {
  margin-top: 2em;
  padding-top: 1.5em;
  border-top: 1px solid rgba(230, 211, 232, 0.2);
  font-size: 0.92rem;
  color: rgba(230, 211, 232, 0.8);
  max-width: 780px;
  text-wrap: balance;
}

.footer { background: var(--dusk); color: rgba(230, 211, 232, 0.6); font-size: 0.88rem; }
.footer .wrap { padding-top: 24px; padding-bottom: 32px; border-top: 1px solid rgba(230, 211, 232, 0.12); }
.footer p { margin: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .split, .about { grid-template-columns: 1fr; }
  .approaches { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li::after { display: none; }
  .portrait { position: static; max-width: 360px; }
}

@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; }
  .soft { width: 130vw; right: -62vw; opacity: 0.35; }
  .fees > div { flex-direction: column; gap: 4px; }
  .fees dd { text-align: left; align-items: flex-start; }
}
.price { margin-right: 0; line-height: 1; }

/* Contact and footer: centred */
.contact .wrap, .footer .wrap { text-align: center; }
.contact .intro, .contact .crisis { margin-left: auto; margin-right: auto; }
.contact .actions { justify-content: center; }
.footer p { margin-left: auto; margin-right: auto; }

/* Tighter end of page */
.contact { padding-bottom: clamp(40px, 5vw, 64px); }
.footer .wrap { padding-top: 20px; padding-bottom: 24px; }

/* Floating pill navigation */
.topbar {
  position: fixed;
  top: 14px; left: 0; right: 0;
  z-index: 50;
  pointer-events: none;
}
.topbar .hero-bar {
  pointer-events: auto;
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--wrap) - 2 * var(--gutter) + 24px);
  margin: 0 auto;
  padding: 8px 8px 8px 16px;
  flex-wrap: nowrap;
  background: rgba(66, 42, 71, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(230, 211, 232, 0.16);
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(20, 14, 26, 0.22);
}
.topbar .brand { font-size: 1.1rem; gap: 10px; }
.topbar .brand-mark { width: 34px; height: 34px; }
.topbar nav ul { flex-wrap: nowrap; align-items: center; gap: 4px 22px; }
.nav-cta a {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--lilac);
  color: var(--dusk);
  font-weight: 700;
  text-decoration: none;
}
.nav-cta a:hover { background: var(--white); color: var(--dusk); text-decoration: none; }
.hero { padding-top: 76px; }

@media (max-width: 900px) {
  .topbar nav ul { gap: 4px 14px; }
  .topbar nav a { font-size: 0.92rem; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 76px; }
  .topbar { top: 0; }
  .topbar .hero-bar {
    width: 100%; max-width: none;
    padding: 10px var(--gutter);
    border: 0; border-bottom: 1px solid rgba(230, 211, 232, 0.14);
    border-radius: 0; box-shadow: none;
    background: #422a47;
  }
  .topbar nav { display: block; }
  .topbar nav li:not(.nav-cta) { display: none; }
  .nav-cta a { padding: 8px 16px; font-size: 0.95rem; }
  .hero { padding-top: 58px; }
}

/* ---------- Shorter mobile version ---------- */
@media (min-width: 641px) { .m-only { display: none !important; } }
@media (max-width: 640px) {
  .d-only { display: none !important; }

  .hero .lede { max-width: 68%; }

  .topic-list { margin: 0; padding: 0 0 1em 2.6em; color: var(--slate); }
  .topic-list li { padding: 0.2em 0; }

  #approach .intro { margin-bottom: 1.2em; }

  .steps { gap: 22px; }
  .steps li { padding-top: 0; padding-left: 62px; min-height: 48px; }
  .steps h3 { line-height: 48px; margin-bottom: 0; }
  .steps p { margin-top: 0; }

  #fees .split { display: flex; flex-direction: column; gap: 0; }
  #fees .split-head { display: contents; }
  #fees .split-head > * { order: 2; }
  #fees .split-head h2 { order: 0; }
  #fees .fee-panel { order: 1; margin: 0.4em 0 1.8em; }
  #fees .fine { display: none; }
  .fee-panel .btn { display: block; text-align: center; }
  .fee-panel .btn + .btn { margin-top: 10px; }
  .btn-soft { background: var(--lilac); color: var(--dusk); }
  .btn-soft:hover { background: var(--tint); color: var(--dusk); }

  .contact-m { display: flex; flex-direction: column; align-items: center; gap: 12px; }
  .contact-m .btn { width: 100%; max-width: 320px; text-align: center; box-sizing: border-box; }
  .btn-aub { background: #422a47; color: var(--white); border: 1px solid rgba(230, 211, 232, 0.35); }
  .btn-aub:hover { background: #523559; color: var(--white); }
  .contact-m p { margin: 1.2em auto 0; color: var(--lilac); font-size: 0.98rem; }
  .contact-m .email { display: inline-block; margin-top: 6px; }
  .crisis { font-size: 0.78rem; }
}

/* ---------- BR version (gabrielzanella.com) ---------- */

/* Logo: symbol + "GABRIEL ZANELLA / PSICOLOGIA" in Nunito Sans */
.brand-word {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  font-family: "Nunito Sans", var(--display);
  text-transform: uppercase;
}
.brand-name { font-weight: 800; font-size: 0.98rem; letter-spacing: 0.06em; color: var(--white); }
.brand-sub {
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  margin-right: -0.34em;
  margin-top: 4px;
  color: var(--lilac);
}
.brand:hover .brand-name { color: var(--lilac); }

/* Longer Portuguese headline */
.h1-lead { font-size: clamp(2rem, 5.6vw, 3.5rem); }

/* WhatsApp button */
.btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(230, 211, 232, 0.55);
  padding: calc(0.85em - 1.5px) 1.4em;
}
.btn-wa:hover { background: rgba(230, 211, 232, 0.12); color: var(--white); }
.btn-wa svg { width: 1.15em; height: 1.15em; flex: none; }

@media (max-width: 640px) {
  .h1-lead { white-space: normal; }
  .brand-name { font-size: 0.9rem; }
  .brand-sub { font-size: 0.58rem; }
  .contact-m .btn-wa { display: flex; width: 100%; max-width: 320px; }
}

/* ---------- v2: shared buttons on desktop ---------- */
.btn-soft { background: var(--lilac); color: var(--dusk); }
.btn-soft:hover { background: var(--tint); color: var(--dusk); }
.btn-aub { background: #422a47; color: var(--white); border: 1px solid rgba(230, 211, 232, 0.35); }
.btn-aub:hover { background: #523559; color: var(--white); }
.fee-panel .btn { display: block; text-align: center; }
.fee-panel .btn + .btn { margin-top: 10px; }

@media (min-width: 641px) {
  .hero-text { max-width: 820px; }
  .contact-m { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 16px; }
  .contact-m p { flex-basis: 100%; max-width: none; margin: 1.2em 0 0; color: var(--lilac); font-size: 0.98rem; }
  .contact-m .email { display: inline-block; margin-top: 6px; }
}
