/* ============================================
   FLASH BINK — Premium Design System
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ---- CSS Custom Properties ---- */
:root {
  /* Primary Palette */
  --color-navy: #0a1628;
  --color-navy-light: #111d35;
  --color-navy-mid: #162544;
  --color-gold: #c9a84c;
  --color-gold-light: #e2c96d;
  --color-gold-dark: #a68a39;
  --color-white: #ffffff;
  --color-off-white: #f4f4f9;
  --color-text: #c8cdd5;
  --color-text-light: #9aa3b0;
  --color-accent-blue: #1e40af;
  --color-accent-teal: #0d9488;
  --color-success: #22c55e;
  --color-error: #ef4444;

  /* Gradients */
  --gradient-gold: linear-gradient(135deg, #c9a84c 0%, #e2c96d 50%, #c9a84c 100%);
  --gradient-navy: linear-gradient(180deg, #0a1628 0%, #111d35 100%);
  --gradient-hero: linear-gradient(135deg, rgba(10,22,40,0.92) 0%, rgba(17,29,53,0.88) 100%);
  --gradient-card: linear-gradient(145deg, rgba(22,37,68,0.6) 0%, rgba(10,22,40,0.8) 100%);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.15);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.25);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.35);
  --shadow-gold: 0 4px 25px rgba(201,168,76,0.3);
  --shadow-glow: 0 0 30px rgba(201,168,76,0.15);

  /* Glass */
  --glass-bg: rgba(22,37,68,0.4);
  --glass-border: rgba(201,168,76,0.15);
  --glass-blur: 20px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --max-width: 1280px;
  --header-height: 80px;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--color-navy);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul, ol {
  list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-white);
  line-height: 1.2;
  font-weight: 600;
}

/* ---- Utility Classes ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

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

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-align: center;
  margin-bottom: var(--space-lg);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--gradient-gold);
  margin: var(--space-md) auto 0;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
  line-height: 1.8;
}

.text-gold {
  color: var(--color-gold);
}

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

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 36px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-gold {
  background: var(--gradient-gold);
  color: var(--color-navy);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 35px rgba(201,168,76,0.5);
}

.btn-outline {
  background: transparent;
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
}

.btn-outline:hover {
  background: var(--color-gold);
  color: var(--color-navy);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-navy);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255,255,255,0.25);
}

/* ---- Top Bar ---- */
.top-bar {
  background: var(--color-navy-light);
  border-bottom: 1px solid rgba(201,168,76,0.1);
  padding: var(--space-sm) 0;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.top-bar-item i {
  color: var(--color-gold);
  font-size: 0.9rem;
}

.top-bar a:hover {
  color: var(--color-gold);
}

/* ---- Language Switcher ---- */
.lang-switcher {
  position: relative;
}

.lang-switcher-btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  color: var(--color-gold);
  font-size: 0.85rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-switcher-btn:hover {
  background: rgba(201,168,76,0.2);
}

.lang-flag {
  font-size: 1.2rem;
  line-height: 1;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--color-navy-light);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  max-height: 360px;
  overflow-y: auto;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-fast);
}

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

.lang-dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 16px;
  cursor: pointer;
  transition: background var(--transition-fast);
  font-size: 0.9rem;
  color: var(--color-text);
}

.lang-dropdown-item:hover,
.lang-dropdown-item.active {
  background: rgba(201,168,76,0.1);
  color: var(--color-gold);
}

.lang-dropdown-item .lang-flag {
  font-size: 1.3rem;
}

/* Scrollbar for dropdown */
.lang-dropdown::-webkit-scrollbar {
  width: 4px;
}
.lang-dropdown::-webkit-scrollbar-track {
  background: transparent;
}
.lang-dropdown::-webkit-scrollbar-thumb {
  background: var(--color-gold-dark);
  border-radius: 2px;
}

