/* Desktop sidebar suppressed — main-header handles desktop nav */
@media (min-width: 992px) {
  .sidenav { display: none !important; }
}

/* =============================================================
   THEME TOGGLE
   Circular icon button — identical dimensions/border/hover to
   .main-header__social a  (28 × 28 px, 50% border-radius).
   Moon icon = dark mode active · Sun icon = light mode active.
============================================================= */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.18s;
}
.theme-toggle:hover {
  background: hsl(var(--base));
  border-color: hsl(var(--base));
  color: #000;
  box-shadow: 0 0 10px hsl(var(--base) / 0.5);
}
.theme-toggle:focus-visible {
  outline: 2px solid hsl(var(--base));
  outline-offset: 2px;
}

/* Placement in MainHeader — matches social icon list spacing */
.main-header__theme {
  flex-shrink: 0;
  padding: 0 10px;
  height: 100%;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
}

/* TopBar variant — slightly smaller to match topbar icon row */
.topbar__theme-toggle {
  width: 26px;
  height: 26px;
}

/* =============================================================
   FOOTER — background always matches sidenav (#002A28)
   Works in BOTH light and dark themes.
   Footer text remains light (already set by template CSS).
============================================================= */
.footer-area {
  background: #002A28 !important;
}

/* ── Footer text: always white — footer bg is always #002A28 ── */
/* These rules apply in BOTH themes since the footer never changes bg */
.footer-area .footer-item__title        { color: #fff !important; }
.footer-area .footer-item__desc         { color: rgba(255,255,255,0.7) !important; }
.footer-area .footer-menu__link         { color: rgba(255,255,255,0.7) !important; }
.footer-area .footer-menu__link:hover   { color: hsl(var(--base)) !important; }
.footer-area .footer-legal__notes       { color: rgba(255,255,255,0.55) !important; }
.footer-area .footer-legal__notes p     { color: rgba(255,255,255,0.55) !important; }
.footer-area .footer-legal__notes strong{ color: rgba(255,255,255,0.8) !important; }
.footer-area .footer-legal__links a     { color: rgba(255,255,255,0.5) !important; }
.footer-area .footer-legal__links a:hover { color: hsl(var(--base)) !important; }
.footer-area .bottom-footer-text,
.footer-area .bottom-footer-text a,
.footer-area .bottom-footer nav a       { color: rgba(255,255,255,0.7) !important; }
.footer-area .bottom-footer nav a:hover { color: hsl(var(--base)) !important; }
.footer-area .social-list__link         { color: rgba(255,255,255,0.7) !important; }
.footer-area .social-list__link:hover   { color: hsl(var(--base)) !important; }

/* ── Footer bottom line → green (matches footer-legal top border) ── */
/* Replaces hsl(var(--black-two)) which is invisible on the dark bg   */
.footer-area .bottom-footer {
  border-top: 1px solid rgba(8, 239, 40, 0.2) !important;
  box-shadow: 0 -1px 16px rgba(8, 239, 40, 0.04);
}

/* =============================================================
   GOOGLE TRANSLATE ENGINE CONTAINER
   Must NOT be display:none — Google needs it in the render tree
   to inject the .goog-te-combo select used for translation.
   We keep it off-screen instead.
============================================================= */
#gt-engine-container {
  display: block !important;
  position: fixed !important;
  left: -9999px !important;
  top: 0 !important;
}

/* =============================================================
   CSS variable additions
============================================================= */
:root {
  --gradient: linear-gradient(135deg, #08EF28 0%, #05c420 100%);
  --topbar-h: 44px;
  --heading-font: 'Inter', sans-serif;
  --body-font:    'Inter', sans-serif;
  --title-font:   'Inter', sans-serif;
}

/* ── Force Inter everywhere (overrides Jost / Inter in main.css) ── */
body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6,
p, a, span, li, button, input, select, textarea,
.slide-text-black,
.slide-text-stock,
.custom--accordion,
.custom--accordion h2,
.navbar,
.btn,
.nav-link,
.dropdown-item,
.breadcrumb__list,
label,
th, td {
  font-family: inherit !important;
}

/* ── Hero / banner offset for fixed topbar + navbar ──── */
.banner-one-section,
.banner-two-section {
  padding-top: 220px !important;
  padding-bottom: 80px;
}
@media screen and (max-width: 1399px) {
  .banner-one-section,
  .banner-two-section { padding-top: 210px !important; }
}
@media screen and (max-width: 991px) {
  .banner-one-section,
  .banner-two-section { padding-top: 180px !important; }
}
@media screen and (max-width: 575px) {
  .banner-one-section,
  .banner-two-section { padding-top: 160px !important; }
}

/* ── Hero carousel navigation ───────────────────────────── */
.hero-controls {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-ctrl-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  padding: 0;
}
.hero-ctrl-btn:hover {
  border-color: hsl(var(--base));
  color: hsl(var(--base));
}
.hero-dashes {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-dash {
  height: 2px;
  width: 20px;
  border-radius: 9999px;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.2);
  transition: width 0.35s ease, background 0.35s ease;
}
.hero-dash.active {
  width: 40px;
  background: hsl(var(--base));
}

/* =============================================================
   DEMO ACCOUNT SECTION — stacked layout
   Content on top, form below — centered in a single column.
============================================================= */

/* Shell: single-column centred stack + blurred image background */
.lh-demo-shell {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 36px !important;
  padding: clamp(32px, 5vw, 60px) !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Blurred background image layer */
.lh-demo-shell::before {
  content: '';
  position: absolute;
  inset: -30px;
  background: url('/assets/images/resources/demoaccount.png') center / cover no-repeat;
  /* filter: blur(16px); */
  /* opacity: 0.45; */
  z-index: 0;
  transform: scale(1.08);
  pointer-events: none;
}

/* Dark overlay for text readability */
.lh-demo-shell::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 8, 6, 0.42);
  z-index: 0;
  pointer-events: none;
}

