/* =========================================================================
   MINDFUL WELLNESS PHYSICAL THERAPY — STYLES
   You generally don't need to edit this file to update text — see content.js.
   This file controls colors, fonts, and layout.
   ========================================================================= */

:root {
  /* ---- palette -------------------------------------------------------- */
  --bg:        #EFEAE0; /* warm stone / linen background */
  --bg-alt:    #E4DECE; /* slightly deeper stone for alternating sections */
  --ink:       #1E2A22; /* near-black forest ink — body text */
  --ink-soft:  #47543C; /* softened ink for secondary text */
  --pine:      #2F4A3B; /* primary deep green — header, buttons */
  --pine-dark: #223629; /* pine, darkened for hover states */
  --card:      #FBF8F2; /* card background on light sections */
  --card-pine: #35503F; /* card background on pine sections */
  --gold:      #A8823A; /* signature accent — trail-marker gold */
  --slate:     #52707A; /* secondary accent — NH sky/lake blue-slate */
  --line:      rgba(30, 42, 34, 0.12);

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

  --radius: 4px;
}

* { box-sizing: border-box; }

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

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

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

.resource-video {
  display: inline-block;
  max-width: 400px;
  width: 100%;
  margin: 0.5rem 0 1.75rem;
  text-decoration: none;
}
.resource-video-thumb {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.resource-video-thumb img {
  width: 100%;
  display: block;
}
.resource-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 3.2rem;
  height: 3.2rem;
  background: rgba(30, 42, 34, 0.72);
  color: #F8F6EF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background 0.15s ease;
}
.resource-video:hover .resource-video-play {
  background: var(--pine);
}
.resource-video-title {
  display: block;
  margin-top: 0.6rem;
  font-weight: 600;
  color: var(--pine);
}
.resource-video:hover .resource-video-title {
  color: var(--pine-dark);
}
.publications-heading {
  margin-top: 3rem;
  font-size: 1.2rem;
}
.publications-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.publications-list li {
  padding: 1rem 0 1rem 1.25rem;
  border-top: 1px solid var(--line);
  position: relative;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.55;
}
.publications-list li:last-child { border-bottom: 1px solid var(--line); }
.publications-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.55rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

a { color: inherit; text-decoration: none; }

.section p a,
.section li a {
  color: var(--pine);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.section p a:hover,
.section li a:hover {
  color: var(--pine-dark);
}
.section--pine p a,
.section--pine li a {
  color: #D8C48C;
}
.section--pine p a:hover,
.section--pine li a:hover {
  color: #F8F6EF;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* Hero eyebrow is 1.5x the standard section-label size */
#hero-eyebrow {
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
}
.hero-location {
  font-family: var(--font-body);
  font-size: 0.72rem; /* the eyebrow's original size, before the 1.5x increase */
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 1rem;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.6em 0;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 5.2vw, 4.4rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em 0; }

.section {
  padding: 6rem 1.5rem;
}

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.section--alt { background: var(--bg-alt); }

.section--pine {
  background: var(--pine);
  color: #F1EEE4;
}
.section--pine h2, .section--pine h3 { color: #F8F6EF; }
.section--pine .eyebrow { color: #D8C48C; }

/* ---- signature element: the trail line ------------------------------- */
/* A hand-felt winding line motif that threads the hero and reappears as a
   small waypoint mark beside each section heading — a nod to a NH trail
   map and to a physical-therapy "path back to movement." */
.trail-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}
.trail-mark svg { flex-shrink: 0; }

.hero-trail {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}

/* ---- header ------------------------------------------------------------ */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(239, 234, 224, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

/* Offset anchor-scroll targets so the sticky header doesn't cover them
   (e.g. clicking "Home" in the nav now reveals the full mountain banner). */
section[id],
.site-banner {
  scroll-margin-top: 84px;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--pine);
  white-space: nowrap;
}
.wordmark span { color: var(--gold); }

nav.primary-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 1.7rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0.3rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--pine);
  border-bottom-color: var(--gold);
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.72rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color .15s ease;
}
.btn-primary {
  background: var(--pine);
  color: #F8F6EF;
}
.btn-primary:hover { background: var(--pine-dark); }
.section--pine .btn-primary {
  background: var(--gold);
  color: var(--pine-dark);
  border-color: var(--gold);
}
.section--pine .btn-primary:hover { background: #C0954A; }
.btn-secondary {
  background: transparent;
  color: var(--pine);
  border-color: var(--pine);
}
.btn-secondary:hover { background: rgba(47, 74, 59, 0.06); }
.btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 3px solid var(--slate);
  outline-offset: 2px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ---- top banner ---------------------------------------------------------- */
.site-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- hero --------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 1.5rem 6rem;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 1.6rem;
}
.hero-credential {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--slate);
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- about -------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: start;
}
.about-photo {
  aspect-ratio: 4/5;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}
