/* ==========================================================================
   Bella Weininger, Psy.D. site styles
   Ported from the Claude Design project "Bella Weininger therapist website".
   Design was authored desktop-only (min-width:1100px); the breakpoints below
   add the responsive behaviour a real site needs.
   ========================================================================== */

:root {
  --bg:          #F7F4EC;
  --cream:       #FDFBF4;
  --sand:        #EDE9DA;
  --sage:        #B9B892;
  --ink:         #33322B;
  --ink-2:       #2E2D24;
  --body:        #4A493D;
  --body-sage:   #3B3A2C;
  --muted:       #6B6A58;
  --muted-2:     #8A8968;
  --olive:       #6B6B4C;
  --nav:         #55543F;
  --rule:        rgba(51, 50, 43, 0.12);

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --gut: 110px; /* horizontal page gutter */
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--olive); text-decoration: none; }
a:hover { color: var(--ink); }

img { max-width: 100%; }

p { margin: 0; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 20px;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* --- Type -------------------------------------------------------------- */

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.eyebrow--sage { color: #4F4E36; }
.eyebrow--dark { color: #8A8875; font-size: 12px; }

.display  { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; text-wrap: pretty; }
.display-1 { font-size: 64px; }
.display-2 { font-size: 48px; }
.display-3 { font-size: 44px; }
.display-4 { font-size: 38px; }
.display-5 { font-size: 34px; }
.display-6 { font-size: 28px; }

.lede  { font-size: 17px; line-height: 1.75; color: var(--body); text-wrap: pretty; }
.prose { font-size: 17px; line-height: 1.75; color: var(--body); text-wrap: pretty; }
.prose--sage { color: var(--body-sage); }

.pull-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  color: var(--ink-2);
  text-wrap: pretty;
}

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

.btn {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 15px 30px;
  border: 1px solid transparent;
  font-family: var(--sans);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn--dark  { background: var(--ink); color: var(--bg); }
.btn--dark:hover  { background: var(--olive); color: var(--bg); }
.btn--light { background: var(--bg); color: var(--ink); }
.btn--light:hover { background: var(--ink); color: var(--bg); }
.btn--light-sage:hover { background: var(--sage); color: var(--ink-2); }
.btn--outline { border-color: var(--ink-2); color: var(--ink-2); background: none; }
.btn--outline:hover { background: var(--ink-2); color: var(--bg); }
.btn--sm { padding: 12px 20px; font-size: 12px; letter-spacing: 0.14em; }

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

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 56px;
  background: var(--bg);
  border-bottom: 1px solid rgba(51, 50, 43, 0.08);
  position: relative;
  z-index: 20;
}

.wordmark {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--ink);
  line-height: 1;
}
.wordmark:hover { color: var(--ink); }

/* Licence line under footer wordmarks. */
.license-line {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #8A8875;
}

/* Links inside display headings: inherit colour, quiet underline. */
.inline-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(46, 45, 36, 0.45);
  text-underline-offset: 5px;
}
.inline-link:hover { color: inherit; text-decoration-color: currentColor; }

/* Post-nominal sits a size down so it reads as a credential, not part of
   the name. Kept in the wordmark so it appears on every page. */
.wordmark__cred {
  font-size: 0.6em;
  letter-spacing: 0.04em;
  color: var(--nav);
  white-space: nowrap;
}
.site-footer .wordmark__cred,
.site-footer--slim .wordmark__cred,
.cta-band .wordmark__cred { color: #B8B5A4; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.site-nav a {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nav);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}
.site-nav .btn {
  padding: 12px 22px;
  letter-spacing: 0.14em;
  color: var(--bg);
}
.site-nav .btn[aria-current="page"] { border-bottom: none; padding-bottom: 12px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 14px;
  cursor: pointer;
}

/* --- Layout helpers ---------------------------------------------------- */

.section { padding: 96px var(--gut); }
.section--tight { padding: 64px var(--gut); }
.section--sage { background: var(--sage); }
.section--sand { background: var(--sand); }

.wrap { max-width: 1180px; margin: 0 auto; }
.wrap--wide { max-width: 1400px; margin: 0 auto; }

.stack { display: flex; flex-direction: column; }
.gap-16 { gap: 16px; }
.gap-18 { gap: 18px; }
.gap-22 { gap: 22px; }
.pad-top-44 { padding-top: 44px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.two-col--1-15 { grid-template-columns: 1fr 1.5fr; }

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

.hero {
  position: relative;
  height: 640px;
  background-size: cover;
  background-position: center 62%;
}
.hero--short { height: 320px; background-position: center 60%; }
.hero--quote { height: 440px; background-position: center 55%; }

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(30, 28, 18, 0.32), rgba(30, 28, 18, 0.18));
}
.hero--short .hero__scrim,
.hero--quote .hero__scrim { background: rgba(28, 26, 20, 0.3); }

