/* ==========================================================================
   Five Factor Health Solutions
   Plain CSS. No framework, no build step, no external dependencies.
   ========================================================================== */

:root {
  --ink:        #23282b;   /* headings */
  --body:       #4a5257;   /* body copy */
  --mute:       #626b70;   /* captions, meta - WCAG AA on white and sand */
  --accent:     #3d6b52;   /* deep green */
  --accent-dk:  #2c4f3c;
  --accent-lt:  #eef3ef;
  --sand:       #f7f5f1;   /* warm off-white section bg */
  --line:       #e3ded6;
  --white:      #ffffff;
  --shell:      #2a2829;   /* header + footer - sampled from the original site */
  --shell-line: #423f40;   /* dividers on the dark shell */
  --terracotta: #e0a888;   /* dominant colour in the logo artwork */

  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1120px;
  --narrow: 720px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent-dk); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 0.6em;
}
h1 { font-size: 2.6rem; letter-spacing: -0.01em; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; font-family: var(--sans); font-weight: 600; }
p  { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: 12px 20px; text-decoration: none;
}
.skip:focus { left: 0; }

/* ---------- Layout ---------- */
.wrap   { max-width: var(--wrap);   margin: 0 auto; padding: 0 24px; }
.narrow { max-width: var(--narrow); margin: 0 auto; padding: 0 24px; }
.section     { padding: 76px 0; }
.section--sand { background: var(--sand); }
.section--tight { padding: 48px 0; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--shell-line);
  background: var(--shell);
  position: sticky; top: 0; z-index: 100;
}
.site-header__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { flex: 0 0 auto; }
.logo img { width: 190px; }
.logo__text {
  font-family: var(--serif); font-size: 1.15rem; color: #fff;
  text-decoration: none; line-height: 1.2; display: block;
}
.logo__text span { display: block; font-family: var(--sans); font-size: 0.68rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); margin-top: 3px; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--shell-line); border-radius: 6px;
  padding: 9px 13px; font: inherit; font-size: 0.9rem; color: rgba(255,255,255,.9); cursor: pointer;
}

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; flex-wrap: wrap; }
.nav a {
  text-decoration: none; color: rgba(255,255,255,.82); font-size: 0.93rem;
  padding: 4px 0; border-bottom: 2px solid transparent; white-space: nowrap;
}
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--terracotta); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 14px 30px; border-radius: 3px; text-decoration: none;
  font-size: 0.92rem; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--accent); transition: background .15s, color .15s;
}
.btn:hover { background: var(--accent-dk); border-color: var(--accent-dk); color: #fff; }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent); color: #fff; }
.btn--light { background: #fff; color: var(--accent); border-color: #fff; }
.btn--light:hover { background: var(--accent-dk); color: #fff; border-color: var(--accent-dk); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 520px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--accent-dk) center/cover no-repeat;
  color: #fff; padding: 90px 24px;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,32,26,.42), rgba(20,32,26,.58));
}
.hero__inner { position: relative; z-index: 1; max-width: 760px; }
.hero h1 { color: #fff; font-size: 3rem; margin-bottom: 1em; text-wrap: balance; }
.hero--page { min-height: 320px; padding: 70px 24px; }
.hero--page h1 { font-size: 2.5rem; margin-bottom: .4em; }
.hero__sub { font-size: 1.1rem; color: rgba(255,255,255,.92); max-width: 620px; margin: 0 auto; }

/* ---------- Intro / centered blocks ---------- */
.lead { font-size: 1.28rem; line-height: 1.6; color: var(--ink); font-family: var(--serif); }
.center { text-align: center; }
.eyebrow {
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 14px; font-weight: 600;
}

/* ---------- Factors (alternating rows) ---------- */
.factor {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  align-items: stretch; border-top: 1px solid var(--line);
}
.factor:last-child { border-bottom: 1px solid var(--line); }
.factor__media { background: var(--sand) center/cover no-repeat; min-height: 340px; }
.factor__body { padding: 54px 56px; display: flex; flex-direction: column; justify-content: center; }
.factor__body h3 { margin-bottom: .5em; }
.factor__num {
  font-family: var(--serif); font-size: 0.95rem; color: var(--accent);
  letter-spacing: .1em; margin: 0 0 10px;
}
.factor:nth-child(even) .factor__media { order: 2; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 4px; padding: 32px;
}
.card h3 { margin-bottom: .5em; }
.card__time {
  display: inline-block; margin-top: 14px; font-size: 0.82rem;
  color: var(--accent); background: var(--accent-lt);
  padding: 5px 12px; border-radius: 3px; letter-spacing: .04em;
}

/* ---------- Quote band ---------- */
.quoteband {
  position: relative; background: var(--accent-dk) center/cover no-repeat;
  color: #fff; padding: 110px 24px; text-align: center;
}
.quoteband::after {
  content: ""; position: absolute; inset: 0; background: rgba(20,32,26,.6);
}
.quoteband__inner { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; }
.quoteband blockquote {
  margin: 0 0 22px; font-family: var(--serif); font-size: 1.75rem;
  line-height: 1.42; color: #fff; text-wrap: balance;
}
.quoteband cite { font-style: normal; font-size: 0.9rem; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.8); }

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--white); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: 3px;
  padding: 30px 32px; break-inside: avoid;
}
.testimonial p { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); }
.testimonial cite {
  font-style: normal; font-size: 0.85rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--mute); display: block; margin-top: 14px;
}
.testimonial__note { font-family: var(--sans); font-size: .82rem; color: var(--mute); }

