/* ============================================================
   Talkiva — css/pages/safety-center.css
   Safety Center — alternating light/dark lanes, premium cards.
   Dark sections: .glass card on var(--bg-dark).
   Light sections: white card on var(--bg-light) with dark text.
   ============================================================ */

/* ---- Section rhythm & content width ---- */
.section-light { color: var(--text-on-light); }/* dark text on light lane  */
.section-light .lead { color: rgba(42, 1, 5, 0.72); }
.section-light .eyebrow { color: #c21f45; }
.section .container { max-width: 1080px; }     /* keep content from stretching */

/* ---- Hero spacing (push content below the fixed navbar) ---- */
#safety-hero {
  padding-top: calc(var(--nav-h) + 80px);      /* 76px navbar + 80px breathing room */
  padding-bottom: 56px;                        /* matches the notice's 56px top margin */
}

/* ============================================================
   1. SAFETY NOTICE (dark hero lane)
   ============================================================ */
.safety-notice {
  display: flex;
  gap: 18px;
  align-items: center;                          /* icon centred on the text block */
  background: rgba(255, 255, 255, 0.06);        /* dark glass */
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 4px solid var(--primary);        /* red accent edge */
  border-radius: var(--radius-md);
  padding: 24px 28px;
  max-width: 800px;
  margin: 56px auto 0;                          /* equals hero padding-bottom */
  box-shadow: 0 0 30px rgba(239, 27, 67, 0.15);/* subtle red glow */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.88);
}
.safety-notice i {
  color: var(--primary);
  font-size: 1.35rem;
  flex-shrink: 0;
}
.safety-notice strong {
  display: block;                               /* clean block gap before the first paragraph */
  color: #fff;
  font-size: 1.02rem;
}
.safety-notice p { margin: 8px 0 0; font-size: 0.95rem; line-height: 1.6; }
.safety-pill {
  display: inline-block;
  background: rgba(239, 27, 67, 0.15);
  color: #fff;
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  margin: 0 2px;
  text-decoration: none;
}
.safety-pill:hover { background: var(--primary); color: #fff; }

/* ============================================================
   2. THREE PILLARS  (LIGHT section — white cards, dark text)
   ============================================================ */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
  align-items: stretch;
}
.pillar-card {
  background: #ffffff;                          /* solid white card */
  border: 1px solid rgba(42, 1, 5, 0.05);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: 0 20px 40px rgba(42, 1, 5, 0.06);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s;
}
.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(42, 1, 5, 0.14);
  border-color: rgba(239, 27, 67, 0.25);
}
.pillar-card .pillar-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.1);          /* soft tint — overridden below */
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.pillar-icon-cyan { background: rgba(34, 211, 238, 0.1); color: var(--cyan); }
.pillar-icon-red  { background: rgba(239, 27, 67, 0.1);  color: var(--primary); }
.pillar-icon-gold { background: rgba(239, 164, 27, 0.1); color: var(--gold); }
.pillar-card h3 {
  font-family: var(--font-head);
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--text-on-light);                  /* dark heading on white */
  margin-bottom: 12px;
}
.pillar-card p { color: rgba(42, 1, 5, 0.7); font-size: 0.96rem; line-height: 1.75; }

/* ============================================================
   3. GUIDELINES BAND  (DARK section — 2-column glass card)
   Left: title + copy + CTA.  Right: ✓ allowed / ✗ prohibited.
   ============================================================ */
.guidelines-band { padding: 112px 0; }
.guidelines-band .container { max-width: 1080px; }
.guidelines-band-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;                 /* columns vertically centred */
  gap: 56px;
  background: var(--glass-dark);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 56px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
/* soft ambient glow inside the glass card */
.guidelines-band-inner::before {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  top: -180px; right: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 27, 67, 0.18), transparent 65%);
  filter: blur(70px);
  pointer-events: none;
}
.guidelines-copy { position: relative; z-index: 1; }
.guidelines-copy h2 { margin-bottom: 16px; }
.guidelines-copy p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.97rem;
  line-height: 1.8;
  max-width: 440px;
}
.guidelines-btn { margin-top: 28px; }
.guidelines-btn i { margin-left: 8px; }

