/* ============================================================
   SafeSpace Connect — Compassionate Support Pathway
   Human-centered design system. Calm, trustworthy, action-oriented.
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&family=Open+Sans:wght@300;400;500;600;700&display=swap');

/* --- Design Tokens --- */
:root {
  /* Colors */
  --c-primary: #FF6A21;
  --c-primary-hover: #E65A15;
  --c-primary-soft: #FFF1EA;
  --c-secondary: #183B63;
  --c-secondary-dark: #102B47;
  --c-accent-green: #1F5C4B;
  --c-bg: #FFFFFF;
  --c-surface: #F5F7F7;
  --c-surface-soft: #EEF2F1;
  --c-card: #FFFFFF;
  --c-text: #1F2937;
  --c-text-secondary: #6B7280;
  --c-text-muted: #9CA3AF;
  --c-border: #E5E7EB;
  --c-success: #2BA640;
  --c-warning: #F59E0B;
  --c-error: #D92D20;

  /* Typography */
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-24: 96px;

  /* Layout */
  --max-w: 1160px;
  --header-h: 72px;
  --hero-h: 640px;

  /* Shadows */
  --shadow-1: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-2: 0 6px 20px rgba(0,0,0,0.10);
  --shadow-3: 0 10px 36px rgba(0,0,0,0.14);

  /* Radius */
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;
  --r-xl: 12px;
  --r-2xl: 20px;
  --r-full: 9999px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-text-secondary);
  background: var(--c-bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-secondary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-primary); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--c-text);
  line-height: 1.2;
  font-weight: 600;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--c-primary); color: #fff; padding: var(--sp-3) var(--sp-4);
  z-index: 200; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* --- Layout --- */
.container { width: min(var(--max-w), 92%); margin-inline: auto; }

/* --- Section Label (eyebrow) --- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-primary);
  margin-bottom: var(--sp-4);
}
.eyebrow--light { color: rgba(255,255,255,.85); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0 20px;
  height: 44px;
  border-radius: var(--r-sm);
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all .2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}
.btn--primary:hover {
  background: var(--c-primary-hover);
  border-color: var(--c-primary-hover);
  color: #fff;
}

.btn--secondary {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-primary);
}
.btn--secondary:hover {
  background: var(--c-primary);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--c-primary);
  border-color: transparent;
}
.btn--ghost:hover { color: var(--c-primary-hover); }

.btn--white {
  background: #fff;
  color: var(--c-primary);
  border-color: #fff;
}
.btn--white:hover {
  background: var(--c-primary-soft);
  color: var(--c-primary-hover);
  border-color: var(--c-primary-soft);
}

.btn--small { height: 36px; padding: 0 16px; font-size: 12px; }
.btn--large { height: 52px; padding: 0 28px; font-size: 14px; }
.btn--block { width: 100%; }

/* --- Top Bar --- */
.topbar {
  background: var(--c-secondary-dark);
  color: rgba(255,255,255,.8);
  font-size: 13px;
  line-height: 20px;
}
.topbar__inner {
  display: flex;
  gap: var(--sp-6);
  padding-block: var(--sp-2);
  flex-wrap: wrap;
  align-items: center;
}
.topbar__item { display: flex; align-items: center; gap: var(--sp-2); }
.topbar__item a { color: #fff; font-weight: 600; }
.topbar__item a:hover { color: var(--c-primary); }
.topbar__reg {
  margin-left: auto;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  letter-spacing: 0.02em;
}

/* --- Header / Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  height: var(--header-h);
}

.site-header__inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: var(--sp-8);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img {
  height: 66px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  flex: 1;
  justify-content: flex-end;
}

.main-nav__list {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.main-nav__list a {
  display: block;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  color: var(--c-text);
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: all .15s;
}
.main-nav__list a:hover,
.main-nav__list a.is-active {
  color: var(--c-primary);
  background: var(--c-primary-soft);
  text-decoration: none;
}

/* Dropdown */
.has-dropdown { position: relative; }
.has-dropdown > a { display: inline-flex; align-items: center; gap: 4px; }
.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}

