/* ==========================================================================
   Lisa Friedman, LCSW Inc. & Associates — Design System
   Restyled to match the original site's palette: periwinkle background,
   sky-blue nav with gold border, gold buttons — flat, warm, simple.
   ========================================================================== */

:root {
  /* Brand colors — pulled from the client's original site */
  --primary: #c7cef6;        /* periwinkle page background */
  --primary-deep: #9aa5e8;   /* deeper periwinkle for borders/accents */
  --primary-tint: #dde2fa;   /* pale periwinkle for subtle section rhythm */
  --secondary: #a9d3ea;      /* sky-blue nav background */
  --secondary-deep: #7fb8d8; /* deeper sky-blue for hovers/borders */
  --ink: #201f38;
  --ink-soft: #3d3c5c;
  --ink-faint: #6a6986;
  --gold: #eeae2b;
  --gold-dark: #c98f16;
  --gold-pale: #faedcd;
  --link: #1949a3;
  --cream: #fffdf8;
  --white: #ffffff;
  --divider: rgba(24, 23, 45, 0.55);

  /* Typography */
  --font-heading: "Fraunces", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --max-width: 1180px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --shadow-soft: none;
  --shadow-lift: none;
  --header-height: 92px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--ink);
}
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5rem 0; }
@media (max-width: 700px) {
  section { padding: 3rem 0; }
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold-dark);
  margin-bottom: 0.9rem;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }

.section-head.align-left { margin: 0 0 3rem; text-align: left; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold-dark);
}
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); }

.btn-gold {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold-dark);
}
.btn-gold:hover { background: var(--gold-dark); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--white); }

.btn-light {
  background: var(--white);
  color: var(--ink);
  border-color: var(--primary-deep);
}
.btn-light:hover { background: var(--primary-tint); }

.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.88rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--primary);
  border-bottom: 2px solid var(--ink);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1em;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.brand img { height: 52px; width: auto; border-radius: 6px; }
.brand-text {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--ink);
}
.brand-text strong { display: block; font-size: 1.2rem; }
.brand-text span { font-size: 0.78rem; color: var(--ink-soft); font-family: var(--font-body); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.main-nav ul {
  display: flex;
  gap: 1.4rem;
  background: var(--secondary);
  border: 2px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.4rem;
}
.main-nav a {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
  padding: 0.4rem 0;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold-dark); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  border-radius: 3px;
  background: var(--gold);
}

.header-cta { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.header-cta .btn {
  color: var(--ink);
  font-weight: 700;
  padding: 0.85rem 1.75rem;
}
.header-cta .btn-sm { padding: 0.55rem 1.2rem; font-size: 0.88rem; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: var(--secondary);
  border: 2px solid var(--gold);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1120px) {
  .main-nav { position: fixed; top: var(--header-height); left: 0; right: 0; height: calc(100vh - var(--header-height)); height: calc(100dvh - var(--header-height)); background: var(--primary); flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 2rem 1.5rem; transform: translateX(100%); transition: transform 0.3s ease; overflow-y: auto; border-top: 2px solid var(--ink); }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 0; background: transparent; border: none; padding: 0; }
  .main-nav ul li { border-bottom: 1px solid rgba(32,31,56,0.15); }
  .main-nav ul li a { display: block; padding: 1.1rem 0.25rem; font-size: 1.05rem; }
  .main-nav .header-cta { flex-direction: column; align-items: stretch; margin-top: 1.5rem; }
  .hamburger { display: flex; }
  .brand-text span { display: none; }
}
@media (max-width: 480px) {
  .brand img { height: 42px; }
  .brand-text strong { font-size: 1.05rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--primary);
  padding: 4rem 0 5rem;
}
.hero::before { content: none; }
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}
.hero-copy .eyebrow { color: var(--ink); background: var(--cream); border: 2px solid var(--gold); padding: 0.35rem 0.9rem; border-radius: 999px; }
.hero-copy h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  color: var(--ink);
  margin-bottom: 0.7em;
}
.hero-copy p.lead {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 3px solid var(--white);
  outline: 2px solid var(--primary-deep);
  aspect-ratio: 4 / 4.6;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; aspect-ratio: 16/10; }
}

.page-hero {
  background: var(--primary);
  padding: 4rem 0 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
}
.page-hero::before { content: none; }
.page-hero .inner { position: relative; max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }
.page-hero h1 { font-size: clamp(2.1rem, 4vw, 3rem); color: var(--ink); }
.page-hero p { color: var(--ink-soft); font-size: 1.12rem; max-width: 600px; margin: 0 auto; }

/* ---------- Badge / callout ---------- */
.badge-callout {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--cream);
  border: 2px solid var(--gold);
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
}
.badge-callout .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ---------- About / split sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.split img {
  border-radius: var(--radius-md);
  border: 3px solid var(--white);
  outline: 2px solid var(--primary-deep);
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 5/4.2;
}
.split.reverse .split-media { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split.reverse .split-media { order: -1; }
}
.bg-tint { background: var(--primary-tint); }
.bg-white { background: var(--primary); }

/* ---------- Cards ---------- */
.card {
  background: var(--cream);
  border: 2px solid var(--primary-deep);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: border-color 0.2s ease;
}
.card:hover { border-color: var(--gold); }

