/* Hope Wellness site template - component styles.
   Load order on every page: tokens.css (generated from tokens.json), then this file.
   Fonts: the @import below pulls Nunito, Nunito Sans and Kalam from Google Fonts.
   For a fully offline/local host, delete the @import and add @font-face rules
   pointing at self-hosted woff2 files (see README, "Building the site"). */
@import url("https://fonts.googleapis.com/css2?family=Kalam&family=Nunito:wght@700;800&family=Nunito+Sans:wght@400;600;700;800&display=swap");

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--header-height); }
body.hw, .hw {
  margin: 0;
  background: var(--bg-100);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.hw img { max-width: 100%; height: auto; display: block; }
.hw a { color: var(--teal-deep); text-underline-offset: 3px; }
.hw a:hover { color: var(--teal-dark); }
.hw :focus-visible { outline: 3px solid var(--teal-deep); outline-offset: 3px; border-radius: 4px; }
.hw-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface-100); padding: 12px 16px; border-radius: var(--radius-sm); }
.hw-skip:focus { left: 16px; }

/* ---------- Layout ---------- */
.hw-container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--space-6); }
.hw-section { padding: var(--space-9) 0; }
.hw-section--teal { background: var(--surface-teal); }
.hw-section--harbor { background: var(--surface-harbor); }
.hw-section--white { background: var(--surface-100); }
.hw-section--sand { background: var(--surface-sand); }
.hw-section--sand .hw-eyebrow { color: var(--driftwood); }
.hw-section--depth { background: var(--depth); color: var(--on-depth); }
.hw-grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.hw-grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.hw-split { display: flex; flex-wrap: wrap; gap: var(--space-7); align-items: center; }
.hw-split > * { flex: 1 1 380px; min-width: 0; }
.hw-stack { display: flex; flex-direction: column; gap: var(--space-4); }
@media (max-width: 640px) {
  .hw-container { padding: 0 var(--space-4); }
  .hw-section { padding: var(--space-8) 0; }
}

/* ---------- Type ---------- */
.hw h1, .hw h2, .hw h3, .hw h4, .hw-display { font-family: var(--font-display); color: var(--ink); margin: 0; }
.hw-display { font-size: 56px; line-height: 62px; font-weight: 800; letter-spacing: -0.5px; }
.hw h1, .hw-h1 { font-size: 44px; line-height: 52px; font-weight: 800; }
.hw h2, .hw-h2 { font-size: 34px; line-height: 42px; font-weight: 700; }
.hw h3, .hw-h3 { font-size: 24px; line-height: 32px; font-weight: 700; }
.hw h4, .hw-h4 { font-size: 19px; line-height: 26px; font-weight: 700; }
.hw p { margin: 0; }
.hw-lead { font-size: 20px; line-height: 1.6; color: var(--ink-muted); }
.hw-small { font-size: 15px; line-height: 1.55; }
.hw-fine { font-size: 13px; line-height: 1.5; color: var(--ink-muted); }
.hw-eyebrow { font-family: var(--font-sans); font-size: 13px; line-height: 18px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--harbor-deep); margin: 0; }
.hw-meta { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--ink-muted); }
.hw-hand { font-family: var(--font-hand); font-size: 24px; line-height: 1.3; color: var(--teal); }
/* Seafoam highlighter behind a few key words: <mark class="hw-mark"> */
.hw-mark { background: none; color: inherit; box-shadow: inset 0 -0.42em 0 var(--seafoam); padding: 0 .08em; border-radius: 2px; }
.hw-section--depth h1, .hw-section--depth h2, .hw-section--depth h3, .hw-section--depth .hw-display { color: var(--on-depth); }
.hw-section--depth .hw-eyebrow, .hw-section--depth .hw-hand { color: var(--teal-glow); }
.hw-section--depth .hw-lead, .hw-section--depth p { color: var(--on-depth-muted); }
.hw-section--depth a { color: var(--on-depth); }
.hw-section--depth :focus-visible { outline-color: var(--teal-glow); }
@media (max-width: 640px) {
  .hw-display { font-size: 40px; line-height: 46px; }
  .hw h1, .hw-h1 { font-size: 34px; line-height: 42px; }
  .hw h2, .hw-h2 { font-size: 28px; line-height: 36px; }
}

