/* Element Health — brand tokens from Brand Guide v1 */
:root {
  --forest: #1F4C45;
  --sage: #CDD6BB;
  --ocean: #51777A;
  --sky: #AFC6BE;
  --black: #38373C;
  --cream: #EBE5D8;
  --white: #FFFFFF;

  --font-head: "Crimson Pro", Georgia, "Times New Roman", serif;
  --font-body: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --gutter: 24px;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Type: Crimson Pro semibold for headlines only, Poppins for everything else */
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--forest);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.1; }
h2 { font-size: clamp(28px, 3.6vw, 38px); line-height: 1.15; }
h3 { font-size: 24px; line-height: 1.2; }

.lede { font-size: 18px; line-height: 1.6; }
.lede + .lede, p + p { margin-top: 16px; }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid rgba(31, 76, 69, 0.12);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.site-header .brand img { height: 26px; width: auto; }
.site-nav { display: flex; gap: 28px; }
.site-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--forest);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--sky); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--forest); }
.site-nav a:focus-visible,
.brand:focus-visible { outline: 2px solid var(--ocean); outline-offset: 4px; }

/* Sections */
.section { padding: 80px 0; }
.section--cream { background: var(--cream); }
.section--forest { background: var(--forest); color: var(--cream); }
.section--forest h2,
.section--forest h3 { color: var(--cream); }
.section--sage { background: var(--sage); }

.section-head { max-width: 640px; margin-bottom: 40px; }

/* Two-column split: text + photo */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split--reverse .split__media { order: -1; }
.split__text h1,
.split__text h2 { margin-bottom: 24px; }
.split__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Hero */
.hero { padding: 64px 0 72px; }

/* What We Provide */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.card {
  background: var(--cream);
  color: var(--black);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.card h3 { color: var(--forest); margin-bottom: 12px; }
.card__mark {
  width: 40px;
  height: 3px;
  background: var(--ocean);
  border-radius: 2px;
  margin-bottom: 24px;
}

/* The Element Health Approach */
.values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 40px;
  align-items: start;
}
.value { border-top: 2px solid var(--forest); padding-top: 18px; }
.value h3 { margin-bottom: 8px; }

/* Footer */
.site-footer {
  background: var(--forest);
  color: var(--cream);
  padding: 48px 0;
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer .brand img { height: 24px; width: auto; }
.site-footer .site-nav a { color: var(--cream); }
.site-footer .site-nav a:hover { border-bottom-color: var(--sage); }
.site-footer .site-nav a[aria-current="page"] { border-bottom-color: var(--cream); }
.footer__bottom {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(235, 229, 216, 0.16);
  padding-top: 24px;
  margin-top: 8px;
}
.footer__copy { font-size: 14px; color: var(--sky); }
.footer__legal { display: flex; gap: 24px; }
.footer__legal a {
  font-size: 14px;
  color: var(--sky);
  text-decoration: none;
}
.footer__legal a:hover,
.footer__legal a[aria-current="page"] { color: var(--cream); text-decoration: underline; }
.footer__legal a:focus-visible { outline: 2px solid var(--sage); outline-offset: 4px; }

/* Legal pages: Privacy Policy, Terms of Use */
.legal-hero { padding: 56px 0; }
.legal { padding: 56px 0 96px; }
.legal__body { max-width: 760px; }
.legal__body h2 { font-size: 28px; margin: 48px 0 14px; }
.legal__body h2:first-child { margin-top: 0; }
.legal__body h3 { font-size: 21px; margin: 32px 0 10px; }
.legal__body ul { margin: 12px 0 0 22px; }
.legal__body li + li { margin-top: 8px; }
.legal__body ul + p { margin-top: 16px; }
.legal__body strong { font-weight: 600; color: var(--forest); }
.legal__body a { color: var(--forest); text-decoration-color: var(--ocean); text-underline-offset: 2px; }
.legal__body a:hover { color: var(--ocean); }

/* Responsive */
@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr; max-width: 560px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split--reverse .split__media { order: 0; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .section { padding: 56px 0; }
  .hero { padding: 36px 0 48px; }
  .values { grid-template-columns: 1fr; gap: 24px; }
  .site-header .container { height: 64px; }
  .site-header .brand img { height: 20px; }
  .site-nav { gap: 20px; }
  .site-nav a { font-size: 14px; }
  .lede { font-size: 17px; }
}
