/* ==========================================================================
   Sakriya Sath - Modern NGO Design System & Stylesheet
   Focus: HIV & SRH Social Organization, Training, Advocacy & Media Communication
   Responsive across Mobile (360px-580px), Tablet (768px-992px), Desktop (1200px+)
   ========================================================================== */

:root {
  color-scheme: light;

  /* Primary Brand Palette */
  --blue-dark: #122368;
  --blue: #1835c5;
  --blue-hover: #0f2494;
  --blue-light: #eef2ff;

  /* Awareness Accent (HIV Red Ribbon) */
  --accent-red: #c92a2a;
  --accent-red-hover: #b02525;
  --accent-red-soft: #fff0f0;

  /* Warm Institutional Neutrals & Brand Colors */
  --cream: #faf7ee;
  --cream-light: #fffdf7;
  --soft-yellow: #fff5c2;
  --logo-yellow: #fff200;
  --logo-brown: #704012;
  --logo-gold: #854d0e;

  /* Neutral Text & Surface Colors */
  --ink: #1c1917;
  --muted: #44403c;
  --muted-light: #78716c;
  --line: #e7dfca;
  --line-light: #f2ede0;
  --white: #ffffff;

  /* Shadows */
  --shadow-sm: 0 2px 6px rgba(28, 25, 23, 0.05);
  --shadow-md: 0 6px 20px rgba(28, 25, 23, 0.08);
  --shadow-lg: 0 14px 34px rgba(28, 25, 23, 0.12);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --trans-fast: 0.15s ease;
  --trans-base: 0.25s ease;
  --trans-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  /* Typography */
  --font-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--trans-fast), background-color var(--trans-fast), border-color var(--trans-fast);
}

h1, h2, h3, h4, p {
  margin-top: 0;
}

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 750;
}

.container {
  width: min(1140px, calc(100% - clamp(32px, 6vw, 64px)));
  margin-inline: auto;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -80px;
  left: 20px;
  z-index: 1000;
  padding: 12px 20px;
  background: var(--blue-dark);
  color: var(--white);
  font-weight: 700;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  transition: top var(--trans-fast);
}

.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 3px solid var(--accent-red);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Site Header & Brand Identity
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--trans-base), background-color var(--trans-base);
}

.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(18, 35, 104, 0.08);
  background: #ffffff;
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Brand Lockup */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.brand-logo {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  object-fit: contain;
  border-radius: 50%;
  padding: 2px;
  border: 2px solid var(--logo-brown);
  background: var(--white);
  box-shadow: 0 2px 8px rgba(112, 64, 18, 0.18);
  transition: transform var(--trans-fast), box-shadow var(--trans-fast);
}

.brand:hover .brand-logo {
  transform: scale(1.04);
  box-shadow: 0 4px 12px rgba(112, 64, 18, 0.26);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--blue-dark);
}

.brand-subtitle {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--logo-brown);
  margin-top: 2px;
}

/* Desktop Navigation */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.site-nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color var(--trans-fast), color var(--trans-fast);
}

.site-nav a:hover {
  background: var(--soft-yellow);
  color: var(--blue-dark);
}

.site-nav a[aria-current="page"] {
  background: var(--soft-yellow);
  color: var(--blue-dark);
  font-weight: 700;
}

.site-nav .nav-cta {
  background: var(--blue);
  color: var(--white);
  padding: 6px 14px;
  margin-left: 2px;
  font-weight: 600;
}

.site-nav .nav-cta:hover {
  background: var(--blue-hover);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(24, 53, 197, 0.28);
}

.site-nav .nav-cta[aria-current="page"] {
  background: var(--blue-dark);
  color: var(--white);
}

/* Header Social Media Icons */
.header-social {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
}

.social-link,
.facebook-link {
  width: 32px;
  height: 32px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 0;
  text-decoration: none;
  background: transparent;
  transition: background-color var(--trans-fast), transform var(--trans-fast);
}

.social-link:hover,
.facebook-link:hover {
  background: var(--soft-yellow);
  transform: translateY(-1px);
}

.social-link svg,
.facebook-link svg {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

/* Screen reader only utility */
.sr-only,
.social-link span,
.facebook-link span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile Toggle Button */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--ink);
  transition: background-color var(--trans-fast), border-color var(--trans-fast);
}

.menu-toggle:hover {
  background: var(--soft-yellow);
  border-color: var(--logo-brown);
}

