/* ===========================================================
   Ho Psychiatry — Design tokens
   Warm terracotta, cactus green, and clay-inspired neutrals
   Display: Fraunces (serif, optical sizing) / Body: Inter
=========================================================== */

:root {
  --linen: #F6EEE6;
  --linen-deep: #E9DCCF;
  --ink: #2D241F;
  --ink-soft: #5B4A3C;
  --plum: #8A4C3A;
  --plum-deep: #6F3A2A;
  --brass: #C57A47;
  --brass-light: #D89A63;
  --sage: #6C7B58;
  --line: rgba(45, 36, 31, 0.14);

  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1080px;
  --gutter: clamp(24px, 6vw, 96px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}

.ital { font-style: italic; font-weight: 400; color: var(--plum); }

p { margin: 0 0 1em; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
  margin: 0 0 0.75em;
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(.2,.6,.2,1), transform 0.9s cubic-bezier(.2,.6,.2,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Signature spine element ===== */
.spine {
  position: fixed;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  z-index: 5;
  pointer-events: none;
}
.spine svg { height: 100%; width: 100%; display: block; }
.spine-track { stroke: var(--line); stroke-width: 2; }
.spine-fill { stroke: var(--brass); stroke-width: 2; transition: y2 0.1s linear; }
@media (max-width: 860px) { .spine { display: none; } }

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  background: rgba(241, 236, 227, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__mark {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.1;
}
.nav__mark small {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--plum);
}
.nav__links {
  display: flex;
  gap: 2.2rem;
}
.nav__links a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 4px;
}
.nav__links a:hover { color: var(--plum); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 22px; height: 1.5px; background: var(--ink);
}

@media (max-width: 720px) {
  .nav__links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    background: var(--linen);
    padding: 24px var(--gutter);
    gap: 1.2rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-140%);
    transition: transform 0.35s ease;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__toggle { display: flex; }
}

/* ===== Notice bar ===== */
.notice-bar {
  background: var(--plum);
  color: var(--linen);
}
.notice-bar p {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px var(--gutter);
  font-size: 0.85rem;
  color: var(--linen);
  text-align: center;
}
.notice-bar strong { color: var(--brass-light); }

/* ===== Hero — full-bleed photo background with overlaid text ===== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(520px, 80vh, 820px);
  width: 100%;
  padding: clamp(96px, 14vh, 160px) var(--gutter) clamp(64px, 10vh, 110px);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  z-index: -2;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(45,36,31,0.72) 0%, rgba(45,36,31,0.5) 42%, rgba(45,36,31,0.18) 75%),
    linear-gradient(0deg, rgba(45,36,31,0.35), rgba(45,36,31,0) 45%);
}
.hero__inner {
  max-width: 620px;
  width: 100%;
}
.hero__title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 0.5em;
  color: #FBF6EF;
}
.hero__subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--brass-light);
  margin-bottom: 1.4em;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.2em;
}
.badge {
  font-size: 0.78rem;
  padding: 7px 14px;
  border: 1px solid rgba(251,246,239,0.4);
  border-radius: 999px;
  color: #FBF6EF;
  background: rgba(45,36,31,0.28);
  backdrop-filter: blur(2px);
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero .btn--ghost {
  color: #FBF6EF;
  border-color: rgba(251,246,239,0.75);
}
.hero .btn--ghost:hover { background: #FBF6EF; color: var(--ink); }

.hero .ital { color: var(--brass-light); }

@media (max-width: 860px) {
  .hero { min-height: 560px; padding-top: 88px; text-align: left; }
  .hero__bg { object-position: center 30%; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 2px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn--primary {
  background: var(--plum);
  color: var(--linen);
}
.btn--primary:hover { background: var(--plum-deep); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--linen); }

/* ===== Sections ===== */
.section {
  padding: clamp(72px, 10vw, 130px) var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}

.photo-band {
  max-width: var(--max);
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  display: grid;
  gap: 1.25rem;
}
.photo-band__copy {
  max-width: 720px;
}
.photo-band__copy h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  margin-bottom: 0.55rem;
}
.photo-band__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1rem;
  align-items: stretch;
}
.photo-card {
  overflow: hidden;
  border-radius: 26px;
  min-height: 280px;
  box-shadow: 0 18px 36px rgba(45, 36, 31, 0.06);
  border: 1px solid rgba(45, 36, 31, 0.08);
  background: var(--linen-deep);
}
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
}
.photo-card--wide {
  min-height: 420px;
}
.photo-band__grid--single {
  grid-template-columns: 1fr;
}
.photo-band__grid--single .photo-card--wide {
  min-height: clamp(280px, 40vw, 480px);
}

@media (max-width: 780px) {
  .photo-band__grid { grid-template-columns: 1fr; }
  .photo-card--wide { min-height: 280px; }
}
.section--tint {
  max-width: none;
  background: var(--linen-deep);
}
.section--tint > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section--tint .section__head,
.section--tint .services-grid,
.section--tint .portal-card { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section__head { margin-bottom: 3rem; }
.section__head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }

.page-hero {
  padding: clamp(72px, 8vw, 110px) var(--gutter) 2rem;
  max-width: var(--max);
  margin: 0 auto;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 0.7rem;
}
.page-hero p {
  max-width: 720px;
  font-size: 1.02rem;
}
.page-card {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.42);
  padding: clamp(1.5rem, 3vw, 2.3rem);
  border-radius: 24px;
}

