/* ─── Header ────────────────────────────────────────────── */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.75rem 0 3.5rem;
  position: relative;
  z-index: 10;
}

.logo {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--color-primary);
}

/* ─── Desktop nav ───────────────────────────────────────── */

.desktop-nav {
  display: none;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 2.25rem;
  }

  .desktop-nav a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
    transition: color var(--transition);
  }

  .desktop-nav a:hover {
    color: var(--color-primary);
  }
}

/* ─── Language switcher ─────────────────────────────────── */

.lang-switcher {
  display: flex;
  gap: 0.2rem;
  background: rgba(148, 163, 184, 0.15);
  padding: 0.25rem;
  border-radius: 999px;
}

.lang-btn {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: none;
  background: transparent;
  color: var(--color-text-subtle);
  cursor: pointer;
  transition: all var(--transition);
}

.lang-btn.active {
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

/* ─── Buttons ───────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #764ba2 100%);
  color: var(--color-white);
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 14px 50px rgba(99, 102, 241, 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-ghost-white {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.btn-ghost-white:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ─── Hero ──────────────────────────────────────────────── */

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-title {
  font-size: clamp(3.25rem, 10vw, 5.5rem);
  margin-bottom: 1.5rem;
  line-height: 0.95;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  font-weight: 500;
  line-height: 1.65;
  margin-bottom: 2.5rem;
  max-width: 44ch;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 3rem;
}

@media (min-width: 480px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* ─── SOS badge ─────────────────────────────────────────── */

.sos-badge {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--color-white);
  padding: 0.625rem 1.5rem 0.625rem 0.625rem;
  border-radius: 999px;
  border: 1.5px solid var(--color-border);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
}

.sos-badge:hover {
  border-color: #fca5a5;
  box-shadow: 0 8px 30px rgba(239, 68, 68, 0.15);
}

.sos-icon {
  width: 2.75rem;
  height: 2.75rem;
  background: #ef4444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  flex-shrink: 0;
  animation: sos-pulse 2.2s ease-in-out infinite;
}

.sos-label {
  font-size: 0.6rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #ef4444;
  margin-bottom: 0.2rem;
}

.sos-desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

@keyframes sos-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.45); }
  50%       { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

/* ─── How it works — steps ──────────────────────────────── */

.step {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.step-number {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 900;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.step-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  font-weight: 400;
}

/* ─── Category cards ────────────────────────────────────── */

.category-card {
  background: var(--color-bg);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-xl);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.4s ease;
}

.category-card:hover {
  background: var(--color-white);
  border-color: var(--color-primary-light);
  box-shadow: 0 24px 60px rgba(99, 102, 241, 0.12);
  transform: translateY(-4px);
}

.category-icon {
  width: 3.25rem;
  height: 3.25rem;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s ease;
}

.category-card:hover .category-icon {
  background: var(--color-primary);
  color: var(--color-white);
  transform: scale(1.08);
}

.category-name {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.category-more {
  font-size: 0.6rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text-subtle);
}

/* ─── Volunteer section ─────────────────────────────────── */

.volunteer-card {
  background: linear-gradient(135deg, var(--color-primary) 0%, #7c3aed 100%);
  color: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 4rem 3rem;
  position: relative;
  overflow: hidden;
}

.volunteer-card::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -8%;
  width: 420px;
  height: 420px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.volunteer-card .section-label {
  color: rgba(255, 255, 255, 0.6);
}

.volunteer-card .section-title {
  color: var(--color-white);
  margin-top: 0.5rem;
}

.volunteer-card .section-sub {
  color: rgba(255, 255, 255, 0.72);
  margin-top: 1rem;
}

.volunteer-perks {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-top: 2rem;
}

.volunteer-perk {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.perk-icon {
  width: 2rem;
  height: 2rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  flex-shrink: 0;
}

.volunteer-illustration {
  display: none;
}

@media (min-width: 768px) {
  .volunteer-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.volunteer-illustration-inner {
  width: 260px;
  height: 260px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.15);
}

/* ─── Community / Stats ─────────────────────────────────── */

.section--dark .section-label { color: var(--color-primary); }
.section--dark .section-title { color: var(--color-white); }
.section--dark .section-sub   { color: var(--color-text-subtle); }

.stats-row {
  display: flex;
  gap: 3rem;
  margin-top: 2.5rem;
}

.stat-number {
  font-size: 3.25rem;
  font-weight: 900;
  line-height: 1;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.6rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--color-primary);
}

/* ─── Quote card ────────────────────────────────────────── */

.quote-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.quote-icon {
  color: var(--color-primary);
  opacity: 0.5;
  margin-bottom: 1.5rem;
}

.quote-text {
  font-size: 1.1rem;
  line-height: 1.65;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.quote-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  flex-shrink: 0;
}

.quote-name {
  font-weight: 900;
  font-size: 1rem;
  color: var(--color-white);
  margin-bottom: 0.2rem;
}

.quote-city {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.35);
}

/* ─── Footer ────────────────────────────────────────────── */

.footer {
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
  transition: color var(--transition);
}

.footer-link:hover {
  color: var(--color-primary);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--color-text-subtle);
}

/* ─── Mobile bottom nav ─────────────────────────────────── */

.bottom-nav {
  display: flex;
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  border-radius: 2rem;
  padding: 0.375rem;
  gap: 0.25rem;
  z-index: 100;
}

@supports (padding: env(safe-area-inset-bottom)) {
  .bottom-nav {
    bottom: calc(1.25rem + env(safe-area-inset-bottom));
  }
}

@media (min-width: 768px) {
  .bottom-nav {
    display: none;
  }
}

.nav-btn {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1.625rem;
  border: none;
  background: transparent;
  color: var(--color-text-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-btn.active {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}
