/* ============================================================
   product-page.css — Shared design for trade/product landing pages
   Loaded by: electrical-safety-program.html, hvac-safety-program.html,
              roofing-safety-program.html, construction-safety-program-contractors.html,
              hazard-communication-program-contractors.html, california-iipp-contractors.html,
              and the P3 SEO pages.
   ============================================================ */

:root {
  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --font-serif: 'Instrument Serif', 'Times New Roman', serif;

  --bg-0: #060B1A;
  --bg-1: #0A1426;
  --bg-2: #0F1D38;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.20);
  --fg-0: #F4F6FB;
  --fg-1: rgba(244, 246, 251, 0.80);
  --fg-2: rgba(244, 246, 251, 0.58);
  --fg-3: rgba(244, 246, 251, 0.38);

  --primary: #F57C00;
  --primary-glow: #FF9A38;
  --accent: #5B8DFF;
  --success: #5BD4A3;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { margin: 0; padding: 0; min-height: 100%; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-0);
  color: var(--fg-0);
  font-family: var(--font-sans);
  font-feature-settings: 'ss01', 'ss02', 'cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
  font-size: 16px;
  position: relative;
}
a { color: var(--primary-glow); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Mesh + grain background ───────────────────────────── */
.mesh {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}
.mesh::before, .mesh::after, .mesh > .orb {
  content: ""; position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55;
}
.mesh::before {
  width: 720px; height: 720px; left: -200px; top: -240px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 65%);
  animation: drift1 24s ease-in-out infinite alternate;
}
.mesh::after {
  width: 640px; height: 640px; right: -180px; top: 8%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
  opacity: 0.38;
  animation: drift2 28s ease-in-out infinite alternate;
}
.mesh > .orb {
  width: 540px; height: 540px; left: 30%; bottom: -240px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 65%);
  opacity: 0.28;
  animation: drift3 32s ease-in-out infinite alternate;
}
@keyframes drift1 { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(120px,80px) scale(1.12); } }
@keyframes drift2 { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(-100px,60px) scale(1.08); } }
@keyframes drift3 { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(60px,-120px) scale(1.15); } }

.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.28;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* ── Header pill nav ───────────────────────────────────── */
.pp-header {
  position: sticky; top: 0; z-index: 50;
  padding: 14px clamp(16px, 4vw, 32px);
}
.pp-nav-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 9px 14px 9px 18px;
  background: rgba(10, 20, 38, 0.65);
  border: 0.5px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}
.pp-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; color: var(--fg-0); text-decoration: none;
}
.pp-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 7px;
  background: linear-gradient(180deg, #1E3354 0%, #0F2035 100%);
  color: var(--primary);
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: -0.04em;
  box-shadow:
    0 4px 14px -4px rgba(245, 124, 0, 0.5),
    inset 0 1px 0 rgba(255,255,255,.10),
    inset 0 -2px 4px rgba(0,0,0,.35),
    0 0 0 0.5px rgba(245, 124, 0, 0.25);
}
.pp-brand-text { font-size: 15px; }
.pp-nav-links {
  display: flex; align-items: center; gap: 16px;
  font-size: 13.5px;
  color: var(--fg-1);
}
.pp-nav-links a { color: var(--fg-1); padding: 6px 4px; }
.pp-nav-links a:hover { color: var(--fg-0); text-decoration: none; }
.pp-nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary) 0%, color-mix(in oklab, var(--primary) 78%, black) 100%);
  color: #fff;
  font-size: 13px; font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 4px 14px -4px color-mix(in oklab, var(--primary) 60%, transparent);
  transition: filter 160ms, transform 160ms;
}
.pp-nav-cta:hover { filter: brightness(1.08); transform: translateY(-1px); text-decoration: none; }
@media (max-width: 720px) {
  .pp-nav-links a:not(.pp-nav-cta) { display: none; }
}

/* ── Hero ──────────────────────────────────────────────── */
.pp-hero {
  position: relative; z-index: 2;
  max-width: 1180px; margin: 0 auto;
  padding: 48px clamp(16px, 4vw, 32px) 36px;
}
.pp-breadcrumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin-bottom: 22px;
}
.pp-breadcrumb a { color: var(--fg-2); transition: color 120ms; }
.pp-breadcrumb a:hover { color: var(--fg-0); text-decoration: none; }
.pp-breadcrumb .sep { color: var(--fg-3); }
.pp-breadcrumb .here { color: var(--fg-0); }

