/* ============================================================
   David Brown, LMFT — Public Website
   Palette from practice brand card:
   cream #ffeccc · sage #72b38d · periwinkle #5f78b0 · orange #ff8e44
   ============================================================ */

:root {
  --cream: #ffeccc;
  --cream-deep: #ffe1b0;
  --sage: #72b38d;
  --sage-ink: #3f6e54;
  --periwinkle: #5f78b0;
  --peri-ink: #3f537f;
  --orange: #ff8e44;
  --orange-ink: #c25e1f;
  --ink: #1a1a17;
  --ink-soft: #4a463d;
  --paper: #fffaf0;
  --radius: 18px;
  --shadow: 0 18px 40px -24px rgba(80, 60, 30, 0.45);
  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Karla', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- Signature: ambient corner blooms (echo the brand card) ---- */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}
body::before {
  top: -160px; left: -140px;
  width: 460px; height: 460px;
  background: radial-gradient(circle at 35% 35%, var(--sage), transparent 68%);
}
body::after {
  top: -120px; right: -160px;
  width: 500px; height: 500px;
  background: radial-gradient(circle at 60% 40%, var(--periwinkle), transparent 66%);
}
/* third bloom via a real element so we get a bottom-right orange */
.bloom-orange {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  bottom: -180px; right: -120px;
  width: 520px; height: 520px;
  border-radius: 50%;
  filter: blur(75px);
  opacity: 0.5;
  background: radial-gradient(circle at 45% 55%, var(--orange), transparent 66%);
}

main, header, footer { position: relative; z-index: 1; }

/* ---------------- Typography ---------------- */
h1, h2, h3, .display {
  font-family: 'Poiret One', 'Karla', sans-serif;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: 0.09em; }
h3 { font-size: 1.15rem; letter-spacing: 0.12em; }

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

.eyebrow {
  font-family: 'Karla', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--orange-ink);
  margin-bottom: 1rem;
  display: block;
}

/* ---------------- Layout helpers ---------------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 2.5rem); }
.section { padding-top: clamp(3.5rem, 8vw, 6rem); padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.lead { font-size: 1.22rem; color: var(--ink-soft); max-width: 60ch; }

/* ---------------- Nav ---------------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem clamp(1.2rem, 4vw, 2.5rem);
  max-width: var(--maxw);
  margin: 0 auto;
  gap: 1rem;
}
.brand {
  font-family: 'Poiret One', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand span { color: var(--orange-ink); }
.nav-links { display: flex; gap: clamp(0.8rem, 2vw, 1.8rem); align-items: center; flex-wrap: wrap; }
.nav-links a {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover { color: var(--ink); border-color: var(--sage); }
.nav-links a.active { color: var(--ink); border-color: var(--orange); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block;
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
}
.btn-primary { background: var(--orange); color: #3a1e08; box-shadow: 0 10px 22px -12px var(--orange-ink); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -14px var(--orange-ink); }
.btn-ghost { background: transparent; border-color: var(--sage-ink); color: var(--sage-ink); }
.btn-ghost:hover { background: var(--sage); color: #234034; border-color: var(--sage); transform: translateY(-2px); }
.btn-row { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.8rem; }

/* ---------------- Hero ---------------- */
.hero { padding-top: clamp(2.5rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 8vw, 6rem); }
.hero h1 { max-width: 14ch; }
.hero .lead { margin-top: 0.5rem; }
.credential {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--paper);
  border: 1px solid rgba(95,120,176,0.35);
  color: var(--peri-ink);
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-bottom: 1.4rem;
}
.credential::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }

/* ---------------- Cards ---------------- */
.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.6);
}
.card h3 { color: var(--ink); margin-bottom: 0.5rem; }
.card .tag {
  display: inline-block; width: 40px; height: 40px; border-radius: 12px;
  margin-bottom: 1rem;
}
.tag-sage { background: var(--sage); }
.tag-peri { background: var(--periwinkle); }
.tag-orange { background: var(--orange); }

/* pill list */
.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0 0 1em; list-style: none; }
.pills li {
  background: var(--paper);
  border: 1px solid rgba(114,179,141,0.4);
  color: var(--sage-ink);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------------- Panel (colored feature block) ---------------- */
.panel {
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.2rem);
  box-shadow: var(--shadow);
}
.panel-sage { background: var(--sage); color: #22392c; }
.panel-peri { background: var(--periwinkle); color: #1f2a44; }
.panel h2 { color: inherit; }

/* ---------------- Fees table ---------------- */
.fees { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.fees th, .fees td { text-align: left; padding: 1rem 1.4rem; border-bottom: 1px solid rgba(0,0,0,0.07); }
.fees th { font-family: 'Poiret One', sans-serif; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 400; background: var(--cream-deep); }
.fees tr:last-child td { border-bottom: none; }
.fees .price { font-weight: 700; color: var(--orange-ink); white-space: nowrap; }

/* ---------------- Contact ---------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.info-row { display: flex; gap: 0.9rem; align-items: flex-start; margin-bottom: 1.3rem; }
.info-row .ic {
  flex: none; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.2rem; background: var(--cream-deep);
}
.info-row strong { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-soft); margin-bottom: 0.15rem; }
.info-row a, .info-row span { color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.info-row a:hover { color: var(--orange-ink); }

.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; color: var(--ink-soft); margin-bottom: 0.4rem; }
.field input, .field textarea {
  width: 100%; padding: 0.8rem 1rem; border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.15); background: var(--paper); font: inherit; color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: 3px solid rgba(114,179,141,0.4); border-color: var(--sage); }

/* ---------------- About hero portrait ---------------- */
.about-hero { display: flex; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-hero > div:first-child { flex: 1; }
.portrait {
  flex: none;
  width: clamp(220px, 26vw, 320px);
  height: clamp(220px, 26vw, 320px);
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--paper);
  box-shadow: var(--shadow);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
@media (max-width: 720px) {
  .about-hero { flex-direction: column-reverse; align-items: flex-start; }
}

/* ---------------- Footer ---------------- */
.footer { background: #2a2620; color: #f4ede0; padding: 3rem 0 2rem; margin-top: 4rem; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
.footer a { color: var(--cream); text-decoration: none; }
.footer a:hover { color: var(--orange); }
.footer .brand { color: #fff; }
.footer .brand span { color: var(--orange); }
.footer h4 { font-family: 'Poiret One', sans-serif; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 400; margin: 0 0 0.8rem; font-size: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; line-height: 2; font-size: 0.92rem; }
.footer .fine { width: 100%; border-top: 1px solid rgba(255,255,255,0.15); margin-top: 2rem; padding-top: 1.4rem; font-size: 0.8rem; color: #b8ae9d; }

/* ---------------- Utility ---------------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.disclaimer { font-size: 0.82rem; color: var(--ink-soft); border-left: 3px solid var(--sage); padding-left: 1rem; margin-top: 1.5rem; }
.cite { font-size: 0.82rem; color: var(--ink-soft); }
.cite a { color: var(--peri-ink); }

/* ---------------- Responsive ---------------- */
@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; }
  .nav { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

:focus-visible { outline: 3px solid var(--periwinkle); outline-offset: 2px; }