.menu-toggle-icon {
  width: 22px;
  height: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle-icon span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--trans-base), opacity var(--trans-base);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(1) {
  transform: translateY(7.75px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(3) {
  transform: translateY(-7.75px) rotate(-45deg);
}



/* --------------------------------------------------------------------------
   Buttons & Core Elements
   -------------------------------------------------------------------------- */
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--trans-fast), color var(--trans-fast), border-color var(--trans-fast), transform var(--trans-fast), box-shadow var(--trans-fast);
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(24, 53, 197, 0.25);
}

.button-primary:hover {
  background: var(--blue-hover);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(24, 53, 197, 0.32);
}

.button-accent {
  background: var(--accent-red);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(201, 42, 42, 0.25);
}

.button-accent:hover {
  background: var(--accent-red-hover);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(201, 42, 42, 0.32);
}

.button-outline {
  border-color: var(--blue);
  background: transparent;
  color: var(--blue-dark);
}

.button-outline:hover {
  background: var(--soft-yellow);
  border-color: var(--blue-dark);
}

.button-dark {
  background: var(--blue-dark);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(18, 35, 104, 0.25);
}

.button-dark:hover {
  background: var(--blue);
  color: var(--white);
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--accent-red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow-blue {
  color: var(--blue-dark);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-red {
  background: var(--accent-red-soft);
  color: var(--accent-red);
  border: 1px solid rgba(201, 42, 42, 0.2);
}

.badge-blue {
  background: var(--blue-light);
  color: var(--blue-dark);
  border: 1px solid rgba(24, 53, 197, 0.2);
}

.badge-yellow {
  background: var(--soft-yellow);
  color: var(--logo-brown);
  border: 1px solid rgba(112, 64, 18, 0.2);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  background: linear-gradient(180deg, var(--cream-light) 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(48px, 6vw, 76px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero h1, .page-hero h1 {
  margin-bottom: 20px;
  font-size: clamp(36px, 4.8vw, 56px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.14;
  color: var(--blue-dark);
}

.hero h1 span, h2 span, .page-hero h1 span {
  color: var(--accent-red);
}

.hero-copy {
  max-width: 530px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 17.5px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.note-icon {
  color: var(--accent-red);
  font-size: 20px;
  line-height: 1;
}

.hero-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  background: var(--soft-yellow);
}

.hero-photo img, .about-photo img, .program-photo img, .community-photo img, .project-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-photo:hover img, .about-photo:hover img, .program-photo:hover img, .community-photo:hover img {
  transform: scale(1.025);
}

.hero-photo figcaption, .story-caption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(18, 35, 104, 0.94);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--white);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  border-left: 3px solid var(--accent-red);
}

/* --------------------------------------------------------------------------
   Impact & Mission Strip
   -------------------------------------------------------------------------- */
.impact-strip {
  border-bottom: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.5fr;
  align-items: center;
  gap: 24px;
  padding-block: 28px;
}

.impact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.impact-item strong {
  color: var(--blue-dark);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.impact-item span {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
}

.impact-message {
  padding-left: 28px;
  border-left: 3px solid var(--accent-red);
}

.impact-message .eyebrow {
  margin-bottom: 4px;
}

.impact-message p {
  margin-bottom: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Standard Section Styling
   -------------------------------------------------------------------------- */
.section {
  padding-block: clamp(56px, 7vw, 84px);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 36px;
}

.section-heading h2, .story-copy h2, .two-column h2, .contact-intro h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 3.8vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--blue-dark);
}

.section-intro {
  max-width: 480px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Core Pillars / Programs Cards
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card-grid-5 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.program-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent-red);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--trans-base), box-shadow var(--trans-base), border-color var(--trans-base);
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #d8cdb4;
}

.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--soft-yellow);
  color: var(--blue-dark);
  font-size: 20px;
  border: 1px solid rgba(112, 64, 18, 0.16);
}

.card-number {
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.program-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 750;
  color: var(--blue-dark);
}

.program-card h3 a {
  color: inherit;
}

.program-card h3 a:hover {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.program-card > p:not(.card-number) {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
}

.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--blue);
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  transition: color var(--trans-fast), transform var(--trans-fast);
}

