:root {
  /* Proposal D - Corporate Tribal (Light focus) */
  --bg-color: #F9F7F5;
  --surface-color: #FFFFFF;
  --surface-light: #F2EFE9;
  --accent-gold: #D4AF37;
  --accent-terracotta: #B3862D;
  --text-primary: #2D241E;
  --text-secondary: #6B5E54;
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --header-bg: rgba(249, 247, 245, 0.95);
  --card-shadow: 0 15px 35px rgba(212, 175, 55, 0.1);
  --dropdown-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --hero-overlay: linear-gradient(to right, rgba(249, 247, 245, 0.95) 0%, rgba(249, 247, 245, 0.8) 50%, rgba(249, 247, 245, 0.3) 100%);
  --kente-pattern: url('../images/kente_pattern.png');
}

[data-theme="dark"] {
  --bg-color: #1A1612;
  --surface-color: #251F1A;
  --surface-light: #302821;
  --text-primary: #F2EFE9;
  --text-secondary: #A69D92;
  --header-bg: rgba(26, 22, 18, 0.95);
  --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  --dropdown-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  --hero-overlay: linear-gradient(to right, rgba(26, 22, 18, 0.9) 0%, rgba(26, 22, 18, 0.4) 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;
  background-image: radial-gradient(rgba(212, 175, 55, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

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

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

a:hover {
  color: var(--accent-gold);
}

ul {
  list-style: none;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: clamp(60px, 10vw, 120px) 0;
  position: relative;
}

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

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

.text-terracotta {
  color: var(--accent-terracotta);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 0;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
  font-size: 13px;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: #fff;
  border: 1px solid var(--accent-gold);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--accent-gold);
}

.btn-outline:hover {
  background-color: var(--accent-gold);
  color: #fff;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 14px 20px;
  background: var(--surface-color);
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  transition: var(--transition-smooth);
  border-radius: 4px;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

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

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  transition: var(--transition-smooth);
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  height: 80px;
}

header.scrolled {
  background: var(--header-bg);
  padding: 12px 0;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

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

.logo img {
  height: 32px;
  transition: var(--transition-smooth);
}

header.scrolled .logo img {
  height: 28px;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links li a {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  position: relative;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.nav-links li a i {
  font-size: 10px;
  transition: transform 0.3s ease;
}

.nav-links li:hover>a i {
  transform: rotate(180deg);
  color: var(--accent-gold);
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-gold);
  transition: var(--transition-smooth);
}

.nav-links li a:hover::after {
  width: 100%;
}

/* Dropdowns */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--surface-color);
  min-width: 240px;
  padding: 15px 0;
  border-radius: 4px;
  box-shadow: var(--dropdown-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: var(--transition-smooth);
  border: 1px solid var(--accent-gold);
  z-index: 10000;
}

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

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu li a {
  display: block;
  padding: 12px 25px;
  text-transform: none;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: 0;
}

.dropdown-menu li a::after {
  display: none;
}

.dropdown-menu li a:hover {
  color: var(--accent-gold);
  background: var(--surface-light);
  padding-left: 30px;
}

.mobile-menu-btn {
  display: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
}

/* Hero Slider */
.hero {
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  background-color: var(--bg-color);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--kente-pattern);
  background-size: 300px;
  opacity: 0.03;
  z-index: 0;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  background-size: cover;
  background-position: center;
  z-index: 1;
  filter: brightness(0.92);
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--hero-overlay);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 850px;
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.25, 1, 0.5, 1) 0.6s;
}

.slide.active .hero-content {
  opacity: 1;
  transform: translateY(0);
}

.hero-subtitle {
  color: var(--accent-gold);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 5px;
  margin-bottom: 25px;
  display: block;
  font-weight: 700;
  font-size: 14px;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  margin-bottom: 30px;
  color: var(--text-primary);
  line-height: 1.1;
  font-weight: 900;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.hero-title span {
  color: var(--accent-gold);
  position: relative;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 45px;
  max-width: 650px;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.slider-controls {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 20px;
}

.slider-dot {
  width: 40px;
  height: 3px;
  background: rgba(45, 36, 30, 0.2);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.slider-dot.active {
  background: var(--accent-gold);
  width: 60px;
}

.slider-arrows {
  position: absolute;
  bottom: 50px;
  right: 10%;
  z-index: 10;
  display: flex;
  gap: 15px;
  pointer-events: auto;
}

.slider-arrow {
  width: 55px;
  height: 55px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition-smooth);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(5px);
}

.slider-arrow:hover {
  background: var(--accent-gold);
  color: #fff;
  border-color: var(--accent-gold);
}

/* Section Common */
.section-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: 25px;
  line-height: 1.2;
}

.section-title span {
  color: var(--accent-gold);
}

/* Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  align-items: center;
}

.card {
  background: var(--surface-color);
  padding: 50px 40px;
  border-radius: 0;
  border: 1px solid rgba(212, 175, 55, 0.15);
  transition: var(--transition-smooth);
  position: relative;
  box-shadow: var(--card-shadow);
}

.card:hover {
  transform: translateY(-12px);
  border-color: var(--accent-gold);
}

.card-icon {
  font-size: 45px;
  color: var(--accent-gold);
  margin-bottom: 25px;
}

.card-title {
  font-size: 1.6rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.card-text {
  color: var(--text-secondary);
}

/* Pattern Overlay for specific sections */
.section-pattern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--kente-pattern);
  background-size: 400px;
  opacity: 0.04;
  z-index: 0;
  pointer-events: none;
}