.hero__inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 22px;
  padding: 0 80px;
}
.hero__title { color: #FDFBF4; max-width: 820px; line-height: 1.12; }
.hero__meta {
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #F1EDDD;
}

/* --- Home: welcome ----------------------------------------------------- */

.welcome {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 72px;
  align-items: center;
  padding: 96px var(--gut);
  max-width: 1400px;
  margin: 0 auto;
}
.welcome__portrait {
  width: 460px;
  height: 560px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

/* --- About ------------------------------------------------------------- */

.bio {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 80px;
  align-items: start;
  padding: 96px var(--gut);
  max-width: 1400px;
  margin: 0 auto;
}
.bio__portrait {
  width: 480px;
  height: 600px;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  position: sticky;
  top: 32px;
}

.approach-img { width: 100%; height: 520px; object-fit: cover; display: block; }

.def-list { display: flex; flex-direction: column; }
.def-list__row {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(51, 50, 43, 0.14);
}
.def-list__row:last-child { border-bottom: none; }
.def-list__term {
  font-family: var(--serif);
  font-size: 20px;
  min-width: 230px;
}
.def-list__desc { font-size: 15px; line-height: 1.65; color: #5B5A49; }

.credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 64px;
}
.credential {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.credential:last-child { border-bottom: none; }
.credential__title { font-weight: 600; font-size: 16px; }
.credential__org { font-size: 14px; color: var(--muted); }

/* --- Offerings --------------------------------------------------------- */

.page-intro {
  padding: 88px var(--gut) 64px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.page-intro .display { max-width: 760px; }
.page-intro .lede { max-width: 680px; }

.offerings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px 72px;
  padding: 24px var(--gut) 96px;
  max-width: 1240px;
  margin: 0 auto;
}
.offering {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.offering img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.offering p {
  font-size: 16px;
  line-height: 1.7;
  color: #5B5A49;
  max-width: 420px;
  text-wrap: pretty;
}

.note {
  max-width: 640px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  font-style: italic;
  text-align: center;
  text-wrap: pretty;
}

/* --- Resources --------------------------------------------------------- */

.resources-head {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 72px;
  align-items: center;
  padding: 88px var(--gut) 56px;
  max-width: 1400px;
  margin: 0 auto;
}
.resources-head img {
  width: 420px;
  height: 340px;
  object-fit: cover;
  object-position: center 70%;
  display: block;
}
.resources-head .lede { max-width: 560px; }

.res-cols {
  padding: 24px var(--gut) 96px;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
}
.res-col { display: flex; flex-direction: column; gap: 8px; }
.res-col h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(51, 50, 43, 0.2);
}
.res-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(51, 50, 43, 0.1);
}
.res-item:last-child { border-bottom: none; }
.res-item__name { font-weight: 600; font-size: 15px; color: var(--ink); }
a.res-item__name:hover { color: var(--olive); }
.res-item__meta { font-size: 13px; color: var(--muted-2); }

.crisis-band {
  background: var(--sage);
  padding: 56px var(--gut);
  text-align: center;
}
.crisis-band p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.75;
  color: var(--body-sage);
  text-wrap: pretty;
}

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

.contact {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 88px;
  padding: 88px var(--gut);
  max-width: 1340px;
  margin: 0 auto;
}
.contact__details {
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-top: 1px solid rgba(51, 50, 43, 0.15);
  padding-top: 26px;
}
.contact__detail { display: flex; flex-direction: column; gap: 4px; }
.contact__label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.contact__value { font-size: 17px; line-height: 1.6; color: var(--ink); }
a.contact__value:hover { color: var(--olive); }
.fine-print { font-size: 13px; line-height: 1.7; color: var(--muted-2); text-wrap: pretty; }

.form-card {
  background: var(--cream);
  border: 1px solid var(--rule);
  padding: 44px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.field input,
.field textarea {
  border: 1px solid rgba(51, 50, 43, 0.25);
  background: var(--bg);
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  font-family: var(--sans);
  outline: none;
  width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus,
.field textarea:focus { border-color: var(--olive); }
.form-card button { width: 100%; padding: 17px; }
.form-note { font-size: 12px; color: var(--muted-2); text-align: center; }

/* --- Members portal ---------------------------------------------------- */

.portal-shell { min-height: 100vh; display: flex; flex-direction: column; }
.portal-shell > .portal-panel { flex: 1; }

.signin {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 720px;
}
.signin__image { background-size: cover; background-position: center; }
.signin__form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px;
  min-width: 0; /* grid items default to min-width:auto and refuse to shrink */
}
.signin__form { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 20px; }
.signin__form .field input { background: var(--cream); }
.signin__links { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; }

.portal-status {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  text-wrap: pretty;
}
.portal-status:empty { display: none; }
.portal-status.is-error { color: #8C3A2B; }

.dashboard { background: #EFEBDF; padding: 56px var(--gut); }
.dashboard__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.dash-grid-a { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; }
.dash-grid-b { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

.card {
  background: var(--cream);
  border: 1px solid rgba(51, 50, 43, 0.1);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card--dark {
  background: var(--ink);
  border-color: var(--ink);
  color: #EDEAE0;
  gap: 14px;
}
.card--dark .display { color: var(--bg); }
.card__meta { font-size: 15px; color: #B8B5A4; }
.card__quote {
  font-size: 15px;
  line-height: 1.7;
  color: var(--body);
  font-style: italic;
  text-wrap: pretty;
}

.list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(51, 50, 43, 0.1);
}
.list-row:last-of-type { border-bottom: none; }
.list-row__title { font-weight: 600; font-size: 15px; }
.list-row__meta { font-size: 13px; color: var(--muted-2); }
.list-row__action,
.list-link {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive);
  white-space: nowrap;
}
.list-link { padding: 16px 0 2px; letter-spacing: 0.14em; }

.btn-ghost {
  background: none;
  border: 1px solid rgba(51, 50, 43, 0.3);
  color: var(--nav);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 18px;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

.demo-banner {
  background: var(--sand);
  color: #55543F;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
  padding: 12px 24px;
  border-bottom: 1px solid var(--rule);
}

/* --- CTA band + footers ------------------------------------------------ */

.cta-band {
  background: var(--ink);
  color: #EDEAE0;
  padding: 64px var(--gut);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.cta-band .display { color: var(--bg); max-width: 640px; line-height: 1.3; }
.cta-band a.subtle { color: #B8B5A4; font-size: 14px; }
.cta-band a.subtle:hover { color: var(--bg); }

.site-footer {
  background: var(--ink);
  color: #EDEAE0;
  padding: 72px var(--gut);
}
.site-footer__grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px;
}
.site-footer h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  color: var(--bg);
  margin: 0;
}
.site-footer p { font-size: 15px; line-height: 1.7; color: #B8B5A4; text-wrap: pretty; }
.site-footer a { color: #D9D6C6; font-size: 15px; }
.site-footer a:hover { color: var(--bg); }

.site-footer--slim {
  background: var(--ink);
  color: #EDEAE0;
  padding: 36px var(--gut);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.site-footer--slim .wordmark { font-size: 20px; color: var(--bg); }
.site-footer--slim a { color: #B8B5A4; font-size: 14px; }
.site-footer--slim a:hover { color: var(--bg); }

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

@media (max-width: 1180px) {
  :root { --gut: 64px; }

  .site-header { padding: 20px 32px; }
  .site-nav { gap: 20px; }

  .welcome { grid-template-columns: 1fr 380px; gap: 48px; }
  .welcome__portrait { width: 380px; height: 480px; }

  .bio { grid-template-columns: 380px 1fr; gap: 48px; }
  .bio__portrait { width: 380px; height: 480px; }

  .resources-head { grid-template-columns: 1fr 340px; gap: 48px; }
  .resources-head img { width: 340px; height: 300px; }

  .two-col, .contact { gap: 48px; }
  .res-cols { gap: 40px; }
  .signin__form-wrap { padding: 56px 40px; }
}

@media (max-width: 900px) {
  :root { --gut: 28px; }

  .display-1 { font-size: 42px; }
  .display-2 { font-size: 36px; }
  .display-3 { font-size: 34px; }
  .display-4 { font-size: 30px; }
  .display-5 { font-size: 28px; }
  .display-6 { font-size: 25px; }

  .section { padding: 64px var(--gut); }
  .section--tight { padding: 48px var(--gut); }

  /* Collapsible nav */
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    padding: 8px 28px 20px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(51, 50, 43, 0.08);
  }
  .site-nav a[aria-current="page"] { border-bottom: 1px solid var(--ink); }
  .site-nav .btn {
    margin-top: 14px;
    text-align: center;
    border-bottom: none;
    padding: 14px 22px;
  }

  .hero { height: 500px; }
  .hero__inner { padding: 0 28px; }
  .hero__meta { font-size: 12px; letter-spacing: 0.12em; }

  .welcome,
  .bio,
  .resources-head,
  .contact { grid-template-columns: 1fr; padding: 64px var(--gut); }

  .welcome__portrait,
  .bio__portrait,
  .resources-head img {
    width: 100%;
    height: 440px;
    position: static;
  }

  .two-col,
  .offerings,
  .res-cols,
  .credentials,
  .dash-grid-a,
  .dash-grid-b,
  .form-row,
  .site-footer__grid { grid-template-columns: 1fr; }

  .two-col { gap: 40px; }
  .pad-top-44 { padding-top: 0; }
  .offerings { gap: 48px; padding: 8px var(--gut) 64px; }
  .res-cols { gap: 44px; padding: 8px var(--gut) 64px; }
  .site-footer__grid { gap: 40px; }
  .site-footer { padding: 56px var(--gut); }

  .page-intro { padding: 64px var(--gut) 40px; }
  .approach-img { height: 320px; }

  .def-list__row { flex-direction: column; gap: 6px; }
  .def-list__term { min-width: 0; }

  .signin { grid-template-columns: 1fr; min-height: 0; }
  .signin__image { min-height: 240px; }
  .signin__form-wrap { padding: 48px 28px; }

  .dashboard { padding: 40px var(--gut); }
  .dashboard__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .card { padding: 28px; }
  .form-card { padding: 28px; }

  .site-footer--slim { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 560px) {
  .display-1 { font-size: 34px; }
  .display-2 { font-size: 30px; }
  .hero { height: 440px; }
  .hero--short { height: 260px; }
  .list-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .signin__links { flex-direction: column; gap: 8px; }
}

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