.pp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--primary) 14%, transparent);
  border: 0.5px solid color-mix(in oklab, var(--primary) 35%, transparent);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-glow);
  margin-bottom: 14px;
}
.pp-eyebrow::before {
  content: ""; width: 5px; height: 5px; border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}
.pp-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin-bottom: 10px;
}
.pp-headline {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 22px;
  max-width: 960px;
}
.pp-headline em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--primary-glow);
}
.pp-lede {
  font-size: clamp(15px, 1.15vw, 17.5px);
  line-height: 1.6;
  color: var(--fg-1);
  max-width: 720px;
  margin-bottom: 28px;
}
.pp-cta-row {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.pp-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: filter 160ms, transform 160ms, box-shadow 160ms, border-color 160ms, background 160ms;
}
.pp-btn-primary {
  background: linear-gradient(180deg, var(--primary) 0%, color-mix(in oklab, var(--primary) 78%, black) 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    0 12px 28px -10px color-mix(in oklab, var(--primary) 60%, transparent);
}
.pp-btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.25),
    0 16px 34px -8px color-mix(in oklab, var(--primary) 70%, transparent);
}
.pp-btn-ghost {
  background: var(--surface);
  color: var(--fg-0);
  border: 0.5px solid var(--border-strong);
}
.pp-btn-ghost:hover {
  border-color: color-mix(in oklab, var(--primary) 50%, transparent);
  background: var(--surface-2);
  text-decoration: none;
}
.pp-support-line {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg-2);
  letter-spacing: 0.02em;
}
.pp-support-line a { color: var(--primary-glow); border-bottom: 0.5px dashed color-mix(in oklab, var(--primary) 50%, transparent); }

/* ── Page body grid ────────────────────────────────────── */
.pp-page-wrap {
  position: relative; z-index: 2;
  padding: 32px 0 80px;
}
.pp-page-inner {
  max-width: 1180px; margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}
.pp-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.92fr);
  gap: 28px;
  align-items: start;
}
@media (max-width: 960px) {
  .pp-page-grid { grid-template-columns: 1fr; }
}

/* ── Main content card ─────────────────────────────────── */
.pp-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 18px;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow:
    0 1px 0 rgba(255,255,255,.05) inset,
    0 30px 60px -28px rgba(0, 8, 30, 0.5),
    0 14px 30px -18px rgba(0, 8, 30, 0.3);
}
.pp-content-card { padding: 38px clamp(20px, 4vw, 40px); }
.pp-content-card h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--fg-0);
  margin: 36px 0 16px;
  padding-top: 18px;
  border-top: 0.5px solid var(--border);
  position: relative;
}
.pp-content-card h2:first-of-type {
  margin-top: 4px;
  padding-top: 0;
  border-top: none;
}
.pp-content-card h2::before {
  content: none;
}
/* Add an orange accent line above each h2 (except the first) */
.pp-content-card h2:not(:first-of-type)::before {
  content: "";
  position: absolute;
  top: -0.5px; left: 0;
  width: 48px; height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-glow) 100%);
  box-shadow: 0 0 12px color-mix(in oklab, var(--primary) 50%, transparent);
}
.pp-content-card h3 {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--fg-0);
  margin: 26px 0 12px;
}
.pp-content-card h4 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--fg-0);
  margin: 22px 0 10px;
}
.pp-content-card p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg-1);
}
.pp-content-card p strong { color: var(--fg-0); font-weight: 500; }
.pp-content-card p a { color: var(--primary-glow); border-bottom: 0.5px dashed color-mix(in oklab, var(--primary) 50%, transparent); }
.pp-content-card p a:hover { color: var(--primary); text-decoration: none; }

/* Lists — arrow bullets and numbered cards */
.pp-content-card ul,
.pp-content-card ol {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}
.pp-content-card ul li,
.pp-content-card ol li {
  position: relative;
  padding: 9px 0 9px 28px;
  border-bottom: 0.5px solid var(--border);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--fg-1);
}
.pp-content-card ul li:last-child,
.pp-content-card ol li:last-child { border-bottom: none; }
.pp-content-card ul li::before {
  content: "→";
  position: absolute;
  left: 4px;
  top: 9px;
  color: var(--primary-glow);
  font-family: var(--font-mono);
  font-weight: 600;
  line-height: 1.65;
}
.pp-content-card ol {
  counter-reset: pp-counter;
}
.pp-content-card ol li {
  padding-left: 38px;
  counter-increment: pp-counter;
}
.pp-content-card ol li::before {
  content: counter(pp-counter, decimal-leading-zero);
  position: absolute;
  left: 0; top: 11px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--primary-glow);
}

