/* ==========================================================================
   Wareness — design system
   One stylesheet, one component vocabulary, reused by every page.
   Sections: 1 tokens · 2 base · 3 layout · 4 type · 5 buttons · 6 header
   7 hero · 8 sections/bands · 9 grids+cards · 10 media-text · 11 accordion
   12 prose · 13 blog · 14 forms · 15 footer · 16 utilities
   ========================================================================== */

/* 1 ---------------------------------------------------------------- tokens */
:root {
  --cream:        #fcf8f3;
  --cream-deep:   #f3ece1;
  --cream-edge:   #e9e0d2;
  --ink:          #212121;
  --ink-soft:     #55534e;
  --ink-faint:    #8a8782;
  --forest:       #071504;
  --forest-soft:  #14301b;
  --accent:       #e8871e;
  --white:        #ffffff;
  --line:         rgba(33, 33, 33, .14);
  --line-light:   rgba(255, 255, 255, .18);

  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-body:    "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap:         1180px;
  --wrap-narrow:  720px;
  --gutter:       clamp(20px, 5vw, 48px);
  --section-y:    clamp(56px, 9vw, 112px);
  --radius-pill:  999px;
  --radius-soft:  14px;
  --shadow-soft:  0 18px 44px rgba(7, 21, 4, .10);
  --header-h:     72px;
  --ease:         cubic-bezier(.22, .61, .36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video, iframe { max-width: 100%; }
img, svg, video { height: auto; display: block; }

a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.skip-link {
  position: absolute; left: 12px; top: -64px; z-index: 200;
  background: var(--ink); color: var(--white);
  padding: 12px 20px; border-radius: var(--radius-pill);
  font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; }

/* 3 ---------------------------------------------------------------- layout */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--wrap-narrow); }
.wrap--mid { max-width: 920px; }

.stack > * + * { margin-top: 1.1em; }

/* 4 ------------------------------------------------------------------ type */
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 500; line-height: 1.16; margin: 0; letter-spacing: -.01em; }
h4, h5 { line-height: 1.3; }

.title-hero { font-size: clamp(2.25rem, 6.2vw, 4.25rem); line-height: 1.07; font-weight: 500; }
.title-xl   { font-size: clamp(1.95rem, 4.2vw, 3rem); }
.title-lg   { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.title-md   { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }

.eyebrow {
  font-family: var(--font-body);
  font-size: .75rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 .85em;
}
.eyebrow--light { color: rgba(255, 255, 255, .72); }

.lede { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--ink-soft); line-height: 1.62; }

.text-center { text-align: center; }
.measure { max-width: 62ch; }
.measure-center { max-width: 62ch; margin-inline: auto; }

/* 5 --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: 15px 32px;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  background: var(--ink); color: var(--white);
  font-family: var(--font-body); font-size: .8125rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; text-align: center;
  transition: transform .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { background: var(--forest-soft); transform: translateY(-2px); }
.btn__arrow { transition: transform .2s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--cream-deep); color: var(--ink); }

.btn--outline-light { background: transparent; color: var(--white); border-color: var(--line-light); }
.btn--outline-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.btn-row--center { justify-content: center; }

/* 6 ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(252, 248, 243, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.site-header[data-scrolled="true"] { border-bottom-color: var(--line); }

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }
.brand__text { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: inline-block; padding: 9px 16px; border-radius: var(--radius-pill);
  font-size: .9375rem; text-decoration: none; color: var(--ink);
  transition: background-color .18s var(--ease);
}
.nav__link:hover { background: var(--cream-deep); }
.nav__link[aria-current="page"] { background: var(--cream-deep); font-weight: 600; }

/* Current-page highlight without varying the header markup per page: the
   page identifies itself on <body>, so <header>/<footer> stay byte-identical
   site-wide and the nav can be updated everywhere in one pass. */
body[data-page="home"]     .nav__link[data-nav="home"],
body[data-page="about"]    .nav__link[data-nav="about"],
body[data-page="programs"] .nav__link[data-nav="programs"],
body[data-page="blog"]     .nav__link[data-nav="blog"] {
  background: var(--cream-deep);
  font-weight: 600;
}

.nav__cta { margin-left: 10px; padding: 11px 24px; }