.dropdown-arrow {
  font-size: 10px;
  transition: transform .2s;
  display: inline-block;
}
.has-dropdown:hover > a .dropdown-arrow,
.has-dropdown.is-open > a .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-toggle {
  display: none;
  background: none; border: 0; padding: 10px 6px;
  cursor: pointer; color: var(--c-text-muted);
  font-size: 12px;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  padding: var(--sp-2);
  list-style: none;
  z-index: 90;
}
.dropdown__heading {
  padding: 10px 14px 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-muted);
  pointer-events: none;
}
.dropdown__divider {
  height: 1px;
  background: var(--c-border);
  margin: var(--sp-2) var(--sp-3);
}
.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--c-text);
}
.dropdown a:hover { background: var(--c-surface); color: var(--c-primary); text-decoration: none; }

.has-dropdown.is-open .dropdown,
.has-dropdown:hover .dropdown { display: block; }

/* Nested flyout submenus */
.has-dropdown .has-dropdown > .dropdown { display: none; }
.has-dropdown .has-dropdown:hover > .dropdown { display: block; }
.dropdown--sub {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 200px;
}
.dropdown--sub2 { min-width: 180px; }
.has-dropdown .has-dropdown > a {
  justify-content: space-between;
  gap: var(--sp-4);
}
.has-dropdown .has-dropdown > a .dropdown-arrow {
  font-size: 9px;
  opacity: 0.5;
}

.nav-help { margin-left: var(--sp-3); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: 0;
  cursor: pointer; padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: all .2s;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: var(--hero-h);
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--sp-16);
  background:
    linear-gradient(180deg, rgba(20,15,10,0.65) 0%, rgba(40,25,15,0.45) 50%, rgba(80,45,20,0.25) 100%),
    url('/assets/images/Homepage/hero.webp');
  background-size: cover;
  background-position: center top;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.28);
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  max-width: 600px;
  padding: var(--sp-16) 0;
  color: #fff;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1.1;
  font-weight: 500;
  color: #fff;
  margin-bottom: var(--sp-6);
}
.hero h1 span { color: var(--c-primary); }

.hero__lede {
  font-size: 18px;
  line-height: 1.75;
  color: rgba(255,255,255,.85);
  max-width: 520px;
  margin-bottom: var(--sp-8);
}

.hero__actions {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

/* Hero panel (right side) */
.hero__panel { display: flex; justify-content: flex-end; }

.hero__card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  max-width: 360px;
  width: 100%;
}
.hero__card h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  margin-bottom: var(--sp-2);
}
.hero__card p { color: rgba(255,255,255,.8); font-size: 15px; margin-bottom: var(--sp-4); }
.hero__helplines {
  list-style: none;
  margin: 0 0 var(--sp-5);
  padding: 0;
}
.hero__helplines li {
  padding: 6px 0;
  color: rgba(255,255,255,.85);
  font-size: 15px;
}
.hero__helplines a {
  color: var(--c-primary);
  font-weight: 700;
}
.hero__helplines a:hover { color: #fff; }

/* --- Sections --- */
.section { padding-block: 72px; }
.section--surface { background: var(--c-surface); }
.section--soft { background: var(--c-surface-soft); }

.section__head {
  max-width: 600px;
  margin-bottom: var(--sp-12);
}
.section__head h2 {
  font-size: clamp(26px, 3.5vw, 32px);
  line-height: 1.25;
  font-weight: 700;
  color: var(--c-secondary);
  margin-bottom: var(--sp-4);
}
.section__head p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-text-secondary);
}
.section__more { margin-top: var(--sp-6); }

.section__head--center { text-align: center; margin-inline: auto; }
.section__head--green h2 { color: var(--c-accent-green); }

/* --- Two Column Intro --- */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}
.intro-grid__text h2 {
  font-size: clamp(26px, 3vw, 32px);
  color: var(--c-secondary);
  margin-bottom: var(--sp-4);
}
.intro-grid__text p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-text-secondary);
  margin-bottom: var(--sp-4);
}

