/* ============================================================
   NAVY HERO BAND — Independent Therapy Solutions
   Enabled by <html data-hero="navy">. Home and interior heroes run on
   the logo navy; lime is the accent inside the band (lime text on navy
   7.0:1, navy text on lime buttons 7.0:1). Works over either theme.
   ============================================================ */

html[data-hero="navy"] .sec-hero,
html[data-hero="navy"] .int-hero,
html[data-hero="navy"] .masthead.on-dark:not(.is-solid) {
  --espresso: #192D5C;
  --espresso-2: #233C75;
  --espresso-3: #2B4785;
  --paper-on-espresso: #F4F5F8;
  --paper-on-espresso-dim: hsl(222 30% 84%);
  --rule-dark: hsl(222 32% 38%);
  --dot-grid-dark: radial-gradient(hsl(0 0% 100% / 0.08) 1px, transparent 1px);
  --accent-h: 82;
  --accent: #90CD1D;
  --accent-on: #192D5C;
  --accent-deep: #90CD1D;
  --accent-hot: #90CD1D;
  --accent-lift: #90CD1D;
}
html[data-hero="navy"] .int-hero { border-top: 0; border-bottom: 0; }

/* undo light-theme hero overrides inside the band */
html[data-hero="navy"] .sec-hero h1,
html[data-hero="navy"] .int-hero h1 { color: #fff; }
html[data-hero="navy"] .sec-hero .sec-hero__dateline,
html[data-hero="navy"] .int-hero .sec-hero__dateline {
  border-color: hsl(0 0% 100% / 0.28);
  background: hsl(0 0% 100% / 0.06);
}
html[data-hero="navy"] .int-hero .crumbs a:hover { color: #fff; }
html[data-theme="light"][data-hero="navy"] .sec-hero svg [stroke^="hsl(240 6% 100%"] { stroke: hsl(0 0% 100% / 0.16); }
html[data-theme="light"][data-hero="navy"] .sec-hero svg [fill^="hsl(240 6% 100%"] { fill: hsl(0 0% 100% / 0.16); }
html[data-hero="navy"] .int-hero__figure .figure__frame { border-color: hsl(0 0% 100% / 0.2); }

/* ---- hero background treatments (data-herobg) ----
   Both drop the dot grid, rings, signal line and dial. */
html[data-herobg] .sec-hero__apparatus,
html[data-herobg] .sec-hero__dialwrap { display: none; }

/* 2 · logo watermark: the hexagon icon, huge and faint, off the right edge */
html[data-herobg="watermark"] .sec-hero__gridfield,
html[data-herobg="watermark"] .int-hero::before {
  background: #fff;
  opacity: 0.07;
  -webkit-mask: url(/assets/brand/favicon.svg) right -6% center / auto 118% no-repeat;
  mask: url(/assets/brand/favicon.svg) right -6% center / auto 118% no-repeat;
}
@media (max-width: 760px) {
  html[data-herobg="watermark"] .sec-hero__gridfield,
  html[data-herobg="watermark"] .int-hero::before {
    opacity: 0.06;
    -webkit-mask-position: 135% 92%;
    mask-position: 135% 92%;
    -webkit-mask-size: 85% auto;
    mask-size: 85% auto;
  }
}

/* 3 · hexagon pattern: honeycomb from the logo shape, fading in from the right */
html[data-herobg="hexes"] .sec-hero__gridfield,
html[data-herobg="hexes"] .int-hero::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 1 54 16v30L28 61 2 46V16z M28 61v36' fill='none' stroke='white' stroke-opacity='.08' stroke-width='1.2'/%3E%3C/svg%3E");
  background-size: 56px 97px;
  -webkit-mask-image: linear-gradient(100deg, transparent 28%, #000 78%);
  mask-image: linear-gradient(100deg, transparent 28%, #000 78%);
}
@media (max-width: 760px) {
  html[data-herobg="hexes"] .sec-hero__gridfield,
  html[data-herobg="hexes"] .int-hero::before {
    -webkit-mask-image: linear-gradient(180deg, transparent 35%, #000 100%);
    mask-image: linear-gradient(180deg, transparent 35%, #000 100%);
  }
}

/* 2+3 · honeycomb with the logo icon: hexes fade in from the right on the hero's
   own background (a solid-to-clear navy veil does the fade); the icon watermark
   rides on the gridfield / ::before layer above it. */
html[data-herobg="combo"] .sec-hero,
html[data-herobg="combo"] .int-hero {
  --hex-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 1 54 16v30L28 61 2 46V16z M28 61v36' fill='none' stroke='white' stroke-opacity='.08' stroke-width='1.2'/%3E%3C/svg%3E");
}
html[data-herobg="combo"] .sec-hero {
  background:
    linear-gradient(100deg, var(--espresso) 26%, rgb(25 45 92 / 0) 74%),
    var(--hex-tile) 0 0 / 56px 97px,
    radial-gradient(120% 90% at 82% 0%, var(--espresso-2), var(--espresso) 60%);
}
html[data-herobg="combo"] .int-hero {
  background:
    linear-gradient(100deg, var(--espresso) 26%, rgb(25 45 92 / 0) 74%),
    var(--hex-tile) 0 0 / 56px 97px,
    radial-gradient(120% 100% at 80% 0%, var(--espresso-2), var(--espresso) 62%);
}
html[data-herobg="combo"] .sec-hero__gridfield,
html[data-herobg="combo"] .int-hero::before {
  background: #fff;
  opacity: 0.08;
  -webkit-mask: url(/assets/brand/favicon.svg) right -4% center / auto 112% no-repeat;
  mask: url(/assets/brand/favicon.svg) right -4% center / auto 112% no-repeat;
}
@media (max-width: 760px) {
  html[data-herobg="combo"] .sec-hero,
  html[data-herobg="combo"] .int-hero {
    background:
      linear-gradient(180deg, var(--espresso) 32%, rgb(25 45 92 / 0) 100%),
      var(--hex-tile) 0 0 / 56px 97px,
      var(--espresso);
  }
  html[data-herobg="combo"] .sec-hero__gridfield,
  html[data-herobg="combo"] .int-hero::before {
    opacity: 0.07;
    -webkit-mask-position: 135% 92%;
    mask-position: 135% 92%;
    -webkit-mask-size: 85% auto;
    mask-size: 85% auto;
  }
}

/* 4 · stock photo: a coach cues a lunge in a gym (assets/img/home-hero-*.webp).
   The photo sits under a navy veil that is near-solid behind the copy and
   clears toward the people on the right; on mobile the copy spans the full
   width, so the veil stays heavy from top to bottom. */
html[data-herobg="photo"] .sec-hero { background: var(--espresso); }
.sec-hero__photo { display: none; }
html[data-herobg="photo"] .sec-hero__photo {
  display: block;
  position: absolute;
  inset: 0;
}
html[data-herobg="photo"] .sec-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 40%;
}
html[data-herobg="photo"] .sec-hero__gridfield { display: none; }
html[data-herobg="photo"] .sec-hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(25 45 92 / 0.55) 0, rgb(25 45 92 / 0) 26%),
    linear-gradient(0deg, rgb(25 45 92 / 0.6) 0, rgb(25 45 92 / 0) 30%),
    linear-gradient(90deg,
      rgb(25 45 92 / 0.96) 0,
      rgb(25 45 92 / 0.9) 34%,
      rgb(25 45 92 / 0.55) 58%,
      rgb(25 45 92 / 0.22) 100%);
}
@media (max-width: 760px) {
  html[data-herobg="photo"] .sec-hero__photo img { object-position: 70% 30%; }
  html[data-herobg="photo"] .sec-hero__photo::after {
    background:
      linear-gradient(180deg,
        rgb(25 45 92 / 0.9) 0,
        rgb(25 45 92 / 0.8) 55%,
        rgb(25 45 92 / 0.9) 100%);
  }
}