/* ===== Page hero — full-bleed photo variant (Services) ===== */
.page-hero--photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: none;
  width: 100%;
  margin: 0;
  min-height: clamp(520px, 80vh, 820px);
  display: flex;
  align-items: center;
  padding: clamp(96px, 14vh, 160px) var(--gutter) clamp(64px, 10vh, 110px);
}
.page-hero--photo .page-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}
.page-hero--photo .page-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(45,36,31,0.72) 0%, rgba(45,36,31,0.5) 42%, rgba(45,36,31,0.18) 75%),
    linear-gradient(0deg, rgba(45,36,31,0.35), rgba(45,36,31,0) 45%);
}
.page-hero--photo .page-hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}
.page-hero--photo .eyebrow { color: var(--brass-light); }
.page-hero--photo h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 0.7rem;
  color: #FBF6EF;
}
.page-hero--photo p {
  max-width: 720px;
  font-size: 1.02rem;
  color: rgba(251,246,239,0.9);
}

@media (max-width: 640px) {
  .page-hero--photo { min-height: 560px; align-items: center; }
}

.services-intro {
  margin-bottom: 2.4rem;
}
.services-flow {
  display: grid;
  gap: 0.8rem;
  max-width: 760px;
  margin: 0 auto;
}
.service-flow-item {
  display: block;
  padding: 1rem 0 1.15rem;
  border-bottom: 1px solid rgba(45,36,31,0.12);
}
.service-flow-item:last-child { border-bottom: none; }
.service-flow-item__body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}
.service-flow-item__body p {
  margin: 0;
  max-width: 700px;
  line-height: 1.75;
}

.faq-list {
  display: grid;
  gap: 1rem;
}
.faq-item {
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.42);
}
.faq-item h3 {
  font-size: 1.02rem;
  margin-bottom: 0.35rem;
}
.faq-item p {
  margin-bottom: 0;
  line-height: 1.7;
}

@media (max-width: 780px) {
  .home-grid { grid-template-columns: 1fr; }
  .home-card--wide { grid-column: span 1; }
  .service-flow-item { grid-template-columns: 1fr; }
  .service-flow-item__icon { width: 54px; height: 54px; }
}

/* About */
.about__intro {
  display: grid;
  grid-template-columns: minmax(300px, 360px) 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-bottom: 3.5rem;
  align-items: center;
}
.portrait-frame {
  aspect-ratio: 4/5;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(45, 36, 31, 0.12);
  border-radius: 26px;
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.portrait-placeholder {
  font-size: 0.8rem;
  color: var(--ink-soft);
  padding: 1rem;
  font-family: var(--sans);
}
.about__text p { font-size: 1.05rem; }

.subsection {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
  margin-top: 2rem;
}
.subsection h3 {
  font-size: 1.3rem;
  margin-bottom: 0.9em;
}
.edu-list {
  list-style: none;
  margin: 0; padding: 0;
  color: var(--ink-soft);
}
.edu-list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.edu-list li:last-child { border-bottom: none; }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  background: var(--linen-deep);
  padding: 2.5rem;
}
.service-card__num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--brass);
  font-size: 1rem;
}
.service-card h3 {
  font-size: 1.25rem;
  margin: 0.6em 0 0.6em;
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* Contact */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.contact__line {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  font-size: 1rem;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.contact__line span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brass);
  width: 90px;
  flex: none;
  font-weight: 600;
}
.contact__line a { text-decoration: none; }
.contact__line a:hover { color: var(--plum); }
.contact__note {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  padding: 1rem 1.2rem;
  background: rgba(74,46,60,0.06);
  border-left: 2px solid var(--plum);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.contact__form label {
  display: flex;
  flex-direction: column;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  font-weight: 600;
  gap: 0.5rem;
}
.contact__form .optional {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--ink-soft);
  opacity: 0.7;
}
.contact__form input,
.contact__form textarea {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.5);
  color: var(--ink);
  border-radius: 2px;
  resize: vertical;
}
.contact__form input:focus,
.contact__form textarea:focus {
  outline: 2px solid var(--brass);
  outline-offset: 1px;
}
.contact__form button { align-self: flex-start; margin-top: 0.4rem; }
.form__status { font-size: 0.85rem; color: var(--sage); min-height: 1.2em; }

@media (max-width: 780px) {
  .contact__grid, .about__intro { grid-template-columns: 1fr; }
  .nav__mark { font-size: 0.98rem; }
  .nav__mark small { font-size: 0.6rem; }
}

/* Portal */
.portal-card {
  border: 1px solid var(--line);
  padding: clamp(2rem, 5vw, 3.5rem);
  background: rgba(255,255,255,0.4);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

/* Footer */
.footer {
  padding: 3rem var(--gutter) 4rem;
  border-top: 1px solid var(--line);
  text-align: center;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin: 0 0 1.2rem;
  font-size: 0.82rem;
}
.footer__links a {
  color: var(--plum);
  text-decoration: none;
}
.footer__links a:hover { color: var(--plum-deep); }
.link-divider { color: var(--line); }
.footer p { font-size: 0.82rem; color: var(--ink-soft); }
.footer__note { max-width: 560px; margin: 0.6em auto 0; opacity: 0.8; }