/* --- Image Collage --- */
.collage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-2);
}
.collage__item {
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-surface);
  aspect-ratio: 4 / 3;
}
.collage__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.collage__item:hover img {
  transform: scale(1.08);
}
.collage__item--wide { grid-column: span 2; }
.collage__item--tall { grid-row: span 2; }
.collage__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--c-text-muted);
  background: var(--c-surface-soft);
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-6);
}
.card-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  transition: box-shadow .2s, transform .2s;
}
.card h3 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: var(--sp-2);
}
.card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--c-text-secondary);
}

.card--link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  cursor: pointer;
}
.card--link:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-3px);
  text-decoration: none;
}
.card__arrow {
  margin-top: auto;
  padding-top: var(--sp-4);
  color: var(--c-primary);
  font-size: 18px;
  font-weight: 700;
}

/* --- Values / Mission Cards --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
}
.value-card {
  text-align: center;
  padding: var(--sp-8) var(--sp-6);
}
.value-card__icon {
  width: 44px;
  height: 44px;
  margin: 0 auto var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--c-primary-soft);
  color: var(--c-primary);
  font-size: 18px;
}
.value-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-secondary);
  margin-bottom: var(--sp-3);
}
.value-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--c-text-secondary);
}
.about-values .value-card {
  text-align: left;
}
.about-values .value-card__icon {
  margin: 0 0 var(--sp-4);
}

/* --- Partners --- */
.partners-carousel {
  overflow: hidden;
  padding: var(--sp-6) 0;
  margin: 0 calc(var(--sp-6) * -1);
}
.partners-track {
  display: flex;
  gap: var(--sp-6);
  animation: partner-scroll 25s linear infinite;
  width: max-content;
}
.partners-track:hover {
  animation-play-state: paused;
}
@keyframes partner-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 12px)); }
}
.partner-card {
  flex: 0 0 calc((100% - 96px) / 5);
  min-width: 240px;
  max-width: 320px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  transition: box-shadow .2s;
}
.partner-card:hover { box-shadow: var(--shadow-1); }
.partner-card img {
  max-height: 100px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* --- CTA Band --- */
.cta-band {
  background: var(--c-primary);
  padding: var(--sp-12) 0;
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  flex-wrap: wrap;
}
.cta-band h2 {
  font-size: clamp(22px, 3vw, 28px);
  color: #fff;
  margin-bottom: var(--sp-2);
}
.cta-band p { color: rgba(255,255,255,.85); margin: 0; }

/* --- Page Hero (inner pages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--c-secondary) 0%, var(--c-secondary-dark) 100%);
  padding: 72px 0;
}
.page-hero .container { max-width: 720px; text-align: left; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 44px);
  font-weight: 500;
  color: #fff;
  margin-bottom: var(--sp-3);
  text-align: left;
}
.page-hero p {
  font-size: 17px;
  color: rgba(255,255,255,.8);
  line-height: 1.7;
}

.breadcrumb {
  font-size: 13px;
  margin-bottom: var(--sp-4);
  color: rgba(255,255,255,.6);
}
.breadcrumb a { color: var(--c-primary); }
.breadcrumb a:hover { color: #fff; text-decoration: none; }

/* --- Prose --- */
.prose h2 { margin-top: 2rem; color: var(--c-secondary); }
.prose p { margin-bottom: var(--sp-4); }

/* --- Directory --- */
.filter-panel {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  box-shadow: var(--shadow-1);
  margin-bottom: var(--sp-8);
}
.filter-panel__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--c-secondary);
  margin-bottom: var(--sp-4);
}
.filter-panel__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}
.filter-panel__actions {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

.directory__results {
  font-weight: 700;
  color: var(--c-secondary);
  margin-bottom: var(--sp-6);
  font-size: 15px;
}

.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-6);
}
.provider-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: box-shadow .2s, transform .2s;
}
.provider-card:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}
.provider-card__head {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  align-items: flex-start;
}
.provider-card__head h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}
.provider-card__head h2 a { color: var(--c-text); }
.provider-card__head h2 a:hover { color: var(--c-primary); }

