/* ── NILE BRAND VARIABLES ── */
:root {
  --green: #04342C;
  --teal: #1D9E75;
  --teal-light: #5DCAA5;
  --mint: #E1F5EE;
  --gold: #EF9F27;
  --white: #F4FAF8;
  --ink: #222222;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', Arial, sans-serif;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --radius: 12px;
}

/* ── GLOBAL RESET ── */
* {
  margin: 0; padding: 0;
  box-sizing: border-box;
}
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  line-height: 1.7;
}

/* ── FIX: Heading colours across all pages ── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--green);
  font-weight: 700;
}

/* ── Page heading style for About/Contact ── */
.page-heading {
  font-size: clamp(28px, 4vw, 48px);
  color: var(--green);
  text-align: center;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 16px;
}
.page-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

/* ── NAVBAR ── */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 48px;
  height: 68px;
  background: var(--green);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.logo {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: #E1F5EE;
  letter-spacing: 1px;
}
.logo span {
  color: var(--gold);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1000;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #E1F5EE;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  color: #E1F5EE;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-links a.active {
  color: var(--gold) !important;
}
.nav-links a.active::after {
  width: 100% !important;
  background: var(--gold);
}
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.form-error {
  color: #e74c3c;
  font-size: 12px;
  margin-top: -10px;
  margin-bottom: 10px;
  padding-left: 4px;
}
.form-success {
  text-align: center;
  padding: 48px 24px;
}
.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.form-success h3 {
  color: var(--green);
  font-size: 22px;
  margin-bottom: 8px;
}
.form-success p {
  color: #555;
  line-height: 1.7;
}
.btn-invest {
  background: var(--gold) !important;
  color: var(--green) !important;
  padding: 10px 22px !important;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
}
.btn-invest:hover {
  background: #d4891f !important;
  transform: translateY(-1px);
}

/* ── HERO ── */
.hero {
  min-height: 88vh;
  padding: 90px 24px 40px;
  background: linear-gradient(160deg, #04342C 55%, #062e25 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(29,158,117,0.15);
  animation: float 8s ease-in-out infinite;
}
.particle:nth-child(1) {
  width: 300px;
  height: 300px;
  top: -80px;
  left: -80px;
  animation-delay: 0s;
}
.particle:nth-child(2) {
  width: 200px;
  height: 200px;
  bottom: 100px;
  right: -60px;
  animation-delay: 3s;
}
.particle:nth-child(3) {
  width: 150px;
  height: 150px;
  top: 40%;
  right: 15%;
  animation-delay: 6s;
}
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 820px;
  z-index: 2;
  position: relative;
  transform: translateY(-16%);
}
@media (max-width: 768px) {
  .hero-content {
    transform: translateY(-10%);
  }
}
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gold);
  background: rgba(239,159,39,0.12);
  border: 0.5px solid rgba(239,159,39,0.3);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(44px, 7vw, 88px);
  color: #E1F5EE;
  font-weight: 700;
  line-height: 1.05;
  margin: 0 auto 24px;
  max-width: 780px;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}