/* ---- Header / Navbar ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,22,40,0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(201,168,76,0.08);
  transition: all var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-white);
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--gradient-gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--color-navy);
  font-weight: 800;
  font-family: var(--font-body);
}

.logo span {
  color: var(--color-gold);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding: var(--space-sm) 0;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--color-gold);
}

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

.nav-cta {
  padding: 10px 24px;
  font-size: 0.85rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  z-index: 200;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-gold);
  transition: all var(--transition-base);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hidden on desktop — shown on mobile via media query */
.lang-switcher-mobile,
.nav-lang-switcher {
  display: none;
}

/* Mobile header language button — sits next to hamburger */
.lang-switcher-mobile {
  position: relative;
  margin-right: var(--space-md);
}

.lang-switcher-mobile .lang-switcher-btn {
  padding: 6px 12px;
  font-size: 0.85rem;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: var(--radius-md);
  gap: 6px;
}

.lang-switcher-mobile .lang-dropdown {
  right: 0;
  left: auto;
  min-width: 200px;
  z-index: 200;
}


/* ---- Hero Section ---- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(201,168,76,0.3);
  border-radius: 50%;
  animation: float-particle 15s infinite linear;
}

@keyframes float-particle {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) rotate(720deg);
    opacity: 0;
  }
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: var(--radius-xl);
  padding: 8px 20px;
  font-size: 0.85rem;
  color: var(--color-gold);
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.6s ease-out;
}

.hero-badge i {
  font-size: 0.8rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.hero h1 .highlight {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text {
  font-size: 1.15rem;
  color: var(--color-text);
  margin-bottom: var(--space-2xl);
  line-height: 1.8;
  animation: fadeInUp 0.6s ease-out 0.4s backwards;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease-out 0.6s backwards;
}

.hero-stats {
  display: flex;
  gap: var(--space-3xl);
  margin-top: var(--space-3xl);
  /* AJOUTEZ CES DEUX LIGNES : */
  position: relative;
  z-index: 2;
  
  animation: fadeInUp 0.6s ease-out 0.8s backwards;
}

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

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-gold);
  display: block;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---- Info Bar ---- */
.info-bar {
  background: var(--color-navy-light);
  border-top: 1px solid rgba(201,168,76,0.08);
  border-bottom: 1px solid rgba(201,168,76,0.08);
  padding: var(--space-xl) 0;
}

.info-bar .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.info-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.info-item:hover {
  background: rgba(201,168,76,0.05);
}

.info-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-size: 1.2rem;
}

.info-label {
  font-weight: 600;
  color: var(--color-white);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.info-value {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* ---- About Section ---- */
.about {
  background: var(--color-navy);
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 20% 50%, rgba(201,168,76,0.03) 0%, transparent 60%);
  pointer-events: none;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
  position: relative;
}

.about-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: var(--space-lg);
}

.about-text p {
  margin-bottom: var(--space-lg);
  line-height: 1.9;
}

.about-highlight {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  margin: var(--space-xl) 0;
}

.about-highlight .amount {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-gold);
  font-weight: 700;
}

.about-image {
  position: relative;
}

.about-image-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.about-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid rgba(201,168,76,0.15);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.about-float-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--gradient-gold);
  color: var(--color-navy);
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-gold);
  text-align: center;
}

.about-float-badge .number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  display: block;
}

.about-float-badge .label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---- Process / Steps Section ---- */
.process {
  background: var(--color-navy-light);
  position: relative;
  overflow: hidden;
}

.process::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
  position: relative;
}

.process-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
}

.process-card:hover {
  transform: translateY(-8px);
  border-color: rgba(201,168,76,0.3);
  box-shadow: var(--shadow-glow);
}

.process-number {
  width: 60px;
  height: 60px;
  background: var(--gradient-gold);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0 auto var(--space-lg);
  box-shadow: var(--shadow-gold);
}

.process-card h3 {
  font-size: 1.3rem;
  margin-bottom: var(--space-md);
}

.process-card p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.process-icon {
  font-size: 2rem;
  color: var(--color-gold);
  margin-bottom: var(--space-md);
}

/* ---- Funding Types Section ---- */
.funding-types {
  background: var(--color-navy);
}