.provider-card__type {
  background: var(--c-primary-soft);
  color: var(--c-primary);
  border-radius: var(--r-full);
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.provider-card__type--inline { align-self: flex-start; margin-top: var(--sp-2); }

/* Service type color coding */
.provider-card__type--legal { background: #FEE2E2; color: #B91C1C; }
.provider-card__type--medical { background: #DBEAFE; color: #1E40AF; }
.provider-card__type--psychosocial { background: #FFF7ED; color: #C2410C; }
.provider-card__type--livelihood { background: #ECFDF5; color: #047857; }
.provider-card__type--safe-housing { background: #F3E8FF; color: #7C3AED; }
.provider-card__type--government-services { background: #F0FDF4; color: #166534; }

.provider-card__meta {
  color: var(--c-text-muted);
  font-size: 13px;
  margin: 0;
}
.provider-card__services {
  color: var(--c-text-secondary);
  font-size: 14px;
  margin: 0;
  line-height: 1.6;
}
.provider-card__contact { margin: 0; }
.provider-card__contact a { font-weight: 600; color: var(--c-secondary); }
.provider-card .btn { margin-top: auto; align-self: flex-start; }

.provider-detail {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--sp-8);
  align-items: start;
}
.provider-detail__aside { position: sticky; top: calc(var(--header-h) + var(--sp-6)); }
.provider-detail__aside .card--contact {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
}
.provider-detail__aside .card--contact p {
  color: var(--c-text);
  margin: var(--sp-3) 0;
  font-size: 15px;
}
.provider-detail__aside .btn { margin-top: var(--sp-3); }

.empty-state {
  text-align: center;
  border: 2px dashed var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-16) var(--sp-6);
  color: var(--c-text-muted);
}
.empty-state h2 { color: var(--c-text); margin-bottom: var(--sp-3); }

/* --- Posts / News --- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--sp-6);
}
.post-card {
  display: block;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  text-decoration: none;
  transition: box-shadow .2s, transform .2s;
}
.post-card:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-3px);
  text-decoration: none;
}
.post-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.post-card__placeholder {
  height: 200px;
  background: linear-gradient(135deg, var(--c-surface-soft), var(--c-surface));
}
.post-card__body { padding: var(--sp-5) var(--sp-6) var(--sp-6); }
.post-card__tag {
  display: inline-block;
  background: var(--c-primary-soft);
  color: var(--c-primary);
  border-radius: var(--r-full);
  padding: 3px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-3);
}
.post-card__body h2,
.post-card__body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: var(--sp-2);
}
.post-card__body p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-text-secondary);
  margin-bottom: var(--sp-3);
}
.post-card__body time {
  font-size: 12px;
  color: var(--c-text-muted);
}

.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-8);
}
.category-nav a {
  padding: 8px 20px;
  border-radius: var(--r-full);
  border: 1px solid var(--c-border);
  background: var(--c-card);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-secondary);
  transition: all .15s;
}
.category-nav a.is-active,
.category-nav a:hover {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
  text-decoration: none;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--sp-4);
  margin-top: var(--sp-8);
  color: var(--c-text-muted);
}

.article__inner { max-width: 740px; }
.article__inner .breadcrumb a { color: var(--c-primary); }
.article__head {
  text-align: center;
  margin: var(--sp-8) 0;
}
.article__head h1 {
  font-size: clamp(28px, 4vw, 36px);
  color: var(--c-secondary);
}
.article__meta { color: var(--c-text-muted); font-size: 14px; }
.article__image {
  border-radius: var(--r-xl);
  margin-bottom: var(--sp-8);
}
.article__body {
  font-size: 17px;
  line-height: 1.8;
  color: var(--c-text-secondary);
}
.article__back { margin-top: var(--sp-8); }

/* Post Gallery */
.post-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  margin-top: var(--sp-8);
}
.post-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--r-lg);
  transition: transform .3s ease;
  cursor: pointer;
}
.post-gallery img:hover {
  transform: scale(1.03);
}
@media (max-width: 640px) {
  .post-gallery { grid-template-columns: repeat(2, 1fr); }
  .post-gallery img { height: 150px; }
}

/* --- Forms --- */
.form-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--sp-8);
  align-items: start;
}
.form-layout__info h2 {
  font-size: 24px;
  color: var(--c-secondary);
  margin-bottom: var(--sp-4);
}
.form-layout__info p { color: var(--c-text-secondary); margin-bottom: var(--sp-4); }

