/* =========================================================
   HELPLINE & CALL CENTRES PAGE STYLESHEET
   Clean light editorial hero + interactive dispatch console
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Hero (Clean Light Editorial, 1-Screen Fit) ---------- */
.hl-hero {
  background:
    radial-gradient(ellipse 50% 60% at 85% 30%, #EEF2FF 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 10% 100%, #E9F8FA 0%, transparent 70%),
    #fff;
  color: var(--ink);
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  padding: 20px 0 28px;
  border-bottom: 1px solid var(--line);
}
.hl-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4.5vw, 60px);
  align-items: center;
}
.hl-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}
.hl-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.1rem, 4vw, 3.45rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 15ch;
}
.hl-lede {
  margin: 0 0 22px;
  font-size: clamp(0.96rem, 1.15vw, 1.08rem);
  line-height: 1.6;
  color: var(--slate);
  max-width: 46ch;
}
.hl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.hl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--slate);
}
.hl-meta span b {
  color: var(--ink);
  font-weight: 800;
  margin-right: 4px;
}

/* Hero Staggered Entrance */
@keyframes heroUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.hl-hero-copy > * {
  animation: heroUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hl-hero-copy > *:nth-child(1) { animation-delay: 0.04s; }
.hl-hero-copy > *:nth-child(2) { animation-delay: 0.1s; }
.hl-hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.hl-hero-copy > *:nth-child(4) { animation-delay: 0.22s; }
.hl-hero-copy > *:nth-child(5) { animation-delay: 0.28s; }

/* Interactive Dispatch Console (Right Hero) */
.console-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 28px 64px -26px rgba(15, 23, 42, 0.22);
  overflow: hidden;
  animation: heroUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}
.console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}
.console-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wa);
  box-shadow: 0 0 0 0 rgba(31, 138, 76, 0.5);
  animation: livePulse 2s infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(31, 138, 76, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(31, 138, 76, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 138, 76, 0); }
}

/* Live Voice Waveform Bars */
.wave {
  display: inline-flex;
  align-items: center;
  gap: 2.5px;
  height: 14px;
  margin-left: 4px;
}
.wave i {
  display: block;
  width: 2.5px;
  height: 4px;
  border-radius: 2px;
  background: var(--brand);
  animation: waveBar 1.1s ease-in-out infinite;
}
.wave i:nth-child(2) { animation-delay: 0.18s; }
.wave i:nth-child(3) { animation-delay: 0.36s; }
.wave i:nth-child(4) { animation-delay: 0.54s; }
.console-card.paused .wave i {
  animation-play-state: paused;
  height: 4px;
}
@keyframes waveBar {
  0%, 100% { height: 4px; opacity: 0.45; }
  50% { height: 14px; opacity: 1; }
}

.console-right-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.console-cert {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--slate);
  letter-spacing: 0.04em;
}
.console-ctrl {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--ink);
}
.console-ctrl:hover {
  border-color: var(--ink);
}

.console-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.console-tabs::-webkit-scrollbar { display: none; }
.c-tab {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--slate);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.c-tab:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.c-tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.console-body {
  padding: 16px 20px 18px;
}
.cb-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}
.cb-head h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink);
}
.cb-tag {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--brand);
  background: rgba(47, 91, 255, 0.08);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.cb-desc {
  margin: 0 0 14px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--slate);
}