/* ── Mid-page CTA panel ────────────────────────────────── */
.pp-cta-panel {
  position: relative;
  padding: 32px clamp(22px, 4vw, 40px);
  margin-top: 24px;
  background:
    radial-gradient(ellipse at top right, color-mix(in oklab, var(--primary) 16%, transparent) 0%, transparent 60%),
    var(--surface);
  border: 0.5px solid color-mix(in oklab, var(--primary) 35%, transparent);
  border-radius: 18px;
  overflow: hidden;
}
.pp-cta-panel::before {
  content: ""; position: absolute;
  top: -40px; right: -40px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, color-mix(in oklab, var(--primary) 45%, transparent) 0%, transparent 60%);
  filter: blur(40px); opacity: 0.5; pointer-events: none;
}
.pp-cta-panel > * { position: relative; z-index: 1; }
.pp-cta-panel h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.12;
  color: var(--fg-0);
  margin: 0 0 12px;
  max-width: 620px;
}
.pp-cta-panel h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--primary-glow);
}
.pp-cta-panel p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--fg-1);
  margin: 0 0 22px;
  max-width: 620px;
}
.pp-cta-text-link {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--primary-glow);
  border-bottom: 0.5px dashed color-mix(in oklab, var(--primary) 50%, transparent);
  letter-spacing: 0.02em;
}
.pp-cta-text-link:hover { color: var(--primary); text-decoration: none; }

/* ── Related links card ────────────────────────────────── */
.pp-related {
  padding: 28px clamp(20px, 4vw, 32px);
  margin-top: 24px;
}
.pp-related h2 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--fg-0);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pp-related h2::before {
  content: ""; width: 5px; height: 5px; border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}
.pp-related ul {
  list-style: none;
  padding: 0; margin: 0;
}
.pp-related li {
  border-bottom: 0.5px solid var(--border);
}
.pp-related li:last-child { border-bottom: none; }
.pp-related a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--fg-0);
  text-decoration: none;
  transition: color 160ms;
}
.pp-related a::after {
  content: "→";
  font-family: var(--font-mono);
  color: var(--fg-3);
  transition: color 160ms, transform 160ms;
}
.pp-related a:hover {
  color: var(--primary-glow);
  text-decoration: none;
}
.pp-related a:hover::after {
  color: var(--primary-glow);
  transform: translateX(3px);
}

/* ── Sidebar ───────────────────────────────────────────── */
.pp-sidebar {
  display: flex; flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 80px;
}
@media (max-width: 960px) {
  .pp-sidebar { position: static; }
}
.pp-sidebar-card { padding: 22px 22px; }
.pp-sidebar-card h2 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 0.5px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.pp-sidebar-card h2::before {
  content: ""; width: 5px; height: 5px; border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}
.pp-outline-list {
  list-style: none;
  padding: 0; margin: 0;
}
.pp-outline-list li {
  font-size: 13px;
  color: var(--fg-1);
  padding: 8px 0 8px 22px;
  position: relative;
  line-height: 1.5;
}
.pp-outline-list li::before {
  content: "·";
  position: absolute;
  left: 6px; top: -2px;
  color: var(--primary-glow);
  font-size: 18px;
  font-weight: 700;
}
.pp-sidebar-note {
  font-size: 13px;
  color: var(--fg-1);
  line-height: 1.6;
}

/* ── Footer ────────────────────────────────────────────── */
.pp-footer {
  position: relative; z-index: 2;
  padding: 40px clamp(16px, 4vw, 32px);
  border-top: 0.5px solid var(--border);
  text-align: center;
  background: rgba(6, 11, 26, 0.4);
}
.pp-foot-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.pp-foot-brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--fg-1);
  font-size: 13.5px; font-weight: 500;
}
.pp-foot-links {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--fg-2);
}
.pp-foot-links a { color: var(--fg-2); padding: 0 8px; }
.pp-foot-links a:hover { color: var(--fg-0); text-decoration: none; }
.pp-foot-links .sep { color: var(--fg-3); }
.pp-foot-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--fg-3);
}
