/* ============================================================
   Mental Health Project — Design Tokens
   Palette chosen for calm/groundedness rather than a clinical
   or "startup" look: deep forest green (trust, growth), muted
   teal (calm), warm rose (compassion/connection), soft gold
   (used sparingly, for warmth).
   ============================================================ */
:root {
  --bg: #f6f5f0;
  --bg-alt: #ecebe2;
  --surface: #ffffff;
  --ink: #1f2e28;
  --ink-soft: #445048;
  --primary: #2f4f42;
  --primary-dark: #203a30;
  --secondary: #5b8a87;
  --accent: #b97a82;
  --accent-soft: #e7cdd1;
  --gold: #d9b26b;
  --border: #dcd8cb;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Public Sans", "Segoe UI", Arial, sans-serif;

  --radius: 14px;
  --max-width: 1080px;
  --nav-height: 72px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

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

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

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover { color: var(--accent); }

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

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

/* Home page goes full-width: no centered column, no large side margins.
   Keep a small responsive gutter so text doesn't touch the browser edge. */
body.home .wrap {
  max-width: 100%;
  padding-left: clamp(16px, 4vw, 48px);
  padding-right: clamp(16px, 4vw, 48px);
}

/* ---------------- Nav ---------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(246, 245, 240, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.site-nav .wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--primary-dark);
  letter-spacing: 0.01em;
}

.brand span {
  color: var(--accent);
  font-style: italic;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--primary-dark);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle svg { width: 26px; height: 26px; color: var(--primary-dark); }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 14px 24px;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }
}

/* ---------------- Hero + breathing circle + gallery slider ---------------- */
.hero {
  padding: 72px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 5fr;
  gap: 32px;
  align-items: center;
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  /*.hero-visual { order: -1; margin: 0 auto; }*/
  .hero-slider { order: -1; }
}

.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 14px;
}

h1.display {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 20px;
  color: var(--primary-dark);
  font-weight: 600;
}

h1.display em {
  color: var(--accent);
  font-style: italic;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 28px;
}

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fdfcf9;
}
.btn-primary:hover { background: var(--primary-dark); color: #fdfcf9; }

.btn-ghost {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: transparent;
}
.btn-ghost:hover { background: var(--primary); color: #fdfcf9; }

/* Breathing circle: a slow inhale/exhale motif — a direct visual
   reference to breath-work/grounding techniques used in mental
   health practice, rather than a decorative blob. */

@keyframes breathe {
  0%, 100% { transform: scale(0.72); opacity: 0.4; }
  50% { transform: scale(1); opacity: 0.9; }
}
@keyframes core-pulse {
  0%, 100% { transform: scale(0.9); }
  50% { transform: scale(1.05); }
}

.hero-caption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 10px;
  font-style: italic;
}

/* Photo card slider, sitting beside the breathing circle */
.hero-slider {
  width: 100%;
    /*height: 100px;*/
  max-width: 900px;
    /*height: 100px;*/
  margin: 0 auto;
}

.slider-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
    width: 900px;
    height: 500px;
  aspect-ratio: 4 / 5;
  box-shadow: 0 14px 30px rgba(31, 46, 40, 0.14);
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
  color: #fdfcf9;
  background-size: cover;
  background-position: center;
}

/* Cycle through the palette so image-less placeholder cards still feel
   intentional rather than empty. */
.slide.tone-0 { background-image: linear-gradient(155deg, var(--primary), var(--secondary)); }
.slide.tone-1 { background-image: linear-gradient(155deg, var(--accent), var(--primary-dark)); }
.slide.tone-2 { background-image: linear-gradient(155deg, var(--secondary), var(--gold)); }
.slide.tone-3 { background-image: linear-gradient(155deg, var(--primary-dark), var(--accent)); }

.slide .slide-caption {
  padding: 18px;
  font-size: 0.9rem;
  font-weight: 600;
  background: linear-gradient(to top, rgba(15, 22, 19, 0.55), transparent);
  width: 100%;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.slider-nav.prev { left: 10px; }
.slider-nav.next { right: 10px; }
.slider-nav:hover { background: #fff; }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 12px;
}
.slider-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
}
.slider-dots button.active { background: var(--accent); }



partners {
    padding: 32px 0 44px;
    border-bottom: 1px solid var(--border);
}
.partners .eyebrow { text-align: center; margin-bottom: 22px; }

.partner-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 48px;
}

.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    filter: grayscale(100%);
    opacity: 0.75;
    transition: filter 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}
.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-2px);
}

.partner-logo img {
    height: 40px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.partner-logo .partner-role {
    font-size: 0.72rem;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

/* ---------------- Sections ---------------- */
section { padding: 28px 0; }
.section-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 32px;
    align-items: center;
}
section.alt { background: var(--bg-alt); }

.section-head { max-width: 62ch; margin-bottom: 36px; }

h2.h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--primary-dark);
  margin: 0 0 12px;
  font-weight: 600;
}

