/* =========================================================
   4INVEST BASE ASSETS
   Shared shell, header, footer
   ========================================================= */

.fourinv-shell-breakout {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

/* =========================================================
   GLOBAL HEADER
   ========================================================= */

.fourinv-global-header-wrap {
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 300;
  background:
    radial-gradient(circle at 8% 0%, rgba(0,255,170,.10), transparent 20%),
    radial-gradient(circle at 92% 0%, rgba(0,255,170,.06), transparent 20%),
    linear-gradient(180deg, #05100e 0%, #06110f 100%);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.fourinv-global-header-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(24px, 2.2vw, 36px);
}

.fourinv-global-header {
  width: 100%;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: transparent;
}

.fourinv-global-header * {
  box-sizing: border-box;
}

.fourinv-global-header a {
  text-decoration: none;
}

.fourinv-global-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
}

.fourinv-global-brand-logo {
  display: inline-flex;
  align-items: center;
}

.fourinv-global-brand-logo img {
  display: block;
  width: auto;
  height: 88px;
  max-width: 320px;
  object-fit: contain;
  filter: drop-shadow(0 4px 20px rgba(0,255,170,.08));
}

.fourinv-global-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.fourinv-global-nav a {
  color: rgba(242,255,249,.88);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .1px;
  padding: 12px 10px;
  border-radius: 12px;
  white-space: nowrap;
  transition:
    background .18s ease,
    color .18s ease,
    transform .18s ease;
}

.fourinv-global-nav a:hover {
  color: #ffffff;
  background: rgba(255,255,255,.06);
  transform: translateY(-1px);
}

.fourinv-global-mobile-toggle {
  display: none;
}

.fourinv-global-mobile-menu {
  display: none;
}

.fourinv-global-mobile-panel {
  display: none;
}

@media (max-width: 1200px) {
  .fourinv-global-header-inner {
    max-width: 1180px;
    padding: 0 20px;
  }

  .fourinv-global-brand-logo img {
    height: 80px;
    max-width: 280px;
  }

  .fourinv-global-nav a {
    font-size: 13px;
    padding: 11px 8px;
  }
}

@media (max-width: 920px) {
  .fourinv-global-header-inner {
    padding: 0 16px;
  }

  .fourinv-global-header {
    min-height: 82px;
  }

  .fourinv-global-brand-logo img {
    height: 70px;
    max-width: 235px;
  }

  .fourinv-global-nav {
    display: none;
  }

  .fourinv-global-mobile-menu {
    display: block;
    position: relative;
  }

  .fourinv-global-mobile-toggle {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
    color: #f2fff9;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 10px 24px rgba(0,0,0,.16);
  }

  .fourinv-global-mobile-toggle svg {
    width: 22px;
    height: 22px;
    display: block;
  }

  .fourinv-global-mobile-panel {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(320px, calc(100vw - 32px));
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(6,17,15,.96);
    box-shadow: 0 24px 60px rgba(0,0,0,.32);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 400;
  }

  .fourinv-global-mobile-panel.is-open {
    display: block;
  }

  .fourinv-global-mobile-links {
    display: grid;
    gap: 6px;
  }

  .fourinv-global-mobile-links a {
    display: block;
    color: rgba(242,255,249,.92);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    padding: 13px 14px;
    border-radius: 12px;
    background: transparent;
    transition: background .18s ease, color .18s ease, transform .18s ease;
  }

  .fourinv-global-mobile-links a:hover {
    background: rgba(255,255,255,.06);
    color: #ffffff;
    transform: translateX(1px);
  }
}

@media (max-width: 640px) {
  .fourinv-global-header-inner {
    padding: 0 12px;
  }

  .fourinv-global-header {
    min-height: 76px;
  }

  .fourinv-global-brand-logo img {
    height: 62px;
    max-width: 205px;
  }

  .fourinv-global-mobile-toggle {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }

  .fourinv-global-mobile-panel {
    width: min(300px, calc(100vw - 24px));
    right: 0;
  }
}

/* =========================================================
   GLOBAL FOOTER
   ========================================================= */

.fourinv-global-footer-wrap {
  width: 100%;
  margin: 0;
  padding: 34px 28px 28px;
  background:
    radial-gradient(circle at 10% 0%, rgba(0,255,170,.08), transparent 22%),
    radial-gradient(circle at 92% 8%, rgba(0,255,170,.05), transparent 18%),
    linear-gradient(180deg, #06110f 0%, #06110f 100%);
  border-top: 1px solid rgba(255,255,255,.05);
}

.fourinv-global-footer {
  width: 100%;
  padding: 34px;
  border-radius: 0;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 18px 48px rgba(0,0,0,.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.fourinv-global-footer * {
  box-sizing: border-box;
}

.fourinv-global-footer a {
  text-decoration: none;
}

.fourinv-global-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .85fr .9fr;
  gap: 34px;
}

.fourinv-global-footer-logo img {
  display: block;
  width: auto;
  height: 96px;
  max-width: 320px;
  object-fit: contain;
  margin-bottom: 18px;
}

.fourinv-global-footer-title {
  margin: 0 0 14px;
  color: #f2fff9;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}

.fourinv-global-footer-text {
  color: rgba(242,255,249,.78);
  font-size: 15px;
  line-height: 1.9;
}

.fourinv-global-footer-links {
  display: grid;
  gap: 12px;
}

.fourinv-global-footer-links a {
  color: rgba(242,255,249,.88);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.5;
  transition: color .18s ease, transform .18s ease;
}

.fourinv-global-footer-links a:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.fourinv-global-footer-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.fourinv-global-footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .14px;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.fourinv-global-footer-btn:hover {
  transform: translateY(-1px);
}

.fourinv-global-footer-btn-ghost {
  color: #f2fff9 !important;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
}

.fourinv-global-footer-btn-primary {
  color: #072119 !important;
  background: linear-gradient(135deg, #00ffaa 0%, #42ffd1 45%, #00c785 100%);
  box-shadow: 0 12px 30px rgba(0,255,170,.14);
}

.fourinv-global-footer-bottom {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.06);
  color: rgba(242,255,249,.62);
  font-size: 12px;
  line-height: 1.9;
}

@media (max-width: 1100px) {
  .fourinv-global-footer-wrap {
    padding: 24px 20px 20px;
  }

  .fourinv-global-footer {
    padding: 28px;
  }

  .fourinv-global-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 840px) {
  .fourinv-global-footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .fourinv-global-footer-wrap {
    padding: 18px 12px 14px;
  }

  .fourinv-global-footer {
    padding: 22px 16px;
  }

  .fourinv-global-footer-logo img {
    height: 76px;
    max-width: 240px;
  }

  .fourinv-global-footer-actions {
    align-items: stretch;
  }

  .fourinv-global-footer-btn {
    width: 100%;
  }

  .fourinv-global-footer-text,
  .fourinv-global-footer-links a {
    font-size: 14px;
  }
}


/* =========================================================
   LAYOUT STABILITY FIXES
   Reserve image/logo space to reduce CLS
   ========================================================= */

/* Header logo reserved box */
.fourinv-global-brand-logo {
  width: 220px;
  height: 88px;
  flex: 0 0 220px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
}

.fourinv-global-brand-logo img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

/* Footer logo reserved box */
.fourinv-global-footer-logo {
  width: 260px;
  height: 96px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.fourinv-global-footer-logo img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 0;
}

/* Keep header height stable during asset loading */
.fourinv-global-header-wrap {
  min-height: 96px;
}

.fourinv-global-header-inner,
.fourinv-global-header {
  min-height: 96px;
}

/* Responsive reserved logo boxes */
@media (max-width: 1200px) {
  .fourinv-global-brand-logo {
    width: 200px;
    height: 80px;
    flex-basis: 200px;
  }
}

@media (max-width: 920px) {
  .fourinv-global-header-wrap,
  .fourinv-global-header-inner,
  .fourinv-global-header {
    min-height: 82px;
  }

  .fourinv-global-brand-logo {
    width: 175px;
    height: 70px;
    flex-basis: 175px;
  }
}

@media (max-width: 640px) {
  .fourinv-global-header-wrap,
  .fourinv-global-header-inner,
  .fourinv-global-header {
    min-height: 76px;
  }

  .fourinv-global-brand-logo {
    width: 155px;
    height: 62px;
    flex-basis: 155px;
  }

  .fourinv-global-footer-logo {
    width: 220px;
    height: 76px;
  }
}