/* ==========================================================================
   Liminal Mind Collective — mockup styles
   Warm/organic direction: sage + terracotta on a cream base,
   Fraunces (serif) for headings, Inter (sans) for body copy.
   ========================================================================== */

:root {
  --color-bg: #f5f8f7;
  --color-bg-alt: #eaf1f0;
  --color-card: #ffffff;
  --color-sage: #7d95b0;
  --color-sage-dark: #5f7896;
  --color-sage-light: #c3d3e2;
  --color-terracotta: #6f8f8a;
  --color-terracotta-dark: #4f6d68;
  --color-terracotta-light: #a3c2bd;
  --color-text: #2c3533;
  --color-text-soft: #5f6b69;
  --color-border: #d7e3e0;

  --color-tertiary: #a9c2c7;
  --color-tertiary-dark: #6a8a90;
  --color-hipaa-bg: #ecf3f1;

  --color-status-good: #2f9e5f;

  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1120px;
  --hero-photo-opacity: 0.78;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height, 90px);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--color-text);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 400; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p {
  margin: 0 0 1em;
  color: var(--color-text-soft);
}

a {
  color: var(--color-terracotta-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

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

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  box-shadow: 0 4px 16px -8px rgba(51, 48, 42, 0.12);
}

.site-header .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.wordmark {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--color-text);
  letter-spacing: 0.01em;
}

.wordmark:hover {
  text-decoration: none;
  color: var(--color-terracotta-dark);
}

.wordmark .accent {
  color: var(--color-terracotta);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
}

.main-nav a:hover {
  color: var(--color-terracotta-dark);
  text-decoration: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-terracotta);
  color: #fff;
}

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

.btn-secondary {
  background: transparent;
  color: var(--color-sage-dark);
  border-color: var(--color-sage-light);
}

.btn-secondary:hover {
  background: var(--color-sage);
  color: #fff;
  border-color: var(--color-sage);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 100px;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 130% 100% at 50% 45%, rgba(0, 0, 0, 0.14) 0%, transparent 68%),
    radial-gradient(ellipse 45% 40% at 78% 75%, color-mix(in srgb, var(--color-sage) 7%, transparent), transparent 72%),
    radial-gradient(ellipse 110% 90% at 28% 15%, color-mix(in srgb, var(--color-terracotta-light) 40%, transparent), transparent 78%),
    color-mix(in srgb, var(--color-terracotta) 55%, var(--color-terracotta-dark) 45%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('images/hero-7.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: var(--hero-photo-opacity, 1);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero h1 {
  margin-bottom: 0.4em;
  color: #fdfbf6;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

.hero-subhead {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: #fdfbf6;
  opacity: 0.92;
  max-width: 560px;
  margin: 0 auto 2em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.hero .btn-secondary {
  color: #fdfbf6;
  border-color: rgba(255, 255, 255, 0.55);
}

.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fdfbf6;
  border-color: rgba(255, 255, 255, 0.8);
}

.liminal-def {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--color-sage-dark);
  max-width: 480px;
  margin: 0 auto 1.4em;
}

.liminal-def strong {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 600;
  color: var(--color-text);
  font-size: 1.02rem;
}

.liminal-def .liminal-ipa {
  font-style: normal;
  opacity: 0.75;
}

.hero .lede {
  font-size: 1.2rem;
  color: var(--color-text-soft);
  max-width: 560px;
  margin: 0 auto 2em;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Sections ---------- */

section {
  padding: 80px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}

/* ---------- Pillars (approach) ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.pillar {
  text-align: center;
  padding: 0 12px;
}

.pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-sage);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-family: var(--font-serif);
  font-size: 1.3rem;
}

.pillar:nth-child(2) .pillar-icon { background: var(--color-terracotta); }
.pillar:nth-child(3) .pillar-icon { background: var(--color-sage-dark); }

/* ---------- Therapist cards ---------- */

.therapist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.therapist-card {
  display: flex;
  flex-direction: column;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  overflow: hidden;
  text-align: center;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.therapist-card:hover {
  box-shadow: 0 16px 32px -18px rgba(51, 48, 42, 0.25);
  transform: translateY(-3px);
}

.avatar-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: var(--font-serif);
  font-size: 3rem;
  color: #fff;
  background: linear-gradient(135deg, var(--color-sage-light), var(--color-sage-dark));
}

.therapist-card:nth-child(2) .avatar-placeholder {
  background: linear-gradient(135deg, var(--color-terracotta-light), var(--color-terracotta-dark));
}

.therapist-card:nth-child(3) .avatar-placeholder {
  background: linear-gradient(135deg, var(--color-tertiary), var(--color-tertiary-dark));
}

.avatar-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.therapist-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 28px 24px 32px;
}

.therapist-card-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 12px;
}

.therapist-card-body h3 {
  margin-bottom: 0.2em;
}

.therapist-title {
  font-size: 0.85rem;
  color: var(--color-sage-dark);
  font-weight: 600;
  margin-bottom: 0.9em;
}

/* ---------- Status badge ---------- */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
}

.therapist-card-body .status-badge {
  margin: 0 auto 10px;
}