/* Content above pseudo-elements */
.lh-demo__content,
.lh-demo-form {
  position: relative;
  z-index: 1;
}

/* Content block */
.lh-demo__content {
  max-width: 620px;
}
.lh-demo__content .lh-lead {
  margin-bottom: 0;
}

/* Form: centred, max-width */
.lh-demo-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  width: 100%;
  max-width: 820px;
}

/* 3 inputs in a row */
.lh-demo-form__fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 767px) {
  .lh-demo-form__fields { grid-template-columns: 1fr; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .lh-demo-form__fields { grid-template-columns: 1fr 1fr; }
}

/* Label + input wrapper */
.lh-demo-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: left;
}
.lh-demo-field__label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--white) / 0.5);
}

/* CTA button — compact, centred */
.lh-demo-form__cta {
  align-self: center;
  width: auto !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 44px !important;
  padding: 0 28px !important;
  font-size: 13px !important;
  white-space: nowrap;
}

/* Focus glow — dark theme */
.lh-demo-form input:focus {
  outline: none;
  border-color: hsl(var(--base) / 0.7) !important;
  box-shadow: 0 0 0 3px hsl(var(--base) / 0.14),
              0 0 20px hsl(var(--base) / 0.1) !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* =============================================================
   INVESTMENT HOME SECTION — button row
   Prevents stretching and keeps icon inline with label text.
============================================================= */
.invhs2__btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.invhs2__btn {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex: 0 0 auto;
  min-width: 0;
}

/* =============================================================
   SCROLL TO TOP — arrow colour = green (matches SVG progress circle)
   Overrides main.css which uses hsl(var(--white)) for the arrow icon.
============================================================= */
.progress-wrap::before,
.progress-wrap::after {
  color: hsl(var(--base)) !important;
}

/* Ring shadow: dark-mode white ring → green ring in both themes */
.progress-wrap {
  box-shadow: inset 0 0 0 2px hsl(var(--base) / 0.35) !important;
}
.progress-wrap.active-progress:hover {
  box-shadow: inset 0 0 0 2px hsl(var(--base) / 0.75) !important;
}

/* =============================================================
   LIGHT THEME — targeted overrides for hardcoded hex/rgba values
   that are not reached by CSS variable changes alone.
============================================================= */

/* ── Theme toggle (light surface) ─────────────────────────── */
html[data-theme="light"] .theme-toggle {
  border-color: hsl(var(--border-color));
  color: hsl(var(--body-color));
}
html[data-theme="light"] .main-header__theme {
  border-left-color: hsl(var(--border-color));
}

/* ── TopBar hardcoded colors ───────────────────────────────── */
html[data-theme="light"] .topbar__dl-btn {
  border-color: hsl(var(--white) / 0.2);
  color: hsl(var(--white));
}
html[data-theme="light"] .topbar__dl-btn:hover { color: #fff; }
html[data-theme="light"] .topbar__gt .gt-btn    { color: hsl(var(--white)); }

/* ── Hero carousel controls ────────────────────────────────── */
html[data-theme="light"] .hero-ctrl-btn {
  border-color: rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.75);
  color: rgba(0, 0, 0, 0.45);
}
html[data-theme="light"] .hero-dash { background: rgba(0, 0, 0, 0.15); }

/* ── Selection highlight ───────────────────────────────────── */
html[data-theme="light"] ::selection {
  background: hsl(var(--base) / 0.25);
  color: hsl(var(--heading-color));
}
