/* ============================================================
   Holistic Health Partners — design system
   Palette from the HHP logo: navy #003352, terracotta #638354,
   warm taupe #92877F, on a warm cream ground.
   ============================================================ */

:root {
  --navy: #003352;
  --navy-deep: #002338;
  --terra: #638354;
  --terra-dark: #4E6942;
  --taupe: #92877F;
  --cream: #FAF7F2;
  --white: #FFFFFF;
  --ink: #22313B;
  --muted: #5E6E79;
  --line: #E7E0D8;
  --ok: #2E7D32;
  --err: #C62828;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 6px 24px rgba(0, 51, 82, 0.08);
  --shadow-lg: 0 14px 44px rgba(0, 51, 82, 0.14);
  --container: 1160px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terra-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
hr { border: 0; border-top: 1px solid var(--line); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--muted); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 800px; }
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--white); }
.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
  margin: 0 0 10px;
}
.center { text-align: center; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 18px; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--terra); color: #fff; box-shadow: 0 4px 14px rgba(99, 131, 84, 0.35); }
.btn-primary:hover { background: var(--terra-dark); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--cream); color: var(--navy); }
.btn-sm { padding: 9px 20px; font-size: 0.92rem; }
.btn-lg { padding: 15px 34px; font-size: 1.05rem; }
.btn:not(.btn-sm):not(.btn-lg) { padding: 12px 26px; font-size: 0.98rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 26px; height: 74px; }
.brand { flex-shrink: 0; }
.brand-mark { width: auto; height: 48px; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav > a, .nav-drop-top {
  padding: 8px 13px;
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 8px;
  white-space: nowrap;
}
.nav-drop-top { display: inline-flex; align-items: center; gap: 5px; }
.main-nav > a:hover, .nav-drop-top:hover { background: rgba(0, 51, 82, 0.06); text-decoration: none; }
.main-nav a.active { color: var(--terra-dark); font-weight: 600; }
.nav-drop { position: relative; }
.nav-drop-top { display: inline-block; }
.caret { font-size: 0.7em; opacity: 0.6; }
.nav-menu {
  position: absolute; top: 100%; left: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: none;
  flex-direction: column;
}
.nav-drop:hover .nav-menu, .nav-drop:focus-within .nav-menu { display: flex; }
.nav-menu a { padding: 9px 14px; border-radius: 8px; color: var(--ink); font-size: 0.93rem; }
.nav-menu a:hover { background: var(--cream); text-decoration: none; }
.nav-menu hr { margin: 6px 8px; }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: 8px; }
.header-actions .btn { white-space: nowrap; }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer; padding: 10px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--navy);
  margin: 5px 0; transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 70%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 380px at 85% 20%, rgba(99, 131, 84, 0.28), transparent 65%),
    radial-gradient(500px 320px at 10% 90%, rgba(146, 135, 127, 0.25), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding-top: 92px; padding-bottom: 92px; max-width: 780px; }
