/* ===========================================================
   Hands On Wellness — Chiropractic & Hyperbaric Oxygen Therapy
   =========================================================== */

:root {
  --navy: #0B1D3A;
  --navy-soft: #142a4d;
  --bone: #F2EBD9;
  --bone-soft: #eae2cc;
  --orange: #E8643C;
  --teal: #2A9D8F;
  --teal-light: #BFE3DF;

  --font-head: "Clash Display", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container-max: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --radius: 6px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
#philosophy, #modalities, #process, #contact { scroll-margin-top: 90px; }
@media (max-width: 900px) { #philosophy, #modalities, #process, #contact { scroll-margin-top: 80px; } }
body, h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; }

body {
  background: var(--bone);
  color: var(--navy);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--navy);
}

h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 600; }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 600; }
h4 { font-family: var(--font-body); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }

p { max-width: 62ch; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--orange);
  color: var(--bone);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Layout utilities ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.bleed {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}
.section-tag-light { color: var(--teal-light); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-lede { margin-top: 1rem; font-size: 1.1rem; color: var(--navy-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn-primary { background: var(--orange); color: var(--bone); }
.btn-primary:hover { background: #d4552f; transform: translateY(-2px); }
.btn-on-navy { background: var(--orange); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--bone); }
.btn-header {
  background: var(--navy);
  color: var(--bone);
  padding: 0.65rem 1.4rem;
  font-size: 0.85rem;
}
.btn-header:hover { background: var(--teal); }

/* ===========================================================
   Header
   =========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(242, 235, 217, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(11, 29, 58, 0.08);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.wordmark {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--navy);
  white-space: nowrap;
}
.wordmark span { color: var(--orange); margin-left: 0.35em; }
.wordmark-light { color: var(--bone); }
.wordmark-light span { color: var(--teal-light); }

.main-nav {
  display: flex;
  gap: 1.75rem;
  margin-right: auto;
  margin-left: 1rem;
}
.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy-soft);
  position: relative;
}
.main-nav a:hover { color: var(--orange); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================================================
   Bubble motif — decorative only, confined to bleed margins
   =========================================================== */
.bubble-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.bubble {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(191, 227, 223, 0.55);
  background: rgba(191, 227, 223, 0.08);
}
.bubble-field-light .bubble { border-color: rgba(191, 227, 223, 0.4); }

.hero-band .bubble.b1 { width: 90px; height: 90px; left: 2vw; top: 10%; }
.hero-band .bubble.b2 { width: 40px; height: 40px; left: 6vw; top: 65%; }
.hero-band .bubble.b3 { width: 130px; height: 130px; right: 3vw; top: -20%; }
.hero-band .bubble.b4 { width: 55px; height: 55px; right: 8vw; bottom: 8%; }
.hero-band .bubble.b5 { width: 22px; height: 22px; right: 14vw; top: 30%; }

.process-band .bubble.b1 { width: 70px; height: 70px; left: 3vw; top: 15%; }
.process-band .bubble.b2 { width: 30px; height: 30px; left: 9vw; bottom: 12%; }
.process-band .bubble.b3 { width: 100px; height: 100px; right: 2vw; top: 20%; }

.site-footer .bubble.b1 { width: 100px; height: 100px; left: 1vw; top: 8%; }
.site-footer .bubble.b2 { width: 45px; height: 45px; left: 7vw; bottom: 10%; }
.site-footer .bubble.b3 { width: 140px; height: 140px; right: 1vw; bottom: -25%; }
.site-footer .bubble.b4 { width: 26px; height: 26px; right: 1.5vw; top: 40%; }

@media (max-width: 900px) {
  .bubble-field { display: none; }
}

/* ===========================================================
   Hero
   =========================================================== */
.hero { padding-top: clamp(3rem, 8vw, 6rem); }

.hero-inner { max-width: 780px; }

.eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.25rem;
}

.hero-headline {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 700;
  margin-bottom: 1.75rem;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--navy-soft);
  max-width: 56ch;
  margin-bottom: 2.25rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: clamp(3.5rem, 8vw, 6rem);
}

.hero-band {
  background: var(--navy);
  padding: clamp(3rem, 7vw, 5rem) 0;
  position: relative;
  overflow: hidden;
}
.hero-band-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.hero-band-text {
  color: var(--bone);
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

/* ===========================================================
   Philosophy — interrupted grid: image breaks out left
   =========================================================== */
.philosophy {
  padding: clamp(4rem, 9vw, 7rem) 0;
  background: var(--bone);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4rem);
  max-width: 1600px;
  margin: 0 auto;
  padding-right: var(--gutter);
}

.philosophy-image {
  align-self: stretch;
}
.philosophy-image img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.philosophy-copy {
  max-width: 34rem;
  transform: translateY(clamp(0px, 2vw, 24px));
}
.philosophy-copy p { margin-top: 1.1rem; color: var(--navy-soft); }
.philosophy-signoff {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--navy);
  font-size: 1.15rem;
  margin-top: 1.75rem !important;
}

