/* =============================================================
   OSTEONEKS — product-page.css
   Shared styles for all product-category inner pages.
   Depends on style.css (design tokens, header, footer).
   ============================================================= */

/* ── On-This-Page sticky nav ───────────────────────────────────────────── */
.otp-wrap {
  position: sticky;
  top: 64px;
  z-index: 90;
  background: rgba(0,0,0,.9);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
          backdrop-filter: blur(14px) saturate(1.5);
  border-bottom: 1px solid var(--border);
}
.otp-inner {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}
.otp-inner::-webkit-scrollbar { display: none; }
.otp-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--text-muted); white-space: nowrap;
  padding: 15px 20px 15px 0;
  border-right: 1px solid var(--border);
  margin-right: 4px; flex-shrink: 0;
}
.otp-link {
  font-size: 13px; font-weight: 500;
  color: var(--text-muted); white-space: nowrap;
  padding: 15px 16px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
  flex-shrink: 0; text-decoration: none;
}
.otp-link:hover { color: var(--text-primary); }
.otp-link.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ── Static product hero ───────────────────────────────────────────────── */
.product-hero {
  position: relative;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: #000;
}
.product-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 30%;
  filter: contrast(1.08) saturate(1.05);
}
.product-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(0,0,0,.96) 0%,
    rgba(0,0,0,.65) 45%,
    rgba(0,0,0,.2)  100%);
}
.product-hero-content {
  position: relative; z-index: 2;
  padding: 0 0 60px;
}
.product-hero h1 { margin-bottom: 16px; max-width: 900px; }
.product-hero-sub {
  font-size: 18px; color: var(--text-muted);
  max-width: 700px; line-height: 1.65;
}

/* ── Section-fade divider ──────────────────────────────────────────────── */
.section-fade {
  height: 72px;
  background: linear-gradient(to bottom, transparent, #000);
  pointer-events: none;
}

/* ── Section heading block ─────────────────────────────────────────────── */
.section-eyebrow {
  display: block;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--accent); margin-bottom: 12px;
}
.section-body-p {
  font-size: 17px; color: var(--text-muted);
  max-width: 720px; line-height: 1.7;
  margin-top: 16px;
}

/* ── Portfolio cards ───────────────────────────────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px; margin-top: 48px;
}
.portfolio-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 30px;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color .25s, transform .3s ease, box-shadow .3s ease;
}
.portfolio-card:hover {
  border-color: rgba(255,255,255,.22);
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,.55);
}
.portfolio-card .pc-eyebrow {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--accent);
}
.portfolio-card h3 {
  font-size: 21px; font-weight: 700;
  line-height: 1.3; color: var(--text-primary); margin: 0;
}
.portfolio-card p {
  font-size: 15px; color: var(--text-muted);
  line-height: 1.65; flex: 1; margin: 0;
}
.portfolio-card .pc-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--accent);
  transition: gap .2s; text-decoration: none; margin-top: 4px;
}
.portfolio-card:hover .pc-cta { gap: 10px; }

/* ── Zig-zag feature rows ──────────────────────────────────────────────── */
.features-section { padding: 100px 0; }
.feature-row {
  display: flex;
  align-items: center;
  gap: 80px;
  margin-bottom: 96px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row:nth-child(even) { flex-direction: row-reverse; }
.feature-img {
  flex: 0 0 50%;
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
}
.feature-img img {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover; display: block;
  filter: contrast(1.08) saturate(1.05);
  transition: transform .6s ease;
}
.feature-img:hover img { transform: scale(1.03); }
.feature-text { flex: 1; }
.feature-text h2 { margin-bottom: 20px; }
.feature-text p {
  font-size: 16px; color: var(--text-muted);
  line-height: 1.75; margin-bottom: 36px;
}
.btn-ghost-arr {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600;
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 4px; padding: 12px 22px;
  text-decoration: none;
  transition: border-color .2s, gap .2s;
}
.btn-ghost-arr:hover { border-color: rgba(255,255,255,.3); }
.btn-ghost-arr:hover .arr { transform: translateX(4px); }
.btn-ghost-arr .arr { display: inline-block; transition: transform .2s; }

/* ── Proof / Surgeon Testimonials block ────────────────────────────────── */
.proof-section {
  padding: 100px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.proof-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 55% 70% at 80% 50%,
    rgba(237,28,36,.1), transparent 65%);
}
.proof-inner {
  display: flex; align-items: center; gap: 80px;
  position: relative; z-index: 1;
}
.proof-text { flex: 1; }
.proof-text h2 { margin-bottom: 20px; }
.proof-text p {
  font-size: 17px; color: var(--text-muted);
  line-height: 1.7; margin-bottom: 36px;
}
.proof-media { flex: 0 0 42%; }
.proof-thumb {
  width: 100%; aspect-ratio: 4/3;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px; color: var(--text-muted); font-size: 14px;
}
.proof-thumb i { width: 52px; height: 52px; opacity: .4; color: var(--accent); }