.about-banner {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  margin-bottom: 2.5rem;
}
.bio-block {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-bottom: 1.75rem;
}
.bio-block.img-right { flex-direction: row-reverse; }
.bio-text-col { flex: 1 1 auto; min-width: 0; }
.bio-image-col { flex: none; width: 286px; }
.bio-section-image {
  width: 286px; /* was 220px — 30% larger */
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: block;
}
.bio-section-heading {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--pine);
}
.bio-block:first-child .bio-section-heading { margin-top: 0; }
.bio-closing-line {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink);
}
.credentials-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.credentials-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
  color: var(--ink-soft);
  padding-left: 1.2rem;
  position: relative;
}
.credentials-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---- services (accordion of categories) ----------------------------- */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 3rem;
}
.service-category {
  background: var(--card-pine);
  border-radius: var(--radius);
  overflow: hidden;
}
.service-category-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  color: #F1EEE4;
  padding: 1.3rem 1.7rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  position: relative;
}
.service-category-header:hover { color: #fff; }
.service-category-icon {
  flex: none;
  width: 28px;
  height: 28px;
  color: var(--gold);
  display: inline-flex;
}
.service-category-icon .icon { width: 100%; height: 100%; }
.service-category-title { flex: 1; }
.service-category-header::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.4rem;
  color: var(--gold);
  line-height: 1;
}
.service-category.is-open .service-category-header::after { content: "\2212"; }
.service-category-panel {
  padding: 0 1.7rem 1.5rem 4.4rem;
}
.service-item-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #D8DBCF;
  font-size: 0.94rem;
  columns: 220px 3;
  column-gap: 1.5rem;
}
.service-item-list li {
  padding-left: 1rem;
  position: relative;
  margin-bottom: 0.5rem;
  break-inside: avoid;
}
.service-item-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---- faq ------------------------------------------------------------- */
.faq-intro {
  max-width: 62ch;
  color: var(--ink-soft);
  margin: 1.25rem 0 2.5rem;
}
.faq-list {
  display: flex;
  flex-direction: column;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item:first-child {
  border-top: 1px solid var(--line);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
  padding: 1.25rem 2rem 1.25rem 0;
  position: relative;
}
.faq-question:hover { color: var(--pine); }
.faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-size: 1.4rem;
  color: var(--gold);
  line-height: 1;
}
.faq-item.is-open .faq-question::after { content: "\2212"; } /* minus sign */
.faq-item.is-open .faq-question { color: var(--pine); }
.faq-answer {
  padding: 0 2rem 1.5rem 0;
  color: var(--ink-soft);
}
.faq-answer p { margin: 0 0 1rem; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-bullet-list {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}
.faq-bullet-list li { margin-bottom: 0.4rem; }

/* ---- events ------------------------------------------------------------ */
.events-text {
  max-width: 62ch;
  color: var(--ink-soft);
  margin: 1.25rem 0 1.75rem;
  font-size: 1.05rem;
}
.events-flyer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--pine);
  color: #fff;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.events-flyer-link:hover { background: var(--pine-dark); }
.events-flyer-link::after {
  content: "\2197"; /* north-east arrow */
  font-size: 1rem;
}

/* ---- contact ------------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.contact-details {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}
.contact-details li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}
.contact-details .label {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.2rem;
}

form.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--gold);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--slate);
  outline-offset: 1px;
}
.form-note {
  font-size: 0.82rem;
  color: #D8DBCF;
  margin-top: -0.3rem;
}

/* ---- footer -------------------------------------------------------------- */
footer {
  background: var(--pine-dark);
  color: #D8DBCF;
  padding: 3rem 1.5rem 2rem;
  text-align: center;
  font-size: 0.88rem;
}
footer .wordmark { color: #F8F6EF; margin-bottom: 0.5rem; }
footer .wordmark span { color: var(--gold); }

/* ---- responsive ----------------------------------------------------------- */
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 240px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  header.nav-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 1.2rem 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--line);
  }
  header.nav-open .nav-cta {
    display: block;
    padding: 0 1.5rem 1.2rem;
  }
  .section { padding: 4rem 1.2rem; }
  .bio-block,
  .bio-block.img-right {
    flex-direction: column;
    align-items: stretch;
  }
  .bio-section-image {
    width: 100%;
    max-width: 100%;
  }
  .bio-image-col { width: 100%; }
  .about-banner { max-height: 240px; }
  .service-category-panel { padding-left: 1.7rem; }
  .service-item-list { columns: 1; }
}