/* Footer */
footer {
  background: var(--surface-light);
  padding: 100px 0 40px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 80px;
}

.footer-col h4 {
  font-size: 1.3rem;
  margin-bottom: 30px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.footer-links li {
  margin-bottom: 18px;
}

.footer-links a {
  color: var(--text-secondary);
  font-weight: 500;
  display: inline-block;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  color: var(--text-secondary);
  font-size: 14px;
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

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

/* Inner Page Header */
.page-header {
  padding: clamp(120px, 15vw, 200px) 0 clamp(60px, 8vw, 100px);
  background: var(--surface-light);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--kente-pattern);
  background-size: 500px;
  opacity: 0.05;
  z-index: 0;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

/* Responsive Improvements */
@media (max-width: 1024px) {
  .container {
    padding: 0 30px;
  }

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

  .grid-2 {
    gap: 40px;
  }

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

@media (max-width: 768px) {
  header {
    padding: 15px 0;
  }

  .nav-controls {
    margin-left: auto;
    gap: 10px;
  }

  .theme-toggle,
  .lang-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
  }

  .lang-btn span {
    display: none;
  }

  /* Hide text on mobile for space */

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: 5px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10001;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-color);
    flex-direction: column;
    padding: 100px 40px;
    transition: var(--transition-smooth);
    z-index: 9998;
    overflow-y: auto;
    display: flex !important;
    /* Force flex since it's hidden on mobile sometimes */
    gap: 0;
  }

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

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  }

  .nav-links li a {
    padding: 20px 0;
    font-size: 18px;
    width: 100%;
    justify-content: space-between;
  }

  .nav-links li.dropdown .dropdown-menu {
    position: static;
    opacity: 0;
    visibility: hidden;
    display: none;
    transform: none;
    box-shadow: none;
    background: var(--surface-light);
    border: none;
    padding: 10px 20px;
    width: 100%;
  }

  .nav-links li.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    display: block;
  }

  .nav-links li.dropdown .dropdown-menu li {
    border-bottom: none;
  }

  .nav-links li.dropdown .dropdown-menu li a {
    padding: 12px 0;
    font-size: 15px;
    color: var(--text-secondary);
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-title {
    font-size: clamp(2rem, 10vw, 3.5rem);
  }

  .hero-desc {
    font-size: 1.1rem;
  }

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

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

  .slider-arrows {
    display: none;
  }
}

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

  .section-title {
    font-size: 1.8rem;
  }

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

/* Theme & Language Controls */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: auto;
}

.theme-toggle {
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 16px;
}

.theme-toggle:hover {
  background: var(--accent-gold);
  color: #fff;
  border-color: var(--accent-gold);
}

.lang-selector {
  position: relative;
}

.lang-btn {
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--text-primary);
  padding: 8px 15px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  transition: var(--transition-smooth);
}

.lang-btn:hover {
  border-color: var(--accent-gold);
  background: var(--surface-light);
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--surface-color);
  min-width: 160px;
  margin-top: 10px;
  border-radius: 8px;
  box-shadow: var(--dropdown-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-smooth);
  border: 1px solid rgba(212, 175, 55, 0.2);
  z-index: 10000;
  overflow: hidden;
}

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

.lang-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.lang-opt:hover {
  background: var(--surface-light);
  color: var(--accent-gold);
}

.lang-flag {
  width: 20px;
  height: auto;
  border-radius: 2px;
}

/* --- Table Responsiveness --- */
.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 30px;
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.invest-table {
  width: 100%;
  border-collapse: collapse;
}

.invest-table th {
  text-align: left;
  padding: 15px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--accent-gold);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.invest-table td {
  padding: 20px 15px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  color: #fff;
  font-size: 0.95rem;
}

.invest-table tr td:first-child {
  font-weight: 700;
}

@media (max-width: 768px) {
  .invest-table th,
  .invest-table td {
    padding: 12px 10px;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  .table-responsive .invest-table {
    min-width: 650px;
  }
}
