/* =============================================================
   Anne Dennis Therapy — Design System
   Concept: "Dusk to Dawn" — she meets people at the two hardest
   transition points in life: endings (grief) and beginnings
   (new parenthood). The gradient from deep plum to warm amber
   is the one signature move; everything else stays quiet.
   ============================================================= */

:root {
  --paper: #F7EFE6;
  --paper-warm: #F1E4D6;
  --ink: #2A1E2C;
  --ink-soft: #4A3D4C;
  --muted: #8A7B84;
  --plum: #4A2148;
  --plum-deep: #331530;
  --amber: #E2984F;
  --amber-soft: #EFC08B;
  --rose: #A85D72;
  --line: #E3D5C5;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1120px;
}

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

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

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

a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

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

/* ---------- Header ---------- */
.site-header {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  text-decoration: none;
  color: var(--plum-deep);
  letter-spacing: 0.01em;
}
.brand span {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose);
  margin-top: 2px;
}
nav.primary {
  display: flex;
  align-items: center;
  gap: 30px;
}
nav.primary a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
nav.primary a:hover { color: var(--plum); }
.nav-toggle { display: none; }
.header-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--paper);
  background: var(--plum);
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}
.header-cta:hover { background: var(--plum-deep); }

@media (max-width: 860px) {
  nav.primary { display: none; }
  .header-cta { padding: 9px 14px; font-size: 13px; }
}

/* ---------- Hero (signature dusk-to-dawn element) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, var(--plum-deep) 0%, var(--plum) 38%, var(--rose) 62%, var(--amber) 100%);
  color: var(--paper);
  padding: 56px 0 80px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(255,255,255,0.08), transparent 45%),
              radial-gradient(circle at 85% 80%, rgba(255,255,255,0.10), transparent 50%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: flex; gap: 48px; align-items: flex-start; justify-content: space-between; }
.hero-content { flex: 1 1 620px; min-width: 0; }
.hero-portrait { flex: 0 0 280px; margin-top: 30px; margin-right: 44px; }
.hero-portrait {
  position: relative;
  justify-self: end;
}
.hero-portrait img {
  width: 280px;
  height: 400px;
  object-fit: cover;
  border-radius: 18px;
  border: 4px solid rgba(247,239,230,0.85);
  box-shadow: 0 24px 60px rgba(20,8,20,0.45);
}
@media (max-width: 860px) {
  .hero .wrap { flex-direction: column; align-items: flex-start; }
  .hero-portrait { justify-self: start; margin-top: 8px; }
  .hero-portrait img { width: 200px; height: 286px; }
}
.eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-soft);
  margin: 0 0 18px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.08;
  margin: 0 0 22px;
  max-width: 14ch;
}
.hero p.lede {
  font-size: 18px;
  max-width: 46ch;
  color: #F3E7DC;
  margin: 0 0 34px;
}
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.btn-primary { background: var(--paper); color: var(--plum-deep); }
.btn-primary:hover { background: #fff; }
.btn-ghost { border-color: rgba(247,239,230,0.55); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); }

.credentials-strip {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid rgba(247,239,230,0.25);
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  font-size: 13.5px;
  color: #F3E7DC;
}
.credentials-strip strong { color: var(--paper); font-weight: 600; }

/* ---------- Pasadena seal badge ---------- */
.locale-badge {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 30px;
  margin-top: 56px;
}
.locale-badge img { width: 64px; height: 64px; flex-shrink: 0; }
.locale-badge h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--plum-deep);
  margin: 0 0 4px;
}
.locale-badge p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* ---------- Section scaffolding ---------- */
section { padding: 84px 0; }
.section-head { max-width: 640px; margin: 0 0 48px; }
.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose);
  margin: 0 0 12px;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 600;
  color: var(--plum-deep);
  margin: 0 0 14px;
  line-height: 1.16;
}
.section-head p { color: var(--ink-soft); font-size: 16.5px; margin: 0; }

