/* ==========================================================================
   BODYiQ — homepage styles
   Theme: LIGHT, FOREST GREEN accent #166534 on near-white #F6F8F4
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background-color: #F6F8F4;
  color: #131610;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: #166534;
  text-decoration: none;
}

a:hover {
  color: #15803D;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* -------------------------------------------------------------------------
   MEDICAL CROSS NAVIGATION
   ------------------------------------------------------------------------- */
.cross-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background-color: #F6F8F4;
  border-bottom: 1px solid #E2E8DC;
}

.cross-nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.cross-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cross-mark {
  position: relative;
  width: 24px;
  height: 24px;
  display: inline-block;
}

.cross-mark::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 9px;
  height: 24px;
  background-color: #166534;
  border-radius: 4px;
}

.cross-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 24px;
  height: 9px;
  background-color: #166534;
  border-radius: 4px;
}

.cross-wordmark {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  color: #071A0E;
}

.cross-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.cross-links a {
  color: #131610;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 0;
  position: relative;
}

.cross-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #166534;
  transition: width 0.2s ease;
}

.cross-links a:hover {
  color: #166534;
}

.cross-links a:hover::after {
  width: 100%;
}

.cross-cta {
  display: inline-block;
  background-color: #166534;
  color: #FFFFFF;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}

.cross-cta:hover {
  background-color: #15803D;
  color: #FFFFFF;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background-color: #166534;
  border-radius: 2px;
}

/* -------------------------------------------------------------------------
   PILL HERO
   ------------------------------------------------------------------------- */
.pill-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
  padding: 88px 24px 96px;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #15803D;
  background-color: #BBF7D0;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.pill-hero h1 {
  font-size: 3.1rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #071A0E;
  font-weight: 800;
  margin-bottom: 22px;
}

.hero-lead {
  font-size: 1.15rem;
  color: #3A4234;
  max-width: 560px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  border: 0;
  transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-solid {
  background-color: #166534;
  color: #FFFFFF;
}

.btn-solid:hover {
  background-color: #15803D;
  color: #FFFFFF;
}

.btn-ghost {
  background-color: transparent;
  color: #166534;
  border: 2px solid #166534;
}

.btn-ghost:hover {
  background-color: #BBF7D0;
  color: #071A0E;
}

.hero-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.hero-points li {
  position: relative;
  padding-left: 24px;
  color: #3A4234;
  font-weight: 600;
  font-size: 0.95rem;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #BBF7D0;
  border: 3px solid #166534;
}

.pill-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 380px;
}

.pill-wrap {
  position: relative;
  width: 200px;
  height: 360px;
}

.pill {
  position: relative;
  width: 150px;
  height: 320px;
  margin: 20px auto 0;
  border-radius: 75px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(22, 101, 52, 0.45);
}

.pill-half {
  width: 100%;
  height: 50%;
}

.pill-half-top {
  background-color: #166534;
}

.pill-half-bottom {
  background-color: #BBF7D0;
}

.pill-seam {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 3px;
  background-color: #F6F8F4;
}

.pill-glint {
  position: absolute;
  left: 26px;
  top: 34px;
  width: 20px;
  height: 34px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 10px;
}

.spark {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #15803D;
}

.spark-a { top: 8px; right: 20px; }
.spark-b { top: 170px; right: -6px; width: 9px; height: 9px; background-color: #BBF7D0; border: 2px solid #166534; }
.spark-c { bottom: 18px; left: 12px; width: 8px; height: 8px; background-color: #071A0E; }

/* -------------------------------------------------------------------------
   STATEMENT ROW
   ------------------------------------------------------------------------- */
.statement-row {
  background-color: #071A0E;
  padding: 96px 0;
  text-align: center;
}

.statement-lead {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  color: #FFFFFF;
  max-width: 820px;
  margin: 0 auto 20px;
}

.statement-sub {
  font-size: 1.1rem;
  color: #BBF7D0;
  max-width: 680px;
  margin: 0 auto;
}

/* -------------------------------------------------------------------------
   IMPACT / STATS
   ------------------------------------------------------------------------- */
.impact-section {
  padding: 96px 0;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 48px;
}

.section-kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #15803D;
  margin-bottom: 12px;
}

.section-heading h2 {
  font-size: 2.2rem;
  line-height: 1.15;
  color: #071A0E;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.stat-col {
  background-color: #FFFFFF;
  border: 1px solid #E2E8DC;
  border-radius: 16px;
  padding: 36px 30px;
}

.stat-num {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: #166534;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  display: block;
  font-weight: 700;
  font-size: 1.1rem;
  color: #071A0E;
  margin-bottom: 8px;
}

.stat-note {
  color: #4A5240;
  font-size: 0.95rem;
}

/* -------------------------------------------------------------------------
   PROCESS LIST
   ------------------------------------------------------------------------- */
.process-section {
  padding: 96px 0;
  background-color: #EDF3E8;
}

.process-list {
  list-style: none;
  position: relative;
  max-width: 820px;
}

.process-step {
  display: flex;
  gap: 28px;
  position: relative;
  padding-bottom: 40px;
}

.process-step:last-child {
  padding-bottom: 0;
}

.process-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 29px;
  top: 66px;
  width: 2px;
  height: calc(100% - 66px);
  background-color: #BBF7D0;
}

.process-num {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #166534;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.process-body h3 {
  font-size: 1.25rem;
  color: #071A0E;
  margin-bottom: 8px;
}