.help-box {
  background: var(--c-primary-soft);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  margin: var(--sp-5) 0;
}
.help-box p { color: var(--c-text); margin-bottom: var(--sp-2); font-weight: 600; }
.help-box ul { margin: 0; padding-left: var(--sp-5); color: var(--c-text); }
.help-box a { font-weight: 700; color: var(--c-primary); }

.tick-list { list-style: none; padding: 0; margin: 0 0 var(--sp-5); }
.tick-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--c-text);
}
.tick-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--c-success);
  font-weight: 700;
}

.field { margin-bottom: var(--sp-4); }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 6px;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field input[type="search"],
.field input[type="password"],
.field select,
.field textarea {
  width: 100%;
  height: 44px;
  padding: 0 var(--sp-4);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--c-text);
  background: var(--c-card);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { height: auto; padding: var(--sp-3) var(--sp-4); line-height: 1.6; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(255,106,33,0.15);
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.field-row--3 { grid-template-columns: 1fr 1fr 1fr; }

.privacy-note {
  color: var(--c-text-muted);
  font-size: 13px;
  margin-bottom: var(--sp-5);
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  height: 0 !important;
  width: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
}

.alert {
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-5);
  font-size: 15px;
}
.alert--success { background: #ECFDF5; border: 1px solid #A7F3D0; color: #065F46; }
.alert--error { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }
.alert ul { margin: var(--sp-2) 0 0; padding-left: var(--sp-5); }

/* --- Emergency Page --- */
.emergency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-6);
  margin-bottom: var(--sp-8);
}
.emergency-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  text-align: center;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-8) var(--sp-6);
  box-shadow: var(--shadow-1);
  text-decoration: none;
  transition: box-shadow .2s, transform .2s;
}
.emergency-card:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-3px);
  text-decoration: none;
}
.emergency-card--phone {
  background: var(--c-primary);
  border-color: var(--c-primary);
}
.emergency-card--phone .emergency-card__label,
.emergency-card--phone .emergency-card__value,
.emergency-card--phone .emergency-card__hint { color: #fff; }

.emergency-card__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-text-muted);
}
.emergency-card__value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--c-text);
}
.emergency-card__hint { font-size: 14px; color: var(--c-text-muted); }

.safety-note {
  background: var(--c-primary-soft);
  border-left: 4px solid var(--c-primary);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  margin-bottom: var(--sp-8);
}
.safety-note h2 { font-size: 20px; color: var(--c-secondary); margin-bottom: var(--sp-2); }
.safety-note p { margin: 0; color: var(--c-text-secondary); }

/* --- Pathway --- */
.pathway {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-8);
}
.pathway__step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--sp-5);
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--c-border);
  align-items: start;
}
.pathway__step:last-child { border-bottom: 0; }
.pathway__number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  flex-shrink: 0;
}
.pathway__step h2 {
  font-size: 20px;
  color: var(--c-secondary);
  margin-bottom: var(--sp-2);
}

.cta-inline {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  background: var(--c-primary-soft);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
}
.cta-inline p {
  margin: 0;
  font-weight: 700;
  color: var(--c-secondary);
  flex: 1;
}

/* --- Footer --- */
.site-footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  margin-top: 0;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--sp-8);
  padding-block: var(--sp-16);
}
.site-footer a { color: var(--c-text-secondary); }
.site-footer a:hover { color: var(--c-primary); text-decoration: none; }

