/* =========================================================
   Dornbach-Bender Psychology, LLC
   Shared stylesheet
   ---------------------------------------------------------
   Colors, fonts and spacing all live in the :root block
   below — change them there and every page updates.
   ========================================================= */

:root {
  --paper:        #f5f4f2;   /* page background */
  --paper-warm:   #eceae5;   /* alternating section background */
  --ink:          #1c1c1a;   /* headings + body text */
  --ink-soft:     #55534e;   /* secondary text */
  --rule:         #d6d3cc;   /* hairlines and borders */
  --accent:       #6d7d6a;   /* muted sage — buttons, links */
  --accent-dark:  #55634f;

  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-body:    "Lora", Georgia, "Times New Roman", serif;

  --measure: 1180px;         /* max content width */
  --gutter: clamp(1.5rem, 5vw, 4.5rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-dark); }

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* skip link for keyboard + screen-reader users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------------------------------------------------------
   Masthead + navigation
   --------------------------------------------------------- */

.masthead {
  text-align: center;
  padding: clamp(2.25rem, 5vw, 3.75rem) 0 clamp(1.5rem, 3vw, 2.25rem);
}

.masthead__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 1rem + 2.4vw, 2.75rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.2;
}

.masthead__name a { color: inherit; text-decoration: none; }

.nav {
  margin-top: clamp(1.25rem, 3vw, 2rem);
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.25rem);
}

.nav a {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.125rem);
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: border-color 150ms ease, color 150ms ease;
}

.nav a:hover,
.nav a:focus-visible { border-bottom-color: var(--ink); }

.nav a[aria-current="page"] { border-bottom-color: var(--ink); }

/* ---------------------------------------------------------
   Page title / hero
   --------------------------------------------------------- */

.page-title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
  font-size: clamp(1.9rem, 1rem + 4.6vw, 4.25rem);
  text-align: center;
  margin: clamp(1.5rem, 4vw, 3rem) 0 clamp(2rem, 5vw, 3.5rem);
  text-wrap: balance;
}

/* Split hero: text on the left, portrait on the right */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

@media (min-width: 820px) {
  .hero { grid-template-columns: 1fr 1fr; }
}

.hero__lede {
  font-weight: 700;
  font-size: clamp(1.15rem, 1rem + 0.9vw, 1.6rem);
  line-height: 1.55;
  margin: 0 0 1.5rem;
  text-wrap: pretty;
}

.hero__body p { color: var(--ink-soft); margin: 0 0 1.25rem; }

.hero__portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

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

.btn {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  text-decoration: none;
  padding: 0.95rem 2.1rem;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.btn:hover,
.btn:focus-visible { background: var(--ink); color: var(--paper); }

.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover,
.btn--solid:focus-visible { background: transparent; color: var(--ink); }

/* ---------------------------------------------------------
   Generic sections
   --------------------------------------------------------- */

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--warm { background: var(--paper-warm); }
.section--bordered { border-top: 1px solid var(--rule); }

.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: clamp(1.2rem, 1rem + 1vw, 1.75rem);
  text-align: center;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
}

.section__intro {
  max-width: 60ch;
  margin: -1.5rem auto clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
  color: var(--ink-soft);
}

/* Three-across card grid (used on Home + Services) */
.grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
}

.card p { margin: 0; color: var(--ink-soft); }

.card--rule { border-top: 1px solid var(--rule); padding-top: 1.5rem; }

/* Long-form prose column (About page, Services detail) */
.prose { max-width: 68ch; margin-inline: auto; }
.prose h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(1.1rem, 1rem + 0.7vw, 1.5rem);
  margin: 2.75rem 0 1rem;
}
.prose h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 2rem 0 0.5rem;
}
.prose p { margin: 0 0 1.25rem; }
.prose ul { margin: 0 0 1.5rem; padding-left: 1.2rem; }
.prose li { margin-bottom: 0.6rem; }

/* Two-column: sticky portrait beside prose (About page) */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 880px) {
  .split { grid-template-columns: 0.85fr 1.15fr; }
  .split__aside { position: sticky; top: 2rem; }
}
.split .prose { margin-inline: 0; }
.split .prose p { margin-bottom: 1.4rem; }

/* When the columns stack, keep the portrait from swallowing the screen */
.split__aside img { width: 100%; max-width: 22rem; margin-inline: auto; }
@media (min-width: 880px) {
  .split__aside img { max-width: none; margin-inline: 0; }
}

/* Service blocks */
.service {
  padding: clamp(1.75rem, 4vw, 2.5rem) 0;
  border-top: 1px solid var(--rule);
}
.service h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.6rem);
  margin: 0 0 0.85rem;
}
.service p { margin: 0 0 1rem; color: var(--ink-soft); }
.service ul { margin: 0; padding-left: 1.2rem; color: var(--ink-soft); }
.service li { margin-bottom: 0.4rem; }

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: start;
}
@media (min-width: 880px) {
  /* The details column is short, so give the form the wider share */
  .contact-grid { grid-template-columns: 0.8fr 1.2fr; }
}

.contact-detail { margin-bottom: 2rem; }
.contact-detail h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.95rem;
  margin: 0 0 0.4rem;
  color: var(--ink-soft);
}
.contact-detail p { margin: 0; }
.contact-detail a { color: var(--ink); }

.form-field { margin-bottom: 1.5rem; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-family: var(--font-display);
  margin-bottom: 0.5rem;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 0.85rem 1rem;
}
.form-field textarea { min-height: 10rem; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.form-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 1.5rem 0 0;
}

/* ---------------------------------------------------------
   Crisis / safety notice
   --------------------------------------------------------- */

.notice {
  border: 1px solid var(--rule);
  background: #fff;
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-top: clamp(2rem, 5vw, 3rem);
}
.notice h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.95rem;
  margin: 0 0 0.6rem;
}
.notice p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }

/* ---------------------------------------------------------
   Call-to-action band + footer
   --------------------------------------------------------- */

.cta {
  text-align: center;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.cta h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: clamp(1.4rem, 1rem + 2vw, 2.5rem);
  margin: 0 0 1rem;
  text-wrap: balance;
}
.cta p {
  max-width: 52ch;
  margin: 0 auto 2rem;
  color: var(--ink-soft);
}

.site-footer {
  border-top: 1px solid var(--rule);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.8;
}
.site-footer a { color: var(--ink-soft); }
.site-footer .site-footer__name {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink);
  display: block;
  margin-bottom: 0.75rem;
}

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

@media print {
  .nav, .cta, .skip-link { display: none; }
  body { background: #fff; }
}
