/* =========================================
   Pressure Gradient Section (LIGHT only)
   File: assets/css/sections/pressure.css
   Scope: .pressure-section only
   Note: Background visuals now handled by .pressure-bg (pressure-bg.css)
========================================= */

.pressure-section {
  /* Local tokens (LIGHT background defaults) */
  --p-text: rgba(10, 14, 20, 0.92);
  --p-muted: rgba(10, 14, 20, 0.70);
  --p-dim: rgba(10, 14, 20, 0.56);

  --p-border: rgba(10, 14, 20, 0.14);
  --p-border-strong: rgba(10, 14, 20, 0.20);

  /* Your current tinted surface */
  --p-surface: rgba(67, 46, 85, 0.336);
  --p-surface-strong: rgba(255, 255, 255, 0.985);

  --p-shadow: 0 18px 40px rgba(10, 14, 20, 0.12);

  position: relative;
  padding: clamp(60px, 6.5vw, 92px) 0;
  isolation: isolate; /* ok to keep; bg is now a real div layer */
}

.pressure-section .pressure-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;

  /* Ensure content sits above .pressure-bg */
  position: relative;
  z-index: 1;
}

.pressure-section .pressure-header {
  max-width: 980px;
  margin: 0 0 clamp(22px, 2.8vw, 34px);
  padding-left: 2px;
}

.pressure-section .pressure-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  /* UPDATED: black pill + white text + slightly more weight */
  background: rgba(10, 14, 20, 0.96);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(10, 14, 20, 0.28);
  font-weight: 550;

  padding: 8px 12px;
  border-radius: 999px;
}

.pressure-section .pressure-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;

  /* UPDATED: white dot */
  background: rgba(255, 255, 255, 0.75);
}

.pressure-section .pressure-title {
  margin: 14px 0 10px;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--p-text);
}

.pressure-section .pressure-lede {
  margin: 0;
  max-width: 74ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--p-muted);
}

/* Layout */
.pressure-section .pressure-layout {
  margin-top: clamp(18px, 2.6vw, 26px);
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: clamp(14px, 2.6vw, 22px);
  align-items: start;
}

/* LEFT column */
.pressure-section .pressure-story {
  display: grid;
  grid-template-rows: repeat(4, auto) auto;
  gap: 14px;
}

/* Story blocks */
.pressure-section .pressure-block {
  border: 1px solid var(--p-border);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--p-surface), rgba(255, 255, 255, 0.88));
  box-shadow: var(--p-shadow);
  padding: 18px 18px 16px;
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.pressure-section .pressure-block::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: rgba(10, 14, 20, 0.22);
  opacity: 0.18;
}

.pressure-section .pressure-block:hover {
  transform: translateY(-2px);
  border-color: var(--p-border-strong);
  background: linear-gradient(180deg, var(--p-surface-strong), rgba(255, 255, 255, 0.94));
  box-shadow: 0 22px 48px rgba(10, 14, 20, 0.14);
}

.pressure-section .pressure-block-title {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--p-text);
}

.pressure-section .pressure-block-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--p-muted);
}

/* Bridge */
.pressure-section .pressure-bridge {
  border: 1px solid var(--p-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.pressure-section .pressure-bridge-text {
  margin: 0;
  color: var(--p-muted);
  line-height: 1.6;
}

.pressure-section .pressure-bridge-text strong {
  color: var(--p-text);
  font-weight: 600;
}

.pressure-section .pressure-bridge-link {
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--p-text);
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--p-border);
  background: rgba(255, 255, 255, 0.86);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.pressure-section .pressure-bridge-link:hover,
.pressure-section .pressure-bridge-link:focus-visible {
  transform: translateY(-1px);
  border-color: var(--p-border-strong);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 30px rgba(10, 14, 20, 0.10);
  outline: none;
}

/* RIGHT column: indicator card */
.pressure-section .pressure-indicator {
  position: sticky;
  top: 90px; /* adjust to your menu height */
}

@media (max-height: 720px) {
  .pressure-section .pressure-indicator {
    top: 70px;
  }
}

.pressure-section .pressure-indicator-card {
  border: 1px solid var(--p-border);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--p-surface), rgba(255, 255, 255, 0.88));
  box-shadow: var(--p-shadow);
  padding: 16px 16px 14px;
  overflow: hidden;
  position: relative;

  /* UPDATED: prepare for activation transitions */
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.pressure-section .pressure-indicator-card::before {
  content: "";
  position: absolute;
  inset: -40px -60px auto auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle at 30% 30%, rgba(10,14,20,0.08), transparent 60%);
  pointer-events: none;
}

.pressure-section .pressure-indicator-head {
  margin-bottom: 14px;
}

.pressure-section .pressure-indicator-title {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  /* UPDATED: stronger contrast */
  color: rgba(10, 14, 20, 0.70);

  margin-bottom: 6px;
}

.pressure-section .pressure-indicator-sub {
  font-size: 14px;
  line-height: 1.55;

  /* UPDATED: stronger contrast */
  color: rgba(10, 14, 20, 0.72);
}

