/* ============================================
   BASE.CSS — reset, design tokens, layout,
   header (navbar) + footer styles
   ============================================ */
html {
  overflow-x: hidden;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
}

*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  /* Brand colors (light theme — fixed, no dark mode) */
  --teal-dark: #0a8f63;
  --teal: #0e9f6e;
  --teal-light: #14b07e;
  --orange: #ff7a1a;
  --orange-light: #ff9c4d;
  --orange-deep: #ed6510;
  --blue-acc: #2f9e87;

  /* Surfaces */
  --bg: #f7faf8;
  --bg-2: #eef3f1;
  --bg-card: #ffffff;
  --bg-card-hover: #f8faf9;
  --nav-bg: rgba(207, 215, 211, 0.92);
  --card: #ffffff;
  --core-bg: linear-gradient(155deg, #ffffff, #f4f8f6);
  --glass: rgba(255, 255, 255, 0.9);
  --sub: #f4f7f5;

  /* Borders */
  --border: #e3eae6;
  --card-bd: #e6ece9;
  --sub-bd: #e8edea;
  --glass-bd: #e6ece9;
  --divider: #eef2f0;
  --grid-line: rgba(15, 60, 45, 0.05);
  --logo-pad: radial-gradient(circle at 50% 36%, rgba(14,159,110,0.1), rgba(255,255,255,0.92) 70%);

  /* Text */
  --text: #141a17;
  --text-2: #4a5560;
  --text-muted: #7c8a82;

  /* Shadows / effects */
  --shadow: 0 4px 12px rgba(15, 40, 30, 0.05), 0 1px 3px rgba(15, 40, 30, 0.06);
  --shadow-lg: 0 8px 24px rgba(15, 40, 30, 0.07), 0 2px 6px rgba(15, 40, 30, 0.05);
  --glow: 0 4px 20px rgba(14, 159, 110, 0.10);

 
  --font-display: 'Poppins', sans-serif;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;



  /* Layout */
  --container-width: min(1200px, 90%);
  --header-height: 70px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
}

[data-theme="dark"] {
  --teal-dark: #12b37c;
  --teal: #1acb8e;
  --teal-light: #3fdba3;
  --orange: #ff8c3d;
  --orange-light: #ffab6b;
  --orange-deep: #e8650f;
  --blue-acc: #3fc2a8;

  --bg: #0d1512;
  --bg-2: #111b17;
  --bg-card: #16211c;
  --bg-card-hover: #1b2721;
  --nav-bg: rgba(13, 21, 18, 0.92);
  --card: #16211c;
  --core-bg: linear-gradient(155deg, #1b2721, #16211c);
  --glass: rgba(20, 30, 26, 0.9);
  --sub: #1a2420;

  --border: #24312a;
  --card-bd: #263229;
  --sub-bd: #232f28;
  --glass-bd: #263229;
  --divider: #1e2823;
  --grid-line: rgba(200, 255, 230, 0.05);
  --logo-pad: radial-gradient(circle at 50% 36%, rgba(26, 203, 142, 0.14), rgba(22, 33, 28, 0.9) 70%);

  --text: #eef3f0;
  --text-2: #a9b6b0;
  --text-muted: #7c8a82;

  --shadow: 0 4px 12px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3);
  --glow: 0 4px 20px rgba(26, 203, 142, 0.16);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--card-bd);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  margin-left: 8px;
}

.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; } 


/* ---------- CURSOR SPOTLIGHT (site-wide) ---------- */
.cursor-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  margin-left: -300px;
  margin-top: -300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 159, 110, 0.14), transparent 70%);
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
}

