/* ============================================
   RELENTLESS FEATHER - MAIN STYLESHEET
   Brand: Bold, Modern, Culturally Grounded
   ============================================ */

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

/* ============================================
   CSS VARIABLES - RF BRAND SYSTEM
   ============================================ */

:root {
  /* Brand Colors - From Logo Gradient */
  --rf-blue: #6B9BD1;
  --rf-purple: #B565D8;
  --rf-pink: #E91E63;
  --rf-coral: #FF8A65;
  
  /* Extended Palette */
  --rf-dark: #0A0E1A;
  --rf-dark-alt: #151B2D;
  --rf-light: #FFFFFF;
  --rf-gray: #8B92A8;
  --rf-gray-light: #E5E7EB;
  
  /* Gradients */
  --rf-gradient-primary: linear-gradient(135deg, #6B9BD1 0%, #B565D8 50%, #E91E63 100%);
  --rf-gradient-warm: linear-gradient(135deg, #FF8A65 0%, #E91E63 100%);
  --rf-gradient-cool: linear-gradient(135deg, #6B9BD1 0%, #B565D8 100%);
  
  /* Typography */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Spacing System */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(10, 14, 26, 0.1);
  --shadow-md: 0 4px 16px rgba(10, 14, 26, 0.15);
  --shadow-lg: 0 8px 32px rgba(10, 14, 26, 0.2);
  --shadow-glow: 0 0 40px rgba(107, 155, 209, 0.3);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--rf-dark);
  background: var(--rf-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-base);
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

/* Inline code — VS Code-inspired: dark navy chip with coral text */
code {
  background: #1a2742;
  color: #FF8A65;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.875em;
  font-family: 'Courier New', Courier, monospace;
  font-weight: 500;
  white-space: nowrap;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

p {
  margin-bottom: var(--space-md);
  font-size: 1.125rem;
  line-height: 1.8;
}

.text-lg {
  font-size: 1.25rem;
  line-height: 1.8;
}

.text-gradient {
  background: var(--rf-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   LAYOUT COMPONENTS
   ============================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-2xl) 0;
}

.section-dark {
  background: var(--rf-dark);
  color: var(--rf-light);
}

.section-gradient {
  background: var(--rf-gradient-primary);
  color: var(--rf-light);
  position: relative;
  overflow: hidden;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */

/* Full-width glass bar on load */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 251, 245, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(107, 155, 209, 0.1);
  padding: 0;
  transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              backdrop-filter 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Desktop only: header glass fades, nav becomes floating pill */
@media (min-width: 961px) {
  .header.scrolled {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
    box-shadow: none;
    padding: 0.75rem 1.5rem;
  }

  .header.scrolled .nav {
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(28px) saturate(220%);
    -webkit-backdrop-filter: blur(28px) saturate(220%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
                0 2px 8px rgba(0, 0, 0, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.7);
    padding: 0.625rem 1.75rem;
    min-height: unset;
  }
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 600;
  font-size: 1.25rem;
  font-family: var(--font-display);
}

.nav-logo img {
  height: 40px;
  width: auto;
}

/* Tablet: swap logotype for icon */
.logo-icon {
  display: none;
}

@media (max-width: 1100px) {
  .logo-full {
    display: none;
  }
  .logo-icon {
    display: block;
    height: 40px;
  }
}

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

.nav-link {
  font-weight: 500;
  font-size: 0.9375rem;
  position: relative;
  padding: var(--space-xs) 0;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--rf-gradient-primary);
  transition: width var(--transition-base);
}

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

.nav-mobile-toggle,
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.nav-mobile-toggle span,
.hamburger-line {
  width: 28px;
  height: 2px;
  background: var(--rf-dark);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #6B9BD1, #B565D8);
  color: var(--rf-light);
  box-shadow: 0 4px 14px 0 rgba(107, 155, 209, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--rf-dark);
  border: 2px solid var(--rf-dark);
}

.btn-secondary:hover {
  background: var(--rf-dark);
  color: var(--rf-light);
}

.btn-light {
  background: var(--rf-light);
  color: var(--rf-dark);
  box-shadow: var(--shadow-md);
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Coral outline button — used for inquiry CTAs on services and partnerships pages */
.btn-coral {
  background: transparent;
  color: var(--rf-coral);
  border: 2px solid var(--rf-coral);
}

.btn-coral:hover {
  background: var(--rf-coral);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 138, 101, 0.35);
}

/* Stage navigation button, dark blue + coral, separate from Donate */
.btn-stage {
  background: #1a2742;
  color: #FF8A65;
  border: 2px solid #1a2742;
}

.btn-stage:hover {
  background: #0A0E1A;
  border-color: #0A0E1A;
  color: #FF8A65;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(10, 14, 26, 0.35);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--rf-dark);
  color: var(--rf-light);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(107, 155, 209, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(181, 101, 216, 0.15) 0%, transparent 50%);
  animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--rf-blue);
  margin-bottom: var(--space-md);
  font-weight: 600;
}

.hero-title {
  margin-bottom: var(--space-lg);
  line-height: 1.1;
}

.hero-description {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.7;
  color: var(--rf-gray);
  margin-bottom: var(--space-xl);
  max-width: 700px;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ============================================
   FEATURE CARDS
   ============================================ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.feature-card {
  background: var(--rf-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

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

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--rf-gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  font-size: 2rem;
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.feature-description {
  color: var(--rf-gray);
  font-size: 1rem;
  margin-bottom: 0;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  background: var(--rf-dark);
  color: var(--rf-light);
  text-align: center;
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle, rgba(107, 155, 209, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(40px, 40px); }
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  margin-bottom: var(--space-md);
}

.cta-description {
  font-size: 1.25rem;
  color: var(--rf-gray);
  margin-bottom: var(--space-xl);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--rf-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-xl) 2rem var(--space-lg);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: var(--space-lg);
}

.footer-brand img {
  width: 180px;
  margin-bottom: 1.5rem;
  display: block;
}

.footer-brand p {
  line-height: 1.7;
  max-width: 320px;
  font-size: 0.9375rem;
  margin-bottom: 0;
}

.footer-section h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

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

.footer-links li {
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #FF8A65;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.875rem;
}

.footer-bottom p {
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
}

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  color: #FF8A65;
  margin-top: 0.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-link:hover {
  color: #FF8A65;
  transform: translateY(-2px);
}

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

/* ============================================
   UTILITIES
   ============================================ */

.text-center {
  text-align: center;
}

.mt-xl {
  margin-top: var(--space-xl);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

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

@media (max-width: 960px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #FFFBF5;
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    pointer-events: all;
    opacity: 1;
    transform: none;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu .btn {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
  }

  .nav-mobile-toggle,
  .mobile-menu-toggle {
    display: flex;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .section {
    padding: var(--space-xl) 0;
  }
}