/* ==========================================================================
   EPF Wellness Consulting design system
   Apple-inspired: near-white canvas, huge tight display type, generous
   whitespace, translucent nav, restrained motion. Brand accent is the
   EPF amber, used sparingly against black and white.
   ========================================================================== */

:root {
  --black: #000;
  --ink: #1d1d1f;
  --gray: #86868b;
  --gray-light: #a1a1a6;
  --line: #d2d2d7;
  --line-soft: rgba(0, 0, 0, 0.08);
  --bg: #fff;
  --bg-alt: #f5f5f7;
  --accent: #ffb81c;
  --accent-deep: #d8940a;
  --error: #c5221f;

  --nav-h: 52px;
  --wrap: 980px;
  --wrap-wide: 1200px;
  --radius: 18px;
  --radius-lg: 28px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "Segoe UI", Inter, Roboto, Arial, sans-serif;

  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

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

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

a { color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.06;
}

p { margin: 0; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

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

.wrap--wide { max-width: var(--wrap-wide); }

.section { padding: 110px 0; }
.section--tight { padding: 76px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--black); color: #f5f5f7; }
.section--dark .lede,
.section--dark .eyebrow { color: var(--gray-light); }

/* --------------------------------------------------------------------------
   Type scale
   -------------------------------------------------------------------------- */

.display {
  font-size: clamp(40px, 7.4vw, 80px);
  letter-spacing: -0.022em;
  line-height: 1.04;
}

.headline {
  font-size: clamp(32px, 4.8vw, 56px);
  letter-spacing: -0.02em;
}

.title {
  font-size: clamp(24px, 2.8vw, 32px);
  letter-spacing: -0.014em;
}

.lede {
  font-size: clamp(19px, 2.1vw, 25px);
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: -0.004em;
  color: var(--gray);
}

.body-lg { font-size: 19px; line-height: 1.55; }

.eyebrow {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--accent-deep);
  margin-bottom: 14px;
}

.section--dark .eyebrow,
.hero:not(.hero--light) .eyebrow,
.card--dark .eyebrow { color: var(--accent); }

.measure { max-width: 680px; }
.measure-sm { max-width: 560px; }
.center { text-align: center; }
.center .measure,
.center .measure-sm { margin-left: auto; margin-right: auto; }

.stack > * + * { margin-top: 20px; }
.stack-sm > * + * { margin-top: 12px; }

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease),
    border-color 0.22s var(--ease), transform 0.22s var(--ease);
}

.btn:active { transform: scale(0.97); }

.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #000; }

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

.section--dark .btn--primary,
.hero:not(.hero--light) .btn--primary { background: #fff; color: var(--black); }
.section--dark .btn--primary:hover,
.hero:not(.hero--light) .btn--primary:hover { background: var(--accent); }
.section--dark .btn--ghost,
.hero:not(.hero--light) .btn--ghost { color: #f5f5f7; border-color: rgba(255, 255, 255, 0.32); }
.section--dark .btn--ghost:hover,
.hero:not(.hero--light) .btn--ghost:hover { border-color: #fff; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.center .btn-row { justify-content: center; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 17px;
  font-weight: 500;
  color: var(--accent-deep);
  text-decoration: none;
}
.link::after {
  content: "›";
  font-size: 20px;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform 0.22s var(--ease);
}
.link:hover::after { transform: translate(3px, -1px); }
.section--dark .link,
.hero:not(.hero--light) .link,
.card--dark .link { color: var(--accent); }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
}

.nav__inner {
  max-width: var(--wrap-wide);
  height: 100%;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: flex;
  align-items: baseline;
  gap: 7px;
  text-decoration: none;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav__brand span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gray);
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s var(--ease);
}

.nav__links a:hover { opacity: 1; }
.nav__links a[aria-current="page"] { font-weight: 600; opacity: 1; }

.nav__toggle {
  display: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}

.nav__toggle span {
  position: absolute;
  left: 8px;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav__toggle span:first-child { top: 14px; }
.nav__toggle span:last-child { top: 20px; }

.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

.nav__panel {
  position: fixed;
  inset: var(--nav-h) 0 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  padding: 26px 22px 40px;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease),
    visibility 0.28s;
}

.nav__panel.is-open { opacity: 1; visibility: visible; transform: none; }

.nav__panel ul { list-style: none; margin: 0; padding: 0; }

.nav__panel li + li { border-top: 1px solid var(--line-soft); }

.nav__panel a {
  display: block;
  padding: 16px 2px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  background: var(--black);
  color: #f5f5f7;
  padding: 120px 0 0;
  overflow: hidden;
}

.hero .lede { color: var(--gray-light); max-width: 620px; }

.hero__media {
  margin-top: 64px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }

.hero--page {
  padding: 96px 0 96px;
}

