/* ============================================
   IMC - International Malayalee Council
   Premium Website Styles — Theme Switcher
   ============================================ */

/* ---- CSS Custom Properties ---- */
:root {
  /* Gold palette */
  --gold: #D99A00;
  --bright-gold: #F4C542;
  --dark-gold: #B37E00;
  --gold-gradient: linear-gradient(135deg, #D99A00 0%, #F4C542 50%, #D99A00 100%);
  --gold-shimmer: linear-gradient(110deg, #D99A00 0%, #F4C542 25%, #D99A00 50%, #F4C542 75%, #D99A00 100%);
  --gold-text-gradient: linear-gradient(135deg, #D99A00, #F4C542, #D99A00);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --container-max: 1140px;
  --section-padding: 96px 0;
  --border-radius: 20px;
  --border-radius-sm: 14px;
  --border-radius-xs: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Dark Theme (default) ---- */
[data-theme="dark"] {
  --bg-primary: #050505;
  --bg-secondary: #0A0A0A;
  --bg-card: #0D0D0D;
  --bg-card-hover: #111111;
  --bg-cream: #F7F0E3;
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.75);
  --text-muted: rgba(255, 255, 255, 0.55);
  --text-heading: #FFFFFF;
  --border-card: rgba(217, 154, 0, 0.2);
  --border-card-hover: rgba(217, 154, 0, 0.45);
  --border-subtle: rgba(217, 154, 0, 0.1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(217, 154, 0, 0.1);
  --shadow-card-hover: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(217, 154, 0, 0.15);
  --glow-gold: 0 0 30px rgba(217, 154, 0, 0.15);
  --glow-gold-strong: 0 0 50px rgba(217, 154, 0, 0.25);
  --nav-bg: rgba(5, 5, 5, 0.92);
  --nav-bg-scroll: rgba(5, 5, 5, 0.97);
  --menu-overlay: rgba(5, 5, 5, 0.98);
  --icon-stroke: #D99A00;
  --cta-bg: var(--bg-primary);
}

/* ---- Light Theme ---- */
[data-theme="light"] {
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F6F0;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFFCF5;
  --bg-cream: #F7F0E3;
  --text-primary: #1A1A1A;
  --text-secondary: #3D3D3D;
  --text-muted: #666666;
  --text-heading: #1A1A1A;
  --border-card: rgba(184, 134, 11, 0.2);
  --border-card-hover: rgba(184, 134, 11, 0.5);
  --border-subtle: rgba(184, 134, 11, 0.1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(184, 134, 11, 0.1);
  --shadow-card-hover: 0 8px 32px rgba(0, 0, 0, 0.1), 0 0 20px rgba(184, 134, 11, 0.12);
  --glow-gold: 0 0 25px rgba(184, 134, 11, 0.1);
  --glow-gold-strong: 0 0 40px rgba(184, 134, 11, 0.18);
  --nav-bg: rgba(255, 255, 255, 0.92);
  --nav-bg-scroll: rgba(255, 255, 255, 0.97);
  --menu-overlay: rgba(255, 255, 255, 0.98);
  --icon-stroke: #B8860B;
  --gold: #B8860B;
  --bright-gold: #D4A017;
  --cta-bg: var(--bg-secondary);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-slow), color var(--transition-slow);
  letter-spacing: 0.01em;
}

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

img, svg {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

/* ---- Focus States ---- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---- Gold Shimmer Animation ---- */
@keyframes goldShimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes drawLine {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

/* ============================================
   THEME TOGGLE
   ============================================ */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--gold);
  transition: background var(--transition), color var(--transition), transform var(--transition);
  position: relative;
  z-index: 1001;
}

.theme-toggle:hover {
  background: rgba(217, 154, 0, 0.1);
  transform: scale(1.1);
}

[data-theme="light"] .theme-toggle:hover {
  background: rgba(184, 134, 11, 0.1);
}

.theme-toggle__icon {
  width: 20px;
  height: 20px;
  position: absolute;
  transition: opacity var(--transition), transform var(--transition);
}

.theme-toggle__icon--sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

.theme-toggle__icon--moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-toggle__icon--sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-toggle__icon--moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition), border-color var(--transition);
}

.header--scrolled {
  background: var(--nav-bg-scroll);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .header--scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1001;
}

.nav__logo-icon svg {
  width: 36px;
  height: 36px;
}

.nav__brand-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
  transition: color 0.3s ease, background 0.3s ease, transform 0.2s ease;
  border-radius: var(--border-radius-xs);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.3s ease, left 0.3s ease;
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 60%;
  left: 20%;
}

.nav__link:hover,
.nav__link:focus {
  color: var(--gold);
}

[data-theme="light"] .nav__link:hover,
[data-theme="light"] .nav__link:focus {
  color: var(--dark-gold);
}

.nav__link.active {
  color: var(--gold);
}

/* Nav actions group */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 1001;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  z-index: 1001;
}