.process-body p {
  color: #4A5240;
  max-width: 620px;
}

/* -------------------------------------------------------------------------
   COMPARISON TABLE
   ------------------------------------------------------------------------- */
.compare-section {
  padding: 96px 0;
}

.compare-table {
  border: 1px solid #E2E8DC;
  border-radius: 16px;
  overflow: hidden;
  background-color: #FFFFFF;
}

.compare-head,
.compare-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
}

.compare-head .compare-cell {
  background-color: #166534;
  color: #FFFFFF;
  font-weight: 700;
}

.compare-cell {
  padding: 18px 20px;
  border-bottom: 1px solid #E2E8DC;
  font-size: 0.95rem;
  color: #3A4234;
}

.compare-label-cell {
  font-weight: 700;
  color: #071A0E;
}

.compare-row:last-child .compare-cell {
  border-bottom: 0;
}

.compare-row:nth-child(even) .compare-cell {
  background-color: #F6F8F4;
}

/* -------------------------------------------------------------------------
   SERVICES (horizontal scroll)
   ------------------------------------------------------------------------- */
.services-section {
  padding: 96px 0;
  background-color: #FFFFFF;
}

.services-intro {
  max-width: 640px;
  color: #4A5240;
  font-size: 1.05rem;
  margin-bottom: 40px;
}

.service-scroll {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 8px 24px 28px;
  max-width: 1200px;
  margin: 0 auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.service-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background-color: #F6F8F4;
  border: 1px solid #E2E8DC;
  border-top: 4px solid #166534;
  border-radius: 14px;
  padding: 30px 26px;
  min-height: 210px;
}

.service-index {
  display: block;
  font-weight: 800;
  color: #BBF7D0;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.service-card h3 {
  font-size: 1.25rem;
  color: #071A0E;
  margin-bottom: 10px;
}

.service-card p {
  color: #4A5240;
  font-size: 0.95rem;
}

/* -------------------------------------------------------------------------
   ABOUT
   ------------------------------------------------------------------------- */
.about-section {
  padding: 96px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 44px;
  align-items: start;
}

.about-copy p {
  color: #3A4234;
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.about-values {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-values li {
  background-color: #FFFFFF;
  border: 1px solid #E2E8DC;
  border-radius: 12px;
  padding: 20px 22px;
}

.about-values strong {
  display: block;
  color: #166534;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.about-values span {
  color: #4A5240;
  font-size: 0.95rem;
}

/* -------------------------------------------------------------------------
   CTA / CONTACT
   ------------------------------------------------------------------------- */
.cta-band {
  background-color: #071A0E;
  padding: 96px 0;
}

.cta-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.cta-copy .section-kicker {
  color: #BBF7D0;
}

.cta-copy h2 {
  font-size: 2.2rem;
  color: #FFFFFF;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.cta-copy p {
  color: #D7E7D2;
  margin-bottom: 14px;
}

.cta-contact a {
  color: #BBF7D0;
  font-weight: 700;
}

.contact-form {
  background-color: #FFFFFF;
  border-radius: 16px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form label {
  font-weight: 700;
  color: #071A0E;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid #CBD5C0;
  border-radius: 8px;
  background-color: #F6F8F4;
  color: #131610;
  margin-bottom: 12px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #166534;
  border-color: #166534;
}

.form-status {
  font-size: 0.9rem;
  font-weight: 600;
  color: #166534;
  min-height: 1.2em;
}

/* -------------------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------------------- */
.site-footer {
  background-color: #F6F8F4;
  border-top: 4px solid #166534;
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-brand {
  margin-bottom: 14px;
}

.footer-about p {
  color: #4A5240;
  font-size: 0.95rem;
}

.footer-col h4 {
  font-size: 0.95rem;
  color: #071A0E;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-col a,
.footer-col span {
  display: block;
  color: #3A4234;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.footer-col a:hover {
  color: #166534;
}

.footer-bottom {
  border-top: 1px solid #E2E8DC;
  padding-top: 20px;
}

.footer-bottom p {
  color: #4A5240;
  font-size: 0.9rem;
}

/* -------------------------------------------------------------------------
   SCROLL REVEAL (JS adds .visible; safe without JS via <noscript>)
   ------------------------------------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .pill-hero {
    grid-template-columns: 1fr;
    padding: 56px 24px 64px;
    text-align: left;
  }

  .pill-hero h1 {
    font-size: 2.4rem;
  }

  .pill-hero-visual {
    min-height: 320px;
  }

  .about-grid,
  .cta-split {
    grid-template-columns: 1fr;
  }

  .compare-head,
  .compare-row {
    grid-template-columns: 1.3fr 1fr 1fr;
  }

  .compare-head .compare-cell:nth-child(4),
  .compare-row .compare-cell:nth-child(4) {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .nav-toggle {
    display: flex;
  }

  .cross-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #F6F8F4;
    border-bottom: 1px solid #E2E8DC;
    padding: 16px 24px 20px;
  }

  .cross-links.open {
    display: flex;
  }

  .cross-cta {
    display: none;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .compare-head,
  .compare-row {
    grid-template-columns: 1fr;
  }

  .compare-head .compare-cell {
    border-bottom: 1px solid #FFFFFF;
  }

  .compare-head .compare-cell:nth-child(4),
  .compare-row .compare-cell:nth-child(4) {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .statement-lead {
    font-size: 1.8rem;
  }
}