@media (max-width: 1024px) {
  .hero h1 {
    white-space: normal;
  }
}
.hero p {
  font-size: 1.1rem;
  color: #C4F2D7;
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.85;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold) !important;
  color: var(--green) !important;
  padding: 16px 40px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(239,159,39,0.35);
}
.btn-primary:hover {
  background: #dab14f !important;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #5DCAA5;
  color: #E1F5EE;
  padding: 16px 40px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s;
  font-family: var(--font-body);
}
.btn-secondary:hover {
  background: rgba(93,202,165,0.1);
  transform: translateY(-2px);
}
.hero-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.hero-waves svg {
  width: 100%;
  height: 70px;
}
.wave1 {
  fill: rgba(29,158,117,0.3);
  animation: wave-move 6s ease-in-out infinite alternate;
}
.wave2 {
  fill: #062e25;
  animation: wave-move 4s ease-in-out infinite alternate-reverse;
}
@keyframes float {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-20px) scale(1.05);
  }
}
@keyframes wave-move {
  from {
    d: path('M0,40 C240,80 480,0 720,40 C960,80 1200,0 1440,40 L1440,80 L0,80 Z');
  }
  to {
    d: path('M0,30 C240,0 480,80 720,30 C960,0 1200,80 1440,30 L1440,80 L0,80 Z');
  }
}
.scroll-indicator {
  position: absolute;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(239,159,39,0.22);
  border-radius: 999px;
  padding: 10px 18px;
  backdrop-filter: blur(8px);
}
.scroll-indicator span {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 2px;
  color: #F4FAF8;
  opacity: 0.85;
  text-transform: uppercase;
}
.scroll-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--gold);
  font-size: 18px;
  border: 1px solid rgba(239,159,39,0.3);
  border-radius: 50%;
  background: rgba(239,159,39,0.12);
  animation: bounce 1.8s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ── STATS ── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 80px 48px;
  padding-bottom: 80px;
  background: #062e25;
}
.stat {
  background: rgba(255,255,255,0.05);
  border: 0.5px solid rgba(29,158,117,0.3);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.25s, border-color 0.25s;
}
.stat:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
}
.stat h2 {
  font-family: var(--font-heading);
  font-size: 42px;
  color: var(--gold);
  margin-bottom: 8px;
}
.stat p {
  font-size: 13px;
  color: #9FE1CB;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ── SHARED PAGE STYLES ── */
.page-hero {
  padding: 80px 48px 48px;
  text-align: center;
}
.page-subtext {
  font-size: 16px;
  color: #555;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ── Legal Page CSS ── */
.legal-section {
  padding: 60px 48px;
}
.legal-content {
  max-width: 680px;
  margin: 0 auto;
}
.legal-block {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 0.5px solid #eee;
}
.legal-block:last-of-type {
  border-bottom: none;
}
.legal-block h2 {
  color: var(--green);
  font-size: 16px;
  margin-bottom: 10px;
}
.legal-block p {
  color: #555;
  line-height: 1.8;
  font-size: 14px;
}
.legal-block a {
  color: var(--teal);
}
.legal-date {
  color: #aaa;
  font-size: 12px;
  margin-top: 24px;
}

@media (max-width: 768px) {
  .legal-section {
    padding: 48px 20px;
  }
  .legal-content {
    max-width: 100%;
  }
}


/* ── Strategy Page ── */
.strategy-overview {
  padding: 60px 48px;
  background: var(--white);
}
.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.overview-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  border-top: 3px solid var(--teal);
  box-shadow: var(--shadow);
}
.overview-card h3 {
  color: var(--green);
  margin-bottom: 10px;
  font-size: 14px;
}
.overview-card p {
  color: #555;
  font-size: 12px;
  line-height: 1.7;
}
.allocation-section {
  padding: 60px 48px;
  background: var(--green);
}
.allocation-section .section-title {
  color: #E1F5EE;
}
.alloc-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}
.alloc-label {
  display: flex;
  justify-content: space-between;
  color: #E1F5EE;
  font-size: 14px;
  margin-bottom: 8px;
}
.alloc-label span:last-child {
  color: var(--gold);
  font-weight: 600;
}
.alloc-bar {
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  height: 10px;
  overflow: hidden;
}
.alloc-fill {
  width: 0;
  height: 100%;
  border-radius: 20px;
  transition: width 1.2s ease;
}

@media (max-width: 768px) {
  .overview-grid {
    grid-template-columns: 1fr;
    padding: 40px 20px;
  }
  .allocation-section {
    padding: 40px 20px;
  }
}

/* ── FOUNDER ── */
.founder-section {
  display: flex;
  gap: 40px;
  align-items: center;
  padding: 48px;
  background: var(--green);
  margin: 0;
}
.founder-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--gold);
}
.founder-label {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gold);
  display: block;
  margin-bottom: 6px;
}
.founder-text h2 { color: #E1F5EE; font-size: 24px; margin-bottom: 12px; }
.founder-text p { color: #9FE1CB; line-height: 1.8; font-size: 15px; }

/* ── MISSION / VISION ── */
.mv-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 60px 48px;
}
.mv-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  border-top: 4px solid var(--teal);
  box-shadow: var(--shadow);
}
.mv-card h3 { font-size: 18px; margin-bottom: 12px; color: var(--green); }
.mv-card p { color: #555; line-height: 1.8; }

/* ── VERTICALS ── */
.verticals {
  padding: 80px 48px;
  background: var(--white);
}
.section-header {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--teal);
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-weight: 500;
}
.hero-eyebrow.eyebrow {
  color: var(--gold);
  background: rgba(239,159,39,0.12);
  border: 0.5px solid rgba(239,159,39,0.3);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.verticals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.v-card {
  background: #FAFAFA;
  border-radius: 12px;
  padding: 40px 28px;
  text-align: center;
  border: none;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  position: relative;
}
.v-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}
.vertical-card {
  background: #FAFAFA;
  border-radius: 12px;
  padding: 40px 28px;
  text-align: center;
  border: none;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  position: relative;
}
.vertical-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}
.v-icon { 
  font-size: 56px; 
  margin-bottom: 20px; 
  display: block; 
}
.v-alloc {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #D4F1E8;
  color: #1D9E75;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--font-body);
  border: none;
  letter-spacing: 0.3px;
}
.v-card h3 { 
  color: var(--green); 
  font-size: 18px; 
  margin-bottom: 14px; 
  font-weight: 700;
  letter-spacing: -0.2px;
}
.v-card p { 
  color: #666; 
  font-size: 14px; 
  line-height: 1.75;
  font-weight: 400;
}
.vertical-card h3 { 
  color: var(--green); 
  font-size: 18px; 
  margin-bottom: 14px; 
  font-weight: 700;
  letter-spacing: -0.2px;
}
.vertical-card p { 
  color: #666; 
  font-size: 14px; 
  line-height: 1.75;
  font-weight: 400;
}

