/* E8 Psychotherapy — refined */

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/newsreader-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/newsreader-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "PT Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/pt-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "PT Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/pt-serif-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "PT Serif"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/pt-serif-latin-700-normal.woff2") format("woff2"); }

:root {
  --ink: #36302a;
  --ink-soft: #6b6157;
  --paper: #f6f3ec;
  --sand: #ece4da;
  --line: rgba(54, 48, 42, 0.18);
  --gutter: max(24px, 4vw);
  --measure: 680px;
  --heading: "Newsreader", Georgia, serif;
  --body: "PT Serif", Georgia, serif;
  --space: clamp(80px, 9vw, 128px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (max-width: 600px) { body { font-size: 17.5px; } }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--sand); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

/* ---------- Type: one heading style, two sizes ---------- */
h1, h2, h3 { font-family: var(--heading); font-weight: 400; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.4rem); line-height: 1.04; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.9rem, 1.45rem + 1.5vw, 2.6rem); line-height: 1.12; margin-bottom: 0.9em; }
h3 { font-size: clamp(1.3rem, 1.15rem + 0.4vw, 1.5rem); line-height: 1.25; margin: 2em 0 0.6em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
.eyebrow {
  font-family: var(--heading); font-style: italic;
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.55rem);
  margin: 0 0 0.9em; letter-spacing: -0.01em;
}

/* ---------- Header ---------- */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
}
.site-title { font-family: var(--heading); font-size: 22px; letter-spacing: -0.02em; text-decoration: none; }
.site-nav ul { list-style: none; display: flex; gap: 1.6em; margin: 0; padding: 0; }
.site-nav a {
  text-decoration: none; font-size: 16px; padding: 2px 0;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .3s ease;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background-size: 100% 1px; }

.menu-toggle { display: none; background: none; border: 0; padding: 10px 0; cursor: pointer; color: var(--ink); }
.menu-toggle span { display: block; width: 28px; height: 1px; background: currentColor; margin: 7px 0; transition: transform .3s ease; }
@media (max-width: 767px) {
  .menu-toggle { display: block; position: relative; z-index: 31; }
  .site-nav {
    position: fixed; inset: 0; background: var(--paper);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s; z-index: 30;
  }
  .site-nav ul { flex-direction: column; align-items: center; gap: 0.5em; }
  .site-nav a { font-family: var(--heading); font-size: 2.1rem; }
  .menu-open .site-nav { opacity: 1; visibility: visible; }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .menu-open { overflow: hidden; }
}

/* ---------- Layout ---------- */
.section { padding: var(--space) var(--gutter); }
.section--sand { background: var(--sand); }
.section--page-top { padding-top: calc(var(--space) + 70px); }
.measure { max-width: 1000px; margin: 0 auto; }
.measure > * { max-width: var(--measure); }

/* Hero */
.hero {
  position: relative; min-height: min(78vh, 760px);
  display: flex; align-items: center;
  padding: 140px var(--gutter) 90px; overflow: hidden; background: var(--sand);
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(246,243,236,.55) 0, rgba(246,243,236,0) 130px),
    linear-gradient(90deg, rgba(246,243,236,.74) 0%, rgba(246,243,236,.5) 45%, rgba(246,243,236,.3) 100%);
}
.hero__text { position: relative; z-index: 1; width: 100%; max-width: 1000px; margin: 0 auto; }
.hero h1 { max-width: 13ch; }
@media (max-width: 767px) {
  .hero::after { background: linear-gradient(180deg, rgba(246,243,236,.55), rgba(246,243,236,.6)); }
}

/* Home intro */
.intro p { font-size: 1.12em; }

/* Buttons: one style everywhere */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 54px; padding: 0 34px;
  border: 1px solid var(--ink); border-radius: 999px;
  font: 16px/1 var(--body); letter-spacing: .01em; color: var(--ink); text-decoration: none;
  background: transparent; cursor: pointer;
  transition: background-color .25s ease, color .25s ease;
}
.btn::after { content: "→"; transition: transform .25s ease; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:hover::after { transform: translateX(3px); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-row { margin-top: 2.4em; }

/* Where + Fees side by side */
.pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(40px, 7vw, 110px);
  max-width: 1000px; margin: 0 auto;
}
.pair h2 { margin-bottom: 0.7em; }
@media (max-width: 767px) { .pair { grid-template-columns: 1fr; gap: 3.2em; } }

/* Book band: a strip of the hero image */
.book {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(90px, 10vw, 140px) var(--gutter);
}
.book img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; object-position: 50% 35%; }
.book::after { content: ""; position: absolute; inset: 0; background: rgba(238,229,216,.76); }
.book > .measure { position: relative; z-index: 1; }
.book .measure > * { max-width: none; }
.book h2 { margin-bottom: 0; }
.book .btn-row { margin-top: 1.6em; }

/* About */
.about-grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 0 clamp(40px, 7vw, 100px); max-width: 1000px; margin: 0 auto; align-items: start;
}
.portrait img { width: 100%; border-radius: 2px; }
@media (min-width: 768px) { .portrait { position: sticky; top: 40px; margin-top: 0.4em; } }
@media (max-width: 767px) {
  .about-grid { grid-template-columns: 1fr; }
  .portrait { order: -1; margin-bottom: 2.5em; max-width: 420px; }
}

/* Contact */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 0 clamp(40px, 7vw, 100px); max-width: 1000px; margin: 0 auto; align-items: start;
}
@media (max-width: 767px) { .contact-grid { grid-template-columns: 1fr; gap: 3em; } }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 14px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 14px; margin-bottom: 7px; }
.form label .req { color: var(--ink-soft); margin-left: 3px; }
.form input, .form textarea {
  width: 100%; font: 17px var(--body); color: var(--ink);
  background: var(--sand); border: 1px solid transparent; border-radius: 10px;
  padding: 11px 14px;
  transition: border-color .2s ease, background-color .2s ease;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--ink); background: #f1ebe2; }
.form .hp { position: absolute; left: -9999px; }
.form .actions { grid-column: 1 / -1; margin-top: 6px; }
.form-status { grid-column: 1 / -1; margin: 0; font-size: 16px; }
@media (max-width: 480px) { .form { grid-template-columns: 1fr; } }

/* Footer: small credentials + one quiet line */
.site-footer { background: var(--sand); padding: 56px var(--gutter) 40px; font-size: 15px; color: var(--ink-soft); }
.site-footer .inner {
  max-width: 1000px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
}
.logos { display: flex; align-items: center; gap: 28px; }
.logos img { width: 128px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .5em 1.4em; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.site-footer .small { width: 100%; border-top: 1px solid var(--line); padding-top: 20px; font-size: 14px; }

/* Gentle fade-in */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 1s ease, transform 1s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
