/* ============================================
   Heart Compass Psychotherapy — stylesheet
   Tokens live at the top — change colors/fonts here.
   ============================================ */

:root {
  /* Colors — derived from the practice logo */
  --forest: #1f4b41;       /* deep green — headings, buttons, dark sections */
  --forest-dark: #163731;
  --sage: #8fae96;         /* soft sage — accents, hovers */
  --sage-light: #e4ede4;   /* pale sage — card borders, dividers */
  --cream: #faf8f3;        /* page background */
  --paper: #ffffff;
  --ink: #2b2b28;          /* body text */
  --ink-soft: #63625c;     /* muted text */
  --on-forest: #f4f1ea;    /* text on dark green background */
  --on-forest-soft: #cfded8;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --wrap: 1160px;
  --radius: 14px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--forest);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 500;
}

h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; margin-top: 1.4em; }

p { margin: 0 0 1em; color: var(--ink); }

a { color: inherit; }

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--forest);
  color: var(--on-forest);
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn-primary {
  background: var(--forest);
  color: var(--on-forest);
}
.btn-primary:hover { background: var(--forest-dark); transform: translateY(-1px); }
.btn-primary:focus-visible { outline: 3px solid var(--sage); outline-offset: 2px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 243, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sage-light);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}
.brand-mark { width: 44px; height: 44px; object-fit: contain; }
.brand-name {
  font-family: var(--font-display);
  color: var(--forest);
  font-size: 1rem;
  line-height: 1.2;
}
.brand-name em { font-style: italic; font-weight: 400; color: var(--sage); }

.brand-subtitle-row {
  padding-bottom: 12px;
  margin-top: -8px;
}
.brand-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--sage);
  font-size: 0.95rem;
  display: block;
}

.main-nav { display: flex; gap: 28px; }
.main-nav a {
  text-decoration: none;
  font-weight: 500;
  color: var(--forest);
  font-size: 0.95rem;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: var(--sage);
  transition: width .2s ease;
}
.main-nav a:hover::after { width: 100%; }

.nav-cta { padding: 10px 22px; font-size: 0.9rem; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  width: 24px; height: 2px;
  background: var(--forest);
  display: block;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 20px;
}
.mobile-menu a {
  padding: 12px 0;
  text-decoration: none;
  color: var(--forest);
  font-weight: 500;
  border-bottom: 1px solid var(--sage-light);
}
.mobile-menu .btn { margin-top: 14px; }

@media (max-width: 860px) {
  .main-nav, .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .site-header.open .mobile-menu { display: flex; }
}

/* ---------- Hero ---------- */
.hero { padding: 64px 0 96px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
  margin-bottom: 14px;
}
.eyebrow-light { color: var(--sage-light); }

.hero-copy .lede {
  font-size: 1.15rem;
  color: var(--forest-dark);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}
.body-text { color: var(--ink-soft); }

.hero-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(31, 75, 65, 0.35);
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-media { order: -1; max-width: 340px; margin: 0 auto; }
}

/* ---------- Why / steps ---------- */
.why { padding: 40px 0 96px; }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-lede { color: var(--ink-soft); font-size: 1.05rem; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
}
.steps li {
  background: var(--paper);
  border: 1px solid var(--sage-light);
  border-radius: var(--radius);
  padding: 28px 22px;
}
.step-index {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.8rem;
  color: var(--sage);
  margin-bottom: 10px;
}
.steps p { color: var(--ink-soft); font-size: 0.96rem; margin: 0; }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- Meet ---------- */
.meet { background: var(--forest); color: var(--on-forest); padding: 88px 0; }
.meet-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.meet-media img {
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -25px rgba(0,0,0,0.45);
}
.meet-copy h2 { color: var(--on-forest); }
.meet-copy h3 { color: var(--sage-light); }
.meet-copy p { color: var(--on-forest-soft); }

@media (max-width: 860px) {
  .meet-grid { grid-template-columns: 1fr; gap: 32px; }
  .meet-media { max-width: 320px; margin: 0 auto; }
}

/* ---------- FAQ ---------- */
.faq { padding: 96px 0; }
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.faq-card {
  background: var(--paper);
  border: 1px solid var(--sage-light);
  border-radius: var(--radius);
  padding: 28px;
}
.faq-card h3 { margin-top: 0; font-size: 1.1rem; }
.faq-card p { color: var(--ink-soft); font-size: 0.96rem; margin: 0; }

@media (max-width: 760px) {
  .faq-grid { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact { padding: 20px 0 120px; }
.contact-form {
  max-width: 620px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--sage-light);
  border-radius: var(--radius);
  padding: 40px;
}
.form-row { margin-bottom: 20px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--forest);
  margin-bottom: 6px;
}
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--sage-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--ink);
  background: var(--cream);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(143, 174, 150, 0.3);
}
textarea { resize: vertical; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-status {
  margin: 16px 0 0;
  font-size: 0.92rem;
  min-height: 1.2em;
}
.form-status[data-state="success"] { color: var(--forest); font-weight: 600; }
.form-status[data-state="error"] { color: #a3402f; font-weight: 600; }

@media (max-width: 560px) {
  .contact-form { padding: 26px; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest-dark);
  color: var(--on-forest-soft);
  padding: 48px 0;
}
.footer-inner { text-align: center; }
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.footer-brand img { width: 40px; opacity: 0.9; }
.footer-brand p {
  font-family: var(--font-display);
  color: var(--on-forest);
  margin: 0;
}
.footer-note { max-width: 420px; margin: 0 auto 18px; font-size: 0.92rem; color: var(--on-forest-soft); }
.footer-contact { margin: 0 0 14px; }
.footer-contact a {
  color: var(--sage-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.92rem;
}
.footer-contact a:hover { color: var(--on-forest); }
.footer-copy { font-size: 0.8rem; opacity: 0.7; margin: 0; color: var(--on-forest-soft); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
