/* ============================================================
   AquaLayer™ — services.css  (Services hub)
   Deck-aligned: pearl bands, hairline rows, interactive tools,
   dark timeline, closing.
   ============================================================ */

.services-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 110px));
  padding-bottom: clamp(48px, 6vw, 88px);
  overflow: hidden;
}
.services-hero .breadcrumb { margin-bottom: var(--s5); }
.services-hero .eyebrow { color: var(--tide); }
.services-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 0.7rem + 5.2vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  max-width: 14ch;
  margin-top: var(--s3);
  color: var(--pearl);
}
.services-hero .lead {
  margin-top: var(--s5);
  font-size: var(--fs-lead);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 48ch;
  font-weight: 300;
}

/* ---------- LAYER STACK ---------- */
.layerstack-wrap {
  display: grid;
  gap: var(--s6);
  align-items: center;
}
@media (min-width: 920px) {
  .layerstack-wrap {
    grid-template-columns: .9fr 1.1fr;
    gap: clamp(40px, 5vw, 80px);
  }
}
.layerstack {
  position: relative;
  aspect-ratio: 5 / 4;
  width: 100%;
  overflow: hidden;
  background:
    radial-gradient(100% 80% at 50% 0%, rgba(88,164,180,.08), transparent 55%),
    linear-gradient(180deg, var(--abyss-panel), var(--abyss-deep));
  border: 1px solid rgba(0,16,32,.12);
}
.layerstack .hull {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.strata {
  position: absolute;
  border-top: 1px solid rgba(240,240,224,.18);
  display: flex;
  align-items: flex-start;
  padding: 10px 14px;
  overflow: hidden;
}
.strata span {
  font-family: var(--font-tech);
  font-size: .6rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mist);
}
.strata b { color: var(--pearl); font-weight: 500; }
.strata--1 {
  left: 6%; right: 6%; bottom: 9%; height: 26%;
  background: linear-gradient(180deg, rgba(140,154,164,.1), transparent 80%);
}
.strata--2 {
  left: 11%; right: 11%; bottom: 27%; height: 26%;
  background: linear-gradient(180deg, rgba(175,188,196,.14), transparent 80%);
}
.strata--3 {
  left: 16%; right: 16%; bottom: 45%; height: 26%;
  background: linear-gradient(180deg, rgba(88,164,180,.2), transparent 80%);
}
.layerstack__legend { display: grid; gap: var(--s4); }
.ls-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s3);
  align-items: baseline;
  padding-top: var(--s3);
  border-top: 1px solid rgba(0,16,32,.12);
}
.ls-item .n {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  color: var(--tide);
  font-size: 1.4rem;
}
.band-pearl .ls-item h3 { color: var(--abyss); margin-bottom: 4px; }
.band-pearl .ls-item p {
  color: rgba(0,16,32,.72);
  font-size: .95rem;
  font-weight: 500;
}

/* ---------- SERVICE ROWS (no cards) ---------- */
.svc-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(0,16,32,.12);
}
.svc-row {
  display: grid;
  gap: var(--s2);
  padding: clamp(22px, 3vw, 32px) 0;
  border-bottom: 1px solid rgba(0,16,32,.12);
  text-decoration: none;
  color: inherit;
  transition: color .3s var(--ease);
}
@media (min-width: 720px) {
  .svc-row {
    grid-template-columns: 7rem 1fr auto;
    align-items: baseline;
    gap: var(--s4);
  }
}
.svc-row__meta {
  font-family: var(--font-tech);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--tide);
}
.svc-row__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.2rem, 1rem + 1vw, 1.55rem);
  letter-spacing: .02em;
  color: var(--abyss);
  margin: 0 0 6px;
  line-height: 1.2;
}
.svc-row__body {
  margin: 0;
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.5;
  color: #2a343c;
  max-width: 48ch;
}
.svc-row__link {
  font-family: var(--font-tech);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(0,16,32,.5);
  margin-top: 4px;
}
@media (min-width: 720px) {
  .svc-row__link { margin-top: 0; justify-self: end; }
}
.svc-row:hover .svc-row__title { color: var(--tide); }
.svc-row:hover .svc-row__link { color: var(--abyss); }

/* ---------- OXIDATION DIAGNOSTIC (pearl) ---------- */
.diagnostic { display: grid; gap: var(--s5); }
@media (min-width: 860px) {
  .diagnostic {
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 4vw, 64px);
    align-items: start;
  }
}
.diag-options { display: grid; gap: 0; border-top: 1px solid rgba(0,16,32,.12); }
.diag-opt {
  text-align: left;
  border: 0;
  border-bottom: 1px solid rgba(0,16,32,.12);
  border-radius: 0;
  padding: var(--s4) 0;
  background: transparent;
  transition: color .3s var(--ease);
  display: grid;
  gap: 6px;
  min-height: 48px;
  cursor: pointer;
  width: 100%;
  color: inherit;
}
.diag-opt:hover .ttl { color: var(--tide); }
.diag-opt.is-active { background: transparent; }
.diag-opt.is-active .lvl { color: var(--tide); }
.diag-opt.is-active .ttl { color: var(--abyss); }
.diag-opt .lvl {
  font-family: var(--font-tech);
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(0,16,32,.45);
}
.diag-opt .ttl {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: rgba(0,16,32,.55);
}
.diag-opt.is-active .ttl { color: var(--abyss); }
.diag-opt .dsc {
  color: rgba(0,16,32,.65);
  font-size: .92rem;
  font-weight: 500;
}
.diag-panel {
  background: transparent;
  border: 1px solid rgba(0,16,32,.12);
  border-radius: 0;
  padding: clamp(24px, 4vw, 40px);
}
.diag-panel[hidden] { display: none; }
.diag-panel .eyebrow { margin-bottom: var(--s3); color: var(--tide); }
.diag-panel h3 {
  font-size: var(--fs-h3);
  margin-bottom: var(--s3);
  color: var(--abyss);
}
.diag-panel p {
  color: rgba(0,16,32,.72);
  margin-bottom: var(--s4);
  font-weight: 500;
}
.diag-panel .rec {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--abyss);
}