.site-footer__heading {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-5);
}
.brand--footer img { height: 66px; }
.site-footer__brand p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-text-secondary);
  margin-top: var(--sp-4);
}

.site-footer__links,
.site-footer__contact {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer__links li,
.site-footer__contact li {
  padding: 5px 0;
  font-size: 14px;
  line-height: 24px;
}
.site-footer__contact li strong {
  color: var(--c-text);
  font-weight: 600;
}

.site-footer__disclaimer {
  background: var(--c-primary-soft);
  border-radius: var(--r-lg);
  margin-bottom: var(--sp-8);
}
.site-footer__disclaimer p {
  margin: 0;
  padding: var(--sp-4) var(--sp-6);
  font-size: 14px;
  color: var(--c-text);
}
.site-footer__disclaimer a {
  color: var(--c-primary);
  font-weight: 700;
  text-decoration: underline;
}

.site-footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  padding-block: var(--sp-5) var(--sp-8);
  border-top: 1px solid var(--c-border);
  font-size: 13px;
  color: var(--c-text-muted);
}
.site-footer__bottom a { color: var(--c-text-muted); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .filter-panel__row { grid-template-columns: 1fr 1fr; }
  .card-grid--3 { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .provider-detail { grid-template-columns: 1fr; }
  .provider-detail__aside { position: static; }
}

@media (max-width: 920px) {
  :root { --header-h: 60px; --hero-h: 520px; }

  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--c-card);
    border-bottom: 1px solid var(--c-border);
    padding: var(--sp-4);
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow-2);
    z-index: 99;
    max-height: 80vh;
    overflow-y: auto;
  }
  .main-nav.is-open { display: flex; }
  .main-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .main-nav__list > li { border-bottom: 1px solid var(--c-border); }
  .main-nav__list > li:last-child { border-bottom: 0; }
  .main-nav__list > li > a { padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; }
  .dropdown { position: static; box-shadow: none; border: 0; padding-left: var(--sp-6); margin-top: 0; border-radius: 0; border-left: 2px solid var(--c-border); }
  .dropdown--sub { position: static; border-left: 2px solid var(--c-border); padding-left: var(--sp-6); }
  .dropdown--sub2 { position: static; border-left: 2px solid var(--c-border); padding-left: var(--sp-6); }
  .dropdown__heading { display: none; }
  .has-dropdown.is-open .dropdown { display: block; }
  .has-dropdown.is-open > a .dropdown-arrow { transform: rotate(90deg); }
  .has-dropdown .has-dropdown > a .dropdown-arrow { transform: rotate(0deg); }
  .has-dropdown .has-dropdown.is-open > a .dropdown-arrow { transform: rotate(90deg); }
  .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    margin-left: auto;
    flex-shrink: 0;
  }
  .nav-help { margin: var(--sp-4) 0 0; text-align: center; }

  .hero__inner {
    grid-template-columns: 1fr;
    padding-block: var(--sp-12);
    gap: var(--sp-8);
  }
  .hero__panel { justify-content: stretch; }
  .hero__card { max-width: none; }

  .intro-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .card-grid--3 { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .form-layout { grid-template-columns: 1fr; }
  .field-row--3 { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }

  .section { padding-block: 48px; }
  .page-hero { padding: 48px 0; }
}

@media (max-width: 640px) {
  .filter-panel__row { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .cta-band__inner { flex-direction: column; text-align: center; }
  .collage { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .collage__item--wide { grid-column: span 1; }
}

/* --- Accordion --- */
.accordion__item {
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  margin-bottom: var(--sp-3);
  background: var(--c-card);
  overflow: hidden;
  transition: box-shadow .2s;
}
.accordion__item:hover { box-shadow: var(--shadow-1); }
.accordion__item.is-open { border-color: var(--c-primary); }
.accordion__toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-5) var(--sp-6);
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  color: var(--c-text);
  text-align: left;
}
.accordion__toggle:hover { color: var(--c-primary); }
.accordion__arrow {
  font-size: 14px;
  color: var(--c-text-muted);
  transition: transform .25s ease;
  flex-shrink: 0;
  margin-left: var(--sp-4);
}
.accordion__item.is-open .accordion__arrow { transform: rotate(180deg); color: var(--c-primary); }
.accordion__content {
  display: none;
  padding: 0 var(--sp-6) var(--sp-6);
  color: var(--c-text-secondary);
  font-size: 16px;
  line-height: 1.8;
}
.accordion__item.is-open .accordion__content { display: block; }
.accordion__content strong { color: var(--c-text); }