/* ===========================================================
   Modalities — 12-col interrupted grid, vertebral offsets
   =========================================================== */
.modalities {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.modality-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(1.25rem, 2.5vw, 2rem);
  row-gap: clamp(2.5rem, 5vw, 3.5rem);
}

.modality-block {
  position: relative;
  padding: clamp(2rem, 3vw, 2.75rem) clamp(2rem, 3vw, 2.75rem) clamp(2rem, 3vw, 2.75rem) clamp(1.75rem, 2.5vw, 2.25rem);
  border-top: 2px solid var(--navy);
}

.modality-block h3 { padding-right: 6.5rem; margin-bottom: 0.9rem; }
.modality-desc { color: var(--navy-soft); margin-bottom: 1.25rem; }

.modality-points li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 0.5rem;
}
.modality-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.modality-num {
  position: absolute;
  top: clamp(1.5rem, 2.5vw, 2rem);
  right: clamp(1.25rem, 2vw, 2rem);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  color: rgba(11, 29, 58, 0.12);
  line-height: 1;
  z-index: 0;
  pointer-events: none;
}

/* vertebral segmentation: irregular spans + offsets, desktop only */
.mod-1 { grid-column: 1 / span 7; margin-top: 0; background: var(--bone-soft); }
.mod-2 { grid-column: 8 / span 5; margin-top: clamp(2rem, 4vw, 3.5rem); border-top-color: var(--teal); }
.mod-3 { grid-column: 1 / span 5; margin-top: clamp(1rem, 2vw, 1.75rem); border-top-color: var(--orange); }
.mod-4 { grid-column: 6 / span 7; margin-top: clamp(-1rem, -1.5vw, -0.5rem); background: var(--bone-soft); }

/* ===========================================================
   Process — irregular stepped timeline + full-bleed band
   =========================================================== */
.process { padding: clamp(4rem, 9vw, 7rem) 0 0; }

.timeline { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(1.25rem, 2.5vw, 2rem); }

.timeline-step { position: relative; padding-top: 1.5rem; border-top: 2px solid var(--navy); }
.step-1 { grid-column: 1 / span 5; }
.step-2 { grid-column: 7 / span 6; margin-top: clamp(2.5rem, 5vw, 4rem); }

.timeline-end { margin-top: clamp(3rem, 6vw, 4.5rem); padding-bottom: clamp(4rem, 8vw, 6rem); }
.step-4 { grid-column: 4 / span 6; }

.step-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--orange);
  margin-bottom: 0.75rem;
}
.timeline-step h3 { margin-bottom: 0.6rem; }
.timeline-step p { color: var(--navy-soft); }

.process-band {
  background: var(--teal);
  padding: clamp(3rem, 7vw, 5rem) 0;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
}
.process-band-inner { position: relative; z-index: 1; max-width: 640px; }
.step-num-light { color: var(--navy); }
.process-band-inner h3 { color: var(--navy); }
.process-band-inner p { color: var(--navy-soft); max-width: 50ch; }