/* ---------- Buttons ---------- */
.hw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: var(--space-3) 26px;
  border-radius: var(--radius-pill); border: 2px solid transparent;
  font-family: var(--font-sans); font-size: 16px; line-height: 20px; font-weight: 800;
  text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.hw a.hw-btn--primary, .hw-btn--primary { background: var(--teal-deep); color: var(--on-teal); }
.hw a.hw-btn--primary:hover, .hw-btn--primary:hover { background: var(--teal-dark); color: var(--on-teal); }
.hw a.hw-btn--secondary, .hw-btn--secondary { background: transparent; color: var(--teal-deep); border-color: var(--teal-deep); }
.hw a.hw-btn--secondary:hover, .hw-btn--secondary:hover { background: var(--surface-teal); color: var(--teal-dark); }
.hw a.hw-btn--ghost, .hw-btn--ghost { background: transparent; color: var(--teal-deep); padding-left: var(--space-2); padding-right: var(--space-2); }
.hw a.hw-btn--ghost:hover, .hw-btn--ghost:hover { color: var(--teal-dark); text-decoration: underline; }
.hw a.hw-btn--light, .hw-btn--light { background: var(--on-depth); color: var(--depth); }
.hw a.hw-btn--light:hover, .hw-btn--light:hover { background: var(--surface-teal); color: var(--depth); }
.hw a.hw-btn--outline-light, .hw-btn--outline-light { background: transparent; color: var(--on-depth); border-color: var(--on-depth-muted); }
.hw a.hw-btn--outline-light:hover, .hw-btn--outline-light:hover { border-color: var(--on-depth); color: var(--on-depth); }
.hw-btn svg { width: 18px; height: 18px; flex: none; }
.hw-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---------- Header + tabs ---------- */
.hw-header { background: var(--surface-100); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.hw-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: var(--header-height); padding-top: var(--space-2); padding-bottom: var(--space-2); }
.hw-brand { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; }
.hw-brand img { width: 52px; height: 52px; border-radius: 50%; }
.hw-brand__name { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--ink); }
.hw-nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1); }
.hw-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-1); }
.hw a.hw-tab, .hw-tab {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px;
  border-radius: var(--radius-pill); font-size: 16px; font-weight: 700; color: var(--ink); text-decoration: none;
}
.hw a.hw-tab:hover, .hw-tab:hover { background: var(--seafoam-100); color: var(--ink); }
.hw a.hw-tab[aria-current="page"], .hw-tab[aria-current="page"] { background: var(--seafoam-100); color: var(--teal-deep); box-shadow: inset 0 -3px 0 var(--teal-deep); }
.hw-header .hw-btn { margin-left: var(--space-2); }

/* ---------- Hero ---------- */
.hw-hero { padding: var(--space-9) 0 var(--space-8); }
.hw-hero__copy { display: flex; flex-direction: column; gap: var(--space-5); }
.hw-hero--page { background: var(--depth); color: var(--on-depth); padding: var(--space-8) 0; }
.hw-hero--page h1 { color: var(--on-depth); }
.hw-hero--page .hw-eyebrow { color: var(--teal-glow); }
.hw-hero--page .hw-lead { color: var(--on-depth-muted); max-width: 46rem; }
.hw-crumbs { font-size: 14px; color: var(--on-depth-muted); }
.hw-hero--page .hw-crumbs a { color: var(--on-depth-muted); }

/* Signature arch frame: rounded top like the logo ring */
.hw-arch { border-radius: var(--radius-arch) var(--radius-arch) var(--radius-lg) var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--harbor); position: relative; }
.hw-arch img { width: 100%; height: 100%; object-fit: cover; }
.hw-arch--ring { outline: 6px solid var(--seafoam); outline-offset: 10px; }
.hw-placeholder { display: flex; align-items: center; justify-content: center; text-align: center; padding: var(--space-5); color: var(--ink); font-weight: 700; font-size: 15px; background: repeating-linear-gradient(135deg, var(--surface-sand) 0 14px, var(--seafoam-100) 14px 28px); }

