/*
Theme Name: Dignity & Rights Coalition
Theme URI: https://dignityrights.org
Author: Your Name
Author URI: https://yourwebsite.com
Description: A cinematic, high-contrast WordPress theme for human rights non-profit organizations. Features full-bleed photography, bold typography, and warm accent colors.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dignity-rights
Tags: non-profit, human-rights, dark, cinematic, responsive, accessibility-ready
*/

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
  --bg-primary: #0B0C0F;
  --bg-secondary: #111318;
  --accent-orange: #E05717;
  --text-primary: #F4F6FB;
  --text-secondary: #A6ACB8;
  --border-color: rgba(244, 246, 251, 0.12);
  --glass-bg: rgba(17, 19, 24, 0.78);
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
.font-display {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
}

.font-mono {
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* ========================================
   SCROLLBAR
   ======================================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: #2a2d35;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a3d45;
}

/* ========================================
   GRAIN OVERLAY
   ======================================== */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ========================================
   SECTIONS
   ======================================== */
.section-pinned {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.section-flowing {
  width: 100%;
  position: relative;
}

/* ========================================
   BACKGROUND IMAGES & OVERLAYS
   ======================================== */
.bg-image-overlay {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 1s ease, transform 1s ease;
}

.bg-dark-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 12, 15, 0.65);
}

/* Animation states */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.slide-left {
  transform: translateX(-20px);
}

.animate-on-scroll.slide-left.is-visible {
  transform: translateX(0);
}

.animate-on-scroll.slide-right {
  transform: translateX(20px);
}

.animate-on-scroll.slide-right.is-visible {
  transform: translateX(0);
}

.animate-on-scroll.scale-in {
  transform: scale(1.05);
}

.animate-on-scroll.scale-in.is-visible {
  transform: scale(1);
}

/* Stagger delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }
.delay-600 { transition-delay: 600ms; }
.delay-700 { transition-delay: 700ms; }

/* ========================================
   GLASS CARDS
   ======================================== */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--accent-orange);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(224, 87, 23, 0.3);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.btn-secondary:hover {
  color: var(--accent-orange);
}

/* ========================================
   NAVIGATION
   ======================================== */
.site-navigation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.site-navigation.is-scrolled {
  background-color: rgba(11, 12, 15, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 4vw;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-logo svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent-orange);
}

.nav-logo span {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
}

.nav-menu {
  display: none;
  align-items: center;
  gap: 2rem;
}

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

.nav-link {
  position: relative;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-orange);
  transition: width 0.2s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile menu */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(11, 12, 15, 0.98);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  color: var(--text-primary);
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.mobile-menu a:hover {
  color: var(--accent-orange);
}

.mobile-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
  display: flex;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 10;
  padding-left: 7vw;
  max-width: min(52vw, 720px);
}

.hero-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.75rem, 5vw, 5.25rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.hero-description {
  color: var(--text-secondary);
  font-size: clamp(0.875rem, 1.1vw, 1rem);
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ========================================
   CONTENT PANELS (Who We Are, Donate, etc.)
   ======================================== */
.content-panel {
  position: absolute;
  z-index: 10;
  max-width: min(42vw, 580px);
  padding: clamp(22px, 2.6vw, 40px);
}

.content-panel.right {
  right: 6vw;
  top: 50%;
  transform: translateY(-50%);
}

.content-panel.left {
  left: 7vw;
  top: 50%;
  transform: translateY(-50%);
}

.panel-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 1rem;
}

.panel-title {
  font-size: clamp(1.75rem, 3vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.panel-text {
  color: var(--text-secondary);
  font-size: clamp(0.875rem, 1.1vw, 1rem);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Value list */
.value-list {
  list-style: none;
  margin-bottom: 2rem;
}

.value-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.value-icon {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: rgba(224, 87, 23, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.value-icon svg {
  width: 0.75rem;
  height: 0.75rem;
  color: var(--accent-orange);
}

.value-list span {
  color: var(--text-primary);
  font-size: 0.875rem;
}

/* ========================================
   PROGRAMS & EVENTS CARDS
   ======================================== */
.section-headline {
  position: absolute;
  left: 50%;
  top: 14vh;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
}

.section-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.6vw, 3.5rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.cards-container {
  position: absolute;
  left: 50%;
  top: 62vh;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 2.2vw;
  flex-wrap: wrap;
  justify-content: center;
  z-index: 10;
}

.card {
  width: 22vw;
  min-width: 260px;
  max-width: 340px;
  padding: 1.5rem;
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 246, 251, 0.18);
}

.card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-orange);
}

.card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: rgba(224, 87, 23, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent-orange);
}

.card-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

.card-meta svg {
  width: 0.875rem;
  height: 0.875rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-orange);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.card-link svg {
  width: 1rem;
  height: 1rem;
}

/* ========================================
   IMPACT SECTION
   ======================================== */
.impact-section {
  background: var(--bg-secondary);
  padding: 8vh 7vw;
}

.impact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 80rem;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .impact-grid {
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
  }
}