.nav__hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

.nav__hamburger.active .nav__hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger.active .nav__hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.active .nav__hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050505;
  overflow: hidden;
  padding-top: 72px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Noise texture overlay */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  z-index: 1;
}

.hero__world-map {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

.hero__gold-curve {
  position: absolute;
  left: 0;
  right: 0;
  height: 200px;
  z-index: 2;
}

.hero__gold-curve--top {
  top: 10%;
}

.hero__gold-curve--bottom {
  bottom: 10%;
}

.hero__gold-curve svg {
  width: 100%;
  height: 100%;
}

.hero__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(217, 154, 0, 0.12) 0%, rgba(217, 154, 0, 0.04) 40%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 60px 24px;
}

.hero__logo-area {
  margin-bottom: 36px;
}

.hero__logo svg {
  width: 130px;
  height: 130px;
  margin: 0 auto;
  filter: drop-shadow(0 0 20px rgba(217, 154, 0, 0.3));
}

.hero__title {
  margin-bottom: 16px;
}

.hero__title-line {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 8px;
  line-height: 1.15;
  background: linear-gradient(135deg, #FFFFFF 0%, #F4C542 40%, #D99A00 60%, #FFFFFF 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShimmer 6s ease-in-out infinite;
}

.hero__subtitle-tag {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 10px;
  margin-bottom: 32px;
}

.hero__separator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 32px;
}

.hero__separator-line {
  display: block;
  width: 70px;
  height: 1.5px;
  background: var(--gold-shimmer);
  background-size: 200% auto;
  animation: goldShimmer 4s ease-in-out infinite;
}

.hero__separator-diamond {
  width: 10px;
  height: 10px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(217, 154, 0, 0.5);
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.65);
  max-width: 620px;
  margin: 0 auto;
  letter-spacing: 1.5px;
  line-height: 1.85;
}

/* ============================================
   SECTION DIVIDERS
   ============================================ */
.section-divider {
  position: relative;
  width: 100%;
  line-height: 0;
  margin-top: -1px;
}

.section-divider svg {
  width: 100%;
  height: auto;
  display: block;
}

.section-divider--dark-to-cream {
  background: #050505;
}

.section-divider--cream-to-dark {
  background: var(--bg-cream);
  margin-bottom: -1px;
}

.divider-fill-cream {
  fill: var(--bg-cream);
}

/* ============================================
   VISION / MISSION / OBJECTIVES
   ============================================ */
.vision-mission {
  padding: var(--section-padding);
  background: var(--bg-cream);
  position: relative;
}

.vm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.vm-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--border-radius);
  padding: 48px 32px;
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.vm-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-gradient);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.vm-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-card-hover);
}

.vm-card:hover::before {
  opacity: 1;
}

[data-theme="light"] .vm-card {
  background: #FFFFFF;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(184, 134, 11, 0.08);
}

[data-theme="light"] .vm-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 0 20px rgba(184, 134, 11, 0.12);
}

.vm-card__icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 24px;
  transition: transform var(--transition);
}

.vm-card:hover .vm-card__icon {
  transform: scale(1.08);
}

.vm-card__icon svg {
  width: 100%;
  height: 100%;
}

.vm-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: 3px;
  margin-bottom: 16px;
  background: var(--gold-text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.vm-card__text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.85;
}

.vm-card__list {
  text-align: left;
  counter-reset: obj-counter;
  padding-left: 0;
}

.vm-card__list li {
  counter-increment: obj-counter;
  position: relative;
  padding-left: 36px;
  margin-bottom: 16px;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.vm-card__list li::before {
  content: counter(obj-counter);
  position: absolute;
  left: 0;
  top: 1px;
  width: 26px;
  height: 26px;
  background: var(--gold-gradient);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ============================================
   DARK CARD (Structure + Initiatives)
   ============================================ */
.dark-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--border-radius);
  padding: 56px 44px;
  box-shadow: var(--shadow-card);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
}

