/* ==========================================================================
   Clean Pathways — Modern Design System & Global Stylesheet
   Strict Brand Requirements:
   - Blue: #141E82
   - Green: #82D200
   - White: #FFFFFF
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand Colors */
  --color-primary: #141E82;
  --color-primary-dark: #0a0f47;
  --color-primary-light: #1f2ca8;
  --color-primary-subtle: #eef1fc;
  
  --color-accent: #82D200;
  --color-accent-hover: #71b800;
  --color-accent-subtle: #f2fbdc;
  
  --color-white: #FFFFFF;
  --color-bg-page: #f8fafc;
  --color-surface: #FFFFFF;
  --color-surface-hover: #f1f5f9;
  
  /* Text & Neutral Colors */
  --text-dark: #0b132b;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  /* Borders & Shadows */
  --border-color: #e2e8f0;
  --border-focus: #141E82;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(10, 15, 71, 0.06);
  --shadow-md: 0 4px 12px rgba(10, 15, 71, 0.08);
  --shadow-lg: 0 12px 28px rgba(10, 15, 71, 0.12);
  --shadow-xl: 0 20px 40px rgba(10, 15, 71, 0.16);
  --shadow-accent: 0 8px 20px rgba(130, 210, 0, 0.28);
  
  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Dimensions & Spacing */
  --header-height: 84px;
  --max-width: 1240px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background-color: var(--color-bg-page);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }
a { color: var(--color-primary); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--color-accent-hover); }
img { max-width: 100%; height: auto; display: block; }

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ==========================================================================
   Top Crisis & Utility Bar
   ========================================================================== */
.crisis-top-bar {
  background: var(--color-primary-dark);
  color: var(--color-white);
  font-size: 0.875rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.crisis-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.crisis-top-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.crisis-top-left .badge-alert {
  background: #ef4444;
  color: #fff;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.crisis-top-right {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8125rem;
}

.crisis-top-right a {
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.crisis-top-right a:hover {
  color: var(--color-accent);
}

/* ==========================================================================
   Header & Main Navbar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 16px;
  flex-wrap: nowrap;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.brand-logo:hover img {
  transform: scale(1.02);
}

/* Nav Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex-wrap: nowrap;
}

.nav-item {
  position: relative;
  flex-shrink: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap !important;
  text-align: center;
  line-height: 1.2;
}

.nav-link:hover {
  color: var(--color-primary-dark);
  background-color: var(--color-primary-subtle);
}

.nav-link.active {
  color: var(--color-primary-dark);
  background-color: var(--color-accent-subtle);
  border-bottom: 2px solid var(--color-accent);
  font-weight: 700;
}

/* Header Action Buttons */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-actions .btn {
  white-space: nowrap;
  padding: 8px 14px;
  font-size: 0.8125rem;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  cursor: pointer;
  color: var(--color-primary);
  font-size: 1.25rem;
  line-height: 1;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-smooth);
  text-align: center;
  white-space: nowrap;
  line-height: 1.2;
}

/* Primary Accent Green Button */
.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-accent);
}

.btn-accent:hover {
  background-color: var(--color-accent-hover);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(130, 210, 0, 0.4);
}

