/* ═══════════════════════════════════════════════
   TRITON Treatments — Page-Specific Styles
   Uses global.css components: .s-pad, .s-inner, .section-ey,
   .section-h, .section-body, .g-3, .g-4, .btn, .card, .card-sm,
   .faq-*, .icon-box, .icon-circle, .pill, .badge, .tag,
   .hero-*, .bq, .pq-big, .acc, .breadcrumb, .footer,
   .list-dot, .list-num, .bg-hex, .bg-hex-sm
   ═══════════════════════════════════════════════ */


/* ════════════════════════════════════════════════
   HERO — Category page (no video, gradient bg)
   ════════════════════════════════════════════════ */
.treat-hero {
  height: auto;
  min-height: 70vh;
  align-items: flex-end;
  background:
    radial-gradient(ellipse 80% 70% at 20% 80%, rgba(0, 100, 102, .35), transparent 70%),
    radial-gradient(ellipse 60% 50% at 85% 30%, rgba(3, 47, 79, .6), transparent 60%),
    var(--bp);
}

.treat-hero .hero-ct {
  padding: 18vh 5vw 8vh;
}

.treat-hero .hero-t {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  max-width: 20ch;
}

.treat-hero .breadcrumb {
  position: absolute;
  top: calc(60px + 3rem);
  left: 0;
  right: 0;
}


/* ════════════════════════════════════════════════
   PHILOSOPHY — Test. Diagnose. Treat.
   ════════════════════════════════════════════════ */
.treat-philosophy {
  background: linear-gradient(180deg, var(--bp) 0%, rgba(3, 47, 79, .4) 100%);
}

.treat-philo-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(4rem, 8vw, 7rem);
  align-items: start;
}

.treat-philo-steps {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.treat-philo-step {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1.6rem 2rem;
  background: rgba(1, 24, 39, .5);
  border: 1px solid rgba(133, 255, 199, .08);
  transition: border-color .3s;
}

.treat-philo-step:hover {
  border-color: rgba(133, 255, 199, .2);
}

.treat-philo-step h3 {
  font-family: var(--h);
  font-weight: 900;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .4rem;
}

.treat-philo-step p {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, .68);
}

.treat-philo-quote {
  margin-top: 2rem;
}

.treat-philo-cta {
  margin-top: 2rem;
}

.treat-crosslink {
  margin-top: clamp(2rem, 4vw, 3rem);
}


/* ════════════════════════════════════════════════
   PROBLEM FINDER — Visual quick-nav
   ════════════════════════════════════════════════ */
.treat-finder {
  background: var(--mr);
  position: relative;
}

.treat-finder::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49'%3E%3Cpath d='M14 1l13 7.5v15L14 31 1 23.5v-15z' fill='none' stroke='%2385FFC7' stroke-width='.6'/%3E%3C/svg%3E");
  background-size: 28px 49px;
}

.treat-finder-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.treat-finder-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  text-align: left;
  gap: 1.2rem;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: rgba(1, 24, 39, .85);
  border: 1px solid rgba(133, 255, 199, .18);
  cursor: pointer;
  transition: all .4s cubic-bezier(.16, 1, .3, 1);
}

.treat-finder-card:hover {
  border-color: rgba(133, 255, 199, .35);
  transform: translateY(-6px);
  background: rgba(1, 24, 39, .75);
}

.treat-finder-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background: rgba(133, 255, 199, .08);
  border: 2px solid rgba(133, 255, 199, .2);
  display: grid;
  place-items: center;
  transition: all .3s;
}

.treat-finder-card:hover .treat-finder-icon {
  border-color: var(--aq);
  background: rgba(133, 255, 199, .14);
}

.treat-finder-icon i {
  font-size: 1.6rem;
  color: var(--aq);
}

.treat-finder-card h3 {
  font-family: var(--h);
  font-weight: 900;
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.treat-finder-card p {
  font-size: .95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .55);
}


/* ════════════════════════════════════════════════
   PRODUCT CLUSTERS — Shared cluster layout
   ════════════════════════════════════════════════ */