/* ---------- Shore divider: a soft wave where one section meets the next ----------
   Set the colour of the section ABOVE with hw-shore--from-*, and the section BELOW with hw-shore--to-*. */
.hw-shore { display: block; line-height: 0; background: var(--bg-100); color: var(--surface-sand); }
.hw-shore svg { display: block; width: 100%; height: var(--shore-height); }
.hw-shore__fill { fill: currentColor; }
.hw-shore__foam { fill: none; stroke: var(--seafoam); stroke-width: 3; stroke-linecap: round; }
.hw-shore__dune { fill: var(--sand); opacity: .55; }
.hw-shore--from-shell { background: var(--bg-100); }
.hw-shore--from-white { background: var(--surface-100); }
.hw-shore--from-teal { background: var(--surface-teal); }
.hw-shore--from-sand { background: var(--surface-sand); }
.hw-shore--from-harbor { background: var(--surface-harbor); }
.hw-shore--to-shell { color: var(--bg-100); }
.hw-shore--to-white { color: var(--surface-100); }
.hw-shore--to-teal { color: var(--surface-teal); }
.hw-shore--to-sand { color: var(--surface-sand); }
.hw-shore--to-harbor { color: var(--surface-harbor); }
.hw-shore--to-depth { color: var(--depth); }
@media (max-width: 640px) { .hw-shore svg { height: 40px; } }

/* ---------- Section heading + anchor divider ---------- */
.hw-heading { display: flex; flex-direction: column; gap: var(--space-2); max-width: 44rem; margin-bottom: var(--space-7); }
.hw-heading--center { align-items: center; text-align: center; margin-left: auto; margin-right: auto; }
.hw-heading .hw-lead { margin-top: var(--space-2); }
.hw-divider { display: flex; align-items: center; gap: var(--space-3); color: var(--harbor); width: 100%; max-width: 220px; }
.hw-divider::before, .hw-divider::after { content: ""; flex: 1; height: 2px; background: currentColor; border-radius: 2px; opacity: .7; }
.hw-divider svg { width: 26px; height: 26px; flex: none; }
.hw-section--depth .hw-divider { color: var(--teal-glow); }

/* ---------- Cards ---------- */
.hw-card { background: var(--surface-100); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); box-shadow: var(--shadow-card); transition: box-shadow .15s, transform .15s; }
.hw-section--teal .hw-card, .hw-section--harbor .hw-card { box-shadow: none; }
a.hw-card { text-decoration: none; color: inherit; }
a.hw-card:hover { box-shadow: var(--shadow-raised); transform: translateY(-2px); color: inherit; }
.hw-card__icon { width: 52px; height: 52px; border-radius: 50%; background: var(--seafoam-100); color: var(--teal-deep); display: flex; align-items: center; justify-content: center; }
.hw-card__icon svg { width: 26px; height: 26px; }
.hw-card h3 { font-size: 22px; line-height: 30px; }
.hw-card p { color: var(--ink-muted); font-size: 15px; line-height: 1.55; flex-grow: 1; }
.hw-card__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); padding-top: var(--space-3); border-top: 1px solid var(--line); }
.hw-card__more { font-weight: 800; font-size: 15px; color: var(--teal-deep); }
.hw-chip { display: inline-flex; align-items: center; gap: var(--space-1); padding: 4px 12px; border-radius: var(--radius-pill); background: var(--seafoam-100); color: var(--ink); font-size: 14px; font-weight: 700; }
.hw-chip--sand { background: var(--sand); }

/* ---------- In-page tabs (service details, FAQ groups) ---------- */
.hw-tabs__list { display: flex; flex-wrap: wrap; gap: var(--space-2); border-bottom: 2px solid var(--line); margin-bottom: var(--space-5); }
.hw-tabs__tab { appearance: none; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: 12px 16px; min-height: 48px; font: 700 16px/20px var(--font-sans); color: var(--ink-muted); cursor: pointer; }
.hw-tabs__tab:hover { color: var(--ink); }
.hw-tabs__tab[aria-selected="true"] { color: var(--teal-deep); border-bottom-color: var(--teal-deep); }
.hw-tabs__panel { background: var(--surface-100); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-6); }
.hw-tabs__panel[hidden] { display: none; }

