/* ============================================================
   [Therapist Name], LCSW — Home page styles
   Style direction: "The Consulting Room"

   Structure of this file:
     1. Design tokens (colours, fonts, spacing) — edit here first
     2. Base / resets
     3. Accessibility helpers
     4. Buttons
     5. Layout containers
     6. Header + navigation
     7. Hero
     8. Sections (intro, how it works, what I help with)
     9. Workshops + email form
    10. Closing CTA
    11. Footer
    12. Responsive (desktop) adjustments
   ============================================================ */


/* ============================================================
   1. DESIGN TOKENS
   Change a colour or font in one place and it updates everywhere.
   ============================================================ */
:root {
  /* Colours — all text/background pairs meet WCAG AA (4.5:1 or better) */
  --paper:      #FBF8F4;   /* main page background */
  --paper-alt:  #F2EDE5;   /* alternating section background */
  --ink:        #22282B;   /* headings, dark bands            14.2:1 on paper */
  --ink-soft:   #4A5157;   /* body text                        7.5:1 on paper */
  --clay:       #A8452B;   /* accent + primary buttons         5.6:1 on paper */
  --clay-dark:  #8A3721;   /* button hover */
  --rule:       #E4DDD3;   /* hairlines and borders */

  /* Type */
  --font-head: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* Body text is 18px, never smaller. */
  --size-body:  1.125rem;   /* 18px */
  --size-lede:  1.3125rem;  /* 21px */
  --size-h1:    clamp(2.125rem, 6vw, 3.25rem);   /* 34 → 52px */
  --size-h2:    clamp(1.625rem, 4vw, 2.125rem);  /* 26 → 34px */
  --size-h3:    1.3125rem;  /* 21px */

  /* Spacing */
  --space-section: clamp(3.5rem, 8vw, 5.5rem);
  --measure: 62ch;          /* max line length for comfortable reading */
  --radius: 6px;
}


/* ============================================================
   2. BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: var(--size-h1); line-height: 1.15; }
h2 { font-size: var(--size-h2); line-height: 1.25; }
h3 { font-size: var(--size-h3); line-height: 1.35; }

p { margin: 0 0 1.2em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: var(--clay); }
a:hover { color: var(--clay-dark); }

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

/* Visible focus ring for keyboard users — never remove this. */
:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Respect the visitor's motion settings. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* ============================================================
   3. ACCESSIBILITY HELPERS
   ============================================================ */

/* Present to screen readers, invisible on screen. */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* "Skip to main content" — appears when tabbed to. */
.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; color: var(--paper); }


/* ============================================================
   4. BUTTONS
   Minimum 48px tall everywhere — comfortable tap target on a phone.
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

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

/* For use on the dark closing-CTA band. */
.btn-invert { background: var(--paper); color: var(--ink); }
.btn-invert:hover { background: #fff; color: var(--ink); }

.btn-lg { min-height: 56px; padding: 1rem 2rem; font-size: 1.1875rem; }
.btn-sm { min-height: 48px; padding: 0.7rem 1.25rem; font-size: 1rem; }


/* ============================================================
   5. LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container.narrow { max-width: 760px; }

.section { padding: var(--space-section) 0; }
.section-alt { background: var(--paper-alt); }


/* ============================================================
   6. HEADER + NAVIGATION
   ============================================================ */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  flex-wrap: wrap;
}

.wordmark {
  /* Shrinks a little on narrow phones so it and the Menu button
     stay on one line. */
  font-family: var(--font-head);
  font-size: clamp(1.125rem, 4.5vw, 1.375rem);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.2;
  flex: 1 1 auto;
  min-width: 0;
  /* The wordmark links home, so it gets a full-size tap target too. */
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.wordmark:hover { color: var(--ink); }
.wordmark-cred { color: var(--ink-soft); font-weight: 400; }

/* --- Mobile menu button (icon + text label, never icon alone) --- */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.5rem 0.9rem;
  background: transparent;
  border: 2px solid var(--rule);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle-bars { display: block; width: 20px; }
.nav-toggle-bars span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
}

/* --- Nav: hidden on mobile until the Menu button is pressed --- */
.site-nav {
  display: none;
  width: 100%;
  padding-bottom: 0.5rem;
}
.site-nav.is-open { display: block; }