/* ── FAQ accordion ─────────────────────────────────────────────────────── */
.faq-section { padding: 100px 0; }
.faq-list { max-width: 860px; margin: 48px auto 0; }
/* COMPLIANCE: All FAQ answers below are marketing placeholders — must be
   reviewed and approved by regulatory/clinical/legal before publishing */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
  width: 100%; text-align: left;
  background: none; border: none;
  color: var(--text-primary); font-family: inherit;
  font-size: 17px; font-weight: 600; line-height: 1.4;
  padding: 24px 0; cursor: pointer;
  transition: color .2s;
}
.faq-q:hover { color: var(--accent); }
.faq-chevron {
  flex-shrink: 0; width: 22px; height: 22px;
  color: var(--accent); transition: transform .3s ease;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner {
  padding: 0 0 28px;
  font-size: 15px; color: var(--text-muted); line-height: 1.75;
}

/* ── Distributor / Partner rows ────────────────────────────────────────── */
.dist-section {
  padding: 100px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.dist-row {
  display: flex; align-items: flex-start; gap: 80px;
  margin-bottom: 80px;
}
.dist-row:last-child { margin-bottom: 0; }
.dist-row:nth-child(even) { flex-direction: row-reverse; }
.dist-text { flex: 1; }
.dist-text h3 { font-size: clamp(22px,2.6vw,32px); margin-bottom: 16px; }
.dist-text p {
  font-size: 16px; color: var(--text-muted);
  line-height: 1.7; margin-bottom: 28px;
}
.logo-wall { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 28px; }
.lw-pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 18px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  color: var(--text-muted);
  transition: border-color .2s, color .2s;
}
.lw-pill:hover { border-color: rgba(255,255,255,.25); color: var(--text-primary); }

/* ── Resources 4-up grid ───────────────────────────────────────────────── */
.resources-section { padding: 100px 0; }
.resources-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 20px; margin-top: 48px;
}
.resource-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 28px 22px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .2s, transform .3s, box-shadow .3s;
}
.resource-card:hover {
  border-color: rgba(255,255,255,.2);
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(0,0,0,.5);
}
.rc-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(237,28,36,.12);
  border: 1px solid rgba(237,28,36,.25);
  display: flex; align-items: center; justify-content: center;
}
.rc-icon i { color: var(--accent); width: 20px; height: 20px; }
.resource-card h3 {
  font-size: 16px; font-weight: 700; color: var(--text-primary);
  line-height: 1.3; margin: 0;
}
.resource-card p {
  font-size: 14px; color: var(--text-muted);
  line-height: 1.6; flex: 1; margin: 0;
}
.rc-cta {
  font-size: 13px; font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: 5px;
  transition: gap .2s; text-decoration: none; margin-top: 4px;
}
.resource-card:hover .rc-cta { gap: 8px; }

/* ── Connect dual-CTA banner ───────────────────────────────────────────── */
.connect-section {
  padding: 100px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.connect-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 65% at 50% 50%,
    rgba(237,28,36,.13), transparent 65%);
}
.connect-inner { position: relative; z-index: 1; text-align: center; }
.connect-inner > h2 { margin-bottom: 56px; }
.connect-blocks {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; max-width: 880px; margin: 0 auto;
}
.connect-block {
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 36px; text-align: left;
  transition: border-color .2s;
}
.connect-block:hover { border-color: rgba(255,255,255,.2); }
.connect-block h3 { font-size: 20px; margin-bottom: 12px; }
.connect-block p {
  font-size: 15px; color: var(--text-muted);
  line-height: 1.65; margin-bottom: 28px;
}

/* ── Regulatory footnotes ──────────────────────────────────────────────── */
/* COMPLIANCE: This block must be reviewed and finalized by regulatory &
   clinical teams before publishing. Do not remove this section. */
.footnotes {
  padding: 40px 0 56px;
  border-top: 1px solid var(--border);
}
.footnotes h6 {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--text-muted); margin-bottom: 12px;
}
.footnotes ol { list-style: decimal; padding-left: 20px; }
.footnotes li {
  font-size: 12px; color: var(--text-muted);
  line-height: 1.65; margin-bottom: 6px;
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .feature-row,
  .proof-inner  { gap: 56px; }
  .dist-row     { gap: 56px; }
}
@media (max-width: 1023px) {
  .portfolio-grid  { grid-template-columns: 1fr 1fr; }
  .resources-grid  { grid-template-columns: 1fr 1fr; }
  .connect-blocks  { grid-template-columns: 1fr; }
  .feature-row,
  .feature-row:nth-child(even),
  .proof-inner,
  .dist-row,
  .dist-row:nth-child(even) { flex-direction: column; gap: 40px; }
  .feature-img,
  .proof-media  { flex: none; width: 100%; }
  .dist-row     { align-items: flex-start; }
}
@media (max-width: 767px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .resources-grid { grid-template-columns: 1fr; }
  .product-hero   { min-height: 300px; }
  .connect-block  { padding: 28px 22px; }
  .otp-label      { display: none; }
}
