/* ═══════════════════════════════════════════════
   TRITON CoreChem / Core Elements — Page-Specific Styles
   Uses global.css components: .s-pad, .s-inner, .section-ey,
   .section-h, .section-body, .g-2, .btn, .card, .faq-*,
   .icon-box, .pill, .badge, .tag, .hero-*, .bq, .acc,
   .breadcrumb, .footer, .bg-hex, .bg-hex-sm,
   .product-siblings (from treatments.css — shared across category pages)
   ═══════════════════════════════════════════════ */


/* ════════════════════════════════════════════════
   HERO — Category page (no video, gradient bg)
   ════════════════════════════════════════════════ */
.cc-hero {
  height: auto;
  min-height: 70vh;
  align-items: flex-end;
  background:
    radial-gradient(ellipse 90% 60% at 75% 85%, rgba(0, 100, 102, .4), transparent 65%),
    radial-gradient(ellipse 50% 50% at 15% 25%, rgba(3, 47, 79, .65), transparent 55%),
    var(--bp);
}

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

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

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


/* ════════════════════════════════════════════════
   SYSTEM EXPLAINER — One System, Four Dosing Paths
   ════════════════════════════════════════════════ */
.cc-explainer {
  background: linear-gradient(180deg, var(--bp) 0%, rgba(3, 47, 79, .35) 100%);
}

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

.cc-explainer-text .section-body {
  margin-top: 1rem;
}

.cc-explainer-quote {
  margin-top: 2rem;
}

.cc-explainer-cta {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

/* Path cards — 2x2 grid of dosing paths */
.cc-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.cc-path-card {
  position: relative;
  padding: clamp(1.2rem, 2vw, 1.6rem);
  background: rgba(1, 24, 39, .6);
  border: 1px solid rgba(133, 255, 199, .1);
  display: flex;
  flex-direction: column;
  gap: .6rem;
  transition: all .4s cubic-bezier(.16, 1, .3, 1);
  overflow: hidden;
}

.cc-path-card:hover {
  border-color: rgba(133, 255, 199, .3);
  transform: translateY(-4px);
}

.cc-path-featured {
  background: linear-gradient(135deg, rgba(0, 100, 102, .35) 0%, rgba(1, 24, 39, .7) 100%);
  border-color: rgba(133, 255, 199, .25);
}

.cc-path-ribbon {
  position: absolute;
  top: 14px;
  right: -28px;
  width: 130px;
  text-align: center;
  font-family: var(--h);
  font-weight: 900;
  font-size: .55rem;
  letter-spacing: .1em;
  color: var(--bp);
  background: var(--aq);
  padding: .4em 0;
  transform: rotate(35deg);
  z-index: 1;
}

.cc-path-icon {
  width: 40px;
  height: 40px;
  background: rgba(133, 255, 199, .08);
  border: 1px solid rgba(133, 255, 199, .15);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.cc-path-icon i {
  font-size: 1.1rem;
  color: var(--aq);
}

.cc-path-card h3 {
  font-family: var(--h);
  font-weight: 900;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.3;
}

.cc-path-card p {
  font-size: .92rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .6);
}

.cc-path-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: auto;
  padding-top: .5rem;
  font-family: var(--h);
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--aq);
  opacity: .7;
  transition: opacity .3s;
}

.cc-path-link:hover {
  opacity: 1;
}

.cc-path-link i {
  font-size: .65rem;
  transition: transform .3s;
}

.cc-path-link:hover i {
  transform: translateX(3px);
}


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

.cc-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: Core Dosing */
.cc-cluster-core {
  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: DIY — uses bg-hex-sm from global */
.cc-cluster-diy {
  background:
    radial-gradient(ellipse 60% 50% at 10% 70%, rgba(0, 100, 102, .2), transparent 60%),
    var(--bp);
}

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


/* ════════════════════════════════════════════════
   PRODUCT CARD — Progressive Disclosure
   Mirrors treat-card pattern for Shared Shell consistency
   ════════════════════════════════════════════════ */
.cc-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.cc-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;
}

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

/* Card image area — spans all rows on the left */
.cc-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;
}

.cc-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));
}

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

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

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

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

.cc-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;
}

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

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

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

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

.cc-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;
}

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

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

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

.cc-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;
}

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

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

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

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

.cc-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);
}

.cc-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;
}

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

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

.cc-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;
}

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

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

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

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

.cc-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);
}

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

.cc-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);
}

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

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

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

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

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


/* ════════════════════════════════════════════════
   FLEX TABLE — 4-Part / 3-Part / 2-Part comparison
   ════════════════════════════════════════════════ */
.cc-flex-table {
  display: grid;
  gap: .5rem;
  margin-bottom: 1rem;
}

.cc-flex-row {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: .7rem 1rem;
  background: rgba(1, 24, 39, .5);
  border: 1px solid rgba(133, 255, 199, .06);
}

.cc-flex-row--featured {
  background: rgba(0, 100, 102, .15);
  border-color: rgba(133, 255, 199, .2);
}

.cc-flex-label {
  font-family: var(--h);
  font-weight: 900;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--w);
  white-space: nowrap;
  min-width: 5rem;
}

.cc-flex-rec {
  display: inline-block;
  font-size: .6rem;
  letter-spacing: .1em;
  color: var(--bp);
  background: var(--aq);
  padding: .2em .6em;
  margin-left: .5rem;
  vertical-align: middle;
}

.cc-flex-detail {
  font-size: .95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .65);
}


/* ════════════════════════════════════════════════
   FAQ — Direct Answer block
   ════════════════════════════════════════════════ */
.cc-faq-da {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .65);
  max-width: 900px;
  margin: -2rem auto clamp(2rem, 4vw, 3rem);
  text-align: center;
}


/* ════════════════════════════════════════════════
   SIBLING NAVIGATION — Shared with treatments
   ════════════════════════════════════════════════ */
.cc-siblings {
  background: var(--mr);
}


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

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

.cc-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;
}

.cc-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) {
  .cc-explainer-grid {
    grid-template-columns: 1fr;
  }

  .cc-paths {
    grid-template-columns: 1fr 1fr;
  }

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


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

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

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

  .cc-paths {
    grid-template-columns: 1fr;
    gap: .8rem;
  }

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

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

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

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

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

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

  .cc-flex-row {
    flex-direction: column;
    gap: .3rem;
  }

  .cc-faq-da {
    text-align: left;
  }

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

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


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


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