@media (hover: none) {
  .cursor-spotlight {
    display: none; /* no cursor on touch devices */
  }
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% -6%, rgba(14, 159, 110, 0.05), transparent 40%),
    radial-gradient(circle at 88% 4%, rgba(20, 176, 126, 0.04), transparent 42%),
    linear-gradient(180deg, #f9fbfa 0%, #f3f7f5 50%, #f7faf8 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

.container {
  width: var(--container-width);
  max-width: var(--container-width);
  margin: 0 auto;
}

::selection { background: rgba(14, 159, 110, 0.18); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 4px; }

/* Visible keyboard focus (accessibility) */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Buttons (shared) */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 11px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 8px 22px rgba(14, 159, 110, 0.22);
}
.btn-primary:hover {
  background: var(--orange-deep);
  box-shadow: 0 10px 26px rgba(237, 101, 16, 0.28);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* ============================================
   HEADER / NAVBAR
   ============================================ */
.site-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);
}

.navbar {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 16px;
}

.navbar__logo img {
  height: 37px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.navbar__links {
  position: relative; /* anchors the blob's absolute positioning */
}

.nav-blob {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 10px;
  background: var(--bg-card);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
}

.nav-link,
.nav-trigger {
  position: relative;
  z-index: 1; /* keeps text above the blob */
}

.nav-link {
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-2);
  background: transparent;
}
.nav-link:hover, .nav-link.is-active {
  color: var(--text);
}

.nav-dropdown { position: relative; }
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-2);
  background: transparent;
  border: none;
}
.nav-trigger:hover, .nav-trigger.is-active {
  color: var(--text);
}
.nav-trigger .caret { font-size: 0.7rem; }

.mega-menu {
  position: fixed;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  padding: 28px 26px 26px;
  z-index: 100;
  width: min(800px, 94vw);
  display: none;
}

.mega-menu.is-open {
  display: block;
}
.mega-menu__inner {
  width: 100%;
  background: var(--glass);
  backdrop-filter: blur(26px) saturate(1.4);
  -webkit-backdrop-filter: blur(26px) saturate(1.4);
  border: 1px solid rgba(15, 40, 30, 0.09);
  border-radius: 20px;
  box-shadow: 0 36px 100px rgba(0,0,0,0.15);
  overflow: hidden;
  display: grid;
  grid-template-columns: 296px 1fr;
}
.mega-menu__cats {
  background: var(--bg-2);
  border-right: 1px solid rgba(15, 40, 30, 0.09);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.mega-menu__cats-label {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 4px 12px 12px;
}
.mega-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: transparent;
  border: none;
  text-align: left;
}
.mega-cat:hover, .mega-cat.is-active { background: rgba(14,159,110,0.07); }
.mega-cat__name { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; color: var(--text); }
.mega-cat__tag { font-size: 0.74rem; color: var(--text-2); line-height: 1.35; display: block; margin-top: 2px; }
.mega-cat__arrow { color: var(--teal); }

.mega-menu__panel { padding: 20px 22px; display: flex; flex-direction: column; }
.mega-menu__panel-head {
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 15px; padding: 0 2px;
}
.mega-menu__panel-head strong { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; color: var(--text); }
.mega-menu__panel-head span { font-size: 0.76rem; color: var(--text-2); }