/* Animated Pipeline Flow */
.cb-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.cb-flow::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), var(--signal), transparent);
  background-size: 200% 100%;
  animation: flowBeam 2.4s linear infinite;
  opacity: 0.65;
}
@keyframes flowBeam {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.cb-step {
  background: var(--soft);
  border-radius: 10px;
  padding: 9px 11px;
  transition: transform 0.25s ease, background-color 0.25s ease;
}
.cb-step.swap {
  animation: stepPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes stepPop {
  from { opacity: 0.4; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
.cb-step small {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 2px;
}
.cb-step span {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

/* Live Ticket Ticker inside Console */
.hl-feed {
  list-style: none;
  margin: 14px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 126px;
  overflow: hidden;
  position: relative;
}
.hl-feed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36px;
  background: linear-gradient(transparent, #fff);
  pointer-events: none;
}
.hl-ev {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--soft);
  font-size: 0.8rem;
  animation: evSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hl-ev:not(:first-child) {
  background: transparent;
  opacity: 0.72;
}
@keyframes evSlide {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}
.hl-ev strong {
  color: var(--ink);
  font-weight: 700;
}
.hl-ev-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.hl-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--wa-tint);
  color: var(--wa);
}
.hl-time {
  font-size: 0.74rem;
  color: var(--slate);
  font-variant-numeric: tabular-nums;
}

/* ---------- Mission & Pillars ---------- */
.hl-mission {
  padding: clamp(64px, 8vw, 108px) 0;
  border-bottom: 1px solid var(--line);
}
.mission-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
}
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 12px;
}
.mission-copy h2 {
  margin: 0 0 20px;
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.mission-copy p {
  margin: 0 0 16px;
  color: var(--slate);
  font-size: 1rem;
  line-height: 1.7;
}
.pillars-list {
  border-top: 1px solid var(--ink);
}
.pillar-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 24px 8px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s ease, padding-left 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.pillar-row:hover {
  background: var(--soft);
  padding-left: 16px;
}
.pillar-num {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--brand);
  padding-top: 3px;
}
.pillar-row h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
}
.pillar-row p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--slate);
  line-height: 1.55;
}

/* ---------- 5 Helpline Programmes ---------- */
.hl-programmes {
  padding: clamp(64px, 8vw, 108px) 0;
  background: var(--soft);
}
.prog-head {
  max-width: 44rem;
  margin-bottom: clamp(32px, 4vw, 52px);
}
.prog-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 3.3vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.prog-head p {
  margin: 0;
  color: var(--slate);
  font-size: 1.04rem;
  line-height: 1.6;
}
.prog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 28px);
}
.prog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(22px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.35s ease;
}
.prog-card:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: 0 20px 44px -20px rgba(15, 23, 42, 0.16);
}
.prog-card-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
}
.prog-idx {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
  display: block;
}
.prog-card h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.prog-card p {
  margin: 0 0 20px;
  color: var(--slate);
  font-size: 0.96rem;
  line-height: 1.6;
}
.prog-points {
  list-style: none;
  margin: auto 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}
.prog-points li {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  padding-left: 16px;
  position: relative;
}
.prog-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.prog-card-wide .prog-points {
  border-top: 0;
  border-left: 1px solid var(--line);
  padding: 0 0 0 24px;
  margin: 0;
}

/* ---------- Inquiry Form ---------- */
.hl-contact {
  padding: clamp(64px, 8vw, 108px) 0;
  background: #fff;
}
.hl-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: start;
}
.hl-contact-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.hl-contact-copy p {
  margin: 0 0 20px;
  color: var(--slate);
  font-size: 1.02rem;
  line-height: 1.65;
}
.hl-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: var(--soft);
  padding: clamp(22px, 3vw, 34px);
  border-radius: 18px;
  border: 1px solid var(--line);
}
.hl-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hl-form .field.full {
  grid-column: 1 / -1;
}
.hl-form label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
}
.hl-form input,
.hl-form select,
.hl-form textarea {
  font: inherit;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 0.96rem;
}
.hl-form input:focus,
.hl-form select:focus,
.hl-form textarea:focus {
  outline: none;
  border-color: var(--brand);
}
.hl-form-note {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hl-hero {
    min-height: auto;
    padding: 36px 0 48px;
  }
  .hl-hero-grid,
  .mission-grid,
  .hl-contact-grid,
  .prog-card-wide {
    grid-template-columns: 1fr;
  }
  .prog-card-wide .prog-points {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 16px 0 0;
  }
}
@media (max-width: 720px) {
  .prog-grid,
  .hl-form,
  .cb-flow {
    grid-template-columns: 1fr;
  }
}
