/* ==========================================================================
   WellBeing Psychotherapy — Stylesheet
   Design tokens sourced from the design handoff (README.md / .dc.html)
   ========================================================================== */

:root {
  /* Colors */
  --accent: #8A3F1F;          /* brand terracotta — change here to re-theme the whole site */
  --accent-hover: #5C2A14;
  --text: #2B221A;            /* primary text */
  --text-soft: #5C4B3C;       /* secondary/soft text */
  --page-bg: #F8F4F0;
  --header-bg: #FBF6F1;
  --border: #E5D5C8;
  --cta-band-bg: #EAD9CE;

  /* Type */
  --font-heading: 'Source Serif 4', serif;
  --font-body: 'Inter', sans-serif;

  /* Radius */
  --radius-btn: 10px;
  --radius-pill: 8px;
  --radius-img: 14px;
  --radius-img-sm: 12px;

  /* Shadows */
  --shadow-btn: 0 8px 20px -6px rgba(43, 34, 26, 0.35);
  --shadow-img-sm: 0 12px 28px -10px rgba(43, 34, 26, 0.2);
  --shadow-img-lg: 0 20px 40px -12px rgba(43, 34, 26, 0.25);
  --shadow-img-md: 0 16px 32px -12px rgba(43, 34, 26, 0.22);

  /* Layout */
  --container-max: 1300px;
  --container-pad: 40px;
}

@media (max-width: 860px) {
  :root {
    --container-pad: 20px;
  }
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: underline; }
a:hover { color: var(--accent-hover); }

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

button { font-family: inherit; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* Visually-hidden utility (for accessible labels) */
.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;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  border: none;
  border-radius: var(--radius-btn);
  padding: 16px 34px;
  font-family: var(--font-body);
  letter-spacing: 0.2px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: background 0.15s, transform 0.15s;
  text-decoration: none;
}
.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  color: #fff;
}

.btn-ghost {
  display: inline-block;
  border: 1.5px solid var(--text);
  border-radius: var(--radius-btn);
  padding: 16px 34px;
  font-family: var(--font-body);
  letter-spacing: 0.2px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.btn-ghost:hover {
  background: var(--text);
  color: #fff;
}

.btn-full { width: 100%; text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  cursor: pointer;
}

.logo-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--border);
}

.wordmark {
  font-family: var(--font-heading);
  letter-spacing: 1.5px;
  font-size: 16px;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

/* Desktop nav */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: var(--text);
  background: none;
  border: none;
  padding: 6px 0;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  outline-offset: 4px;
  text-decoration: none;
}
.nav-link.active {
  font-weight: 600;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

.btn-nav {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  display: inline-block;
}
.btn-nav:hover { background: var(--accent-hover); color: #fff; }

/* Hamburger (hidden on desktop) */
.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text);
  flex-shrink: 0;
  font-size: 26px;
  line-height: 1;
}

/* Mobile nav panel */
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 8px 0 4px;
}
.nav-mobile.open { display: flex; }

.nav-mobile-link {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 16px 4px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  text-decoration: none;
  display: block;
}
.nav-mobile-link.active { font-weight: 600; color: var(--accent); }

.btn-nav-mobile {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px 4px;
  margin-top: 12px;
  cursor: pointer;
  width: 100%;
  text-align: center;
  text-decoration: none;
  display: block;
}

@media (max-width: 860px) {
  .nav-desktop, .btn-nav { display: none; }
  .hamburger { display: flex; }
}

/* ---------- Headings / shared text ---------- */
h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; margin: 0; }

.h2 {
  color: var(--accent);
  font-size: 34px;
  text-align: center;
  letter-spacing: -0.3px;
}
.h2.left { text-align: left; }
.h2.lg { font-size: 38px; }
.h2.md { font-size: 32px; }

@media (max-width: 860px) {
  .h2.lg { font-size: 28px; }
  .h2.md { font-size: 24px; }
}

.h3 {
  color: var(--accent);
  font-size: 22px;
  margin: 0 0 12px;
}

.footer-h {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 14px;
  font-size: 19px;
}

.text-soft { color: var(--text-soft); }

/* ---------- Home: Hero ---------- */
.hero { padding: 90px 0 100px; }
@media (max-width: 860px) { .hero { padding: 48px 0 56px; } }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}

.hero-text { min-width: 0; order: 1; }
.hero-image { min-width: 0; order: 2; }
/* To flip hero image to the left, add class "hero-image-left" to <body> */
body.hero-image-left .hero-image { order: 0; }
@media (max-width: 860px) {
  .hero-text { order: 1; }
  .hero-image { order: 2 !important; }
}

.hero-text h1 {
  color: var(--text);
  margin: 0 0 22px;
  font-size: 60px;
  line-height: 1.14;
  letter-spacing: -0.5px;
  font-optical-sizing: auto;
}
@media (max-width: 860px) {
  .hero-text h1 { font-size: 36px; }
}

.hero-text .subhead {
  font-size: 19px;
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 480px;
  margin: 0 0 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-photo {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius-img);
  box-shadow: var(--shadow-img-lg);
  background: var(--border);
}
@media (max-width: 860px) {
  .hero-photo { height: 220px; } /* was 340px — on mobile, a near-full-screen decorative photo below the headline/buttons pushed everything else too far down */
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--cta-band-bg);
  padding: 80px 0;
  text-align: center;
}
@media (max-width: 860px) { .cta-band { padding: 56px 0; } }