.why-nile {
  background: var(--green);
  padding: 80px 48px;
}
.why-nile .section-header h2 {
  color: #E1F5EE;
}
.why-nile .section-header p {
  color: #9FE1CB;
}
.why-nile .eyebrow {
  color: #5DCAA5;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(93,202,165,0.3);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: border-color 0.25s, transform 0.25s;
}
.why-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}
.why-num {
  font-family: var(--font-heading);
  font-size: 36px;
  color: var(--gold);
  opacity: 0.5;
  margin-bottom: 12px;
}
.why-card h3 { color: #E1F5EE; font-size: 17px; margin-bottom: 10px; }
.why-card p { color: #9FE1CB; font-size: 13px; line-height: 1.7; }

.cta-strip {
  background: linear-gradient(135deg, #062e25 0%, #04342C 100%);
  border-top: 1px solid rgba(239,159,39,0.3);
  border-bottom: 1px solid rgba(239,159,39,0.3);
  padding: 72px 48px;
  text-align: center;
}
.cta-content h2 { color: #E1F5EE; font-size: clamp(22px, 3vw, 36px); margin-bottom: 12px; }
.cta-content p { color: #9FE1CB; font-size: 15px; margin-bottom: 32px; }

@keyframes cardRise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== CONTACT SECTION ==================== */
.contact {
  padding: 60px 2rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.contact h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select,
.form-input {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 14px;
  display: block;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus,
.form-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(29,158,117,0.15);
}

.contact-info-card {
  background: var(--green);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 32px;
  text-align: center;
}
.contact-info-card p { color: #9FE1CB; font-size: 14px; margin: 6px 0; }
.contact-info-card a { color: var(--gold); text-decoration: none; }

.contact-info {
  background-color: #0b3f2f;
  padding: 2rem;
  border-radius: 8px;
  max-width: 400px;
  margin: 0 auto;
}

.contact-info p {
  margin: 0.5rem 0;
}

/* ── FOOTER ── */
footer {
  background: var(--green);
  padding: 32px 48px;
  text-align: center;
  border-top: 2px solid var(--gold);
}
footer p {
  color: #5DCAA5;
  font-size: 13px;
  letter-spacing: 0.5px;
}

#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--green);
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(239,159,39,0.4);
  transition: transform 0.2s, opacity 0.2s;
  z-index: 999;
}
#back-to-top.visible {
  display: flex;
}
#back-to-top:hover {
  transform: translateY(-3px);
}

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

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

/* ── MOBILE RESPONSIVE ── */
@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .nav-links { gap: 16px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 15px; }
  .page-subtext { font-size: 16px; }
  .founder-section { flex-direction: column; align-items: flex-start; padding: 40px 20px; }
  .mv-section { grid-template-columns: 1fr; padding: 40px 20px; }
  .verticals-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .why-grid { grid-template-columns: 1fr; }
  .overview-grid { grid-template-columns: 1fr; }
  .strategy-overview { padding: 48px 20px; }
  .overview-card { padding: 28px 20px; }
  .allocation-section { padding: 48px 20px; }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    padding: 40px 20px;
  }
  .verticals, .why-nile, .cta-strip { padding: 48px 20px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hamburger { display: flex; }
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--green);
    flex-direction: column;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    gap: 0;
    border-top: 0.5px solid rgba(93,202,165,0.2);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .nav-links.open {
    max-height: 300px;
    padding: 12px 0;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links a {
    display: block;
    padding: 14px 24px;
    border-bottom: 0.5px solid rgba(255,255,255,0.06);
  }
  .nav-links a.btn-invest {
    margin: 12px 24px;
    display: inline-block;
  }
  footer { padding: 24px 20px; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .page-hero { padding: 60px 18px 40px; }
  .founder-section { padding: 32px 18px; }
  .mv-card { padding: 24px; }
  .overview-grid { grid-template-columns: 1fr; }
  .allocation-section { padding: 40px 18px; }
  .verticals-grid { grid-template-columns: 1fr; }
  .section-header { padding: 0 18px; }
  .verticals, .why-nile, .cta-strip { padding: 40px 18px; }
}