.dark-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--border-radius);
  background: linear-gradient(180deg, rgba(217,154,0,0.03) 0%, transparent 40%);
  pointer-events: none;
}

[data-theme="light"] .dark-card::after {
  background: linear-gradient(180deg, rgba(184,134,11,0.02) 0%, transparent 40%);
}

[data-theme="light"] .dark-card {
  background: #FFFFFF;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(184, 134, 11, 0.08);
}

.dark-card__heading {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 4px;
  text-align: center;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 18px;
  background: var(--gold-text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dark-card__heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold-shimmer);
  background-size: 200% auto;
  border-radius: 1px;
  animation: drawLine 0.8s ease forwards, goldShimmer 4s ease-in-out infinite 0.8s;
}

.dark-card__intro {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 32px;
  line-height: 1.85;
}

.dark-card__text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.85;
  margin-top: 16px;
}

/* ============================================
   STRUCTURE + INITIATIVES GRID
   ============================================ */
.structure-initiatives {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  transition: background var(--transition-slow);
}

.si-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* Structure Zones */
.structure__zones {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 28px;
}

.structure__zone {
  border-left: 3px solid var(--gold);
  padding-left: 18px;
  transition: border-color 0.35s ease, transform 0.35s ease, padding-left 0.35s ease;
}

.structure__zone:hover {
  border-left-color: var(--bright-gold);
  padding-left: 22px;
}

.structure__zone-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--bright-gold);
  letter-spacing: 2px;
  margin-bottom: 6px;
}

[data-theme="light"] .structure__zone-title {
  color: var(--dark-gold);
}

.structure__zone-districts {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* Kerala Map */
.structure__map {
  display: flex;
  justify-content: center;
  margin: 28px 0;
  opacity: 0.8;
}

.kerala-map {
  width: 150px;
  height: auto;
}

/* Initiatives List */
.initiatives__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 28px;
}

.initiative {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  border-radius: var(--border-radius-sm);
  transition: background 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
  border: 1px solid transparent;
}

.initiative:hover {
  background: rgba(217, 154, 0, 0.05);
  transform: translateX(6px);
  box-shadow: -4px 0 0 var(--gold);
}

[data-theme="light"] .initiative:hover {
  background: rgba(184, 134, 11, 0.05);
  box-shadow: -4px 0 0 var(--gold);
}

.initiative__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  transition: transform var(--transition);
}

.initiative:hover .initiative__icon {
  transform: scale(1.1);
}

.initiative__icon svg {
  width: 100%;
  height: 100%;
}

.initiative__content {
  flex: 1;
}

.initiative__title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--bright-gold);
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}

[data-theme="light"] .initiative__title {
  color: var(--dark-gold);
}

.initiative__text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ============================================
   FUNDING APPROACH
   ============================================ */
.funding {
  padding: var(--section-padding);
  background: var(--bg-primary);
  transition: background var(--transition-slow);
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 4px;
  text-align: center;
  margin-bottom: 52px;
  position: relative;
  padding-bottom: 22px;
  background: var(--gold-text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold-shimmer);
  background-size: 200% auto;
  border-radius: 1px;
  animation: drawLine 0.8s ease forwards, goldShimmer 4s ease-in-out infinite 0.8s;
}

.funding__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.funding__card {
  text-align: center;
  padding: 44px 28px;
  border: 1px solid var(--border-card);
  border-radius: var(--border-radius);
  background: var(--bg-card);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color var(--transition);
  box-shadow: var(--shadow-card);
  position: relative;
}

.funding__card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-card-hover);
}

[data-theme="light"] .funding__card {
  background: #FFFFFF;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(184, 134, 11, 0.08);
}

.funding__icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 24px;
  transition: transform var(--transition);
}

.funding__card:hover .funding__icon {
  transform: scale(1.08);
}

.funding__icon svg {
  width: 100%;
  height: 100%;
}

.funding__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 14px;
  background: var(--gold-text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.funding__text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.85;
}

/* ============================================
   CLOSING STATEMENT
   ============================================ */
.closing {
  padding: 80px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-slow);
  position: relative;
}

.closing::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(217,154,0,0.04) 0%, transparent 70%);
  pointer-events: none;
}

[data-theme="light"] .closing::before {
  background: radial-gradient(ellipse at center, rgba(184,134,11,0.03) 0%, transparent 70%);
}

.closing__content {
  text-align: center;
}