/* ---- Rules list (right column) ---- */
.guidelines-rules {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 24px 28px;
}
.rule {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.86);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}
.rule:last-child { border-bottom: none; padding-bottom: 0; }
.rule:first-child { padding-top: 0; }
.rule i {
  font-size: 1.05rem;
  flex-shrink: 0;
  width: 22px;
  text-align: center;
}
.rule-ok i { color: var(--green); }     /* allowed — green check */
.rule-no i { color: var(--primary); }   /* prohibited — red cross */

/* ============================================================
   4. GOVERNANCE — OFFICERS  (DARK section — glass cards)
   ============================================================ */
.officer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
  align-items: stretch;
}
.officer-card {
  background: var(--glass-dark);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s;
}
.officer-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.28);
}
.officer-ribbon {
  display: inline-block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  background: rgba(239, 164, 27, 0.14);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.officer-card h3 { font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; color: #fff; margin: 16px 0 10px; }
.officer-card .officer-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.officer-icon-red  { background: rgba(239, 27, 67, 0.1);  color: var(--primary); }
.officer-icon-gold { background: rgba(239, 164, 27, 0.1); color: var(--gold); }
.officer-icon-cyan { background: rgba(34, 211, 238, 0.1); color: var(--cyan); }
.officer-mandate { color: rgba(255,255,255,0.74); font-size: 0.92rem; line-height: 1.7; }
.officer-contact { list-style: none; margin: 14px 0 0; padding: 0; }
.officer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  padding: 7px 0;
}
.officer-contact li i { color: var(--primary-soft); width: 16px; flex-shrink: 0; text-align: center; }
.officer-contact a { color: var(--primary-soft); text-decoration: underline; text-underline-offset: 3px; }
.officer-contact .ph { font-style: italic; color: rgba(255,255,255,0.5); border-bottom: 1px dashed rgba(255,255,255,0.3); padding: 0 4px; }

/* ============================================================
   5. EXTERNAL RESOURCES  (LIGHT section — white cards)
   ============================================================ */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.resource-card {
  background: #ffffff;
  border: 1px solid rgba(42, 1, 5, 0.05);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-decoration: none;
  display: block;
  box-shadow: 0 20px 40px rgba(42, 1, 5, 0.06);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s, background 0.35s;
}
.resource-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(42, 1, 5, 0.14);
  border-color: rgba(239, 27, 67, 0.25);
}
.resource-card .resource-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.resource-icon-pink { background: rgba(239, 27, 67, 0.1);  color: var(--primary-soft); }
.resource-icon-red  { background: rgba(239, 27, 67, 0.1);  color: var(--primary); }
.resource-icon-gold { background: rgba(239, 164, 27, 0.1); color: var(--gold); }
.resource-icon-cyan { background: rgba(34, 211, 238, 0.1); color: var(--cyan); }
.resource-card .resource-number {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
  margin-bottom: 6px;
}
.resource-card .resource-number-sm { font-size: 0.92rem; color: var(--primary); }
.resource-card h3 { font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--text-on-light); margin-bottom: 8px; }
.resource-card p { font-size: 0.86rem; color: rgba(42, 1, 5, 0.7); line-height: 1.6; }
.resource-ext { color: var(--primary); font-size: 0.9rem; margin-top: 12px; display: inline-block; transition: transform 0.3s var(--ease-out); }
.resource-card:hover .resource-ext { transform: translate(2px, -2px); }
.resource-footnote {
  text-align: center;
  color: rgba(42, 1, 5, 0.6);
  font-size: 0.9rem;
  max-width: 760px;
  margin: 40px auto 0;
}

/* ============================================================
   RESPONSIVE — collapse all grids on mobile
   ============================================================ */
@media (max-width: 900px) {
  .pillar-grid, .officer-grid { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
  .guidelines-band { padding: 64px 0; }
  .guidelines-band-inner { grid-template-columns: 1fr; gap: 40px; padding: 40px 32px; }
}
@media (max-width: 600px) {
  .resource-grid { grid-template-columns: 1fr; }
  .guidelines-band { padding: 48px 0; }
  .guidelines-band-inner { padding: 32px 20px; gap: 32px; }
  .guidelines-copy p { max-width: none; }
  .guidelines-btn { width: 100%; text-align: center; }
  .guidelines-rules { padding: 20px 18px; }
  .pillar-card, .officer-card { padding-left: 20px; padding-right: 20px; }
}