.cta-band-inner { max-width: 760px; margin: 0 auto; }
.cta-band h2 { margin-bottom: 26px; }
.cta-band p { font-size: 18px; line-height: 1.75; color: var(--text-soft); margin: 0 0 16px; }
.cta-band p:last-of-type { margin-bottom: 30px; }

/* ---------- Feature cards ---------- */
.features { background: #FFFFFF; padding: 90px 0; }
@media (max-width: 860px) { .features { padding: 56px 0; } }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
@media (max-width: 860px) {
  .features-grid { grid-template-columns: 1fr; gap: 36px; }
}

.feature-photo {
  width: 100%;
  aspect-ratio: 4 / 5; /* portrait box to match portrait-oriented photos — was a fixed 220px-tall letterbox, which forced ~half of any portrait photo to be cropped away no matter the crop position */
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-img-sm);
  box-shadow: var(--shadow-img-sm);
  margin-bottom: 20px;
  background: var(--border);
}

.feature-card p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-soft);
  margin: 0;
}

/* ---------- About ---------- */
.about-section { padding: 100px 0; }
@media (max-width: 860px) { .about-section { padding: 56px 0; } }

.about-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.about-inner h2 { margin-bottom: 22px; }
.about-inner p { font-size: 18px; line-height: 1.75; color: var(--text-soft); margin: 0 0 50px; }
.about-inner p:last-child { margin-bottom: 0; }

/* ---------- Team ---------- */
.team-section {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 100px 40px;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 70px;
  align-items: start;
}
@media (max-width: 860px) {
  .team-section { padding: 56px 20px; grid-template-columns: 1fr; gap: 32px; }
}

.team-photo {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center top; /* anchor crop to the top so a portrait's head/hair isn't cut off — any needed cropping comes from the bottom instead */
  border-radius: var(--radius-img);
  box-shadow: var(--shadow-img-md);
  background: var(--border);
}

.team-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 24px;
  color: var(--accent);
  margin-top: 18px;
}

.team-title { font-size: 15px; color: var(--text-soft); margin-top: 4px; }

.team-bio h2 { margin-bottom: 26px; }
.team-bio p { font-size: 17px; line-height: 1.75; color: var(--text-soft); margin: 0 0 20px; }

/* ---------- FAQ ---------- */
.faq-head { padding: 80px 0 0; text-align: center; }
@media (max-width: 860px) { .faq-head { padding: 48px 0 0; } }

.faq-list-section { padding: 20px 0 100px; }
@media (max-width: 860px) { .faq-list-section { padding: 16px 0 60px; } }

.faq-list { max-width: 840px; margin: 0 auto; }

.faq-item { border-bottom: 1px solid var(--border); }

.faq-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: none;
  border: none;
  padding: 26px 0;
  cursor: pointer;
  text-align: left;
  outline-offset: 4px;
}

.faq-q {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}
@media (max-width: 860px) { .faq-q { font-size: 18px; } }

.faq-icon { font-family: var(--font-body); font-size: 22px; color: var(--accent); flex-shrink: 0; }

.faq-answer {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-soft);
  padding: 0 0 28px;
  max-width: 800px;
  display: none;
}
.faq-item.open .faq-answer { display: block; }

.faq-answer ul { margin: 0 0 16px; padding-left: 20px; }
.faq-answer li { margin-bottom: 6px; }
.faq-answer p { margin: 0 0 16px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-section { padding: 100px 0; text-align: center; }
@media (max-width: 860px) { .contact-section { padding: 56px 0; } }

.contact-inner { max-width: 640px; margin: 0 auto; }
.contact-inner h2 { margin-bottom: 50px; }

.contact-row {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 26px;
  text-align: left;
  text-decoration: none;
  color: var(--text);
}
.contact-row:last-child { margin-bottom: 0; }
.contact-row:hover { color: var(--accent); }
.contact-row .contact-text { font-size: 19px; }

.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 22px; height: 22px; fill: #fff; }

/* ---------- Book Now ---------- */
.book-section { padding: 100px 0; text-align: center; }
@media (max-width: 860px) { .book-section { padding: 56px 0; } }

.book-inner { max-width: 900px; margin: 0 auto; }
.book-inner h2 { margin-bottom: 50px; }

.book-intro { max-width: 560px; margin: 0 auto 50px; }
.book-intro p { font-size: 19px; line-height: 1.7; color: var(--text-soft); margin: 0 0 20px; }
.book-intro p:last-child { margin: 0; }

.book-closing {
  font-style: italic;
  font-size: 18px;
  color: var(--text-soft);
  margin: 26px 0 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--header-bg);
  border-top: 1px solid var(--border);
  padding: 70px 0 40px;
}
@media (max-width: 860px) { .site-footer { padding: 48px 0 30px; } }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 20px; } } /* was 32px — that gap was sized for a 3-column row, not 3 stacked blocks */

.footer-brand { display: flex; align-items: flex-start; gap: 14px; }
.footer-brand .wordmark { font-size: 15px; line-height: 1.3; }
.footer-brand .logo-mark { flex-shrink: 0; }

.footer-col p, .footer-col div { font-size: 15px; line-height: 1.6; color: var(--text-soft); margin: 0 0 6px; }
.footer-col p:last-child, .footer-col div:last-child { margin-bottom: 0; }
.footer-col a { color: var(--accent); }

.footer-bottom {
  max-width: var(--container-max);
  margin: 50px auto 0;
  padding: 20px 40px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-soft);
}
@media (max-width: 860px) { .footer-bottom { padding: 16px 20px 0; margin-top: 28px; } } /* margin was 50px (inherited from desktop) — too much air before the copyright line once stacked */