.hero-visual {
    width: 300px;
    height: 300px;
    position: relative;
    margin: 0 auto;
}

.breathing-circle svg { width: 100%; height: 100%; }

.breathing-circle .ring {
    fill: none;
    stroke-width: 1.5;
    transform-origin: center;
    animation: breathe 5.2s ease-in-out infinite;
}
.breathing-circle .ring.r1 { stroke: var(--secondary); animation-delay: 0s; opacity: 0.9; }
.breathing-circle .ring.r2 { stroke: var(--accent); animation-delay: -1.3s; opacity: 0.7; }
.breathing-circle .ring.r3 { stroke: var(--gold); animation-delay: -2.6s; opacity: 0.55; }
.breathing-circle .core { fill: var(--primary); animation: core-pulse 5.2s ease-in-out infinite; }


.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}

.stat .num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--accent);
  font-weight: 600;
  display: block;
}
.stat .label { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------------- Cards (people + publications preview) ---------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(31, 46, 40, 0.08);
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--secondary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.card h3 {
  margin: 0 0 2px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--primary-dark);
}
.card .role { color: var(--accent); font-weight: 700; font-size: 0.85rem; margin-bottom: 6px; }
.card .aff { color: var(--ink-soft); font-size: 0.88rem; margin-bottom: 10px; }
.card .bio { font-size: 0.92rem; color: var(--ink-soft); }
.card .links { margin-top: 12px; display: flex; gap: 12px; font-size: 0.85rem; }

.role-heading {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin: 44px 0 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-soft);
}
.role-heading:first-of-type { margin-top: 0; }

/* ---------------- Publications ---------------- */
.pub-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.chip {
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--ink-soft);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.pub-list { display: flex; flex-direction: column; gap: 16px; }

.pub-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--secondary);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.pub-item .pub-year {
  font-family: var(--font-display);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}
.pub-item h3 {
  margin: 4px 0 6px;
  font-size: 1.1rem;
  color: var(--primary-dark);
  font-family: var(--font-display);
  font-weight: 600;
}
.pub-item .meta { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 8px; }
.pub-item .abstract { font-size: 0.92rem; color: var(--ink-soft); }
.pub-item .tags { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.pub-item .tag {
  font-size: 0.75rem;
  background: var(--bg-alt);
  color: var(--ink-soft);
  padding: 3px 10px;
  border-radius: 999px;
}
.pub-item .pub-links { margin-top: 10px; font-size: 0.85rem; display: flex; gap: 14px; }

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-soft);
  font-style: italic;
}

/* ---------------- News (homepage scroll strip + full page) ---------------- */
.news-scroll {
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  scrollbar-width: thin;
  scrollbar-color: var(--secondary) var(--bg-alt);
}
.news-scroll::-webkit-scrollbar { width: 8px; }
.news-scroll::-webkit-scrollbar-track { background: var(--bg-alt); }
.news-scroll::-webkit-scrollbar-thumb { background: var(--secondary); border-radius: 8px; }

.news-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.news-row:last-child { border-bottom: none; }

.news-row .news-date {
  font-size: 0.78rem;
  color: var(--secondary);
  font-weight: 700;
  padding-top: 2px;
}
.news-row h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-family: var(--font-display);
  color: var(--primary-dark);
  font-weight: 600;
}
.news-row p { margin: 0; font-size: 0.88rem; color: var(--ink-soft); }
.news-row .news-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.news-list-full { display: flex; flex-direction: column; gap: 16px; }
.news-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 20px 24px;
}
@media (max-width: 600px) {
  .news-card, .news-row { grid-template-columns: 1fr; }
}
.news-card .news-date { font-weight: 700; color: var(--secondary); font-size: 0.85rem; }

/* ---------------- Blog ---------------- */
.blog-list { display: flex; flex-direction: column; gap: 18px; }

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.blog-card .meta {
  font-size: 0.82rem;
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 6px;
}
.blog-card h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--primary-dark);
  margin: 0 0 10px;
  font-weight: 600;
}
.blog-card .excerpt { color: var(--ink-soft); margin: 0 0 12px; }
.blog-card .content {
  color: var(--ink-soft);
  display: none;
  white-space: pre-line;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 4px;
}
.blog-card.expanded .content { display: block; }
.blog-card .tags { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.blog-card .tag {
  font-size: 0.75rem;
  background: var(--bg-alt);
  color: var(--ink-soft);
  padding: 3px 10px;
  border-radius: 999px;
}
.blog-card .read-more {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  font-size: 0.9rem;
}
.blog-card .read-more:hover { text-decoration: underline; }

/* ---------------- Footer ---------------- */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------------- Utility ---------------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 10px; top: 10px; }
