/* ============================================================
   Securing Relief — Global Styles
   Colors: Primary #3366FF | Secondary #00E676 | Dark #1A1B2E
   ============================================================ */

:root {
  --primary:        #3366FF;
  --primary-dark:   #2952D9;
  --secondary:      #00E676;
  --secondary-dark: #00C85A;
  --dark:           #1A1B2E;
  --dark-muted:     #2D2E45;
  --gray:           #6B7280;
  --gray-light:     #9CA3AF;
  --border:         #E5E7EB;
  --light:          #F8FAFC;
  --white:          #FFFFFF;
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.08);
  --shadow:         0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:      0 8px 32px rgba(0,0,0,0.14);
  --radius-sm:      8px;
  --radius:         12px;
  --radius-lg:      20px;
  --transition:     0.2s ease;
  --max-width:      1200px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
p  { color: var(--gray); line-height: 1.75; }

/* ── Utility ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p  { max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

.tag {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--primary);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(67,97,238,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}
.btn-secondary {
  background: var(--secondary);
  color: var(--dark);
  border-color: var(--secondary);
}
.btn-secondary:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,230,118,0.35);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo img { height: 44px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray);
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--primary); }
.nav-cta { margin-left: 8px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(rgba(26,27,46,0.72), rgba(26,27,46,0.72)),
              url('/hero.png') center center / cover no-repeat;
  color: var(--white);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.hero-tag {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--white);
  border: 1px solid var(--white);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 0;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 span { color: var(--secondary); }
.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.12);
  flex-wrap: wrap;
}
.hero-stat-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
}
.hero-stat-value span { color: var(--secondary); }
.hero-stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin-top: 2px;
}

/* ============================================================
   WHO WE ARE
   ============================================================ */
.who-we-are { background: var(--light); }
.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.who-text .tag { margin-bottom: 16px; }
.who-text h2 { margin-bottom: 16px; }
.who-text p  { margin-bottom: 20px; }
.who-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}
.who-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.who-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--dark);
  border: none;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.who-feature-text h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.who-feature-text p {
  font-size: 0.875rem;
  margin: 0;
}

.who-visual {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.who-visual::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(0,230,118,0.2) 0%, transparent 70%);
}
.who-visual-inner { position: relative; z-index: 1; }
.who-visual h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 24px; }
.process-steps { display: flex; flex-direction: column; gap: 20px; }
.process-step { display: flex; gap: 16px; align-items: flex-start; }
.step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--white);
  color: var(--primary);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-text h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 2px; }
.step-text p  { color: rgba(255,255,255,0.65); font-size: 0.85rem; margin: 0; }

/* ============================================================
   CAMPAIGNS
   ============================================================ */
.campaigns { background: var(--white); }
.campaigns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Loading skeleton */
.campaign-skeleton {
  background: var(--light);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.skeleton-img {
  height: 180px;
  background: linear-gradient(90deg, #e8eaf0 25%, #f0f2f7 50%, #e8eaf0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
.skeleton-body { padding: 20px; }
.skeleton-line {
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(90deg, #e8eaf0 25%, #f0f2f7 50%, #e8eaf0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  margin-bottom: 12px;
}
.skeleton-line.short { width: 60%; }
.skeleton-line.medium { width: 80%; }
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Campaign card */
.campaign-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}
.campaign-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.campaign-img {
  height: 180px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark-muted) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.campaign-img img { width: 100%; height: 100%; object-fit: cover; }
.campaign-img-placeholder {
  width: 64px; height: 64px;
  opacity: 0.25;
}
.campaign-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.campaign-title {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.campaign-desc {
  font-size: 0.875rem;
  color: var(--gray);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 18px;
  flex: 1;
}
.progress-wrap { margin-bottom: 14px; }
.progress-bar {
  height: 8px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 8px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 100px;
  transition: width 0.6s ease;
  min-width: 4px;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}
.progress-raised { color: var(--primary); }
.progress-goal   { color: var(--gray-light); }

.campaign-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--gray-light);
  margin-bottom: 18px;
}
.campaign-meta strong { color: var(--gray); }
.meta-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--border);
}

.campaign-cta {
  display: block;
  text-align: center;
  background: var(--primary);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.campaign-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(67,97,238,0.3);
}

.campaign-cta-closed {
  display: block;
  text-align: center;
  background: var(--border);
  color: var(--gray);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  cursor: default;
}