.nav__toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  background: transparent; border: 1px solid var(--line); border-radius: 50%;
  cursor: pointer; color: var(--ink);
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  display: block; width: 17px; height: 1.5px; background: currentColor; content: ""; position: relative;
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}
.nav__toggle span::before { position: absolute; top: -5.5px; }
.nav__toggle span::after  { position: absolute; top: 5.5px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(5.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after  { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 28px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav[data-open="true"] { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { padding: 13px 14px; border-radius: 10px; font-size: 1.0625rem; }
  .nav__cta { margin: 14px 0 0; justify-content: center; }
}

/* 7 ------------------------------------------------------------------ hero */
.hero { position: relative; display: grid; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7,21,4,.30) 0%, rgba(7,21,4,.14) 45%, rgba(7,21,4,.42) 100%);
}
.hero--plain::after { display: none; }

.hero__inner { padding-block: clamp(96px, 17vw, 190px); }
.hero__title { max-width: 16ch; }
.hero__lede { margin-top: 1.4rem; max-width: 52ch; }

.hero--image { color: var(--white); text-shadow: 0 1px 24px rgba(7, 21, 4, .34); }
.hero--image .hero__lede { color: rgba(255, 255, 255, .92); }

.hero--center { text-align: center; }
.hero--center .hero__title, .hero--center .hero__lede { margin-inline: auto; }
.hero--center .btn-row { justify-content: center; }

/* page hero (inner pages, no photo) */
.hero--page { background: var(--cream-deep); }
.hero--page .hero__inner { padding-block: clamp(60px, 9vw, 104px); }

/* 8 ------------------------------------------------------- sections / bands */
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(36px, 6vw, 64px); }
.section--flush-top { padding-top: 0; }
.section--cream-deep { background: var(--cream-deep); }
.section--white { background: var(--white); }
.section--forest { background: var(--forest); color: rgba(255, 255, 255, .88); }
.section--forest h1, .section--forest h2, .section--forest h3 { color: var(--white); }

.section__head { margin-bottom: clamp(32px, 5vw, 56px); }
.section__head--center { text-align: center; }
.section__head--center .lede { margin-inline: auto; max-width: 62ch; }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* full-bleed image band */
.band { position: relative; min-height: clamp(220px, 34vw, 420px); overflow: hidden; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* CTA band over a photo */
.cta-band { position: relative; isolation: isolate; color: var(--white); text-align: center; }
.cta-band__media { position: absolute; inset: 0; z-index: -2; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(7, 21, 4, .56); }
.cta-band .wrap { padding-block: clamp(64px, 10vw, 128px); }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255, 255, 255, .9); margin-inline: auto; max-width: 54ch; }