.hero--light {
  background: var(--bg-alt);
  color: var(--ink);
}
.hero--light .lede { color: var(--gray); }

/* --------------------------------------------------------------------------
   Grids & cards
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: 22px;
  margin-top: 56px;
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 40px 34px;
}

.card--dark { background: #1d1d1f; color: #f5f5f7; }
.card--dark p { color: var(--gray-light); }
.card--outline { background: transparent; border: 1px solid var(--line); }
.card--white { background: #fff; }

.card h3 { font-size: 24px; letter-spacing: -0.014em; margin-bottom: 12px; }
.card p { color: var(--gray); font-size: 17px; line-height: 1.5; }
.card .link { margin-top: 18px; }

.card__media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: 26px;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }

/* Numbered step cards */
.steps { counter-reset: step; }

.step { position: relative; }

.step__num {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent-deep);
  margin-bottom: 18px;
}

.card--dark .step__num { color: var(--accent); }

/* Split feature rows */
.split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 64px;
  align-items: center;
}

.split__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media--wide { aspect-ratio: 4 / 3; }
.split--reverse .split__media { order: 2; }

/* Stat strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  text-align: center;
}

.stat__figure {
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat__label {
  margin-top: 12px;
  font-size: 15px;
  color: var(--gray);
  line-height: 1.35;
}

.section--dark .stat__label { color: var(--gray-light); }

/* Definition list rows (credentials, timeline) */
.rows { border-top: 1px solid var(--line); margin-top: 48px; }

.row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.row__label {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray);
  letter-spacing: 0;
}

.row__body h3 { font-size: 21px; letter-spacing: -0.01em; margin-bottom: 8px; }
.row__body p { color: var(--gray); font-size: 17px; }

/* Wide image band, used for the studio shot on the contact page */
.band { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; }
.band img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Course list inside a row body (continuing education) */
.courses { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.courses li {
  position: relative;
  padding-left: 18px;
  color: var(--gray);
  font-size: 17px;
  line-height: 1.45;
}

.courses li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Pill list */
.pills { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 32px 0 0; padding: 0; }

.pills li {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 980px;
  font-size: 15px;
  color: var(--ink);
}

.section--dark .pills li { border-color: rgba(255, 255, 255, 0.24); color: #f5f5f7; }

/* Pull quote */
.quote {
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.18;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.quote__attr {
  display: block;
  margin-top: 26px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--gray);
}

.section--dark .quote__attr { color: var(--gray-light); }

/* --------------------------------------------------------------------------
   Form
   -------------------------------------------------------------------------- */

.form { margin-top: 48px; }

.field-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.field { display: block; margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
  margin-bottom: 8px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 15px 16px;
  font-family: inherit;
  font-size: 17px;
  color: var(--ink);
  background: var(--bg-alt);
  border: 1px solid transparent;
  border-radius: 12px;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.field textarea { min-height: 150px; resize: vertical; }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  background: #fff;
  border-color: var(--ink);
}

.form__note { margin-top: 18px; font-size: 14px; color: var(--gray); }

/* Honeypot: reachable by bots, never by people or screen readers. */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form__status { margin-top: 18px; font-size: 15px; line-height: 1.5; }
.form__status--note { color: var(--gray); }
.form__status--ok { color: var(--ink); font-weight: 600; }
.form__status--error { color: var(--error); }

.field__error { margin-top: 6px; font-size: 14px; color: var(--error); }

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"],
.field select[aria-invalid="true"] { border-color: var(--error); }

.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.contact-list { margin: 36px 0 0; padding: 0; }

.contact-list > div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-list > div:first-child { border-top: 1px solid var(--line); }

.contact-list dt {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
  margin-bottom: 6px;
}

.contact-list dd { margin: 0; font-size: 21px; font-weight: 500; letter-spacing: -0.01em; }
.contact-list dd a { text-decoration: none; }
.contact-list dd a:hover { color: var(--accent-deep); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--bg-alt);
  padding: 56px 0 40px;
  font-size: 14px;
  color: var(--gray);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, 1fr);
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.footer h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
}

.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li + li { margin-top: 10px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
}

.footer__logo { width: 44px; height: 44px; border-radius: 10px; margin-bottom: 16px; }

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

/* Reveal only opts in when JS is running, so content is never hidden
   from users (or crawlers) if the script fails to load. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .section { padding: 76px 0; }
  .section--tight { padding: 56px 0; }
  .grid { margin-top: 40px; }
  .grid--3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split--reverse .split__media { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 36px 22px; }
  .row { grid-template-columns: 1fr; gap: 10px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .grid--2 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero { padding-top: 76px; }
  .hero__media { margin-top: 44px; aspect-ratio: 4 / 3; }
  .card { padding: 32px 26px; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
}