/* ---------- Staff ---------- */
.bio { display: grid; grid-template-columns: 320px 1fr; gap: 52px; align-items: start; }
.bio__photo img { border-radius: 3px; }
.bio__badge { margin-top: 26px; max-width: 150px; }
.bio h2 { margin-bottom: .15em; }
.bio__role { color: var(--accent); font-size: .95rem; margin-bottom: 1.6em; letter-spacing: .03em; }

/* ---------- Partners ---------- */
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.partner {
  border: 1px solid var(--line); border-radius: 4px; padding: 30px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px;
  background: #fff;
}
.partner img { max-height: 74px; width: auto; object-fit: contain; }
.partner h3 { font-size: 1.05rem; margin: 0; }
.partner p { font-size: .88rem; color: var(--mute); margin: 0; }

/* ---------- Definition list style prose ---------- */
.tests { list-style: none; margin: 0; padding: 0; }
.tests li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.tests li:first-child { border-top: 1px solid var(--line); }
.tests strong { color: var(--ink); display: block; margin-bottom: 3px; font-family: var(--sans); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: start; }
.infoblock { margin-bottom: 30px; }
.infoblock h3 { font-size: 1.05rem; font-family: var(--sans); font-weight: 600; margin-bottom: .4em; }
.infoblock p, .infoblock address { margin: 0; font-style: normal; }
.bigphone {
  font-family: var(--serif); font-size: 1.6rem; color: var(--accent);
  text-decoration: none; display: inline-flex; align-items: center;
  min-height: 44px; padding: 4px 0;   /* 44px = minimum comfortable tap target */
}
.bigphone:hover { text-decoration: underline; }

form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field .req { color: var(--accent); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .97rem; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 3px; background: #fff; color: var(--ink);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent);
}
.field small { color: var(--mute); font-size: .82rem; }
.notice {
  background: var(--accent-lt); border-left: 3px solid var(--accent);
  padding: 15px 18px; font-size: .89rem; border-radius: 3px;
}
.notice strong { color: var(--accent-dk); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--shell); color: rgba(255,255,255,.72);
  padding: 60px 0 30px; font-size: .92rem; margin-top: 0;
}
.site-footer a { color: rgba(255,255,255,.9); }
.site-footer h4 { color: #fff; font-size: .76rem; letter-spacing: .16em;
  text-transform: uppercase; margin-bottom: 1em; font-weight: 600; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.site-footer address { font-style: normal; line-height: 1.8; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14); margin-top: 44px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .84rem; color: rgba(255,255,255,.55);
}
.disclaimer { max-width: 620px; }

/* ---------- Utilities ---------- */
.mt0 { margin-top: 0; }
.stack > * + * { margin-top: 1.2em; }
.imgnote {
  background: var(--sand); border: 1px dashed var(--line); color: var(--mute);
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 24px; font-size: .84rem; min-height: 340px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .factor { grid-template-columns: 1fr; }
  .factor:nth-child(even) .factor__media { order: 0; }
  .factor__body { padding: 40px 28px; }
  .factor__media, .imgnote { min-height: 240px; }
  .bio { grid-template-columns: 1fr; gap: 32px; }
  .bio__photo { max-width: 320px; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .grid--3, .partners { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.65rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero { min-height: 420px; padding: 64px 22px; }
  .section { padding: 54px 0; }

  .nav-toggle { display: block; }
  .site-header__inner { flex-wrap: wrap; }
  .nav { display: none; width: 100%; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding-top: 10px; }
  .nav li { border-top: 1px solid var(--shell-line); }
  .nav a { display: block; padding: 13px 2px; border-bottom: 0; }
  .nav a[aria-current="page"] { border-bottom: 0; font-weight: 600; }

  .grid--2, .grid--3, .partners { grid-template-columns: 1fr; }
  .quoteband { padding: 76px 22px; }
  .quoteband blockquote { font-size: 1.35rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .site-header, .nav, .btn, .site-footer { display: none; }
  body { font-size: 12pt; color: #000; }
}

/* Touch targets: WCAG 2.5.5 / Apple HIG both point at ~44px minimum. */
@media (pointer: coarse) {
  .site-footer a, .nav a, a[href^="tel:"] {
    display: inline-block; min-height: 44px; line-height: 44px;
  }
  .site-footer address a { line-height: 1.8; min-height: 44px; }
}