.grid {
  display: grid;
  gap: 1.75rem;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.icon-badge {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: var(--secondary);
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
  font-size: 1.4rem;
}

/* ---------- Checklist grid ---------- */
.check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem 1.75rem;
}
@media (max-width: 700px) { .check-grid { grid-template-columns: 1fr; } }
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  background: var(--cream);
  border: 1px solid var(--primary-deep);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.1rem;
}
.check-item .mark {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  margin-top: 0.1rem;
}

/* ---------- Accordion ---------- */
.accordion { display: flex; flex-direction: column; gap: 1rem; }
.accordion-item {
  background: var(--cream);
  border: 2px solid var(--primary-deep);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  padding: 1.2rem 1.5rem;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}
.accordion-trigger .chevron {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--secondary);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease;
}
.accordion-trigger .chevron svg {
  width: 16px; height: 16px;
  stroke: var(--ink);
  transition: stroke 0.25s ease;
}
.accordion-item.open .accordion-trigger .chevron,
.accordion-trigger[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
  background: var(--gold);
}
.accordion-item.open .accordion-trigger .chevron svg,
.accordion-trigger[aria-expanded="true"] .chevron svg { stroke: var(--ink); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.accordion-panel-inner {
  padding: 0 1.5rem 1.5rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--primary-tint);
}
.tag-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tag-list li {
  background: var(--white);
  border: 1px solid var(--gold);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---------- Specialty / gold section ---------- */
.gold-panel {
  background: var(--cream);
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 3rem;
  position: relative;
}
.gold-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 2.5rem;
  width: 60px; height: 4px;
  background: var(--gold);
  border-radius: 0 0 4px 4px;
}
@media (max-width: 600px) { .gold-panel { padding: 2rem 1.5rem; } }

.divider-gold {
  width: 70px; height: 3px;
  background: var(--gold);
  border-radius: 3px;
  margin: 0 auto 1.5rem;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--cream);
  border: 2px solid var(--primary-deep);
  border-radius: var(--radius-md);
  padding: 2.2rem 2.2rem 2rem;
  position: relative;
  border-top: 4px solid var(--gold);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.testimonial-card .quote-mark {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  color: var(--gold-dark);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.testimonial-card p.quote-text {
  color: var(--ink-soft);
  font-size: 0.98rem;
  flex-grow: 1;
}
.testimonial-card .attribution {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--ink);
  margin-top: 1rem;
}
.testimonial-card .attribution a { color: var(--link); text-decoration: underline; }

.testimonial-feature {
  background: var(--cream);
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 3rem;
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}
.testimonial-feature .quote-mark { font-family: var(--font-heading); font-size: 4.5rem; color: var(--gold-dark); line-height: 0.5; display: block; margin-bottom: 1rem; }
.testimonial-feature p.quote-text { font-size: 1.08rem; color: var(--ink-soft); }
@media (max-width: 600px) { .testimonial-feature { padding: 2rem 1.5rem; } }

.testimonial-track-wrap { position: relative; }
.testimonial-track {
  display: flex;
  gap: 1.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-deep) transparent;
}
.testimonial-track::-webkit-scrollbar { height: 8px; }
.testimonial-track::-webkit-scrollbar-thumb { background: var(--primary-deep); border-radius: 8px; }
.testimonial-track .testimonial-card { min-width: 320px; max-width: 380px; scroll-snap-align: start; }
@media (max-width: 600px) {
  .testimonial-track .testimonial-card { min-width: 82vw; }
}
.carousel-controls { display: flex; justify-content: center; gap: 0.75rem; margin-top: 1.5rem; }
.carousel-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
}
.carousel-btn:hover { background: var(--gold); color: var(--ink); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--secondary);
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  text-align: center;
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band p { max-width: 560px; margin: 0 auto 1.75rem; color: var(--ink-soft); }
.cta-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 600px) { .cta-band { padding: 2.5rem 1.5rem; } }

/* ---------- Team member ---------- */
.team-lead {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: start;
}
@media (max-width: 860px) { .team-lead { grid-template-columns: 1fr; } }
.team-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 3px solid var(--white);
  outline: 2px solid var(--primary-deep);
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
}
.team-photo img { width: 100%; aspect-ratio: 4/4.6; object-fit: cover; }
.credential-pill {
  display: inline-block;
  background: var(--cream);
  border: 2px solid var(--gold);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1rem;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: #2b3170;
  color: #d7dcf7;
  padding: 4rem 0 2rem;
  margin-top: 5rem;
  border-top: 3px solid var(--gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2.25rem; }
}
.footer-brand { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1.1rem; }
.footer-brand img { height: 46px; border-radius: 6px; background: var(--white); padding: 3px; }
.footer-brand strong { font-family: var(--font-heading); font-size: 1.15rem; color: var(--white); }
.site-footer h4 {
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.footer-contact li, .footer-links li { margin-bottom: 0.7rem; font-size: 0.95rem; }
.footer-contact a, .footer-links a { color: #d7dcf7; }
.footer-links a:hover, .footer-contact a:hover { color: var(--white); text-decoration: underline; }
.footer-cta { display: flex; flex-direction: column; gap: 0.9rem; align-items: flex-start; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.75rem;
  font-size: 0.85rem;
  color: #b6bce8;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.88rem; }
.note-box {
  background: var(--cream);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.2rem 1.5rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--link);
  border-bottom: 1px solid var(--link);
  padding-bottom: 2px;
}