/* ===========================================================
   Benefits / Science — unequal split + pull-quote in negative space
   =========================================================== */
.benefits { padding: clamp(4rem, 9vw, 7rem) 0; }

.benefits-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

.benefits-copy p { color: var(--navy-soft); margin-top: 1.1rem; }

.benefits-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(11, 29, 58, 0.15);
}
.stat-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--teal);
}
.stat-label { font-size: 0.85rem; color: var(--navy-soft); }

.citation { font-size: 0.78rem; color: rgba(11, 29, 58, 0.55); margin-top: 1.5rem; max-width: 60ch; }

.benefits-visual {
  position: relative;
  margin-right: calc(-1 * var(--gutter));
}
.benefits-image img { border-radius: var(--radius) 0 0 var(--radius); }

.pull-quote {
  margin-top: 2rem;
  margin-left: clamp(1rem, 4vw, 2.5rem);
  max-width: 26rem;
}
.pull-quote p {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.3;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.pull-quote p::before { content: ""; }

/* ===========================================================
   Footer / Contact
   =========================================================== */
.site-footer {
  background: var(--navy);
  color: var(--bone);
  padding: clamp(4rem, 8vw, 6rem) 0 clamp(2rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
}
.footer-inner { position: relative; z-index: 1; }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  border-bottom: 1px solid rgba(242, 235, 217, 0.15);
}

.footer-primary h2 { color: var(--bone); margin-bottom: 1rem; }
.footer-primary p { color: rgba(242, 235, 217, 0.75); margin-bottom: 1.75rem; }

.footer-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 1.5rem;
  align-content: start;
}
.footer-block h4 { color: var(--teal-light); margin-bottom: 0.6rem; }
.footer-block p { color: rgba(242, 235, 217, 0.85); font-size: 0.95rem; }
.footer-block a:hover { color: var(--orange); }

.footer-bottom {
  padding-top: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.footer-bottom p { color: rgba(242, 235, 217, 0.6); font-size: 0.85rem; }

/* ===========================================================
   Responsive — tablet (≤900px) and mobile (≤560px)
   Modalities/process/benefits collapse to single stacked column;
   all decorative offsets/breakouts neutralized to prevent overlap.
   =========================================================== */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }

  .header-inner { flex-wrap: wrap; }
  .btn-header { display: none; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bone);
    padding: 1.25rem var(--gutter) 1.5rem;
    gap: 1.1rem;
    border-bottom: 1px solid rgba(11, 29, 58, 0.08);
  }

  .philosophy-grid {
    grid-template-columns: 1fr;
    padding-right: 0;
  }
  .philosophy-image img { min-height: 320px; border-radius: var(--radius); }
  .philosophy-copy { max-width: none; transform: none; padding: 0 var(--gutter); }

  .modality-grid { grid-template-columns: 1fr; row-gap: 2.5rem; }
  .mod-1, .mod-2, .mod-3, .mod-4 {
    grid-column: 1 / -1;
    margin-top: 0;
  }
  .modality-block { padding: 1.75rem 1.5rem; }
  .modality-block h3 { padding-right: 5rem; }

  .timeline { grid-template-columns: 1fr; row-gap: 2.5rem; }
  .step-1, .step-2, .step-4 { grid-column: 1 / -1; margin-top: 0; }
  .timeline-end { margin-top: 2.5rem; }

  .benefits-grid { grid-template-columns: 1fr; }
  .benefits-visual { margin-right: 0; order: -1; }
  .benefits-image img { border-radius: var(--radius); }
  .pull-quote { margin-left: 0; max-width: none; }

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

@media (max-width: 560px) {
  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .hero-cta-row .btn { justify-content: center; }

  .modality-num { font-size: 1.5rem; top: 1.25rem; right: 1.25rem; }
  .modality-block h3 { padding-right: 3.75rem; }

  .footer-details { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .benefits-stats { grid-template-columns: 1fr; }
}