.site-nav ul {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.site-nav li { border-bottom: 1px solid var(--rule); }
.site-nav li a {
  display: block;
  padding: 0.9rem 0.25rem;      /* generous tap target */
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.site-nav li a:hover { color: var(--clay); text-decoration: underline; }

.site-nav .btn { width: 100%; }


/* ============================================================
   7. HERO
   ============================================================ */
.hero { padding: var(--space-section) 0; }

.hero-inner { display: grid; gap: 2.5rem; }

.hero h1 { margin-bottom: 0.5em; }

.lede {
  font-size: var(--size-lede);
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 2rem;
  max-width: 30ch;
}

/* --- Placeholder box shown until a real photo is dropped in --- */
.photo-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  aspect-ratio: 4 / 5;
  padding: 2rem;
  background: var(--paper-alt);
  border: 2px dashed #C9BFB0;
  border-radius: var(--radius);
  text-align: center;
}
.photo-placeholder-tag {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
}
.photo-placeholder-note {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.hero-photo { border-radius: var(--radius); }


/* ============================================================
   8. SECTIONS
   ============================================================ */

/* --- Intro paragraph --- */
.intro { padding-top: 0; }
.intro-text {
  font-size: 1.25rem;
  line-height: 1.75;
  color: var(--ink);
  border-left: 4px solid var(--clay);
  padding-left: 1.5rem;
  max-width: var(--measure);
}

/* --- How It Works --- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.25rem;
}

.step { max-width: var(--measure); }

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  background: var(--clay);
  color: #fff;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-body);
}

.step h3 { margin-bottom: 0.35em; }
.step p { margin: 0; }

.section-cta { margin: 3rem 0 0; max-width: none; }

/* --- What I Help With --- */
.help-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: var(--measure);
}
.help-list li {
  position: relative;
  padding: 1rem 0 1rem 2rem;
  font-size: 1.1875rem;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
}
.help-list li:first-child { border-top: 1px solid var(--rule); }
.help-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.55rem;
  width: 14px;
  height: 3px;
  background: var(--clay);
}


/* ============================================================
   9. WORKSHOPS + EMAIL FORM
   ============================================================ */
.workshops { border-top: 3px solid var(--clay); }

.notify-form {
  margin-top: 2rem;
  max-width: 30rem;
}

.notify-field { margin-bottom: 1.25rem; }

.notify-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.notify-form input[type="email"] {
  width: 100%;
  min-height: 56px;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 2px solid #9E948A;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--ink);
}
.notify-form input[type="email"]::placeholder { color: #6E756F; }

.notify-form .btn { width: 100%; }

.form-note {
  margin: 0.9rem 0 0;
  font-size: 1rem;
  color: var(--ink-soft);
}


/* ============================================================
   10. CLOSING CTA
   ============================================================ */
.closing-cta {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}
.closing-cta h2 { color: var(--paper); }
.closing-cta p {
  font-size: var(--size-lede);
  color: #DCD7D0;          /* 11:1 on --ink */
  margin: 0 auto 2rem;
  max-width: 34ch;
}


/* ============================================================
   11. FOOTER
   ============================================================ */
.site-footer {
  background: var(--paper-alt);
  border-top: 1px solid var(--rule);
  padding: var(--space-section) 0 2.5rem;
  font-size: 1.0625rem;
}

.footer-inner { display: grid; gap: 2.5rem; }

.site-footer h2 {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
}

.footer-name {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4em;
}

.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 0.25rem; }
.footer-nav a,
.footer-contact a {
  display: inline-block;
  padding: 0.65rem 0;      /* keeps footer links a 44px+ tap target */
  color: var(--ink-soft);
  text-decoration: underline;
}
.footer-nav a:hover,
.footer-contact a:hover { color: var(--clay); }

.footer-legal {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}
.footer-legal p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 70ch;
}


/* ============================================================
   12. DESKTOP ADJUSTMENTS
   Mobile-first: everything above is the phone layout.
   ============================================================ */
/* --- Tablet and up: content layout opens out --- */
@media (min-width: 760px) {

  /* Hero becomes two columns: text left, photo right. */
  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
  }

  /* Three steps side by side. Still one idea per column, easy to scan. */
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }

  /* Email field and button sit on one line. */
  .notify-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: end;
    max-width: 34rem;
  }
  .notify-field { margin-bottom: 0; }
  .notify-form .btn { width: auto; }
  .form-note { grid-column: 1 / -1; }

  .footer-inner { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
}

/* --- Wide screens: the nav unfolds into the header bar ---
   Below this width the full nav would wrap onto a second line, so the
   "Menu" button is kept instead and the header stays one tidy row. */
@media (min-width: 1040px) {

  .nav-toggle { display: none; }

  .site-nav {
    display: flex !important;   /* visible even if left toggled shut on mobile */
    align-items: center;
    gap: 2rem;
    width: auto;
    padding-bottom: 0;
  }
  .site-nav ul {
    display: flex;
    gap: 1.75rem;
    margin: 0;
    border-top: 0;
  }
  .site-nav li { border-bottom: 0; }
  .site-nav li a { padding: 0.5rem 0; }
  .site-nav .btn { width: auto; }

  .hero-inner { gap: 4rem; }
}
