/* ============================================================
   ABTHOMPSON.LOL — Rehab Clinic Theme stylesheet
   Light towel-white canvas with therapy-navy text and
   rehab-blue accents. Gait-bar narrative, clinic-gym hero,
   therapy-plan care rows, recovery metrics, hydration footer.
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-size: 16px;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  color: #22303E;              /* therapy-navy text */
  background-color: #F4F6F2;   /* towel-white body canvas */
  overflow-x: hidden;
}

.home-page {
  width: 100%;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.15;
  margin: 0 0 16px;
  color: #22303E;              /* therapy-navy */
  font-weight: 700;
  letter-spacing: -0.01em;
}

p { margin: 0 0 16px; color: #4E5D68; }   /* clinic-body text */

a { color: #2E6E8E; text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

/* ---------- Shared inner container ---------- */
.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ======================= GAIT-BAR NAV (.gaitnav) ======================= */
.gaitnav {
  position: sticky;
  top: 0;
  z-index: 60;
  background-color: #2E3B45;   /* gown-grey panel band */
  width: 100%;
}

.gaitnav .nb-top-rail {
  display: block;
  height: 16px;
  width: 100%;
  background-image:
    repeating-linear-gradient(
      90deg,
      #FBFCFA 0px, #FBFCFA 26px,
      #2E3B45 26px, #2E3B45 33px
    );
  background-size: 100% 6px;
  background-repeat: no-repeat;
  background-position: center top;
  position: relative;
}

.gaitnav .nb-top-rail::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 3px;
  width: 46px;
  height: 8px;
  border: 2px solid #D97A5A;   /* energy-coral range arc */
  border-top: none;
  border-radius: 0 0 22px 22px;
}

.gaitnav .nb-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.gaitnav .nb-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #FBFCFA;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 21px;
  line-height: 1;
}

.gaitnav .nb-arc {
  width: 20px;
  height: 12px;
  border: 3px solid #2E6E8E;
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  position: relative;
  display: inline-block;
}

.gaitnav .nb-arc::after {
  content: "";
  position: absolute;
  left: 4px;
  top: -4px;
  width: 1px;
  height: 16px;
  background: #2E6E8E;
  transform: rotate(28deg);
  transform-origin: bottom center;
}

.gaitnav .nb-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gaitnav .nb-links .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #D97A5A;
}

.gaitnav .nb-links a {
  color: #B9C6CE;              /* gown-mist text on dark */
  padding: 4px 4px;
  border-bottom: 2px solid transparent;
}

.gaitnav .nb-links a.active,
.gaitnav .nb-links a:hover {
  color: #FBFCFA;
  border-bottom-color: #2E6E8E;
  text-decoration: none;
}

@media (min-width: 720px) {
  .gaitnav .nb-links a:hover { text-decoration: none; }
}

@media (max-width: 719px) {
  .gaitnav .nb-row { flex-direction: column; align-items: flex-start; }
  .gaitnav .nb-links {
    width: 100%;
    justify-content: flex-start;
    border-top: 1px solid #3E4C57;
    padding-top: 10px;
  }
}

/* ======================= CLINIC-GYM HERO (.clinicgymhero) ======================= */
.clinicgymhero {
  background-color: #F4F6F2;
  padding: 56px 0 64px;
}

.clinicgymhero .hero-grid {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 32px;
  align-items: center;
}

.clinicgymhero .h-eyebrow {
  display: inline-block;
  background: #2E6E8E;
  color: #F4F6F2;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 900px;
  margin-bottom: 18px;
}

.clinicgymhero h1 {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #22303E;
  margin-bottom: 18px;
  line-height: 1.08;
}

.clinicgymhero h1 .hl {
  color: #2E6E8E;
}

.clinicgymhero .h-sub {
  font-size: 17px;
  color: #4E5D68;
  max-width: 560px;
  margin-bottom: 26px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-block;
  padding: 13px 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 6px;
  font-size: 15px;
}

.btn-primary {
  background: #2E6E8E;
  color: #F4F6F2;
  border: 1px solid #2E6E8E;
}

.btn-primary:hover {
  background: #245a74;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: #22303E;
  border: 1px solid #22303E;
}

.btn-outline:hover {
  background: #22303E;
  color: #F4F6F2;
  text-decoration: none;
}

