/* ---------------------------------------------------------------
   Design tokens
   A calm, trust-forward palette for a counseling practice tool —
   deliberately not the default AI cream+terracotta or dark+neon look.
   --------------------------------------------------------------- */
:root {
  --bg: #F6F4EF;           /* warm paper, not stark white */
  --surface: #FFFFFF;
  --surface-muted: #EFEBE3;
  --ink: #2B2B28;
  --ink-soft: #6B6860;
  --line: #E3DED3;

  --teal-900: #1F3F38;
  --teal-700: #2D5D53;      /* primary — grounded, growth-oriented */
  --teal-100: #DCE8E4;

  --gold-600: #B58A4A;      /* secondary accent — warm, not terracotta */
  --gold-100: #F1E6D2;

  --danger: #A6473A;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0 0 0.4em; color: var(--teal-900); }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }

a { color: var(--teal-700); text-decoration: none; }
a:hover { text-decoration: underline; }

.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 220px;
  background: var(--teal-900);
  color: #F0EDE5;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.sidebar .brand { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.01em; color: #fff; }
.sidebar .brand span { color: var(--gold-600); }
.sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar nav a {
  color: #CFE3DD; padding: 9px 12px; border-radius: var(--radius-sm); font-size: 0.92rem;
}
.sidebar nav a:hover, .sidebar nav a.active { background: rgba(255,255,255,0.08); color: #fff; text-decoration: none; }
.sidebar .user-line { margin-top: auto; font-size: 0.8rem; color: #A9C4BC; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 16px; }
.link-button {
  background: none; border: none; padding: 0; margin-top: 4px;
  color: #CFE3DD; font-family: var(--font-body); font-size: 0.8rem;
  cursor: pointer; text-decoration: none;
}
.link-button:hover { text-decoration: underline; color: #fff; }
.main { flex: 1; padding: 36px 44px; max-width: 1080px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.btn {
  display: inline-block;
  background: var(--teal-700);
  color: #fff;
  border: none;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
}
.btn:hover { background: var(--teal-900); text-decoration: none; }
.btn-secondary { background: transparent; color: var(--teal-700); border: 1px solid var(--teal-700); }
.btn-secondary:hover { background: var(--teal-100); }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); padding: 10px 12px; border-bottom: 1px solid var(--line); }
td { padding: 12px; border-bottom: 1px solid var(--line); }
tr:hover td { background: var(--surface-muted); }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 500; }
.badge-active { background: var(--teal-100); color: var(--teal-900); }
.badge-waitlist { background: var(--gold-100); color: #7A5A26; }
.badge-inactive, .badge-discharged { background: var(--surface-muted); color: var(--ink-soft); }

.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 5px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.92rem; background: var(--surface);
}

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--teal-900); }
.login-card { background: var(--bg); padding: 40px; border-radius: var(--radius-lg); width: 340px; }
.login-card h1 { font-size: 1.4rem; }

/* ---------------------------------------------------------------
   Public marketing page
   --------------------------------------------------------------- */
body.public-page { background: var(--bg); }

.public-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 18px 44px;
}
.public-nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
}
.public-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.15rem; color: var(--teal-900); }

.hero {
  max-width: 700px; margin: 0 auto; padding: 80px 24px 60px; text-align: center;
}
.hero h1 { font-size: 2.4rem; margin-bottom: 16px; }
.hero p { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.6; }

.services-section { max-width: 1100px; margin: 0 auto; padding: 20px 24px 80px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.service-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.service-card p { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.55; margin: 0; }

.public-footer {
  text-align: center; padding: 30px 24px; color: var(--ink-soft); font-size: 0.85rem;
  border-top: 1px solid var(--line);
}

.public-logo {
  height: 64px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
}
/* .public-logo {
  height: 28px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
} */

/* ---------------------------------------------------------------
   Therapist bio pages
   --------------------------------------------------------------- */
.therapist-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow 0.15s ease;
}
.therapist-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); text-decoration: none; }
.therapist-card h3 { margin-bottom: 2px; }
.therapist-card p { color: var(--ink-soft); font-size: 0.9rem; margin: 0; }

/* .therapist-photo {
  width: 100%; height: 200px; object-fit: cover;
  border-radius: var(--radius-md); margin-bottom: 16px;
} */
.therapist-photo-placeholder { background: var(--teal-100); }

.therapist-detail {
  max-width: 720px; margin: 0 auto; padding: 50px 24px 80px;
}
.therapist-detail-header {
  display: flex; gap: 24px; align-items: flex-start; margin: 24px 0;
}
.therapist-detail-photo {
  width: 140px; height: 140px; object-fit: cover;
  border-radius: var(--radius-lg); flex-shrink: 0;
}

.therapist-photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: block;
}

.therapist-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  text-decoration: none;
  color: var(--ink);
  text-align: center;
  transition: box-shadow 0.15s ease;
}

.services-grid {
  max-width: 900px;
  margin: 0 auto;
}

/* ---------------------------------------------------------------
   Custom date + time picker (appointment scheduling)
   --------------------------------------------------------------- */
.dt-date-input, .dt-time-display {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.92rem; background: var(--surface);
}

.time-dropdown {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  margin-top: 4px;
  max-height: 170px;
  overflow-y: scroll;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  z-index: 50;

  /* Visible scrollbar, cross-browser */
  scrollbar-width: auto;
  scrollbar-color: var(--teal-700) var(--surface-muted);
}
.time-dropdown::-webkit-scrollbar {
  width: 10px;
}
.time-dropdown::-webkit-scrollbar-track {
  background: var(--surface-muted);
}
.time-dropdown::-webkit-scrollbar-thumb {
  background-color: var(--teal-700);
  border-radius: 6px;
  border: 2px solid var(--surface-muted);
}

.time-option {
  padding: 9px 14px;
  font-size: 0.9rem;
  cursor: pointer;
}
.time-option:hover {
  background: var(--teal-100);
}

/* ---------------------------------------------------------------
   Public site — utility bar + dropdown nav
   --------------------------------------------------------------- */
.utility-bar {
  background: var(--teal-900);
  color: #F0EDE5;
  font-size: 0.85rem;
}
.utility-bar-inner {
  max-width: 1200px; margin: 0 auto; padding: 8px 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.utility-tagline { font-weight: 500; }
.utility-phone { color: #F0EDE5; text-decoration: none; font-weight: 600; }
.utility-phone:hover { text-decoration: underline; }
.utility-social { display: flex; gap: 10px; }
.utility-social a {
  color: #F0EDE5; text-decoration: none; width: 22px; height: 22px;
  border: 1px solid rgba(240,237,229,0.4); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; font-size: 0.7rem;
}

.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav > a { color: var(--ink); font-size: 0.92rem; text-decoration: none; }
.main-nav > a:hover { color: var(--teal-700); }

.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  background: none; border: none; font-family: var(--font-body); font-size: 0.92rem;
  color: var(--ink); cursor: pointer; padding: 0;
}
.nav-dropdown-toggle:hover { color: var(--teal-700); }
.nav-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0; margin-top: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1); min-width: 200px; z-index: 50;
}
.nav-dropdown-menu.open { display: block; }
.nav-dropdown-menu a {
  display: block; padding: 10px 16px; font-size: 0.88rem; color: var(--ink); text-decoration: none;
}
.nav-dropdown-menu a:hover { background: var(--teal-100); }