.mega-menu__items { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mega-item {
  display: flex; flex-direction: column; gap: 5px;
  padding: 14px 16px; border-radius: 13px;
  border: 1px solid rgba(15,40,30,0.09);
  background: rgba(14,159,110,0.035);
}
.mega-item:hover {
  border-color: rgba(14,159,110,0.35);
  box-shadow: 0 14px 34px rgba(14,159,110,0.14);
  background: rgba(14,159,110,0.08);
}
.mega-item__name { font-family: var(--font-heading); font-weight: 700; font-size: 0.92rem; color: var(--text); }
.mega-item__desc { font-size: 0.76rem; color: var(--text-2); line-height: 1.4; }

.mega-menu__cta {
  margin-top: 18px; padding: 16px 18px; border-radius: 14px;
  border: 1px solid rgba(15,40,30,0.09);
  background: linear-gradient(120deg, rgba(14,159,110,0.08), rgba(14,159,110,0.01));
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.mega-menu__cta-text strong { font-family: var(--font-heading); font-weight: 700; font-size: 0.92rem; color: var(--text); display: block; }
.mega-menu__cta-text span { font-size: 0.77rem; color: var(--text-2); line-height: 1.45; max-width: 380px; display: block; margin-top: 3px; }
.mega-menu__cta .btn { padding: 11px 20px; font-size: 0.85rem; }


/* ---------- LOGO — swap between light/dark versions ---------- */

.navbar__logo-img--dark {
  display: none;
}

[data-theme="dark"] .navbar__logo-img--light {
  display: none;
}

[data-theme="dark"] .navbar__logo-img--dark {
  display: block;
}

.eco-core__logo--dark {
  display: none;
}

[data-theme="dark"] .eco-core__logo--light {
  display: none;
}

[data-theme="dark"] .eco-core__logo--dark {
  display: block;
}


/* ---------- SIMPLE DROPDOWN (About Us, etc.) ---------- */
.simple-dropdown {
  position: absolute;
  top: 58px;
  left: 0;
  min-width: 220px;
  background: var(--glass);
  backdrop-filter: blur(26px) saturate(1.4);
  border: 1px solid var(--card-bd);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 100;
  display: none;
}

.simple-dropdown.is-open {
  display: block;
}

.simple-dropdown__item {
  display: block;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.simple-dropdown__item:hover {
  background: var(--bg-2);
  color: var(--teal-dark);
}

.navbar__mobile-toggle { display: none; color: var(--text); }

@media (max-width: 880px) {
  .navbar__links {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
  }
  .navbar__links.is-open { display: flex; }
  .navbar__mobile-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 10px;
    border: 1px solid var(--border); background: var(--bg-card);
  }
  .mega-menu { position: static; transform: none; width: 100%; padding: 8px 0; }
  .mega-menu__inner { grid-template-columns: 1fr; }
  
}

@media (max-width: 880px) {
  .simple-dropdown {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    min-width: 0;
    box-shadow: none;
    margin-top: 4px;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--nav-bg);
  border-top: 1px solid var(--divider);
  padding: 60px 0 28px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer__brand p {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 320px;
}
.footer__heading {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer__col a, .footer__col p {
  display: block;
  font-size: 0.88rem;
  color: var(--text-2);
  margin-bottom: 12px;
}
.footer__col a:hover { color: var(--teal); }
.footer__socials { display: flex; gap: 10px; margin-top: 16px; }
.footer__socials a {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-2);
  text-decoration: none;
}
.footer__socials a:hover { border-color: var(--teal); color: var(--teal); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--divider);
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.footer__bottom a { color: var(--text-muted); }
.footer__bottom a:hover { color: var(--teal); }
.footer__bottom-links { display: flex; gap: 20px; }

@media (max-width: 880px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}


/* ---------- INVESTOR MENU (wide 3-column dropdown) ---------- */
.investor-menu {
  position: fixed;
  top: 58px;
  left: 50%;
  transform: translateX(-50%);
  width: min(780px, 94vw);
  background: var(--glass);
  backdrop-filter: blur(26px) saturate(1.4);
  border: 1px solid var(--card-bd);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 30px 34px;
  z-index: 100;
  display: none;
}

.investor-menu.is-open {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.investor-menu__group {
  margin-bottom: 22px;
}

.investor-menu__group:last-child {
  margin-bottom: 0;
}

.investor-menu__col-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.79rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 14px;
}

.investor-menu__link {
  display: block;
  padding: 7px 0;
  font-weight: 650;
  font-size: 0.88rem;
  color: var(--text-2);
  text-decoration: none;
}

.investor-menu__link:hover {
  color: var(--teal-dark);
}

@media (max-width: 880px) {
  .investor-menu {
    position: static;
    width: calc(100% - 14px);
    box-sizing: border-box;
    transform: none;
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--card-bd);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    backdrop-filter: none;
    padding: 18px;
    margin: 6px 0 10px 14px;
    max-height: 320px;
    overflow-y: auto;
  }


  .investor-menu.is-open {
    display: block;
  }

  .investor-menu__col {
    display: contents;
  }

  .investor-menu__group {
    margin-bottom: 22px;
  }

  .investor-menu__group:last-child {
    margin-bottom: 0;
  }
}