/* ---------- Sub-navigation for topic pages ---------- */
.hw-layout-side { display: flex; flex-wrap: wrap; gap: var(--space-7); align-items: flex-start; }
.hw-layout-side > .hw-subnav { flex: 1 1 220px; max-width: 280px; }
.hw-layout-side > .hw-layout-main { flex: 999 1 560px; min-width: 0; }
.hw-subnav { background: var(--surface-100); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-4); }
.hw-subnav ul { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.hw a.hw-subnav__link, .hw-subnav__link { display: block; padding: 10px 12px; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; }
.hw a.hw-subnav__link:hover, .hw-subnav__link:hover { background: var(--seafoam-100); color: var(--ink); }
.hw a.hw-subnav__link[aria-current="page"], .hw-subnav__link[aria-current="page"] { background: var(--seafoam-100); color: var(--teal-deep); font-weight: 800; }

/* ---------- Prose (articles, service detail pages) ---------- */
.hw-prose { max-width: var(--prose); font-size: 17px; line-height: 1.7; }
.hw-prose > * + * { margin-top: 1em; }
.hw-prose h2 { margin-top: 1.8em; font-size: 30px; line-height: 38px; }
.hw-prose h3 { margin-top: 1.5em; font-size: 22px; line-height: 30px; }
.hw-prose ul, .hw-prose ol { padding-left: 1.3em; }
.hw-prose li + li { margin-top: .4em; }
.hw-prose li::marker { color: var(--teal); }
.hw-prose blockquote { margin-left: 0; padding: var(--space-4) var(--space-5); background: var(--seafoam-100); border-radius: var(--radius-md); font-size: 19px; color: var(--ink); }
.hw-prose figure { margin: 1.6em 0; }
.hw-prose figcaption { font-size: 13px; color: var(--ink-muted); margin-top: var(--space-2); }
.hw-note { display: flex; gap: var(--space-3); padding: var(--space-4) var(--space-5); background: var(--surface-harbor); border-radius: var(--radius-md); font-size: 15px; }
.hw-note svg { width: 22px; height: 22px; flex: none; color: var(--harbor-deep); margin-top: 2px; }

/* ---------- Offerings (corporate) ---------- */
.hw-offer { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.hw-offer__item { display: flex; gap: var(--space-4); align-items: flex-start; }
.hw-offer__item .hw-card__icon { flex: none; }
.hw-offer__item h3 { font-size: 19px; line-height: 26px; margin-bottom: var(--space-1); }
.hw-offer__item p { color: var(--ink-muted); font-size: 15px; line-height: 1.55; }
.hw-panel { background: var(--surface-100); border-radius: var(--radius-lg); padding: var(--space-6); border: 1px solid var(--line); }

/* ---------- Booking embed (MassageBook iframe) ---------- */
.hw-embed { background: var(--surface-100); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-raised); overflow: hidden; }
.hw-embed__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-5); background: var(--surface-teal); border-bottom: 1px solid var(--line); }
.hw-embed__title { font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: var(--space-2); }
.hw-embed__title svg { width: 18px; height: 18px; color: var(--teal-deep); }
.hw-embed iframe { display: block; width: 100%; min-height: var(--embed-min-height); border: 0; background: var(--surface-100); }
.hw-embed__fallback { padding: var(--space-3) var(--space-5); border-top: 1px solid var(--line); }