/* ---------- PACKAGES (pkg-deck style on pearl) ---------- */
.hub-pkg {
  display: grid;
  gap: var(--s5);
}
@media (min-width: 900px) {
  .hub-pkg { grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
}
.hub-pkg__item {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  padding: clamp(20px, 3vw, 28px) 0;
  border-top: 1px solid rgba(0,16,32,.12);
  min-width: 0;
}
.hub-pkg__level {
  font-family: var(--font-tech);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--tide);
}
.hub-pkg__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.45rem, 1.1rem + 1.2vw, 1.9rem);
  letter-spacing: .02em;
  color: var(--abyss);
  line-height: 1.15;
  margin: 0;
}
.hub-pkg__body {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.55;
  color: #2a343c;
  margin: 0;
}
.hub-pkg__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: var(--s2);
}
.hub-pkg__list li {
  font-family: var(--font-tech);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(0,16,32,.7);
  padding-left: 14px;
  position: relative;
}
.hub-pkg__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: 5px;
  height: 5px;
  background: var(--tide);
}

/* ---------- PROTECTION TIMELINE (dark) ---------- */
.services-timeline {
  padding-block: var(--section-y);
}
.services-timeline .deck-head { margin-bottom: var(--s6); }
.services-timeline .lead {
  color: var(--ink-soft);
  max-width: 52ch;
  margin: var(--s3) auto 0;
  text-align: center;
}
.timeline { display: grid; gap: var(--s5); }
.tl-stops {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--hair);
}
.tl-stop {
  padding: 14px 8px;
  border: 0;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  min-height: 48px;
  font-family: var(--font-tech);
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.tl-stop.is-active {
  color: var(--pearl);
  border-bottom-color: var(--tide);
  background: transparent;
  box-shadow: none;
}
.tl-vessel {
  position: relative;
  height: 4px;
  border-radius: 0;
  background: rgba(240,240,224,.08);
  border: 0;
  overflow: hidden;
}
.tl-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 22%;
  border-radius: 0;
  background: var(--tide);
  box-shadow: none;
  transition: width .7s var(--ease);
}
.tl-readout {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s2) var(--s3);
}
.tl-readout .fig {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: clamp(3rem, 1.5rem + 7vw, 5rem);
  color: var(--pearl);
  line-height: 1;
  font-weight: 340;
}
.tl-readout .unit {
  font-family: var(--font-tech);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.tl-readout .nm {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--pearl);
  font-size: 1.15rem;
}
.tl-readout .note {
  flex-basis: 100%;
  color: var(--ink-soft);
  font-size: .95rem;
  max-width: 60ch;
}

/* ---------- SURFACE MAP (pearl) ---------- */
.surfacemap {
  display: grid;
  gap: var(--s5);
}
@media (min-width: 900px) {
  .surfacemap {
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(32px, 4vw, 64px);
    align-items: center;
  }
}
.sm-stage {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: 0;
  border: 1px solid rgba(0,16,32,.12);
  overflow: hidden;
  background:
    radial-gradient(100% 100% at 50% 0%, rgba(88,164,180,.06), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.35), rgba(0,16,32,.04));
}
.sm-stage svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.band-pearl .sm-shape {
  fill: rgba(0,16,32,.04);
  stroke: rgba(0,16,32,.35);
  stroke-width: 1.2;
  cursor: pointer;
  transition: fill .4s var(--ease), stroke .4s var(--ease);
}
.band-pearl .sm-shape:hover { fill: rgba(88,164,180,.12); }
.band-pearl .sm-shape.is-active {
  fill: rgba(88,164,180,.18);
  stroke: var(--tide);
}
.sm-zones {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: var(--s4);
  border-bottom: 1px solid rgba(0,16,32,.12);
}
.sm-zone {
  border: 0;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 12px 14px;
  min-height: 44px;
  font-family: var(--font-tech);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(0,16,32,.45);
  background: transparent;
  cursor: pointer;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.sm-zone.is-active {
  border-bottom-color: var(--tide);
  color: var(--abyss);
  background: transparent;
}
.sm-detail[hidden] { display: none; }
.band-pearl .sm-detail h3 {
  font-size: var(--fs-h3);
  margin-bottom: var(--s2);
  color: var(--abyss);
}
.sm-detail .layer-tag {
  font-family: var(--font-tech);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--tide);
  display: block;
  margin-bottom: var(--s3);
}
.band-pearl .sm-detail p {
  color: rgba(0,16,32,.72);
  font-weight: 500;
}
.sm-detail .sm-link {
  display: inline-block;
  margin-top: var(--s3);
  font-family: var(--font-tech);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(0,16,32,.55);
  text-decoration: none;
}
.sm-detail .sm-link:hover { color: var(--abyss); }

.band-pearl .ilink { color: var(--tide); }
.band-pearl .deck-head + .lead,
.band-pearl .deck-head .lead {
  text-align: center;
  max-width: 48ch;
  margin: var(--s3) auto 0;
}