.treat-cluster-intro {
  max-width: 70ch;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.treat-cluster-intro p:not(.section-ey) {
  font-size: clamp(1.1rem, 1.3vw, 1.2rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, .72);
  margin-top: 1rem;
}

/* Cluster 1: Problem Solvers */
.treat-cluster-problems {
  background:
    radial-gradient(ellipse 50% 60% at 90% 20%, rgba(0, 100, 102, .18), transparent 60%),
    linear-gradient(180deg, var(--bp), rgba(3, 47, 79, .35) 50%, var(--bp) 100%);
}

/* Cluster 2: Coral Feeding */
.treat-cluster-feeding {
  background:
    radial-gradient(ellipse 60% 50% at 10% 70%, rgba(0, 100, 102, .2), transparent 60%),
    var(--bp);
}

/* Cluster 3: Water Purity */
.treat-cluster-purity {
  background:
    radial-gradient(ellipse 70% 60% at 80% 80%, rgba(3, 47, 79, .6), transparent 60%),
    var(--bp);
}


/* ════════════════════════════════════════════════
   PRODUCT CARD — Progressive Disclosure
   ════════════════════════════════════════════════ */
.treat-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.treat-card-grid--wide {
  grid-template-columns: 1fr;
}

.treat-card {
  display: grid;
  grid-template-columns: 38% 1fr;
  background: rgba(1, 24, 39, .6);
  border: 1px solid rgba(133, 255, 199, .1);
  overflow: hidden;
  transition: border-color .4s;
}

.treat-card:hover {
  border-color: rgba(133, 255, 199, .25);
}

/* Card image area — spans all rows on the left */
.treat-card-img {
  position: relative;
  grid-column: 1;
  grid-row: 1 / -1;
  min-height: 280px;
  background: linear-gradient(135deg, rgba(3, 47, 79, .6), rgba(1, 24, 39, .8));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.treat-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
  filter: drop-shadow(0 8px 30px rgba(0, 0, 0, .4));
}

.treat-card:hover .treat-card-img img {
  transform: scale(1.06);
}

.treat-card-img .tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
}

/* Card body — Level 1 (right column) */
.treat-card-body {
  grid-column: 2;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.treat-card-body h3 {
  font-family: var(--h);
  font-weight: 900;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .2rem;
}

.treat-card-tagline {
  font-family: var(--h);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--aq);
  opacity: .7;
  margin-bottom: .5rem;
}

.treat-card-spec {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  color: rgba(255, 255, 255, .45);
  margin-bottom: .8rem;
}

.treat-card-spec i {
  font-size: .7rem;
  color: rgba(133, 255, 199, .4);
}

.treat-card-desc {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, .72);
  margin-bottom: 1.2rem;
}

/* Card actions — expand toggles + CTA */
.treat-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: auto;
  padding-top: .8rem;
  border-top: 1px solid rgba(133, 255, 199, .06);
}

.treat-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1rem;
  background: rgba(133, 255, 199, .06);
  border: 1px solid rgba(133, 255, 199, .12);
  color: var(--aq);
  font-family: var(--h);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .3s;
  -webkit-user-select: none;
  user-select: none;
}

.treat-expand-btn:hover {
  background: rgba(133, 255, 199, .12);
  border-color: rgba(133, 255, 199, .3);
}

.treat-expand-btn i {
  font-size: .7rem;
  transition: transform .3s;
}

.treat-expand-btn.active i {
  transform: rotate(45deg);
}

.treat-card-find {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .15);
  color: rgba(255, 255, 255, .65);
  font-family: var(--h);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: all .3s;
  margin-left: auto;
}

.treat-card-find:hover {
  border-color: var(--aq);
  color: var(--aq);
}

.treat-card-find i {
  font-size: .7rem;
  transition: transform .3s;
}

.treat-card-find:hover i {
  transform: translateX(3px);
}

/* Expandable content — Level 2 & Level 3 (right column) */
.treat-card-expand {
  grid-column: 2;
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s cubic-bezier(.16, 1, .3, 1);
}

.treat-card-expand-inner {
  padding: 0 clamp(1.5rem, 2.5vw, 2rem) clamp(1.5rem, 2.5vw, 2rem);
  border-top: 1px solid rgba(133, 255, 199, .08);
}

.treat-card-expand-inner h4 {
  font-family: var(--h);
  font-weight: 900;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--aq);
  margin-bottom: 1rem;
  padding-top: 1.2rem;
}

.treat-card-expand-inner p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .68);
  margin-bottom: .8rem;
}