/* --- Step Progress Bar --- */
.step-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: var(--sp-4) 0;
}
.step-progress__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  position: relative;
}
.step-progress__number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-surface);
  border: 2px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--c-text-muted);
  transition: all .3s;
}
.step-progress__item.is-active .step-progress__number {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}
.step-progress__item.is-complete .step-progress__number {
  background: var(--c-success);
  border-color: var(--c-success);
  color: #fff;
}
.step-progress__label {
  font-size: 12px;
  color: var(--c-text-muted);
  white-space: nowrap;
}
.step-progress__item.is-active .step-progress__label {
  color: var(--c-primary);
  font-weight: 600;
}
.step-progress__line {
  width: 80px;
  height: 2px;
  background: var(--c-border);
  margin: 0 var(--sp-2);
  margin-bottom: 20px;
  transition: background .3s;
}
.step-progress__line.is-active {
  background: var(--c-primary);
}

/* --- Cookies Banner --- */
.cookies-banner {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  max-width: 400px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-3);
  padding: var(--sp-8);
  z-index: 200;
  display: none;
}
.cookies-banner.is-visible { display: block; }
.cookies-banner h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-secondary);
  margin-bottom: var(--sp-3);
}
.cookies-banner p {
  font-size: 14px;
  color: var(--c-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--sp-5);
}
.cookies-banner__actions {
  display: flex;
  gap: var(--sp-3);
  align-items: center;
}

/* --- Print --- */
@media print {
  .topbar, .site-header, .site-footer, .hero__actions, .cta-inline, .cta-band, .cookies-banner { display: none; }
  body { background: #fff; }
}



/* --- News Profile Sidebar --- */
.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--sp-8);
  align-items: start;
}

.news-main { min-width: 0; }

.article__inner { max-width: var(--max-w); }

.profile-sidebar {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-6));
}

.profile-card {
  overflow: hidden;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-1);
}

.profile-card__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  background: var(--c-surface);
}

.profile-card__content { padding: var(--sp-6); }

.profile-card__eyebrow {
  margin: 0 0 var(--sp-2);
  color: var(--c-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  line-height: 1.4;
  text-transform: uppercase;
}

.profile-card h2 {
  margin: 0 0 var(--sp-2);
  color: var(--c-secondary);
  font-size: 24px;
  line-height: 1.15;
}

.profile-card__role {
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--c-border);
  margin: 0 0 var(--sp-4);
  color: var(--c-text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.profile-card__role span {
  color: var(--c-primary);
  padding-inline: 2px;
}

.profile-card__bio p {
  margin: 0 0 var(--sp-4);
  color: var(--c-text-secondary);
  font-size: 13px;
  line-height: 1.7;
}

.profile-card__bio p:last-child { margin-bottom: 0; }

@media (max-width: 920px) {
  .news-layout { grid-template-columns: 1fr; }
  .profile-sidebar {
    position: static;
    margin-top: var(--sp-8);
  }
  .profile-card {
    display: grid;
    grid-template-columns: minmax(220px, 34%) 1fr;
  }
  .profile-card__photo {
    height: 100%;
    min-height: 360px;
    aspect-ratio: auto;
  }
}

@media (max-width: 640px) {
  .profile-card { display: block; }
  .profile-card__photo {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
    object-position: center 18%;
  }
  .profile-card__content { padding: var(--sp-5); }
}

/* Keep faces visible in portrait news thumbnails */
.post-card img[src*="national-gbv-dashboard-council-1"],
.post-card img[src*="sgbv-desk-officers-training-1"] {
      object-position: center top;
}