.funding-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.funding-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.funding-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.funding-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201,168,76,0.25);
  box-shadow: var(--shadow-glow);
}

.funding-card:hover::before {
  transform: scaleX(1);
}

.funding-card-icon {
  width: 55px;
  height: 55px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-size: 1.4rem;
  margin-bottom: var(--space-lg);
}

.funding-card h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-md);
}

.funding-card p {
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.funding-amount {
  display: inline-block;
  background: rgba(201,168,76,0.1);
  color: var(--color-gold);
  padding: 4px 14px;
  border-radius: var(--radius-xl);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: var(--space-md);
}

/* ---- Partners Section ---- */
.partners {
  background: var(--color-navy-light);
  position: relative;
}

.partners-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.partners-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: var(--space-lg);
}

.partners-text p {
  line-height: 1.9;
  margin-bottom: var(--space-xl);
}

.partners-logos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.partner-logo-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  min-height: 100px;
}

.partner-logo-card:hover {
  border-color: rgba(201,168,76,0.3);
  background: rgba(201,168,76,0.05);
}

.partner-logo-card span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
}

/* ---- CTA Section ---- */
.cta {
  background: linear-gradient(135deg, var(--color-navy-mid) 0%, var(--color-navy) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: var(--space-lg);
}

.cta p {
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: var(--space-2xl);
  line-height: 1.8;
}

/* ---- Footer ---- */
.footer {
  background: var(--color-navy);
  border-top: 1px solid rgba(201,168,76,0.08);
  padding: var(--space-4xl) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand {
  max-width: 350px;
}

.footer-brand .logo {
  margin-bottom: var(--space-lg);
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-lg);
  color: var(--color-gold);
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 4px 0;
}

.footer-links a:hover {
  color: var(--color-gold);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.footer-contact-item i {
  color: var(--color-gold);
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(201,168,76,0.08);
  padding: var(--space-lg) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  transition: all var(--transition-base);
}

.footer-social a:hover {
  background: var(--color-gold);
  color: var(--color-navy);
  border-color: var(--color-gold);
}

/* ---- Page Header (Subpages) ---- */
.page-header {
  background: var(--color-navy-light);
  padding: var(--space-4xl) 0 var(--space-3xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top center, rgba(201,168,76,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--space-md);
  position: relative;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
  color: var(--color-text-light);
  position: relative;
}

.breadcrumb a {
  color: var(--color-gold);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--color-text-light);
}

/* ---- Forms ---- */
.form-section {
  padding: var(--space-4xl) 0;
}

.form-container {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--space-3xl);
  align-items: start;
}

.form-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl);
}

.form-card h2 {
  font-size: 1.6rem;
  margin-bottom: var(--space-sm);
}

.form-card > p {
  color: var(--color-text-light);
  margin-bottom: var(--space-2xl);
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(10,22,40,0.6);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: var(--radius-md);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-light);
}

.form-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23c9a84c' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 20px;
}

.form-select option {
  background: var(--color-navy);
  color: var(--color-white);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.form-submit {
  width: 100%;
  margin-top: var(--space-md);
}

/* Form Sidebar Info */
.form-sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--space-xl));
}

.sidebar-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  margin-bottom: var(--space-xl);
}

.sidebar-card h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.sidebar-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

.sidebar-list {
  margin-top: var(--space-md);
}

.sidebar-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  font-size: 0.9rem;
  color: var(--color-text);
}

.sidebar-list li i {
  color: var(--color-gold);
  margin-top: 4px;
}

/* ---- Testimonials Page ---- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.testimonial-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--transition-base);
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201,168,76,0.25);
  box-shadow: var(--shadow-glow);
}

.testimonial-stars {
  color: var(--color-gold);
  margin-bottom: var(--space-md);
  font-size: 1rem;
  letter-spacing: 2px;
}

.testimonial-card blockquote {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: var(--space-lg);
  position: relative;
}

.testimonial-card blockquote::before {
  content: '"';
  position: absolute;
  top: -15px;
  left: -5px;
  font-family: var(--font-heading);
  font-size: 4rem;
  color: rgba(201,168,76,0.15);
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-navy);
  font-weight: 700;
  font-size: 1.1rem;
}

.testimonial-name {
  font-weight: 600;
  color: var(--color-white);
  font-size: 0.95rem;
}

.testimonial-country {
  font-size: 0.82rem;
  color: var(--color-text-light);
}

/* ---- Contact Page ---- */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.contact-info-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  transition: all var(--transition-base);
}