.impact-headline {
  max-width: 400px;
}

.impact-title {
  font-size: clamp(1.75rem, 3vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.impact-text {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

.hairline {
  height: 1px;
  background: var(--border-color);
  margin-top: 2rem;
  width: 6rem;
  transform-origin: left;
  transition: transform 1s ease;
}

.hairline.is-visible {
  transform: scaleX(1);
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.metric-card {
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 246, 251, 0.18);
}

.metric-value {
  color: var(--accent-orange);
  font-family: 'Sora', sans-serif;
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.metric-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ========================================
   DONATION FORM
   ======================================== */
.amount-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.amount-chip {
  padding: 0.75rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  background: rgba(17, 19, 24, 0.6);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.amount-chip:hover {
  border-color: rgba(224, 87, 23, 0.5);
}

.amount-chip.is-active {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: white;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  background: rgba(17, 19, 24, 0.6);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-orange);
}

.form-input::placeholder {
  color: #6b7280;
}

.form-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.75rem;
  margin-top: 1rem;
}

.form-security svg {
  width: 0.75rem;
  height: 0.75rem;
}

/* ========================================
   NEWSLETTER SECTION
   ======================================== */
.newsletter-section {
  background: var(--bg-secondary);
  padding: 8vh 7vw;
}

.newsletter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 80rem;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .newsletter-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
  }
}

.newsletter-title {
  font-size: clamp(1.75rem, 3vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.newsletter-text {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 400px;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
}

.newsletter-form input {
  flex: 1;
}

.contact-section-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.contact-list {
  list-style: none;
  margin-bottom: 2rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contact-list svg {
  width: 1rem;
  height: 1rem;
  color: var(--text-secondary);
}

.contact-list .label {
  color: var(--text-secondary);
  font-size: 0.75rem;
  display: block;
}

.contact-list a {
  color: var(--text-primary);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-list a:hover {
  color: var(--accent-orange);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-link:hover {
  color: var(--accent-orange);
  border-color: rgba(224, 87, 23, 0.5);
}

.social-link svg {
  width: 1rem;
  height: 1rem;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: var(--bg-primary);
  padding: 6vh 7vw;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 80rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.footer-brand svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent-orange);
}

.footer-brand span {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  color: var(--text-primary);
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.footer-nav a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-trust {
  text-align: right;
}

@media (max-width: 767px) {
  .footer-trust {
    text-align: left;
  }
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
}

.trust-badge svg {
  width: 0.75rem;
  height: 0.75rem;
  color: var(--accent-orange);
}

.trust-badge span {
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.footer-copyright {
  color: var(--text-secondary);
  font-size: 0.75rem;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 1024px) {
  .section-pinned {
    height: auto;
    min-height: 100vh;
    padding: 6rem 0;
  }
  
  .hero-content {
    padding: 0 7vw;
    max-width: none;
  }
  
  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  
  .content-panel,
  .content-panel.right,
  .content-panel.left {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    transform: none;
    max-width: none;
    margin: 0 7vw;
  }
  
  .section-headline {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    padding: 2rem 7vw;
  }
  
  .cards-container {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    padding: 0 7vw 4rem;
    flex-direction: column;
    align-items: center;
  }
  
  .card {
    width: 100%;
    max-width: 400px;
  }
}

@media (max-width: 640px) {
  .amount-chips {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .newsletter-form {
    flex-direction: column;
  }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
:focus-visible {
  outline: 2px solid var(--accent-orange);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

/* Selection */
::selection {
  background: rgba(224, 87, 23, 0.3);
  color: var(--text-primary);
}