/* Scale */
.pressure-section .pressure-scale {
  margin: 0;
  padding: 0;
  list-style: none;

  display: grid;
  gap: 12px;
  position: relative;
}

.pressure-section .pressure-scale::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: rgba(10, 14, 20, 0.12);
  border-radius: 999px;
}

.pressure-section .pressure-scale-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 10px 10px 6px;
  border-radius: 14px;

  /* UPDATED: smoother transition (no default color change) */
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.pressure-section .pressure-scale-item:hover {
  /* keep base hover subtle; step colors applied below */
  transform: translateY(-1px);
}

.pressure-section .pressure-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  margin-top: 2px;
  border: 1px solid rgba(10, 14, 20, 0.20);
  background: rgba(10, 14, 20, 0.06);
  box-shadow: 0 0 0 6px rgba(10, 14, 20, 0.02);
  position: relative;
  z-index: 1;
}

.pressure-section .pressure-scale-label {
  font-size: 14px;
  line-height: 1.25;
  color: var(--p-text);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.pressure-section .pressure-scale-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--p-muted);
}

/* Footer */
.pressure-section .pressure-indicator-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(10, 14, 20, 0.12);
}

.pressure-section .pressure-footnote {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--p-dim);
}

/* =========================================
   Hover palette: green -> amber -> orange -> red
   Default remains unchanged; hover activates only.
   Requires data-step="1..4" on .pressure-scale-item
========================================= */

.pressure-section .pressure-scale-item[data-step="1"]:hover {
  background: rgba(0, 210, 140, 0.12);
}

.pressure-section .pressure-scale-item[data-step="2"]:hover {
  background: rgba(255, 200, 60, 0.14);
}

.pressure-section .pressure-scale-item[data-step="3"]:hover {
  background: rgba(255, 140, 40, 0.14);
}

.pressure-section .pressure-scale-item[data-step="4"]:hover {
  background: rgba(255, 70, 70, 0.13);
}

.pressure-section .pressure-scale-item:hover .pressure-scale-label {
  color: rgba(10, 14, 20, 0.92);
}

.pressure-section .pressure-scale-item:hover .pressure-scale-note {
  color: rgba(10, 14, 20, 0.72);
}

/* Dot tint per step on hover */
.pressure-section .pressure-scale-item[data-step="1"]:hover .pressure-dot {
  border-color: rgba(0, 210, 140, 0.55);
  background: rgba(0, 210, 140, 0.20);
  box-shadow: 0 0 0 6px rgba(0, 210, 140, 0.10);
}

.pressure-section .pressure-scale-item[data-step="2"]:hover .pressure-dot {
  border-color: rgba(255, 200, 60, 0.60);
  background: rgba(255, 200, 60, 0.22);
  box-shadow: 0 0 0 6px rgba(255, 200, 60, 0.12);
}

.pressure-section .pressure-scale-item[data-step="3"]:hover .pressure-dot {
  border-color: rgba(255, 140, 40, 0.62);
  background: rgba(255, 140, 40, 0.22);
  box-shadow: 0 0 0 6px rgba(255, 140, 40, 0.12);
}

.pressure-section .pressure-scale-item[data-step="4"]:hover .pressure-dot {
  border-color: rgba(255, 70, 70, 0.62);
  background: rgba(255, 70, 70, 0.22);
  box-shadow: 0 0 0 6px rgba(255, 70, 70, 0.12);
}

/* Keyboard accessibility: focus gets a subtle lift */
.pressure-section .pressure-scale-item:focus-within {
  outline: none;
  background: rgba(10, 14, 20, 0.03);
}

/* =========================================
   Card activation on hover (uses :has)
   Safe fallback included (no breakage)
========================================= */

.pressure-section .pressure-indicator-card:has(.pressure-scale-item:hover) {
  border-color: rgba(10, 14, 20, 0.20);
  box-shadow: 0 22px 50px rgba(10, 14, 20, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.90));
}

.pressure-section .pressure-indicator-card:has(.pressure-scale-item[data-step="1"]:hover) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.90)),
    radial-gradient(520px 260px at 92% 0%, rgba(0, 210, 140, 0.10), transparent 60%);
}

.pressure-section .pressure-indicator-card:has(.pressure-scale-item[data-step="2"]:hover) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.90)),
    radial-gradient(520px 260px at 92% 0%, rgba(255, 200, 60, 0.10), transparent 60%);
}

.pressure-section .pressure-indicator-card:has(.pressure-scale-item[data-step="3"]:hover) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.90)),
    radial-gradient(520px 260px at 92% 0%, rgba(255, 140, 40, 0.10), transparent 60%);
}

.pressure-section .pressure-indicator-card:has(.pressure-scale-item[data-step="4"]:hover) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.90)),
    radial-gradient(520px 260px at 92% 0%, rgba(255, 70, 70, 0.10), transparent 60%);
}

@supports not selector(:has(*)) {
  .pressure-section .pressure-indicator-card {
    /* no change */
  }
}

/* Responsive */
@media (max-width: 980px) {
  .pressure-section .pressure-layout {
    grid-template-columns: 1fr;
  }
  .pressure-section .pressure-indicator {
    position: relative;
    top: auto;
  }
}