.text-link:hover {
  color: var(--accent-red);
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Projects & Activities Showcase (Phase 4 Homepage Highlight)
   4-5 Curated Photographs with authentic context
   -------------------------------------------------------------------------- */
.projects-section {
  background: var(--cream);
  border-block: 1px solid var(--line);
  padding-block: clamp(56px, 7vw, 84px);
}

.projects-showcase {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  margin-bottom: 36px;
}

/* Featured Project Card (Large Left) */
.project-card-featured {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--trans-base), box-shadow var(--trans-base);
}

.project-card-featured:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.project-card-featured .project-media {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: var(--soft-yellow);
}

.project-card-featured .project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card-featured:hover .project-media img {
  transform: scale(1.03);
}

.project-badge-float {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}

.project-card-featured .project-content {
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-light);
}

.project-card-featured h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--blue-dark);
}

.project-card-featured p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
  margin-bottom: 18px;
}

/* Supporting Projects Grid (2x2 Right) */
.projects-subgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.project-card-mini {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--trans-base), box-shadow var(--trans-base);
}

.project-card-mini:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.project-card-mini .project-media {
  position: relative;
  height: 155px;
  overflow: hidden;
  background: var(--soft-yellow);
}

.project-card-mini .project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card-mini:hover .project-media img {
  transform: scale(1.04);
}

.project-card-mini .project-content {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-card-mini h4 {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--blue-dark);
  line-height: 1.3;
}

.project-card-mini p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
  margin-bottom: 12px;
}

.projects-action-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 24px;
}

/* --------------------------------------------------------------------------
   Media & Communication Formats Section
   -------------------------------------------------------------------------- */
.media-section {
  padding-block: clamp(56px, 7vw, 80px);
  background: var(--white);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.media-card {
  padding: 24px 20px;
  background: var(--cream-light);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--blue);
  box-shadow: var(--shadow-sm);
  transition: transform var(--trans-base);
}

.media-card:hover {
  transform: translateY(-3px);
  border-left-color: var(--accent-red);
}

.media-card .card-icon {
  margin-bottom: 14px;
  background: var(--white);
}

.media-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--blue-dark);
}

.media-card p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Story Band
   -------------------------------------------------------------------------- */
.story-band {
  background: var(--cream);
  border-block: 1px solid var(--line);
}

.story-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(36px, 6vw, 68px);
  padding-block: clamp(48px, 6vw, 68px);
}

.story-art {
  position: relative;
  height: 320px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  background: var(--soft-yellow);
}

.story-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 45%;
  transition: transform 0.4s ease;
}

.story-art:hover img {
  transform: scale(1.03);
}

.story-copy h2 {
  margin-bottom: 18px;
}

.story-copy > p:not(.eyebrow) {
  max-width: 500px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Photo Galleries & Visual Archives
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.gallery-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--trans-base), box-shadow var(--trans-base);
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.gallery-card img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-card:hover img {
  transform: scale(1.03);
}

.gallery-card figcaption {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.5;
  background: var(--white);
  border-top: 1px solid var(--line-light);
}

/* --------------------------------------------------------------------------
   Pre-Footer Call to Action (CTA) Section (Phase 5)
   -------------------------------------------------------------------------- */
.bottom-cta-section {
  padding-block: clamp(56px, 7vw, 84px);
  background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
  border-top: 1px solid var(--line);
  text-align: center;
}

.bottom-cta-inner {
  max-width: 680px;
  margin-inline: auto;
}

.bottom-cta-section h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 4.2vw, 46px);
  color: var(--blue-dark);
}

.bottom-cta-section > p:not(.eyebrow),
.bottom-cta-inner > p:not(.eyebrow) {
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.bottom-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

/* --------------------------------------------------------------------------
   Completely Improved 4-Column Footer (Phase 5)
   -------------------------------------------------------------------------- */
.site-footer {
  background: #0f1c4d;
  color: var(--white);
  border-top: 4px solid var(--accent-red);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.1fr 1.3fr;
  gap: 36px;
  padding-block: 54px 40px;
}

.footer-brand {
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.footer-brand .brand-logo {
  border-color: var(--logo-yellow);
}

.footer-brand .brand-title {
  color: var(--white);
  font-size: 20px;
}

.footer-brand .brand-subtitle {
  color: var(--soft-yellow);
}

.footer-mission {
  margin: 16px 0 0 0;
  color: #d1dcff;
  font-size: 14px;
  line-height: 1.65;
  max-width: 360px;
}

.footer-col-title {
  margin-bottom: 16px;
  color: var(--white);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 2px solid rgba(255, 245, 194, 0.3);
  padding-bottom: 6px;
  display: inline-block;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  color: #dbe4ff;
  font-size: 14.5px;
  text-decoration: none;
  transition: color var(--trans-fast), transform var(--trans-fast);
}

.footer-nav a:hover {
  color: var(--logo-yellow);
  transform: translateX(3px);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #dbe4ff;
}

.footer-contact-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--soft-yellow);
  font-size: 14px;
  font-weight: 700;
}