.treat-card-expand-inner ul {
  margin-bottom: 1rem;
}

.treat-card-expand-inner ul li {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .68);
  margin-bottom: .4rem;
  padding-left: 1.4em;
  position: relative;
}

.treat-card-expand-inner ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .6em;
  width: 8px;
  height: 8px;
  border: 2px solid var(--aq);
  opacity: .6;
}

.treat-card-expand-inner ol {
  counter-reset: treat-step;
  margin-bottom: 1rem;
}

.treat-card-expand-inner ol li {
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .72);
  counter-increment: treat-step;
  padding-left: 2.2em;
  position: relative;
  margin-bottom: .5rem;
}

.treat-card-expand-inner ol li::before {
  content: '0' counter(treat-step);
  position: absolute;
  left: 0;
  font-family: var(--h);
  font-weight: 900;
  font-size: .82rem;
  color: var(--aq);
  opacity: .5;
}

.treat-card-warning {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .8rem 1rem;
  margin-top: .6rem;
  background: rgba(255, 180, 50, .06);
  border-left: 3px solid rgba(255, 180, 50, .4);
  font-size: .95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .65);
}

.treat-card-warning i {
  color: rgba(255, 180, 50, .7);
  flex-shrink: 0;
  margin-top: .15rem;
}

.treat-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.5rem;
  margin-top: .8rem;
  padding-top: .8rem;
  border-top: 1px solid rgba(133, 255, 199, .06);
}

.treat-card-meta span {
  font-size: .9rem;
  color: rgba(255, 255, 255, .55);
}

.treat-card-meta strong {
  color: var(--aq);
  font-weight: 700;
}

.treat-card-link {
  color: var(--aq);
  font-weight: 700;
  border-bottom: 1px solid rgba(133, 255, 199, .3);
  transition: border-color .3s;
}

.treat-card-link:hover {
  border-color: var(--aq);
}


/* ════════════════════════════════════════════════
   SIBLING NAVIGATION — Background only (component in global.css)
   ════════════════════════════════════════════════ */
.treat-siblings {
  background: var(--mr);
}


/* ════════════════════════════════════════════════
   WHERE TO BUY CTA
   ════════════════════════════════════════════════ */
.treat-cta {
  background:
    radial-gradient(ellipse 50% 70% at 50% 100%, rgba(0, 100, 102, .3), transparent),
    var(--bp);
  text-align: center;
}

.treat-cta .section-h {
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.treat-cta p:not(.section-ey) {
  font-size: clamp(1.1rem, 1.3vw, 1.2rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, .7);
  max-width: 55ch;
  margin: 1rem auto 0;
}

.treat-cta-btns {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}


/* ════════════════════════════════════════════════
   RESPONSIVE — Tablet (≤1024px)
   ════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .treat-philo-grid {
    grid-template-columns: 1fr;
  }

  .treat-card {
    grid-template-columns: 32% 1fr;
  }
}


/* ════════════════════════════════════════════════
   RESPONSIVE — Mobile (≤768px)
   ════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .treat-hero {
    min-height: 60vh;
  }

  .treat-hero .hero-ct {
    padding: 16vh 6vw 6vh;
  }

  .treat-hero .breadcrumb {
    top: calc(50px + 2rem);
  }

  .treat-finder-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .treat-card {
    grid-template-columns: 1fr;
  }

  .treat-card-img {
    grid-column: 1;
    grid-row: 1;
    min-height: 200px;
  }

  .treat-card-body {
    grid-column: 1;
    overflow: visible;
  }

  .treat-card-expand {
    grid-column: 1;
  }

  .treat-card-actions {
    flex-direction: column;
  }

  .treat-card-find {
    margin-left: 0;
    align-self: flex-end;
  }

  /* product-siblings mobile styles now in global.css */

  .treat-cta-btns {
    flex-direction: column;
  }

  .treat-cta-btns .btn {
    width: 100%;
  }
}


/* ════════════════════════════════════════════════
   RESPONSIVE — Small Mobile (≤480px)
   ════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .treat-hero .hero-t {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }
}


/* ════════════════════════════════════════════════
   REDUCED MOTION
   ════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .treat-card-img img,
  .treat-finder-card,
  .treat-expand-btn i {
    transition: none;
  }
}