.closing__text {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.55rem);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 3px;
  line-height: 1.5;
  padding: 24px 0;
  background: var(--gold-text-gradient);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShimmer 6s ease-in-out infinite;
}

.closing__separator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.closing__sep-line {
  display: block;
  width: 55px;
  height: 1.5px;
  background: var(--gold-shimmer);
  background-size: 200% auto;
  animation: goldShimmer 4s ease-in-out infinite;
}

.closing__sep-diamond {
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(217, 154, 0, 0.4);
}

/* ============================================
   CTA / CONTACT
   ============================================ */
.cta {
  position: relative;
  padding: 0 0 64px;
  background: var(--bg-primary);
  transition: background var(--transition-slow);
}

.cta__curve {
  position: relative;
  top: -1px;
  width: 100%;
  line-height: 0;
}

.cta__curve svg {
  width: 100%;
  height: auto;
}

.cta .container {
  background: var(--bg-cream);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  padding: 52px 40px;
  margin-top: -2px;
}

.cta__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}

.cta__heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 20px;
}

.cta__phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #050505;
  padding: 16px 32px;
  border: 2px solid var(--gold);
  border-radius: 60px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 56px;
  background: transparent;
}

.cta__phone:hover,
.cta__phone:focus {
  background: var(--gold);
  color: #FFFFFF;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 28px rgba(217, 154, 0, 0.35);
}

.cta__phone-icon {
  width: 22px;
  height: 22px;
}

.cta__phone:hover .cta__phone-icon path,
.cta__phone:focus .cta__phone-icon path {
  stroke: #FFFFFF;
}

.cta__right {
  text-align: right;
}

.cta__message {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 600;
  color: var(--dark-gold);
  line-height: 1.65;
  font-style: italic;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  padding: 56px 0 40px;
  transition: background var(--transition-slow);
}

.footer__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  margin-bottom: 36px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__logo-icon svg {
  width: 32px;
  height: 32px;
}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.footer__link {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
  border-radius: var(--border-radius-xs);
}

.footer__link:hover,
.footer__link:focus {
  color: var(--gold);
  background: rgba(217, 154, 0, 0.06);
}

[data-theme="light"] .footer__link:hover,
[data-theme="light"] .footer__link:focus {
  background: rgba(184, 134, 11, 0.06);
}