/* Primary Blue Button */
.btn-blue {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn-blue:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Outline Buttons */
.btn-outline-blue {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline-blue:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-outline-accent {
  background-color: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-outline-accent:hover {
  background-color: var(--color-accent);
  color: var(--color-primary-dark);
}

/* Emergency Crisis Prompt Button */
.btn-emergency {
  background: #fff;
  color: #dc2626;
  border: 2px solid #f87171;
  padding: 8px 16px;
  font-size: 0.875rem;
  border-radius: var(--radius-full);
}

.btn-emergency:hover {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #ef4444;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.0625rem;
}

/* ==========================================================================
   SAFETY FEATURE: Quick Escape Floating Button
   Requirement 10: Website must include an escape link that instantly redirects
   to neutral sites (Google / Weather) and clears history.
   ========================================================================== */
.quick-escape-badge {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  background: #dc2626;
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.45);
  border: 2px solid #ffffff;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.quick-escape-badge:hover {
  background: #b91c1c;
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(220, 38, 38, 0.6);
}

.quick-escape-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  background: #1e293b;
  color: #f8fafc;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  box-shadow: var(--shadow-md);
  text-transform: none;
  letter-spacing: normal;
}

.quick-escape-badge:hover .quick-escape-tooltip {
  opacity: 1;
}

/* ==========================================================================
   Emergency Decision Modal ("Do you need help now?")
   Requirement 3A
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 15, 71, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.crisis-modal-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  max-width: 580px;
  width: 100%;
  padding: 36px;
  box-shadow: var(--shadow-xl);
  position: relative;
  text-align: center;
  border-top: 6px solid var(--color-accent);
  transform: translateY(20px);
  transition: transform var(--transition-smooth);
}

.modal-overlay.active .crisis-modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--color-surface-hover);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: #fee2e2;
  color: #dc2626;
}

.crisis-modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: #fee2e2;
  color: #dc2626;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.crisis-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.crisis-action-box {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.crisis-action-box.box-yes {
  border-color: #fca5a5;
  background: #fff5f5;
}

.crisis-action-box.box-yes:hover {
  border-color: #ef4444;
  background: #fee2e2;
  transform: translateY(-2px);
}

.crisis-action-box.box-no {
  border-color: #d9f99d;
  background: #f7fee7;
}

.crisis-action-box.box-no:hover {
  border-color: var(--color-accent);
  background: #ecfccb;
  transform: translateY(-2px);
}

.crisis-lines-list {
  display: none;
  margin-top: 24px;
  text-align: left;
  background: #fff;
  border: 1px solid #fee2e2;
  border-radius: var(--radius-md);
  padding: 16px;
}

.crisis-lines-list.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

.crisis-line-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.crisis-line-item:last-child {
  border-bottom: none;
}

/* Top Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  background: linear-gradient(90deg, var(--color-accent) 0%, #a3e635 50%, var(--color-primary-light) 100%);
  z-index: 999999;
  width: 0%;
  transition: width 0.1s ease-out;
}

/* ==========================================================================
   Page Sections Common Styling
   ========================================================================== */
.section {
  padding: 80px 0;
}

/* Ultra-Modern Photographic Background Hero */
.section-hero {
  padding: 85px 0 105px;
  position: relative;
  overflow: hidden;
  color: var(--color-white);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.section-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 85% 20%, rgba(130, 210, 0, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 10% 80%, rgba(31, 44, 168, 0.35) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.section-hero .container {
  position: relative;
  z-index: 2;
}

.section-hero h1 {
  color: var(--color-white);
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.section-hero p.hero-lead {
  font-size: 1.2rem;
  color: #f1f5f9;
  max-width: 760px;
  line-height: 1.7;
  margin-bottom: 2rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* Page-Specific Hero Background Images with Brand Overlays */
.hero-bg-home {
  background: 
    linear-gradient(135deg, rgba(8, 13, 56, 0.88) 0%, rgba(20, 30, 130, 0.80) 50%, rgba(6, 9, 38, 0.92) 100%),
    url('../images/hero_home.jpg') center/cover no-repeat;
}

.hero-bg-about {
  background: 
    linear-gradient(135deg, rgba(8, 13, 56, 0.88) 0%, rgba(20, 30, 130, 0.80) 50%, rgba(6, 9, 38, 0.92) 100%),
    url('../images/hero_about.jpg') center/cover no-repeat;
}

.hero-bg-apply {
  background: 
    linear-gradient(135deg, rgba(8, 13, 56, 0.88) 0%, rgba(20, 30, 130, 0.80) 50%, rgba(6, 9, 38, 0.92) 100%),
    url('../images/hero_apply.jpg') center/cover no-repeat;
}

.hero-bg-resources {
  background: 
    linear-gradient(135deg, rgba(8, 13, 56, 0.88) 0%, rgba(20, 30, 130, 0.80) 50%, rgba(6, 9, 38, 0.92) 100%),
    url('../images/hero_resources.jpg') center/cover no-repeat;
}

.hero-bg-events {
  background: 
    linear-gradient(135deg, rgba(8, 13, 56, 0.88) 0%, rgba(20, 30, 130, 0.80) 50%, rgba(6, 9, 38, 0.92) 100%),
    url('../images/hero_events.jpg') center/cover no-repeat;
}

.hero-bg-donate {
  background: 
    linear-gradient(135deg, rgba(8, 13, 56, 0.88) 0%, rgba(20, 30, 130, 0.80) 50%, rgba(6, 9, 38, 0.92) 100%),
    url('../images/hero_donate.jpg') center/cover no-repeat;
}

.hero-bg-testimonials {
  background: 
    linear-gradient(135deg, rgba(8, 13, 56, 0.88) 0%, rgba(20, 30, 130, 0.80) 50%, rgba(6, 9, 38, 0.92) 100%),
    url('../images/hero_testimonials.jpg') center/cover no-repeat;
}

.hero-bg-contact {
  background: 
    linear-gradient(135deg, rgba(8, 13, 56, 0.88) 0%, rgba(20, 30, 130, 0.80) 50%, rgba(6, 9, 38, 0.92) 100%),
    url('../images/hero_contact.jpg') center/cover no-repeat;
}

/* Split Hero 2-Column Layout */
.hero-split-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-media-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-glass-card {
  background: rgba(10, 16, 75, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4), 0 0 30px rgba(130, 210, 0, 0.12);
  color: #fff;
  transition: transform var(--transition-smooth);
  width: 100%;
}

.hero-glass-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 35px rgba(130, 210, 0, 0.2);
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(130, 210, 0, 0.15);
  border: 3px solid rgba(255, 255, 255, 0.2);
  background: var(--color-primary-dark);
  transition: transform var(--transition-smooth);
  width: 100%;
}

.hero-image-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(130, 210, 0, 0.25);
}

.hero-image-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.hero-image-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(10, 15, 71, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
}

@media (max-width: 960px) {
  .hero-split-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-image-card img {
    height: 300px;
  }
}

/* Pulsing Beacon Dot */
.beacon-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  background-color: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(130, 210, 0, 0.7);
  animation: beacon-pulse 1.8s infinite;
  vertical-align: middle;
  margin-right: 6px;
}

@keyframes beacon-pulse {
  0% { box-shadow: 0 0 0 0 rgba(130, 210, 0, 0.7); transform: scale(0.95); }
  70% { box-shadow: 0 0 0 10px rgba(130, 210, 0, 0); transform: scale(1.15); }
  100% { box-shadow: 0 0 0 0 rgba(130, 210, 0, 0); transform: scale(0.95); }
}

/* Glassmorphism Floating Badges */
.hero-glass-pill {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-fast);
}

.hero-glass-pill:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Button Shimmer Sheen */
.btn-accent {
  position: relative;
  overflow: hidden;
}

.btn-accent::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -70%;
  width: 45%;
  height: 200%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: rotate(30deg);
  transition: none;
}