.campaigns-error {
  text-align: center;
  padding: 60px 24px;
  color: var(--gray);
  grid-column: 1 / -1;
}
.campaigns-error p { margin-bottom: 16px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: linear-gradient(135deg, var(--primary) 0%, #00e47d 100%);
  color: var(--white);
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  margin-bottom: 28px;
}
.footer-brand img { height: 40px; margin-bottom: 16px; }
.footer-brand p {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  max-width: 280px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 0.875rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.825rem;
  color: rgba(255,255,255,0.6);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--white); }

/* ============================================================
   ABOUT PAGE — Hero
   ============================================================ */
.about-hero {
  background: linear-gradient(rgba(26,27,46,0.72), rgba(26,27,46,0.72)),
              url('/hero.png') center center / cover no-repeat;
  padding: 80px 0;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(67,97,238,0.2) 0%, transparent 60%);
  pointer-events: none;
}
.about-hero .container { position: relative; z-index: 1; }
.about-hero h1 { color: var(--white); margin-bottom: 16px; }
.about-hero p  { color: rgba(255,255,255,0.7); max-width: 560px; margin: 0 auto; font-size: 1.1rem; }

/* ============================================================
   ABOUT PAGE — Mission & Values
   ============================================================ */
.mission { background: var(--light); }
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.mission-text h2 { margin-bottom: 16px; }
.mission-text p  { margin-bottom: 16px; }

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.value-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.value-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67,97,238,0.08);
}
.value-icon { font-size: 1.5rem; margin-bottom: 8px; }
.value-card .who-feature-icon { margin-bottom: 10px; }
.value-card h4 { font-size: 0.95rem; margin-bottom: 4px; }
.value-card p  { font-size: 0.825rem; margin: 0; }

/* ============================================================
   ABOUT PAGE — Impact / Stats
   ============================================================ */
.impact { background: var(--white); }

.live-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}
.live-stat-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius);
  padding: 32px 28px;
  color: var(--white);
  text-align: center;
}
.live-stat-card.green {
  background: linear-gradient(135deg, #0a9b50 0%, #077a3d 100%);
}
.live-stat-card.dark {
  background: linear-gradient(135deg, var(--dark-muted) 0%, var(--dark) 100%);
}
.live-stat-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1;
}
.live-stat-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}
.live-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--secondary);
  background: rgba(0,230,118,0.12);
  padding: 3px 8px;
  border-radius: 100px;
  margin-top: 8px;
}

.yearly-table-wrap {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.yearly-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.yearly-table thead {
  background: var(--primary);
  color: var(--white);
}
.yearly-table thead th {
  padding: 16px 24px;
  text-align: left;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
}
.yearly-table thead th:first-child { color: var(--white); }
.yearly-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.yearly-table tbody tr:last-child { border-bottom: none; }
.yearly-table tbody tr:hover { background: var(--light); }
.yearly-table tbody td {
  padding: 18px 24px;
  color: var(--dark);
}
.yearly-table tbody td:first-child {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
}
.yearly-table .amount {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}
.yearly-table .amount.green { color: #0a9b50; }
.yearly-table .current-row { background: rgba(67,97,238,0.04); }

/* ============================================================
   ABOUT PAGE — Process
   ============================================================ */
.process { background: var(--light); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
/* Apply page steps */
.apply-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
}
.apply-step-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.apply-step-body h4 { font-size: 1rem; margin-bottom: 6px; }
.apply-step-body p  { margin: 0; font-size: 0.9rem; }

.process-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  position: relative;
}
.process-card::after {
  content: '→';
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--border);
  font-size: 1.25rem;
  font-weight: 700;
}
.process-card:last-child::after { display: none; }
.process-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.process-card h4 { font-size: 0.95rem; margin-bottom: 8px; }
.process-card p  { font-size: 0.825rem; margin: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .campaigns-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid   { grid-template-columns: repeat(2, 1fr); }
  .process-card::after { display: none; }
  .footer-grid    { grid-template-columns: 1fr 1fr; }
  .footer-brand   { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 20px;
    box-shadow: var(--shadow);
    z-index: 99;
  }
  .hamburger { display: flex; }
  .navbar { position: relative; }

  .who-grid     { grid-template-columns: 1fr; gap: 36px; }
  .mission-grid { grid-template-columns: 1fr; gap: 36px; }
  .live-stats   { grid-template-columns: 1fr; }
  .campaigns-grid { grid-template-columns: 1fr; }
  .process-grid   { grid-template-columns: 1fr 1fr; }

  .hero-stats { gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

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

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .process-grid { grid-template-columns: 1fr; }
}
