/* =========================================================
   Inner-page components (loaded after style.css)
   ========================================================= */

/* ---------- Page hero (light, matches homepage) ---------- */
.phero { background: var(--bg); color: var(--ink); padding: 32px 0 36px; position: relative; overflow: hidden; }
.phero::after {
  content: ""; position: absolute; right: -15%; bottom: -50%; width: 60vw; height: 60vw; max-width: 640px; max-height: 640px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 65%); pointer-events: none;
}
.phero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; }
.crumbs { display: flex; gap: 8px; font-size: .78rem; color: var(--ink-3); flex-wrap: wrap; }
.crumbs a:hover { color: var(--accent); }
.phero h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; }
.phero .lead { color: var(--ink-2); }
.phero__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.phero__cta .btn--ghost { color: var(--ink); border-color: var(--line); background: var(--surface); }
.phero__media { margin-top: 20px; height: 220px; border-radius: 24px; background: linear-gradient(145deg, var(--ph-1), var(--ph-2)); border: 0; display: grid; place-items: center; color: var(--ink-3); font-size: .85rem; box-shadow: 0 30px 60px rgba(19,26,46,.14); overflow: hidden; }
:root[data-theme="dark"] .phero__media { box-shadow: 0 30px 60px rgba(0,0,0,.5); }
/* ---------- Sticky sub-nav (in-page tabs) ---------- */
.subnav { position: sticky; top: var(--appbar-h); z-index: 40; background: var(--glass); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.subnav__track { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 8px 0; }
.subnav__track::-webkit-scrollbar { display: none; }
.subnav a { flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.subnav a.is-active, .subnav a:hover { background: var(--ink); color: var(--bg); }

/* ---------- Tabs (Fiber / CO2 / UV) ---------- */
.tabs { display: flex; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 24px; }
.tab { flex: 1; min-height: 44px; border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--ink-2); }
.tab.is-active { background: var(--ink); color: var(--bg); }
.tabpanel { display: none; }
.tabpanel.is-active { display: block; }

/* ---------- Spec table ---------- */
.spec { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .92rem; }
.spec th, .spec td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 38%; color: var(--ink-2); font-weight: 600; background: var(--bg); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec td strong { display: block; }
.spec td small { color: var(--ink-3); }
.spec-wrap { overflow-x: auto; border-radius: var(--radius); }

/* ---------- Two-col feature ---------- */
.feature { display: grid; gap: 20px; align-items: center; }
.feature__media { min-height: 220px; border-radius: var(--radius); background: linear-gradient(145deg, var(--ph-1), var(--ph-2)); border: 1px dashed var(--ph-line); display: grid; place-items: center; color: var(--ink-3); font-size: .85rem; }
.section--dark .feature__media { background: linear-gradient(145deg, var(--dark-2), var(--dark)); border-color: var(--dark-line); }
.feature__text { display: flex; flex-direction: column; gap: 12px; }
.feature__text p { color: var(--ink-2); }
.section--dark .feature__text p { color: #c9d3cc; }

/* ---------- Model grid ---------- */
.models { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.model { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.model__img { height: 110px; border-radius: 10px; background: linear-gradient(145deg, var(--ph-1), var(--ph-2)); border: 1px dashed var(--ph-line); display: grid; place-items: center; color: var(--ink-3); font-size: .75rem; margin-bottom: 6px; }
.model strong { font-family: var(--font-display); font-size: .95rem; }
.model small { color: var(--ink-3); font-size: .76rem; }

/* ---------- Accessory list ---------- */
.acc { display: grid; gap: 12px; }
.acc__group { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.acc__group h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 10px; }
.acc__group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.acc__group li { font-size: .82rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }

/* ---------- Steps / process ---------- */
.steps { display: grid; gap: 12px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 16px 60px; position: relative; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; left: 16px; top: 14px; font-family: var(--font-display); font-weight: 800; color: var(--accent); font-size: 1.1rem; }
.step strong { display: block; font-family: var(--font-display); margin-bottom: 4px; }
.step p { color: var(--ink-2); font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 8px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; font-family: var(--font-display); font-size: .95rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 14px; color: var(--ink-2); font-size: .92rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent); color: var(--accent-ink); padding: 40px 0; }
.cta-band .container { display: flex; flex-direction: column; gap: 14px; }
.cta-band h2 { color: var(--accent-ink); }
.cta-band p { opacity: .9; }
.cta-band .btn--ghost { color: var(--accent-ink); border-color: rgba(255,255,255,.55); }
.cta-band .btn--dark { background: var(--dark); color: #fff; }
.cta-band__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Industry detail cards ---------- */
.ind-list { display: grid; gap: 14px; }
.ind-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: 150px auto; }
.ind-card__media { background: linear-gradient(145deg, var(--ph-1), var(--ph-2)); border-bottom: 1px dashed var(--ph-line); display: grid; place-items: center; color: var(--ink-3); font-size: .8rem; }
.ind-card__body { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.ind-card__body p { color: var(--ink-2); font-size: .92rem; }
.ind-card__fits { display: flex; flex-wrap: wrap; gap: 6px; }
.ind-card__fits span, .ind-card__fits a { font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--accent-tint); color: var(--accent); }
.ind-card__fits a:hover { background: var(--accent); color: var(--accent-ink); }

/* ---------- About: timeline & values ---------- */
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.value { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.value strong { display: block; font-family: var(--font-display); margin-bottom: 4px; }
.value p { color: var(--ink-2); font-size: .88rem; }
.timeline { display: grid; gap: 0; border-left: 2px solid var(--line); margin-left: 8px; }
.timeline div { padding: 0 0 20px 20px; position: relative; }
.timeline div::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.timeline strong { font-family: var(--font-display); color: var(--accent); display: block; }

/* ---------- Contact page ---------- */
.map { height: 240px; border-radius: var(--radius); background: linear-gradient(145deg, var(--ph-1), var(--ph-2)); border: 1px dashed var(--ph-line); display: grid; place-items: center; color: var(--ink-3); overflow: hidden; }
.map iframe { width: 100%; height: 100%; border: 0; }
.hours { display: grid; gap: 6px; font-size: .92rem; }
.hours div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }

/* ---------- Real images ---------- */
.phero__media--photo { border: 0; overflow: hidden; background: var(--dark); }
.phero__media--photo img { width: 100%; height: 100%; object-fit: cover; }
.model__img { background: #fff; border: 1px solid var(--line); padding: 8px; }
.model__img img { width: 100%; height: 100%; object-fit: contain; }
.feature__media--photo { border: 0; overflow: hidden; }
.feature__media--photo img { width: 100%; height: 100%; object-fit: cover; }
.feature__media--grid { border: 0; background: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; place-items: stretch; }
.feature__media--grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.feature__media--badges { border: 0; background: var(--bg); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px; padding: 24px; }
.feature__media--badges img { height: 110px; width: auto; }
.ind-card__media--photo { border: 0; overflow: hidden; }
.ind-card__media--photo img { width: 100%; height: 100%; object-fit: cover; }
.acc__tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.acc__t { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 700; font-size: .82rem; color: var(--ink-2); }
.acc__t.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.acc__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.acc__grid[hidden] { display: none; }
.acc__tabs ~ .acc__grid:not([hidden]) { animation: accSwap .25s ease-out; }
@keyframes accSwap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .acc__tabs ~ .acc__grid { animation: none; } }
.acc__grid figure { margin: 0; text-align: center; }
.acc__grid img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--bg); border-radius: 10px; padding: 8px; }
.acc__grid figcaption { font-size: .8rem; font-weight: 600; margin-top: 4px; }

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  .phero { padding: 64px 0; }
  .phero__inner { display: grid; grid-template-columns: 1.1fr .9fr; column-gap: 48px; align-items: center; }
  .phero__inner > * { grid-column: 1; }
  .phero__media { grid-column: 2; grid-row: 1 / span 5; margin: 0; height: 340px; }
  .subnav { top: 68px; }
  .feature { grid-template-columns: 1fr 1fr; gap: 48px; }
  .feature--flip .feature__media { order: 2; }
  .feature__media { min-height: 360px; }
  .models { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .acc { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .acc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ind-card__media--photo img { min-height: 200px; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .step { padding-top: 48px; }
  .cta-band .container { flex-direction: row; align-items: center; justify-content: space-between; }
  .ind-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .ind-card { grid-template-columns: 240px 1fr; grid-template-rows: auto; }
  .ind-card__media { border-bottom: 0; border-right: 1px dashed var(--ph-line); }
  .values { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .map { height: 420px; }
  .spec th { width: 30%; }
}