.on-plum { background: var(--plum-deep); color: var(--paper); }
.on-plum .section-head h2 { color: var(--paper); }
.on-plum .section-head p { color: #D9C8D6; }
.on-warm { background: var(--paper-warm); }

/* ---------- About snippet ---------- */
.about-grid {
  display: flex;
  gap: 64px;
  align-items: flex-start;
}
.about-grid > div:first-child { flex: 1 1 560px; min-width: 0; }
.pull-fact { flex: 0 0 380px; }
.about-grid p { color: var(--ink-soft); font-size: 16px; margin: 0 0 18px; }
.about-grid p:last-of-type { margin-bottom: 0; }
.pull-fact {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
}
.pull-fact .num {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 600;
  color: var(--rose);
  display: block;
  margin-bottom: 6px;
}
.pull-fact ul { list-style: none; margin: 20px 0 0; padding: 0; }
.pull-fact li {
  font-size: 14.5px;
  color: var(--ink-soft);
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.pull-fact li:first-child { border-top: none; padding-top: 0; }
.link-more {
  display: inline-block;
  margin-top: 22px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--plum);
  text-decoration: none;
  border-bottom: 1.5px solid var(--rose);
  padding-bottom: 2px;
}

@media (max-width: 820px) {
  .about-grid { flex-direction: column; gap: 36px; }
  .about-grid > div:first-child, .pull-fact { flex: 1 1 auto; }
}

/* ---------- Areas of expertise ---------- */
.expertise-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}
.expertise-card { flex: 1 1 calc(50% - 13px); min-width: 260px; }
.expertise-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.expertise-card:hover { border-color: var(--rose); transform: translateY(-2px); }
.expertise-card .tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  background: var(--plum-deep);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.expertise-card h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--plum-deep);
  margin: 0 0 10px;
}
.expertise-card p {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 16px;
}
@media (max-width: 760px) {
  .expertise-card { flex: 1 1 100%; }
}

/* ---------- Testimonials (placeholder-safe) ---------- */
.testimonial-holding {
  border: 1.5px dashed var(--line);
  border-radius: 18px;
  padding: 48px;
  text-align: center;
  color: var(--muted);
}
.testimonial-holding p { margin: 0 auto; max-width: 42ch; font-size: 15.5px; }

/* ---------- Contact / CTA band ---------- */
.contact-band {
  background: linear-gradient(100deg, var(--plum-deep), var(--plum) 70%);
  color: var(--paper);
  border-radius: 26px;
  padding: 56px;
  display: flex;
  gap: 40px;
  align-items: center;
}
.contact-band > div:first-child { flex: 1 1 480px; }
.contact-card { flex: 0 0 360px; }
.contact-band h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 14px;
}
.contact-band p { color: #E9DCE7; margin: 0; font-size: 15.5px; }
.contact-card {
  background: rgba(247,239,230,0.06);
  border: 1px solid rgba(247,239,230,0.25);
  border-radius: 16px;
  padding: 26px;
}
.contact-card dt {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber-soft);
  margin-top: 16px;
}
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: 4px 0 0; font-size: 16px; font-weight: 500; }
.contact-card a { text-decoration: none; color: var(--paper); }
.contact-card a:hover { color: var(--amber-soft); }

@media (max-width: 820px) {
  .contact-band { flex-direction: column; padding: 36px 26px; }
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--plum-deep);
  color: #C9B8C6;
  padding: 48px 0 30px;
  font-size: 13.5px;
}
footer.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
footer.site-footer a { color: #E9DCE7; text-decoration: none; }
footer.site-footer a:hover { color: var(--amber-soft); }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-legal { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); width: 100%; color: #9C8C99; }

/* ---------- Placeholder pages ---------- */
.placeholder-hero {
  background: var(--paper-warm);
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--line);
}
.placeholder-hero .wrap { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.placeholder-hero .hero-text { flex: 1 1 320px; }
.placeholder-hero .hero-visual { flex: 0 0 220px; max-width: 220px; }
.placeholder-hero .hero-visual img { width: 100%; height: auto; display: block; border-radius: 16px; }
.placeholder-hero .section-eyebrow { color: var(--rose); }
.placeholder-hero h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 4.4vw, 44px);
  color: var(--plum-deep);
  margin: 10px 0 0;
}
@media (max-width: 680px) {
  .placeholder-hero .hero-visual { display: none; }
}
.placeholder-body {
  padding: 64px 0 96px;
  max-width: 640px;
}
.placeholder-note {
  border-left: 3px solid var(--amber);
  background: var(--paper-warm);
  padding: 18px 22px;
  border-radius: 0 12px 12px 0;
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 28px;
}
.placeholder-body p { color: var(--ink-soft); font-size: 16px; }

/* ---------- Article / long-form content pages (specialty pages, About) ---------- */
.page-layout {
  display: flex;
  gap: 56px;
  align-items: flex-start;
  padding: 64px 0 96px;
  flex-wrap: wrap;
}
.page-article { flex: 1 1 560px; min-width: 0; }
.page-article h2 {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  color: var(--plum-deep);
  margin: 44px 0 16px;
}
.page-article h2:first-child { margin-top: 0; }
.page-article p { color: var(--ink-soft); font-size: 16.5px; margin: 0 0 20px; }
.page-article ul { margin: 0 0 20px; padding-left: 22px; }
.page-article li { color: var(--ink-soft); font-size: 16.5px; margin-bottom: 10px; }
.page-aside { flex: 1 1 280px; max-width: 320px; }
.aside-card {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  margin-bottom: 24px;
}
.aside-card h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--plum-deep);
  margin: 0 0 12px;
}
.aside-card p { font-size: 14.5px; color: var(--ink-soft); margin: 0 0 20px; }
.aside-card .btn-primary { background: var(--plum-deep); color: var(--paper); width: 100%; justify-content: center; box-sizing: border-box; }
.aside-card .btn-primary:hover { background: var(--plum); }
.related-links { list-style: none; margin: 0; padding: 0; }
.related-links li { margin-bottom: 8px; }
.related-links a {
  font-size: 15px;
  color: var(--plum);
  text-decoration: none;
  border-bottom: 1.5px solid var(--rose);
  padding-bottom: 1px;
}
.related-links a:hover { color: var(--rose); }

