/* ============================================================
   Beatriz Theophilo Martineau — Psychotherapy
   Design tokens
   ============================================================ */

:root {
  /* Color */
  --ink: #221417;
  --ink-soft: #6B4E53;
  --plum: #C81E3A;        /* brand red — nav, links, primary actions */
  --plum-deep: #7A1220;   /* deep red — dark sections, hover states */
  --sage: #E58A9B;        /* rose accent — continuum line, tag borders */
  --sage-deep: #C24C63;   /* deeper rose — eyebrows, small labels */
  --blush: #FBC7D1;       /* light pink — highlights on dark sections */
  --paper: #FFF6F7;       /* page background — near-white, faint pink */
  --paper-deep: #FDE7EB;  /* alt section background — soft pink wash */
  --paper-card: #FFFFFF;  /* card background — clean white */
  --line: #F6D3DA;        /* hairline dividers — light pink */
  --white: #FFFFFF;

  /* Type */
  --font-display: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --max-w: 1120px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; }

p { margin: 0 0 1.1em; color: var(--ink-soft); }
a { color: var(--plum); }
strong { color: var(--ink); }

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 1rem;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:focus-visible { outline: 3px solid var(--sage); outline-offset: 2px; }
.btn-primary {
  background: var(--plum);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(200, 30, 58, 0.22);
}
.btn-primary:hover { background: var(--plum-deep); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(200, 30, 58, 0.28); }
.btn-ghost {
  background: transparent;
  color: var(--plum-deep);
  border-color: var(--plum-deep);
}
.btn-ghost:hover { background: var(--plum-deep); color: var(--white); }

/* ---------------- Header / Nav ---------------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 246, 247, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--plum-deep);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-top: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-bottom-color: var(--sage);
  color: var(--plum-deep);
}
.nav-cta { display: none; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: 0.2s;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 400px; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 1rem var(--gutter); border-bottom: 1px solid var(--line); }
}

/* ---------------- Blob field (signature element) ---------------- */
.blob-field {
  position: relative;
  overflow: hidden;
}
.blob-wrap {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}
.blob-wrap svg { display: block; width: 100%; height: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .blob-wrap { animation: blob-float 16s ease-in-out infinite; }
  .blob-wrap.b-delay { animation-delay: -8s; animation-duration: 19s; }
}
@keyframes blob-float {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
  33%  { transform: translate(-12px, 10px) rotate(4deg) scale(1.03); }
  66%  { transform: translate(8px, -14px) rotate(-3deg) scale(0.98); }
  100% { transform: translate(0, 0) rotate(0deg) scale(1); }
}
.blob-lg { width: 460px; height: 430px; }
.blob-md { width: 300px; height: 280px; }
.blob-sm { width: 190px; height: 180px; }
.blob-xs { width: 110px; height: 105px; }

.blob-pink path { fill: var(--blush); }
.blob-rose path { fill: var(--sage); }
.blob-red  path { fill: var(--plum); opacity: 0.16; }
.blob-outline path { fill: none; stroke: var(--sage); stroke-width: 2.5; }
.blob-outline-red path { fill: none; stroke: var(--plum); stroke-width: 2.5; opacity: 0.6; }

/* small playful accent dots, scattered like confetti near the blobs */
.dot {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.dot-fill { background: var(--plum); opacity: 0.55; }
.dot-outline { border: 2px solid var(--sage); opacity: 0.6; }
.dot-outline-red { border: 2px solid var(--plum); opacity: 0.4; }
.dot-xs { width: 8px; height: 8px; }
.dot-sm { width: 14px; height: 14px; }
.dot-md { width: 22px; height: 22px; }
.dot-lg { width: 34px; height: 34px; }

.hero-content, .page-hero-content { position: relative; z-index: 1; }

/* ---------------- Hero ---------------- */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 2rem;
}
.hero-grid {
  display: grid;
  gap: 2rem;
}
.hero h1 { max-width: 16ch; }
.hero .lede {
  font-size: 1.15rem;
  max-width: 52ch;
  color: var(--ink-soft);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* ---------------- Sections ---------------- */
section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-alt { background: var(--paper-deep); }
.section-plum {
  background: var(--plum-deep);
  color: var(--paper);
}
.section-plum h2, .section-plum h3 { color: var(--white); }
.section-plum p { color: #F0C3CB; }
.section-plum .eyebrow { color: var(--blush); }

.intro-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 760px) {
  .intro-columns { grid-template-columns: 1.1fr 1fr; align-items: start; }
}

/* ---------------- Cards / tags / grid ---------------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) { .card-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 2px 14px rgba(200, 30, 58, 0.06);
}
.card-quiet {
  background: transparent;
  border: 1.5px dashed var(--line);
  box-shadow: none;
}
.card-quiet h2, .card-quiet h3 { color: var(--ink-soft); }
.card h3 { margin-bottom: 0.5rem; }
.card p { margin-bottom: 0; font-size: 0.96rem; }

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}
.tag {
  display: inline-block;
  padding: 0.45em 0.95em;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: var(--paper-card);
}

/* ---------------- Stage timeline (services page) ---------------- */
.stage-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.stage {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
@media (max-width: 600px) {
  .stage { grid-template-columns: 1fr; gap: 0.35rem; }
}
.stage-name {
  font-family: var(--font-display);
  color: var(--plum);
  font-size: 1.05rem;
  font-weight: 600;
}

/* ---------------- Quote / pull ---------------- */
.pull {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  color: var(--plum-deep);
  max-width: 30ch;
  line-height: 1.35;
  font-weight: 500;
  margin: 0;
}

/* ---------------- Footer ---------------- */
footer.site {
  background: var(--plum-deep);
  color: #E8B4BC;
  padding: 3rem 0 2rem;
  font-size: 0.9rem;
}
footer.site a { color: var(--blush); text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-grid h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: #B77E88;
}

/* ---------------- Contact page ---------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 780px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.field { margin-bottom: 1.3rem; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.75em 0.9em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--sage);
  outline-offset: 1px;
}
.note-box {
  background: var(--paper-card);
  border-left: 3px solid var(--sage);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.info-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.info-list li {
  display: flex;
  gap: 0.9rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.info-list .k { min-width: 110px; font-weight: 600; color: var(--plum-deep); font-size: 0.9rem; }
.info-list .v { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------------- Page hero (non-home) ---------------- */
.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 1rem;
}
.page-hero .lede { max-width: 60ch; font-size: 1.08rem; }