.hero h1 { color: #fff; }
.hero .kicker { color: #B9CDAD; }
.hero-sub { font-size: 1.2rem; color: rgba(255, 255, 255, 0.85); max-width: 620px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 22px; }
.hero-proof { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0; padding: 0; }
.hero-proof li { color: rgba(255, 255, 255, 0.8); font-size: 0.95rem; padding-left: 24px; position: relative; }
.hero-proof li::before { content: "✓"; position: absolute; left: 0; color: var(--terra); font-weight: 700; }

/* page hero (subpages) */
.page-hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 75%); color: #fff; padding: 58px 0; }
.page-hero h1 { color: #fff; margin-bottom: 0.3em; }
.page-hero p { color: rgba(255, 255, 255, 0.85); max-width: 700px; margin: 0; font-size: 1.1rem; }
.page-hero .kicker { color: #B9CDAD; }
.breadcrumb { font-size: 0.85rem; margin: 0 0 18px; color: rgba(255,255,255,0.65); }
.breadcrumb a { color: rgba(255,255,255,0.85); }

/* ---------- cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-lg); }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(99, 131, 84, 0.12);
  color: var(--terra);
  margin-bottom: 18px;
  font-size: 1.5rem;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.97rem; flex: 1; }
.card .card-link { font-weight: 600; font-size: 0.95rem; }
.card.card-cta {
  border-style: dashed; border-color: var(--taupe);
  background: transparent; box-shadow: none;
  align-items: flex-start; justify-content: center;
}

/* image cards (features w/ photos) */
.card-img { padding: 0; overflow: hidden; }
.card-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-img .card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }

/* ---------- checklist ---------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist.cols-2 { grid-template-columns: repeat(2, 1fr); }
.checklist li {
  position: relative; padding-left: 34px; font-weight: 500; color: var(--ink);
}
.checklist li::before {
  content: "✓";
  position: absolute; left: 0; top: -1px;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(99, 131, 84, 0.14); color: var(--terra-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
}

/* ---------- split (text + image) ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 54px; align-items: center; }
.split-img img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }

/* logo variant — logos are small source files: display them modestly,
   centered on a card, and never upscale past their natural size */
.split-logo {
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 48px 36px;
  min-height: 220px;
}
.split-logo img {
  width: auto; height: auto;
  max-width: min(220px, 70%);
  max-height: 130px;
  object-fit: contain;
}
/* small-source logos: never upscale past native resolution */
.split-logo img.logo-sm { max-width: min(150px, 70%); max-height: 110px; }
/* wide horizontal lockups need more width to stay legible */
.split-logo img.logo-wide { max-width: min(340px, 88%); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.15rem; }
.step p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.steps.steps-6 { grid-template-columns: repeat(3, 1fr); }

/* ---------- brand logo grid ---------- */
.logo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.logo-grid a, .logo-grid .logo-tile {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 14px;
  align-items: center; justify-content: center;
  min-height: 150px; box-shadow: var(--shadow);
}
.logo-grid a:hover { box-shadow: var(--shadow-lg); text-decoration: none; }
.logo-grid img { max-height: 84px; max-width: 100%; width: auto; object-fit: contain; }
.logo-grid .logo-caption {
  font-weight: 600; font-size: 1.02rem; color: var(--navy); text-align: center; margin: 0;
}

/* ---------- lab partner cards ---------- */
.lab-card { align-items: flex-start; }
.lab-card .lab-logo {
  height: 58px; width: auto; max-width: 100%; object-fit: contain;
  margin-bottom: 16px;
}
.lab-card .lab-name { font-size: 1.35rem; margin-bottom: 14px; }

/* ---------- product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.product {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow);
}
.product h3 { font-size: 1.05rem; margin-bottom: 6px; }
.product p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* ---------- pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 30px; box-shadow: var(--shadow); display: flex; flex-direction: column;
  position: relative;
}
.price-card.featured { border-color: var(--terra); border-width: 2px; box-shadow: var(--shadow-lg); }
.price-card .tier-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--terra); color: #fff; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 14px; border-radius: 999px;
}
.price-card .price { font-family: var(--font-display); font-size: 2.2rem; color: var(--navy); font-weight: 700; }
.price-card .price small { font-size: 1rem; color: var(--muted); font-weight: 400; font-family: var(--font-body); }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 26px; flex: 1; display: grid; gap: 10px; }
.price-card li { padding-left: 26px; position: relative; font-size: 0.95rem; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--terra-dark); font-weight: 700; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: var(--radius-lg);
  color: #fff;
  padding: 54px 48px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { color: rgba(255, 255, 255, 0.82); margin: 0; max-width: 560px; }
.cta-band .btn { flex-shrink: 0; }

/* ---------- contact strip ---------- */
.contact-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-strip .card { text-align: center; align-items: center; }
.contact-strip .icon { margin: 0 auto 14px; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 4px 24px; margin-bottom: 12px; box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer; font-weight: 600; color: var(--navy); padding: 16px 0;
  list-style: none; position: relative; padding-right: 34px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  color: var(--terra); font-size: 1.4rem; font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 16px; margin: 0; }

/* ---------- prose (long-form pages) ---------- */
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose img { border-radius: var(--radius); margin: 1.4em 0; }

/* ---------- forms ---------- */
.contact-form { display: grid; gap: 16px; }
.contact-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { font-weight: 600; font-size: 0.9rem; color: var(--navy); display: block; margin-bottom: 6px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 2px solid var(--terra); outline-offset: 1px; border-color: transparent;
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.form-status { min-height: 1.4em; font-weight: 600; font-size: 0.95rem; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--muted); }
.consent input { width: auto; margin-top: 3px; }

.logo-invert { filter: brightness(0) invert(1); opacity: 0.92; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.8); margin-top: 72px; }
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px;
  padding: 58px 22px 40px;
}
.footer-col h3 {
  color: #fff; font-family: var(--font-body); font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px;
}
.footer-col a { display: block; color: rgba(255, 255, 255, 0.75); padding: 4px 0; font-size: 0.95rem; }
.footer-col a:hover { color: #fff; }
.footer-about p { font-size: 0.95rem; margin-top: 18px; }
.footer-col address { font-style: normal; font-size: 0.95rem; line-height: 1.9; }
.footer-col address a { display: inline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px; padding-bottom: 26px;
  font-size: 0.88rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: rgba(255, 255, 255, 0.75); margin-left: 18px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps, .steps.steps-6 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav > a, .nav-drop-top { padding: 8px 9px; font-size: 0.9rem; }
}

@media (max-width: 820px) {
  .grid-2, .grid-3, .pricing-grid, .contact-strip { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split-img { order: -1; }
  .split-logo { order: -1; min-height: 0; padding: 28px 24px; }
  .split-logo img { max-width: min(170px, 55%); max-height: 90px; }
  .checklist.cols-2 { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 38px 28px; }

  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute; top: 74px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    flex-direction: column; align-items: stretch;
    padding: 12px 18px 20px;
    max-height: calc(100vh - 74px);
    overflow-y: auto;
  }
  .main-nav.open { display: flex; }
  .nav-drop { display: contents; }
  .nav-menu {
    position: static; display: flex; box-shadow: none; border: 0;
    padding: 0 0 0 16px; min-width: 0;
  }
  .nav-menu hr { display: none; }
  .header-actions .btn { display: none; }
  .hero-inner { padding-top: 64px; padding-bottom: 64px; }
}

@media (max-width: 560px) {
  .grid-4, .steps, .steps.steps-6, .logo-grid, .footer-grid { grid-template-columns: 1fr; }
  .contact-form .row-2 { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