/* ---------- Testimonial ---------- */
.hw-quote { margin: 0; background: var(--surface-sand); border-radius: var(--radius-lg); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
.hw-quote__mark { width: 34px; height: 34px; color: var(--harbor); }
.hw-quote blockquote { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.5; color: var(--ink); }
.hw-quote figcaption { font-size: 15px; font-weight: 700; color: var(--ink-muted); }

/* ---------- Info panel (hours, location, contact) ---------- */
.hw-info { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.hw-info__item { display: flex; gap: var(--space-3); align-items: flex-start; }
.hw-info__item svg { width: 24px; height: 24px; flex: none; color: var(--teal-deep); margin-top: 2px; }
.hw-info__label { font-weight: 800; font-size: 15px; }
.hw-info__value { color: var(--ink-muted); font-size: 15px; line-height: 1.55; }
.hw-hours { width: 100%; border-collapse: collapse; font-size: 15px; }
.hw-hours th { text-align: left; font-weight: 700; padding: 6px 0; }
.hw-hours td { text-align: right; color: var(--ink-muted); padding: 6px 0; }
.hw-hours tr + tr { border-top: 1px solid var(--line); }
.hw-section--depth .hw-info__item svg { color: var(--teal-glow); }
.hw-section--depth .hw-info__value { color: var(--on-depth-muted); }

/* ---------- Call to action band ---------- */
.hw-cta { background: var(--depth); color: var(--on-depth); border-radius: var(--radius-lg); padding: var(--space-7) var(--space-6); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5); position: relative; overflow: hidden; }
.hw-cta h2 { color: var(--on-depth); }
.hw-cta p { color: var(--on-depth-muted); margin-top: var(--space-2); }
.hw-cta__ring { position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; border: 10px solid var(--seafoam); opacity: .4; pointer-events: none; }
.hw-cta > *:not(.hw-cta__ring) { position: relative; }

/* ---------- Footer ---------- */
.hw-footer { background: var(--depth); color: var(--on-depth-muted); padding: var(--space-8) 0 var(--space-5); font-size: 15px; }
.hw-footer__grid { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.hw-footer h2 { font-family: var(--font-sans); font-size: 13px; line-height: 18px; letter-spacing: 2px; text-transform: uppercase; font-weight: 800; color: var(--teal-glow); margin: 0 0 var(--space-3); }
.hw-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.hw-footer a { color: var(--on-depth-muted); text-decoration: none; }
.hw-footer a:hover { color: var(--on-depth); text-decoration: underline; }
.hw-footer :focus-visible { outline-color: var(--teal-glow); }
.hw-footer__brand { display: flex; align-items: center; gap: var(--space-3); color: var(--on-depth); font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.hw-footer__brand img { width: 48px; height: 48px; border-radius: 50%; background: var(--surface-100); }
.hw-footer__base { margin-top: var(--space-7); padding-top: var(--space-4); border-top: 1px solid rgba(191,217,219,.25); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); font-size: 13px; }

/* Promo band. Promos live in src/promos/ (see scripts/promos.py); .hw-timed wraps each one. */
.hw-promo { background: var(--depth); color: var(--on-depth); padding: var(--space-5) 0; border-bottom: 1px solid rgba(95,196,196,.35); }
.hw-promo__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); }
.hw-promo .hw-eyebrow { color: var(--teal-glow); }
.hw-promo__title { font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1.2; margin: var(--space-1) 0; color: var(--on-depth); }
.hw-promo__detail { margin: 0; color: var(--on-depth-muted); }
.hw-promo :focus-visible { outline-color: var(--teal-glow); }
/* Timed content: upcoming stays hidden until site.js marks it live; expired is hidden. */
.hw-timed[data-hw-starts]:not(.is-live), .hw-timed.is-expired { display: none; }
@media (max-width: 600px) { .hw-promo__title { font-size: 22px; } }
/* Promo with image (src/promo-templates/banner-image.html): image left, text, then button. */
.hw-promo--image .hw-promo__inner { justify-content: flex-start; }
.hw-promo--image .hw-promo__copy { flex: 1 1 280px; }
.hw-promo__media { flex: 0 0 auto; width: 240px; aspect-ratio: 3 / 2; border-radius: var(--radius-lg); overflow: hidden; display: block; }
.hw-promo__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
a.hw-promo__media { transition: transform .15s ease, box-shadow .15s ease; }
a.hw-promo__media:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
@media (max-width: 600px) { .hw-promo__media { width: 100%; } }