.profile-hero .status-badge {
  margin-bottom: 14px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-accepting { color: var(--color-status-good); }
.status-accepting .status-dot { background: var(--color-status-good); }

.status-waitlist { color: var(--color-terracotta-dark); }
.status-waitlist .status-dot { background: var(--color-terracotta-dark); }

.status-full { color: var(--color-text-soft); }
.status-full .status-dot { background: var(--color-text-soft); }

.therapist-card-body p {
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 48px 0;
  background: var(--color-bg-alt);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-note {
  font-size: 0.85rem;
  color: var(--color-text-soft);
  margin: 0;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
}

/* ---------- Profile page ---------- */

.profile-hero {
  padding: 72px 0 60px;
}

.profile-hero .container {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: center;
}

.profile-avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-sage-light), var(--color-sage-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 4.5rem;
  color: #fff;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.profile-credentials {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-terracotta-dark);
  margin-bottom: 0.6em;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.tag {
  background: var(--color-sage);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
}

a.tag {
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}

a.tag:hover {
  background: var(--color-sage-dark);
  text-decoration: underline dotted;
}

.glossary-inline-link {
  color: inherit;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}

.glossary-inline-link:hover {
  color: var(--color-terracotta-dark);
  text-decoration: underline dotted;
}

.profile-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  align-items: start;
}

.profile-body h2 {
  margin-top: 1.4em;
}

.profile-body h2:first-child {
  margin-top: 0;
}

.session-details {
  background: var(--color-bg-alt);
  border-radius: 16px;
  padding: 28px;
  border: 1px solid var(--color-border);
}

.session-details dl {
  margin: 0;
}

.session-details dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-sage-dark);
  font-weight: 600;
  margin-top: 18px;
}

.session-details dt:first-child {
  margin-top: 0;
}

.session-details dd {
  margin: 4px 0 0;
  color: var(--color-text);
}

/* ---------- Contact form ---------- */

.contact-section {
  max-width: 620px;
  margin: 0 auto;
}

.hipaa-note {
  background: var(--color-hipaa-bg);
  border: 1px solid var(--color-terracotta-light);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 0.88rem;
  color: var(--color-text);
  margin-bottom: 28px;
}

.hipaa-note strong {
  color: var(--color-terracotta-dark);
}

.contact-form {
  display: grid;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}

.field input,
.field textarea {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-sage);
  box-shadow: 0 0 0 3px rgba(124, 140, 111, 0.18);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

/* ---------- Find your fit ---------- */

.fit-guide {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
}

.fit-row {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 18px 22px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

a.fit-row {
  cursor: pointer;
}

a.fit-row:hover {
  text-decoration: none;
  border-color: var(--color-sage-light);
  box-shadow: 0 10px 24px -16px rgba(51, 48, 42, 0.3);
  transform: translateY(-2px);
}

a.fit-row:hover .fit-name {
  text-decoration: underline;
}

.fit-need {
  flex: 1;
  color: var(--color-text);
  font-size: 0.98rem;
}

.fit-arrow {
  color: var(--color-sage-dark);
  font-weight: 600;
  flex-shrink: 0;
}

.fit-name {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--color-terracotta-dark);
  white-space: nowrap;
  flex-shrink: 0;
}

.fit-note {
  max-width: 620px;
  margin: 32px auto 0;
  text-align: center;
}

/* ---------- Glossary ---------- */

.glossary-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}

.glossary-item {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 0 22px;
}

.glossary-item summary {
  cursor: pointer;
  padding: 18px 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.glossary-item summary::-webkit-details-marker {
  display: none;
}

.glossary-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--color-sage-dark);
  flex-shrink: 0;
}

.glossary-item[open] summary::after {
  content: "\2212";
}

.glossary-item[open] summary {
  border-bottom: 1px solid var(--color-border);
}

.glossary-body {
  padding: 4px 0 20px;
}

.glossary-body p {
  margin: 0 0 0.8em;
  font-size: 0.95rem;
}

.glossary-body p:last-child {
  margin-bottom: 0;
}

.glossary-label {
  display: block;
  font-weight: 600;
  color: var(--color-sage-dark);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.2em;
}

.glossary-credentials {
  max-width: 760px;
  margin: 24px auto 0;
}

.glossary-credentials h3 {
  margin-bottom: 16px;
}

.glossary-credentials dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 20px;
  margin: 0;
}

.glossary-credentials dt {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}

.glossary-credentials dd {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 0.92rem;
}

/* ---------- Legal notice ---------- */

.legal-note {
  font-size: 0.78rem;
  color: var(--color-text-soft);
  max-width: 720px;
  margin: 12px auto 0;
  text-align: center;
}

.mock-badge {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--color-terracotta-dark);
  background: var(--color-terracotta-light);
  padding: 4px 10px;
  border-radius: 6px;
  margin-left: 10px;
  vertical-align: middle;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .pillars,
  .therapist-grid {
    grid-template-columns: 1fr;
  }

  .profile-hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .profile-avatar {
    width: 180px;
    margin: 0 auto;
  }

  .profile-tags {
    justify-content: center;
  }

  .profile-body {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-row {
    flex-direction: column;
    text-align: center;
  }

  .fit-row {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .glossary-credentials dl {
    grid-template-columns: 1fr;
    gap: 4px 0;
  }

  .glossary-credentials dd {
    margin-bottom: 8px;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 16px 32px -16px rgba(51, 48, 42, 0.2);
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
  }

  .main-nav li {
    border-top: 1px solid var(--color-border);
  }

  .main-nav li:first-child {
    border-top: none;
  }

  .main-nav a {
    display: block;
    padding: 14px 4px;
    font-size: 1rem;
  }
}

@media (max-width: 520px) {
  .hero {
    padding: 72px 0 60px;
  }

  section {
    padding: 56px 0;
  }

  .fit-need {
    font-size: 0.92rem;
  }

  .glossary-item summary {
    font-size: 0.98rem;
  }

  .therapist-card-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .therapist-card-actions .btn {
    text-align: center;
  }
}