.footer-contact-item a {
  color: #ffffff;
  font-weight: 600;
}

.footer-contact-item a:hover {
  color: var(--logo-yellow);
  text-decoration: underline;
}

.footer-social-box {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(24, 119, 242, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  transition: background-color var(--trans-fast);
}

.footer-social-link:hover {
  background: #1877f2;
}

.footer-social-link svg {
  width: 20px;
  height: 20px;
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #c5d3ff;
  font-size: 13px;
}

.footer-reg-note {
  font-size: 12.5px;
  color: #a4b8f5;
}

/* --------------------------------------------------------------------------
   Subpage Layouts (About, Programs, Get Involved, Contact)
   -------------------------------------------------------------------------- */
.page-hero {
  padding-block: clamp(48px, 6vw, 68px);
  background: linear-gradient(180deg, var(--cream-light) 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(38px, 4.8vw, 56px);
}

.page-intro {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17.5px;
  line-height: 1.7;
}

.two-column {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(36px, 6vw, 68px);
}

.prose {
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.75;
}

.prose p {
  margin-bottom: 18px;
}

.prose ul {
  padding-left: 24px;
  margin-top: 8px;
}

.prose li {
  margin-bottom: 10px;
  padding-left: 4px;
}

/* Values Grid */
.values-section {
  padding-block: clamp(52px, 6vw, 76px);
  background: var(--cream);
  border-block: 1px solid var(--line);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.values-grid article {
  padding: 24px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent-red);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--trans-base);
}

.values-grid article:hover {
  transform: translateY(-3px);
}

.value-symbol {
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 800;
  display: inline-block;
  padding: 3px 8px;
  background: var(--soft-yellow);
  border-radius: var(--radius-sm);
}

.values-grid h3 {
  margin: 14px 0 8px;
  font-size: 19px;
  color: var(--blue-dark);
}

.values-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

/* Statement Grid for Proposed Vision & Mission */
.statement-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.statement-card {
  padding: 32px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent-red);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--trans-base), box-shadow var(--trans-base);
}

.statement-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.statement-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--soft-yellow);
  color: var(--logo-brown);
  border: 1px solid rgba(112, 64, 18, 0.2);
  margin-bottom: 14px;
}

.statement-card h3 {
  font-size: 22px;
  color: var(--blue-dark);
  margin-bottom: 12px;
}

.statement-card p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.statement-note {
  margin-top: auto;
  font-size: 13px;
  color: var(--muted-light);
  font-style: italic;
  line-height: 1.5;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}

/* Program Detail Section */
.program-detail-section {
  padding-block: 20px 64px;
}

.program-detail-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  padding-block: 48px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 90px;
}

.program-detail-card:last-child {
  border-bottom: 0;
}

.program-detail-card:nth-child(even) .program-detail-text {
  order: 2;
}

.program-detail-card:nth-child(even) .program-detail-visual {
  order: 1;
}

.program-detail-text h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  margin-bottom: 16px;
  color: var(--blue-dark);
}

.program-detail-text .prose p {
  margin-bottom: 14px;
}

.program-detail-visual {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  background: var(--soft-yellow);
}

.program-detail-visual img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.program-detail-visual:hover img {
  transform: scale(1.03);
}

.program-detail-visual figcaption {
  padding: 10px 14px;
  background: var(--cream);
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
  border-top: 1px solid var(--line-light);
}

/* Contact Cards */
.contact-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 6vw, 68px);
  padding-block: clamp(48px, 6vw, 76px);
}

.contact-cards {
  display: grid;
  gap: 18px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent-red);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--trans-fast), box-shadow var(--trans-fast);
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soft-yellow);
  color: var(--blue-dark);
  font-size: 18px;
  font-weight: 700;
  border: 1px solid rgba(112, 64, 18, 0.15);
}

.contact-card .eyebrow {
  margin-bottom: 6px;
}