.contact-info-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201,168,76,0.25);
}

.contact-info-icon {
  width: 60px;
  height: 60px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-size: 1.3rem;
  margin: 0 auto var(--space-md);
}

.contact-info-card h3 {
  font-size: 1.1rem;
  font-family: var(--font-body);
  margin-bottom: var(--space-sm);
}

.contact-info-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* ---- Animations ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.animate-on-scroll.from-left {
  transform: translateX(-30px);
}

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

.animate-on-scroll.from-right {
  transform: translateX(30px);
}

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

/* Stagger delay for cards */
.animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .about-content,
  .partners-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .funding-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-container {
    grid-template-columns: 1fr;
  }

  .form-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .top-bar {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Mobile language switcher in header — visible only on mobile */
  .lang-switcher-mobile {
    display: flex !important;
    align-items: center;
  }

  /* Compact flag-only style for small screens */
  .lang-switcher-mobile .lang-switcher-btn {
    padding: 6px 10px !important;
    font-size: 0.8rem !important;
    min-width: auto !important;
  }

  .header .container {
    gap: var(--space-sm);
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--color-navy-light);
    flex-direction: column;
    padding: calc(var(--header-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
    transition: right var(--transition-base);
    box-shadow: -5px 0 30px rgba(0,0,0,0.3);
    z-index: 150;
    gap: var(--space-xl);
    overflow-y: auto;
  }

  .nav.active {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .nav-link {
    width: 100%;
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(201,168,76,0.08);
  }

  .nav-cta {
    width: 100%;
    text-align: center;
  }

  /* Language switcher inside mobile nav */
  .nav-lang-switcher {
    display: block !important;
    width: 100%;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(201,168,76,0.15);
  }

  .nav-lang-switcher .lang-switcher {
    width: 100%;
  }

  .nav-lang-switcher .lang-switcher-btn {
    width: 100%;
    justify-content: center;
    padding: 10px 18px;
    font-size: 0.95rem;
  }

  .nav-lang-switcher .lang-dropdown {
    position: relative;
    top: 8px;
    right: 0;
    left: 0;
    width: 100%;
    max-height: 250px;
    border-radius: var(--radius-md);
  }

  .hero {
    min-height: 70vh;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: var(--space-xl);
  }

  .info-bar .container {
    grid-template-columns: 1fr;
  }

  .process-grid,
  .funding-grid,
  .testimonials-grid,
  .contact-info-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  /* Ensure WhatsApp button is visible on mobile */
  .whatsapp-float {
    display: flex !important;
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 9999 !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

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

  .process-card,
  .funding-card,
  .testimonial-card,
  .sidebar-card {
    padding: var(--space-xl);
  }

  .form-card {
    padding: var(--space-xl);
  }
}

/* Nav overlay for mobile */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 140;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* ---- Success/Error Messages ---- */
.form-message {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  font-size: 0.9rem;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: var(--color-success);
}

.form-message.error {
  display: block;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: var(--color-error);
}

/* ---- Loading Spinner ---- */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top-color: var(--color-navy);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---- WhatsApp Floating Button ---- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.whatsapp-tooltip {
  background: var(--color-white);
  color: var(--color-navy);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition-base);
  pointer-events: none;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.whatsapp-btn {
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-base);
  position: relative;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
  color: white;
}

.whatsapp-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-full);
  border: 2px solid rgba(37, 211, 102, 0.3);
  animation: whatsapp-pulse 2s ease-in-out infinite;
}

@keyframes whatsapp-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-btn {
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
  }

  .whatsapp-tooltip {
    display: none;
  }
}