.btn-accent:hover::after {
  left: 130%;
  transition: left 0.75s ease-in-out;
}

/* Interactive Impact Counter Ribbon */
.stats-ribbon {
  background: var(--color-primary-dark);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 4px solid var(--color-accent);
  padding: 40px 0;
}

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

.stat-item h3 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 4px;
  line-height: 1;
}

.stat-item p {
  font-size: 0.875rem;
  color: #cbd5e1;
  font-weight: 500;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Interactive FAQ Accordion */
.faq-accordion {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #fff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.faq-item:hover {
  border-color: rgba(20, 30, 130, 0.25);
  box-shadow: var(--shadow-sm);
}

.faq-item.open {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.faq-question {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-primary);
  user-select: none;
}

.faq-answer {
  padding: 0 24px 20px;
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.6;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
  animation: fadeIn 0.3s ease;
}

.faq-icon {
  font-size: 1.35rem;
  color: var(--color-primary);
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--color-accent-hover);
}

.section-title-wrap {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-accent-subtle);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(130, 210, 0, 0.3);
}

.section-title {
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.125rem;
}

/* ==========================================================================
   Cards & Layout Components
   ========================================================================== */
.card {
  background: var(--color-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(20, 30, 130, 0.15);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 36px;
}

/* ==========================================================================
   YouVersion Scripture of the Day Widget
   Requirement 3C
   ========================================================================== */
.scripture-widget {
  background: linear-gradient(135deg, #ffffff 0%, #f4fbf0 100%);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.scripture-widget::after {
  content: '“';
  position: absolute;
  bottom: -40px;
  right: 20px;
  font-family: serif;
  font-size: 160px;
  color: rgba(130, 210, 0, 0.12);
  line-height: 1;
  pointer-events: none;
}

.scripture-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.scripture-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.scripture-verse {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-primary-dark);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 12px;
}

.scripture-ref {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-accent-hover);
  font-size: 1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-primary-dark);
  color: #cbd5e1;
  padding: 70px 0 24px;
  margin-top: auto;
  border-top: 4px solid var(--color-accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 60px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 1.125rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  background: var(--color-accent);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9375rem;
}

.footer-links a:hover {
  color: var(--color-accent);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9375rem;
  color: #94a3b8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.875rem;
  color: #64748b;
}

.footer-bottom a {
  color: #94a3b8;
}

.footer-bottom a:hover {
  color: var(--color-accent);
}

/* ==========================================================================
   Animations & Responsive Breakpoints
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Compact desktop navigation styling for smaller laptop screens */
@media (min-width: 1141px) and (max-width: 1260px) {
  .navbar {
    gap: 8px;
  }
  .brand-logo img {
    height: 42px;
  }
  .nav-menu {
    gap: 2px;
  }
  .nav-link {
    padding: 5px 6px;
    font-size: 0.8125rem;
  }
  .nav-actions .btn {
    padding: 6px 10px;
    font-size: 0.775rem;
  }
}

/* Tablet & Mobile responsive drawer menu */
@media (max-width: 1140px) {
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 24px;
    gap: 8px;
    box-shadow: var(--shadow-xl);
    border-bottom: 2px solid var(--color-primary);
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-actions .btn-emergency {
    display: none;
  }

  .crisis-action-box {
    padding: 14px 10px;
  }
}

@media (max-width: 640px) {
  .crisis-top-bar {
    display: none;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .crisis-modal-actions {
    grid-template-columns: 1fr;
  }

  .quick-escape-badge {
    bottom: 16px;
    right: 16px;
    padding: 10px 14px;
    font-size: 0.75rem;
  }
}