/* 9 ------------------------------------------------------- grids and cards */
.grid { display: grid; gap: clamp(24px, 3.4vw, 44px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.feature > h3 { margin-bottom: .55em; }
.feature > p { margin: 0; color: var(--ink-soft); }

.card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--cream-edge); border-radius: var(--radius-soft);
  overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.card__media { aspect-ratio: 16 / 10; background: var(--cream-deep); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.card__meta { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: .7em; }
.card__title { font-size: 1.25rem; line-height: 1.28; margin-bottom: .6em; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card__excerpt { color: var(--ink-soft); font-size: .9375rem; margin: 0 0 1.2em; }
.card__more { margin-top: auto; font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }

/* program card variant: no image, numbered */
.card--program .card__body { padding-top: 30px; }

/* 10 ------------------------------------------------------------ media+text */
.media-text { display: grid; gap: clamp(28px, 4.5vw, 64px); align-items: center; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.media-text__media img { width: 100%; border-radius: var(--radius-soft); }
.media-text--reverse .media-text__media { order: 2; }
@media (max-width: 760px) { .media-text--reverse .media-text__media { order: 0; } }

/* 11 ------------------------------------------------------------- accordion */
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__item > summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 22px 4px; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); line-height: 1.35;
  transition: color .18s var(--ease);
}
.accordion__item > summary::-webkit-details-marker { display: none; }
.accordion__item > summary:hover { color: var(--forest-soft); }
.accordion__icon { flex-shrink: 0; width: 22px; height: 22px; position: relative; margin-top: 4px; }
.accordion__icon::before, .accordion__icon::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: currentColor;
  transform: translate(-50%, -50%); transition: transform .22s var(--ease), opacity .22s var(--ease);
}
.accordion__icon::before { width: 13px; height: 1.5px; }
.accordion__icon::after  { width: 1.5px; height: 13px; }
.accordion__item[open] .accordion__icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.accordion__panel { padding: 0 4px 26px; max-width: 72ch; color: var(--ink-soft); }
.accordion__panel > :first-child { margin-top: 0; }
.accordion__panel > :last-child { margin-bottom: 0; }

/* 12 ----------------------------------------------------------------- prose */
.prose { font-size: 1.0625rem; line-height: 1.72; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p { margin: 0 0 1.25em; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 2.2em 0 .7em; }
.prose h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin: 1.9em 0 .6em; }
.prose h4 { font-size: 1.125rem; margin: 1.7em 0 .5em; }
.prose ul, .prose ol { margin: 0 0 1.4em; padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--ink-faint); }
.prose a { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; }
/* A linked heading is already prominent; the body-link underline overwhelms it. */
.prose h2 a, .prose h3 a, .prose h4 a, .prose h5 a { font-weight: inherit; text-decoration: none; }
.prose h2 a:hover, .prose h3 a:hover, .prose h4 a:hover, .prose h5 a:hover { text-decoration: underline; }
.prose img { border-radius: var(--radius-soft); margin: 2em 0; }
.prose figure { margin: 2em 0; }
.prose figcaption { font-size: .8125rem; color: var(--ink-faint); margin-top: .8em; text-align: center; }
.prose blockquote {
  margin: 2em 0; padding: 4px 0 4px 26px;
  border-left: 3px solid var(--accent);
  font-family: var(--font-display); font-size: 1.1875rem; line-height: 1.5; color: var(--ink);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.6em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 2em 0; font-size: .9375rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.prose th { background: var(--cream-deep); font-weight: 600; }
.prose strong { font-weight: 700; }

/* responsive video */
.embed { position: relative; aspect-ratio: 16 / 9; margin: 2.2em 0; border-radius: var(--radius-soft); overflow: hidden; background: var(--ink); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 13 ------------------------------------------------------------------ blog */
.post-header { padding-block: clamp(44px, 7vw, 80px) clamp(28px, 4vw, 44px); }
.post-meta { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.post-meta a { text-decoration: none; }
.post-meta a:hover { text-decoration: underline; }
.post-meta__dot { opacity: .5; }
.post-hero { margin-bottom: clamp(32px, 5vw, 56px); }
.post-hero img { width: 100%; border-radius: var(--radius-soft); max-height: 540px; object-fit: cover; }

.post-nav { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; border-top: 1px solid var(--line); margin-top: clamp(40px, 6vw, 72px); padding-top: 28px; font-size: .875rem; }
.post-nav a { text-decoration: none; font-weight: 600; }
.post-nav a:hover { text-decoration: underline; }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-block; padding: 7px 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: transparent;
  font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--ink-soft);
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.chip:hover, .chip[aria-current="page"] { background: var(--ink); color: var(--white); border-color: var(--ink); }

.breadcrumb { font-size: .8125rem; color: var(--ink-faint); margin-bottom: 1.2em; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { opacity: .55; margin-inline: .5em; }

/* 14 ----------------------------------------------------------------- forms */
.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.field { display: grid; gap: 7px; }
.field > label { font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.input, .textarea, .select {
  width: 100%; padding: 13px 16px;
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--cream-edge); border-radius: 10px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--forest-soft);
  box-shadow: 0 0 0 3px rgba(20, 48, 27, .12);
}
.textarea { min-height: 170px; resize: vertical; }
.form__note { font-size: .8125rem; color: var(--ink-faint); }

.contact-grid { display: grid; gap: clamp(32px, 5vw, 64px); grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); align-items: start; }
.contact-detail + .contact-detail { margin-top: 1.6em; }
.contact-detail h3 { font-size: 1.0625rem; margin-bottom: .35em; }
.contact-detail p, .contact-detail a { color: var(--ink-soft); margin: 0; }

/* 15 ---------------------------------------------------------------- footer */
.site-footer { background: var(--forest); color: rgba(255, 255, 255, .7); }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }

.site-footer__top { display: grid; gap: clamp(32px, 5vw, 56px); grid-template-columns: minmax(220px, 1.2fr) repeat(auto-fit, minmax(150px, 1fr)); padding-block: clamp(48px, 7vw, 80px); }
.site-footer__brand img { height: 42px; width: auto; }
.site-footer__tagline { margin: 1.2em 0 0; font-size: .9375rem; max-width: 34ch; color: rgba(255, 255, 255, .62); }

.site-footer__col h2 { font-family: var(--font-body); font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin-bottom: 1.3em; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .75em; font-size: .9375rem; }

.site-footer__bottom {
  border-top: 1px solid var(--line-light);
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  padding-block: 24px; font-size: .8125rem; color: rgba(255, 255, 255, .5);
}
.social { display: flex; gap: 8px; }
.social a {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border: 1px solid var(--line-light); border-radius: 50%;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.social a:hover { background: var(--white); color: var(--forest); border-color: var(--white); }
.social svg { width: 16px; height: 16px; fill: currentColor; }

/* 16 ------------------------------------------------------------- utilities */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