.contact-card a, .contact-card div > p:not(.eyebrow) {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 16.5px;
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-card a:hover {
  color: var(--accent-red);
  text-decoration: underline;
}

.contact-card div > p:last-child {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 400;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (Tablet & Mobile)
   ========================================================================== */

/* Medium/Compact Desktops (993px - 1180px) - Ensure single horizontal row */
@media (min-width: 993px) and (max-width: 1180px) {
  .header-inner {
    gap: 10px;
  }

  .brand {
    gap: 10px;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .brand-title {
    font-size: 17px;
  }

  .brand-subtitle {
    font-size: 10px;
  }

  .header-actions {
    gap: 6px;
  }

  .site-nav {
    gap: 2px;
  }

  .site-nav a {
    font-size: 12.5px;
    padding: 5px 7px;
  }

  .site-nav .nav-cta {
    padding: 5px 11px;
    margin-left: 2px;
  }

  .header-social {
    gap: 2px;
    margin-left: 2px;
  }
}

/* Tablets (< 992px) */
@media (max-width: 992px) {
  .header-inner {
    min-height: 70px;
  }

  .header-actions {
    gap: 8px;
  }

  .brand-logo {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }

  .brand-title {
    font-size: 18px;
  }

  .brand-subtitle {
    font-size: 11px;
  }

  .menu-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 20px;
    box-shadow: 0 12px 28px rgba(18, 35, 104, 0.14);
    border-top: 1px solid var(--line);
    border-bottom: 2px solid var(--blue);
    gap: 6px;
    z-index: 190;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    min-height: 46px;
    padding: 10px 16px;
    font-size: 15.5px;
    border-radius: var(--radius-sm);
    justify-content: flex-start;
  }

  .site-nav .nav-cta {
    margin-left: 0;
    margin-top: 6px;
    justify-content: center;
    min-height: 46px;
  }

  .drawer-contact-item a {
    color: var(--blue-dark);
    font-weight: 700;
  }

  /* Layout Resets */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-photo {
    max-width: 600px;
    margin-inline: auto;
    width: 100%;
  }

  .impact-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .impact-message {
    grid-column: 1 / -1;
    padding-left: 0;
    padding-top: 18px;
    border-left: 0;
    border-top: 3px solid var(--accent-red);
  }

  .projects-showcase {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .card-grid,
  .card-grid-4,
  .card-grid-5 {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .statement-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .media-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .story-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .story-art {
    height: 280px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-main > div:first-child {
    grid-column: 1 / -1;
  }

  .two-column {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .program-detail-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .program-detail-card:nth-child(even) .program-detail-text {
    order: 1;
  }

  .program-detail-card:nth-child(even) .program-detail-visual {
    order: 2;
  }

  .contact-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Mobile Phones (< 580px) */
@media (max-width: 580px) {
  .container {
    width: calc(100% - 32px);
  }

  .header-inner {
    min-height: 60px;
    gap: 8px;
  }

  .brand {
    gap: 8px;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .brand-title {
    font-size: 15px;
  }

  .brand-subtitle {
    font-size: 9.5px;
  }

  .header-actions {
    gap: 4px;
  }

  .header-social {
    gap: 2px;
    margin-left: 0;
  }

  .social-link,
  .facebook-link {
    width: 28px;
    height: 28px;
    min-height: 28px;
  }

  .social-link svg,
  .facebook-link svg {
    width: 16px;
    height: 16px;
  }

  .menu-toggle {
    width: 38px;
    height: 38px;
  }

  .hero {
    padding-block: 36px;
  }

  .hero h1, .page-hero h1 {
    font-size: clamp(32px, 8.5vw, 42px);
    margin-bottom: 16px;
  }

  .hero-copy, .page-intro {
    font-size: 16px;
    margin-bottom: 22px;
  }

  .hero-actions, .bottom-cta-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero-actions .button, .bottom-cta-actions .button {
    width: 100%;
  }

  .hero-photo {
    aspect-ratio: 16 / 11;
  }

  .impact-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-block: 22px;
  }

  .impact-item {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line-light);
  }

  .impact-item strong {
    font-size: 20px;
  }

  .projects-subgrid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-card-mini .project-media {
    height: 180px;
  }

  .card-grid,
  .card-grid-4,
  .card-grid-5 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .statement-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .media-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gallery-card img {
    height: 220px;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