/* ---- CSS Rehab Gym scene (right side) ---- */
.hero-scene {
  background: #2E3B45;      /* gown-grey raised panel */
  border-radius: 10px;
  padding: 26px;
  min-height: 460px;
  color: #FBFCFA;
  position: relative;
  overflow: hidden;
}

.hero-scene .sg-title {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #B9C6CE;
  margin-bottom: 24px;
  border-bottom: 1px solid #3E4C57;
  padding-bottom: 10px;
}

/* resistance band rack */
.sc-bands {
  display: flex;
  gap: 22px;
  margin: 22px 0;
}

.sc-bands .hook {
  width: 4px;
  height: 10px;
  background: #3E4C57;
  margin: 0 auto 4px;
  border-radius: 2px;
}

.sc-bands .band {
  width: 16px;
  height: 56px;
  border-radius: 10px 10px 4px 4px;
  margin: 0 auto;
}

.sc-bands .band.bd-coral { background: #D97A5A; }
.sc-bands .band.bd-blue  { background: #2E6E8E; }
.sc-bands .band.bd-lime  { background: #B8CE5C; }
.sc-bands .band div { display: none; }

/* therapy ball + foam roller */
.sc-stack {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  align-items: center;
  margin: 20px 0;
}

.sc-ball {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #D97A5A;
  margin: 0 auto;
  position: relative;
}

.sc-ball::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid #FBFCFA;
  border-top-color: transparent;
  transform: rotate(20deg);
}

.sc-ring {
  width: 8px;
  height: 8px;
  background: #3E4C57;
  border-radius: 50%;
  border: 2px solid #5d6a74;
  margin: 8px auto 0;
}

.sc-roller {
  width: 100%;
  height: 40px;
  background: #2E6E8E;
  border-radius: 20px;
  position: relative;
}

.sc-roller::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  width: 8px;
  height: 24px;
  background: #FBFCFA;
  opacity: 1;
  border-radius: 4px;
  box-shadow: 16px 0 0 #FBFCFA, 32px 0 0 #FBFCFA, 48px 0 0 #FBFCFA, 64px 0 0 #FBFCFA, 80px 0 0 #FBFCFA;
}

.sc-step {
  margin-top: 20px;
  text-align: center;
}

.sc-step .foot {
  display: inline-block;
  width: 46px;
  height: 26px;
  background: #FBFCFA;
  border-radius: 12px 14px 10px 10px;
  position: relative;
}

.sc-step .foot::after {
  content: "";
  position: absolute;
  left: 10px;
  top: -2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2E3B45;
  box-shadow: 18px 0 0 #2E3B45;
}

/* progress whiteboard */
.sc-board {
  margin: 20px 0;
  background: #FBFCFA;
  border-radius: 6px;
  padding: 12px;
}

.sc-board .grid {
  height: 60px;
  background-image:
    linear-gradient(#B9C6CE 1px, transparent 1px),
    linear-gradient(90deg, #B9C6CE 1px, transparent 1px);
  background-size: 12px 12px;
  position: relative;
  overflow: hidden;
}

.sc-board .pl {
  position: absolute;
  left: 2px;
  bottom: 2px;
  height: 5px;
  width: 100%;
  border-radius: 3px;
  background: #D97A5A;
  clip-path: polygon(0 100%, 0 40%, 22% 40%, 30% 70%, 50% 70%, 60% 20%, 80% 20%, 88% 45%, 100% 45%, 100% 100%);
}

.sc-dots {
  display: flex;
  justify-content: space-around;
  padding-top: 8px;
}

.sc-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2E6E8E;
  position: relative;
}
.sc-dot.d2 { background: #D97A5A; }
.sc-dot.d3 { background: #2E6E8E; }

/* gait belt on hook + ice pack */
.sc-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
  margin-top: 8px;
}

.sc-ice {
  background: #3E4C57;
  border-radius: 6px;
  padding: 6px;
  border: 1px solid #55656f;
}

.sc-ice .wrapband {
  height: 6px;
  background: #B9C6CE;
  border-radius: 3px;
}

@media (max-width: 900px) {
  .clinicgymhero .hero-grid { grid-template-columns: 1fr; }
  .clinicgymhero h1 { font-size: 38px; }
  .hero-scene { min-height: auto; }
}

/* ======================= SECTION KICKER UTILITIES ======================= */
.sec {
  padding: 68px 0;
  background-color: #F4F6F2;    /* body background default */
}

.sec-head {
  max-width: 640px;
  margin: 0 0 34px;
}

.sec-eyebrow {
  display: block;
  color: #2E6E8E;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 10px;
}

.sec-head h2 {
  font-size: 34px;
  color: #2E6E8E;
  margin-bottom: 12px;
}

.sec-head p { color: #4E5D68; }

/* ======================= THERAPY-PLAN ROWS ======================= */
.planrows {
  background-color: #F4F6F2;
  padding: 30px 0 70px;
}

.planrows h2 {
  font-size: 34px;
  color: #2E6E8E;
  margin-bottom: 10px;
  max-width: 640px;
}

.planrows .plan-note {
  max-width: 700px;
  margin-bottom: 26px;
}
.planrows .plan-note p { color: #4E5D68; font-size: 16px; }

.tplan {
  width: 100%;
  background: #FBFCFA;       /* linen card */
  border: 1px solid #3E4C57; /* procedure-line */
  border-radius: 8px;
  display: grid;
  grid-template-columns: 150px 1fr 130px;
  gap: 20px;
  align-items: center;
  padding: 18px;
  margin-bottom: 12px;
}

.tplan .court {
  text-align: center;
}

.tplan .chip {
  width: 96px;
  margin: 0 auto;
}

.tplan .chip .chipnum {
  background: #2E6E8E;
  color: #FBFCFA;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 6px 6px 0 0;
  padding: 8px 4px;
  font-size: 15px;
}

.tplan .chip .tally {
  background: #2E3B45;
  height: 10px;
  border-radius: 0 0 6px 6px;
  background-image: linear-gradient(90deg, #D97A5A 0 8px, transparent 8px 14px, #FBFCFA 14px 18px, #FBFCFA 30px);
  background-size: 32px 10px;
}

.tplan .tform h3 {
  font-size: 19px;
  color: #22303E;
  margin-bottom: 6px;
}

.tplan .tform p {
  color: #4E5D68;
  margin: 0;
  font-size: 15px;
}

.tplan .gauge {
  text-align: center;
}

.tplan .gauge .gprec {
  font-size: 22px;
  font-weight: 800;
  color: #D97A5A;
}

.tplan .gauge .garc {
  width: 74px;
  height: 44px;
  border: 5px solid #3E4C57;
  border-bottom: none;
  border-radius: 60px 60px 0 0;
  margin: 6px auto 0;
  position: relative;
}

.tplan .gauge .garc.g40 { border-top-color: #D97A5A; }
.tplan .gauge .garc.g55 {
  border-top-color: #2E6E8E;
  border-right-color: #D97A5A;
}
.tplan .gauge .garc.g70 {
  border: 5px solid #2E6E8E;
  border-right-color: #D97A5A;
  border-top-color: #D97A5A;
  border-bottom: none;
}
.tplan .gauge .garc.g85 {
  border: 5px solid #2E6E8E;
  border-bottom: none;
  border-right-color: #D97A5A;
}
.tplan .gauge .garc.g95 {
  border: 5px solid #D97A5A;
  border-bottom: none;
}

.tplan .gauge .garc .needle {
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 2px;
  height: 22px;
  background: #22303E;
  transform-origin: bottom center;
}

.g40 .needle { transform: rotate(-30deg); }
.g55 .needle { transform: rotate(-12deg); }
.g70 .needle { transform: rotate(6deg); }
.g85 .needle { transform: rotate(24deg); }
.g95 .needle { transform: rotate(40deg); }

@media (max-width: 760px) {
  .tplan { grid-template-columns: 1fr; text-align: left; }
  .tplan .court, .tplan .gauge { text-align: left; display: flex; }
  .tplan .court .chip, .tplan .gauge .garc { margin: 0; }
  .tplan .gauge { flex-direction: column; align-items: flex-start; }
}

/* ======================= RECOVERY METRIC BAND ======================= */
.metricband {
  background: #1B262E;    /* recovery-deep band */
  padding: 52px 0;
}

.metricband .mgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  text-align: center;
}

.metricband .mcell {
  padding: 8px 0;
  position: relative;
}

.metricband .mcell:not(:last-of-type) { border-right: 1px solid #3E4C57; }

.metricband .mnum {
  font-size: 40px;
  font-weight: 800;
  color: #2E79A0;          /* rehab-blue bright on dark */
  line-height: 1;
  margin-bottom: 6px;
}

.metricband .mlab {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  color: #B9C6CE;
}

@media (max-width: 720px) {
  .metricband .mgrid { grid-template-columns: repeat(2, 1fr); }
  .metricband .mcell:nth-of-type(even) { border-right: 0; }
  .metricband .mnum { font-size: 32px; }
}

/* ======================= STATEMENT BAND ======================= */
.statement {
  background: #2E3B45;    /* gown-grey */
  padding: 62px 0;
}

.statement .stmt-inner {
  max-width: 760px;
  margin: 0 auto;
  padding-left: 26px;
  border-left: 4px solid #D97A5A;   /* energy-coral accent bar */
}

.statement .stmt-inner p {
  color: #FBFCFA;
  font-size: 22px;
  line-height: 1.5;
  font-weight: 500;
  margin-bottom: 14px;
}

.statement .stmt-attrib {
  color: #B9C6CE;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 13px;
  margin: 0;
}

/* ======================= ABOUT WRAPPER STATEMENT ======================= */
.aboutmini {
  background-color: #F4F6F2;
  padding: 40px 0 4px;
}
.aboutmini p { max-width: 860px; font-size: 17px; color: #4E5D68; }

/* ======================= CTA BAND ======================= */
.ctaband {
  background-color: #F4F6F2;
  padding: 60px 0 72px;
  text-align: center;
}

.ctaband h2 {
  font-size: 30px;
  color: #2E6E8E;
  margin-bottom: 10px;
}

.ctaband .ctasub {
  color: #4E5D68;
  max-width: 520px;
  margin: 0 auto 24px;
}

/* ======================= GETTING HERE (address strip) ======================= */
.hereband {
  background: #FBFCFA;
  border-top: 1px solid #3E4C57;
  border-bottom: 1px solid #3E4C57;
  padding: 24px 0;
}

.hereband .here-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.hereband .here-grid h4 {
  color: #2E6E8E;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.hereband .here-grid p { color: #4E5D68; margin: 4px 0; font-size: 14px; }

/* ======================= HYDRATION FOOTER ======================= */
.sitefoot {
  background: #121B21;   /* deeper-recovery */
  padding-top: 0;
  position: relative;
  z-index: 1;
}

.sitefoot .towels {
  display: block;
  height: 16px;
  width: 100%;
  background-image:
    repeating-linear-gradient(
      90deg,
      #FBFCFA 0px, #FBFCFA 18px,
      #B9C6CE 18px, #B9C6CE 22px,
      #D97A5A 22px, #D97A5A 26px
    );
}

.sitefoot .foot-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 24px 34px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.sitefoot .f-arc {
  width: 22px;
  height: 13px;
  border: 3px solid #2E6E8E;
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  margin: 0 auto 6px;
  position: relative;
}

.sitefoot .f-brand {
  color: #FBFCFA;
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 22px;
  margin-bottom: 22px;
  display: block;
}

.sitefoot .f-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-bottom: 20px;
}

.sitefoot .f-links a {
  color: #B9C6CE;
  font-size: 14px;
}

.sitefoot .f-links a:hover { color: #FBFCFA; text-decoration: none; }

.sitefoot .f-delim {
  color: #D97A5A;
  font-weight: 700;
}

.sitefoot .f-band {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
}

.sitefoot .f-stride {
  width: 22px;
  height: 1px;
  background: #3E4C57;
}

.sitefoot .loop-band {
  width: 26px;
  height: 14px;
  border: 3px solid #D97A5A;
  border-radius: 14px;
  transform: rotate(24deg);
}

.sitefoot .f-legal {
  color: #B9C6CE;
  font-size: 13px;
  margin: 0 auto;
  max-width: 760px;
  line-height: 1.7;
}

/* ======================= scroll reveal ======================= */
.fade-up {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: no-preference) {
  .fade-up:not(.visible) { opacity: 0; transform: translateY(22px); }
}

/* watermark safety */
.watermark { visibility: hidden; }