/* ---------- About page bio layout ---------- */
.about-full-grid {
  display: flex;
  gap: 56px;
  align-items: flex-start;
  padding: 64px 0 40px;
  flex-wrap: wrap;
}
.about-full-photo { flex: 0 0 300px; }
.about-full-photo img {
  width: 100%;
  border-radius: 18px;
  border: 4px solid var(--paper-warm);
  box-shadow: 0 20px 50px rgba(20,8,20,0.14);
}
.about-full-text { flex: 1 1 480px; min-width: 0; }
.credential-list { list-style: none; margin: 24px 0 0; padding: 0; }
.credential-list li {
  font-size: 15px;
  color: var(--ink-soft);
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.credential-list li:first-child { border-top: none; padding-top: 0; }
.credential-list strong { color: var(--plum-deep); }

/* =============================================================
   Motion — kept subtle and purposeful, not decorative for its own sake.
   Respects prefers-reduced-motion (see base reset at top of file).
   ============================================================= */

/* Slow-drifting hero gradient */
.hero {
  background-size: 180% 180%;
  animation: heroDrift 16s ease-in-out infinite;
}
@keyframes heroDrift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Scroll fade-ins — JS toggles .is-visible when element enters viewport */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger children of a fade-in group slightly for a natural cascade */
.fade-in.is-visible .fade-stagger > * {
  animation: none;
}

/* Card hover lift — builds on the existing border-color hover */
.expertise-card {
  transition: border-color 0.2s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.expertise-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(51,21,48,0.10);
}
.expertise-grid .expertise-card:nth-child(1) { transition-delay: 0s; }
.expertise-grid .expertise-card:nth-child(2) { transition-delay: 0.1s; }
.expertise-grid .expertise-card:nth-child(3) { transition-delay: 0.2s; }
.expertise-grid .expertise-card:nth-child(4) { transition-delay: 0.3s; }

/* Gentle float on hero illustrations */
.hero-visual img {
  animation: gentleFloat 5.5s ease-in-out infinite;
}
@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* Button micro-interaction */
.btn { transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease; }
.btn:hover { transform: translateY(-2px); }

/* Nav link underline sweep */
nav.primary a {
  position: relative;
  padding-bottom: 2px;
}
nav.primary a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--rose);
  transition: width 0.25s ease;
}
nav.primary a:hover::after { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .hero, .hero-visual img { animation: none; }
  .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ---------- Blog ---------- */
.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}
.blog-card {
  flex: 1 1 calc(33.333% - 18px);
  min-width: 260px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  transition: border-color 0.2s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.blog-card:hover { border-color: var(--rose); transform: translateY(-5px); box-shadow: 0 16px 32px rgba(51,21,48,0.10); }
.blog-card .tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  background: var(--plum-deep);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.blog-card h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--plum-deep); margin: 0 0 8px; }
.blog-card .blog-date { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.blog-card p.excerpt { font-size: 14.5px; color: var(--ink-soft); margin: 0 0 16px; }

.blog-post-meta {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 8px;
}
.blog-post-meta .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  background: var(--plum-deep);
  padding: 4px 10px;
  border-radius: 999px;
  margin-right: 10px;
}
.blog-post-back {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 14.5px;
  color: var(--plum);
  text-decoration: none;
}
.blog-post-back:hover { color: var(--rose); }

/* ---------- Testimonials (real, confirmed with Anne) ---------- */
.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  flex: 1 1 calc(50% - 12px);
  min-width: 280px;
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--rose);
  border-radius: 0 18px 18px 0;
  padding: 28px 30px;
}
.testimonial-card p {
  font-size: 15.5px;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 14px;
  line-height: 1.65;
}
.testimonial-card cite {
  font-style: normal;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--plum);
  letter-spacing: 0.02em;
}
@media (max-width: 700px) {
  .testimonial-card { flex: 1 1 100%; }
}

/* ---------- Additional areas list (chips) ---------- */
.also-covered-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.also-covered-list li {
  font-size: 14.5px;
  color: var(--plum-deep);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 500;
}