.footer__bottom {
  text-align: center;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.footer__phone {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 1px;
  transition: color var(--transition);
}

.footer__phone:hover,
.footer__phone:focus {
  color: var(--bright-gold);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for grid children */
.vm-grid .fade-in-up:nth-child(1) { transition-delay: 0s; }
.vm-grid .fade-in-up:nth-child(2) { transition-delay: 0.12s; }
.vm-grid .fade-in-up:nth-child(3) { transition-delay: 0.24s; }

.si-grid .fade-in-up:nth-child(1) { transition-delay: 0s; }
.si-grid .fade-in-up:nth-child(2) { transition-delay: 0.15s; }

.funding__grid .fade-in-up:nth-child(1) { transition-delay: 0s; }
.funding__grid .fade-in-up:nth-child(2) { transition-delay: 0.12s; }
.funding__grid .fade-in-up:nth-child(3) { transition-delay: 0.24s; }

/* ============================================
   RESPONSIVE — Large Desktop (1200px+)
   ============================================ */
@media (min-width: 1200px) {
  :root {
    --section-padding: 96px 0;
  }
}

/* ============================================
   RESPONSIVE — Tablet Landscape (1024px)
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --section-padding: 72px 0;
  }

  .container {
    padding: 0 28px;
  }

  .nav__link {
    padding: 8px 12px;
    font-size: 0.82rem;
  }

  .vm-grid {
    gap: 20px;
  }

  .vm-card {
    padding: 36px 24px;
  }

  .si-grid {
    gap: 24px;
  }

  .dark-card {
    padding: 44px 32px;
  }
}

/* ============================================
   RESPONSIVE — iPad Pro (912px)
   ============================================ */
@media (max-width: 912px) {
  .vm-grid {
    gap: 18px;
  }

  .vm-card {
    padding: 32px 22px;
  }

  .vm-card__icon {
    width: 64px;
    height: 64px;
  }

  .vm-card__title {
    font-size: 1.2rem;
  }

  .si-grid {
    gap: 20px;
  }

  .dark-card {
    padding: 36px 28px;
  }

  .funding__grid {
    gap: 20px;
  }

  .funding__card {
    padding: 32px 22px;
  }

  .cta__grid {
    gap: 40px;
  }
}

/* ============================================
   RESPONSIVE — Hamburger breakpoint (834px)
   ============================================ */
@media (max-width: 834px) {
  .nav__links {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: var(--menu-overlay);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    padding: 80px 40px 40px;
    z-index: 1000;
    border-left: 2px solid var(--border-card);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
  }

  [data-theme="light"] .nav__links {
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.08);
  }

  .nav__links.open {
    display: flex;
    transform: translateX(0);
  }

  .nav__link {
    font-size: 1rem;
    padding: 14px 20px;
    width: 100%;
    opacity: 0;
    transform: translateX(20px);
  }

  .nav__links.open .nav__link {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .nav__links.open .nav__link:nth-child(1) { transition-delay: 0.1s; }
  .nav__links.open .nav__link:nth-child(2) { transition-delay: 0.15s; }
  .nav__links.open .nav__link:nth-child(3) { transition-delay: 0.2s; }
  .nav__links.open .nav__link:nth-child(4) { transition-delay: 0.25s; }
  .nav__links.open .nav__link:nth-child(5) { transition-delay: 0.3s; }
  .nav__links.open .nav__link:nth-child(6) { transition-delay: 0.35s; }

  .nav__hamburger {
    display: flex;
  }

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

  .cta__grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .cta__right {
    text-align: center;
  }

  .cta__phone {
    margin: 0 auto;
  }
}

/* ============================================
   RESPONSIVE — iPad Portrait (768px)
   ============================================ */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  .container {
    padding: 0 24px;
  }

  .nav {
    height: 66px;
  }

  .hero {
    padding-top: 66px;
  }

  .hero__content {
    padding: 48px 20px;
  }

  .hero__logo svg {
    width: 110px;
    height: 110px;
  }

  .hero__title-line {
    letter-spacing: 5px;
  }

  .vm-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .vm-card {
    padding: 32px 22px;
  }

  .funding__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .funding__card {
    padding: 32px 20px;
  }

  .dark-card {
    padding: 36px 24px;
  }

  .cta .container {
    padding: 44px 28px;
  }
}

/* ============================================
   RESPONSIVE — Mobile (max 430px)
   ============================================ */
@media (max-width: 430px) {
  :root {
    --section-padding: 52px 0;
    --border-radius: 14px;
  }

  .container {
    padding: 0 18px;
  }

  .hero__logo svg {
    width: 96px;
    height: 96px;
  }

  .hero__title-line {
    letter-spacing: 3px;
  }

  .hero__subtitle-tag {
    letter-spacing: 5px;
  }

  .vm-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .vm-card {
    padding: 28px 22px;
  }

  .funding__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .funding__card {
    padding: 28px 20px;
  }

  .dark-card {
    padding: 32px 22px;
  }

  .cta .container {
    padding: 36px 22px;
  }

  .cta__phone {
    min-height: 56px;
    padding: 16px 28px;
    font-size: 1.05rem;
  }

  .vm-card__title,
  .dark-card__heading,
  .section-heading {
    letter-spacing: 2px;
  }

  .closing__text {
    letter-spacing: 1.5px;
    font-size: 1rem;
  }
}

/* ============================================
   RESPONSIVE — iPhone SE / Mini (390px, 375px)
   ============================================ */
@media (max-width: 390px) {
  .hero__separator-line {
    width: 45px;
  }

  .cta__phone {
    font-size: 1rem;
    padding: 14px 24px;
  }
}

@media (max-width: 375px) {
  :root {
    --section-padding: 44px 0;
  }

  .hero__title-line {
    letter-spacing: 2px;
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .hero__subtitle-tag {
    letter-spacing: 4px;
    font-size: 1.1rem;
  }

  .hero__tagline {
    font-size: 0.88rem;
    letter-spacing: 1px;
  }

  .hero__separator-line {
    width: 36px;
  }

  .nav__brand-text {
    font-size: 1.1rem;
  }

  .footer__brand-name {
    font-size: 0.78rem;
    letter-spacing: 1px;
  }

  .footer__links {
    gap: 4px;
  }

  .footer__link {
    font-size: 0.78rem;
    padding: 6px 10px;
  }

  .section-heading {
    font-size: 1.3rem;
  }

  .dark-card__heading {
    font-size: 1.3rem;
  }
}
