body {
  margin: 0;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  background-color: #0B1D36;
  color: white;
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 20px;
  flex-shrink: 0;
}

.header-logo {
  height: 75px;
}

.menu-icon {
  position: absolute;
  left: 30px;
  top: 30px;
  font-size: 32px;
  cursor: pointer;
  z-index: 1001;
  transition: all 0.3s ease;
  color: #57c1ff;
  /* new lines */
  background: none;
  border: none;
  padding: 0;
}

.menu-icon:hover {
  transform: scale(1.1);
  color: #4cd3c2;
}

/* legacy dropdown (not used on home anymore, kept to avoid breaking) */
.dropdown {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
}
.dropdown::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 300px;
  height: 100vh;
  background-color: transparent;
  z-index: 1001;
}
.dropdown-content {
  position: absolute;
  top: 80px;
  left: 30px;
  background-color: transparent;
  padding: 0;
  z-index: 1001;
}
.dropdown a {
  display: block;
  color: white;
  padding: 20px 0;
  text-decoration: none;
  font-size: 48px;
  font-weight: 300;
  font-family: 'Playfair Display', 'Times New Roman', serif;
  letter-spacing: 2px;
  transition: all 0.3s ease;
}
.dropdown a:hover { transform: translateX(20px); opacity: 0.8; }
.dropdown.show { display: block; }

.blur-background {
  filter: blur(5px);
  transition: filter 0.3s ease;
}

/* Inside-page top nav */
.nav-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0 20px 0;
  margin-top: 20px;
  position: relative;
  background: rgba(11, 29, 54, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-bar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f6c25c, #57c1ff, transparent);
}

.nav-links {
  display: flex;
  gap: 60px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  padding: 10px 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(246, 194, 92, 0.2), rgba(87, 193, 255, 0.2));
}
.nav-links a:hover {
  background: linear-gradient(135deg, rgba(246, 194, 92, 0.4), rgba(87, 193, 255, 0.4));
  transform: translateY(-2px);
  color: #f6c25c;
}
.nav-links a.active {
  background: linear-gradient(135deg, #f6c25c, #57c1ff);
  color: #0B1D36;
  text-decoration: none;
  transform: translateY(-2px);
}

/* Content Sections (About, Investment, Advisory) */
.content-section {
  text-align: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 40px;
}
.content-section p {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: 24px;
  line-height: 1.6;
  font-weight: 300;
  margin: 0 auto 20px auto;
  text-align: left;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 80px;
  padding: 60px 20px 120px;
}
main > section {
  width: min(1400px, 100%);
  margin: 0 auto;
  text-align: left;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(27, 56, 100, 0.95), rgba(20, 97, 116, 0.85));
  border-radius: 32px;
  padding: 70px clamp(24px, 5vw, 80px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
}
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 70%);
  opacity: 0.35;
  pointer-events: none;
}
.hero::before { width: 360px; height: 360px; top: -140px; right: -120px; }
.hero::after  { width: 220px; height: 220px; bottom: -110px; left: -80px; }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 6vw, 80px);
  z-index: 1;
}
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero-badge {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #4cd3c2;
  margin-top: 0.5rem;
}
.hero h1 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: clamp(36px, 5vw, 60px);
  margin: 0;
  line-height: 1.1;
  color: #f6c25c;
}
.hero p {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 20px;
  line-height: 1.6;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 16px;
  letter-spacing: 0.5px; text-decoration: none; transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, #E6B980, #F6D365);
  color: #0B1D36;
  box-shadow: 0 12px 30px rgba(230, 185, 128, 0.45);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(230, 185, 128, 0.55); }
.btn-secondary { background: transparent; border: 1px solid rgba(255, 255, 255, 0.5); color: white; }
.btn-secondary:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.12); }

.hero-highlights { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif; color: rgba(255, 255, 255, 0.85); }
.hero-highlights li { display: flex; align-items: center; gap: 10px; }

.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-logo { width: clamp(200px, 40vw, 320px); height: clamp(200px, 40vw, 320px); object-fit: contain; opacity: 0.9; }
.hero-card {
  position: absolute; bottom: clamp(10px, 8vw, 40px); right: clamp(0px, 5vw, 30px);
  background: rgba(11, 29, 54, 0.85); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 20px;
  padding: 24px 28px; backdrop-filter: blur(6px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45); max-width: 260px;
}
.hero-card h3 { margin: 0 0 12px 0; font-size: 18px; letter-spacing: 1px; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.hero-card p { margin: 6px 0; font-size: 16px; color: rgba(255, 255, 255, 0.85); }
.hero-card span { display: block; font-size: 24px; font-weight: bold; color: #F6D365; }

.trust, .value-props, .services { display: flex; flex-direction: column; gap: 32px; }
.trust h2, .value-props h2, .services h2 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: clamp(28px, 3.5vw, 40px);
  margin: 0; text-align: left; color: #57c1ff;
}

.logo-row {
  display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between;
  font-size: 14px; letter-spacing: 4px; text-transform: uppercase; opacity: 0.7;
}
.logo-row span {
  flex: 1 1 180px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 16px;
}

.value-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.value-card {
  background: rgba(15, 40, 70, 0.7); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 24px;
  padding: 32px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}
.value-card .icon { font-size: 36px; }
.value-card h3 { margin: 0; font-size: 22px; }
.value-card p {
  margin: 0; font-family: 'Playfair Display', 'Times New Roman', serif; font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, 0.8);
}

.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.service-item {
  background: rgba(11, 29, 54, 0.65); border-radius: 20px; padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}
.service-item h3 { margin: 0 0 12px 0; font-size: 20px; }
.service-item p {
  margin: 0; font-family: 'Playfair Display', 'Times New Roman', serif; font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, 0.75);
}

/* Tablet */
@media (max-width: 980px) {
  main { padding: 40px 20px 100px; gap: 60px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 20px; min-height: 260px; }
  .hero-card { position: relative; bottom: auto; right: auto; margin-top: -80px; margin-left: auto; }
  .value-grid, .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Footer (base layout) */
footer {
  display: flex; justify-content: space-between; align-items: center;
  background-color: #0B1D36; padding: 20px 40px; font-size: 14px; flex-shrink: 0;
}
.footer-left { flex: 1; text-align: left; margin-right: 40px; padding-left: 20px; white-space: nowrap; }
.footer-center { flex: 1; text-align: center; margin: 0 40px; }
.footer-right { flex: 1; text-align: right; margin-left: 40px; }
.footer-right a { margin: 0 15px; text-decoration: none; }
.footer-center a { text-decoration: none; }
a { color: white; }

/* === Landing page overlay + side panel (home only) === */
.overlay {
  display: none;
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  backdrop-filter: blur(5px);
  background-color: rgba(0,0,0,0.4);
  z-index: 900;
}
.overlay.show { display: block; }

.side-panel {
  position: fixed;
  top: 0; left: -300px;
  width: 300px; height: 100vh;
  background-color: #0B1D36;
  padding: 80px 30px;
  transition: left 0.3s ease;
  z-index: 1000;
  box-shadow: none;
}
.side-panel.show { left: 0; box-shadow: 2px 0 10px rgba(0,0,0,0.5); }
.side-panel a {
  display: block; color: white; padding: 20px 0; font-size: 36px; text-decoration: none;
  font-family: 'Playfair Display', 'Times New Roman', serif; letter-spacing: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.side-panel a:hover { transform: translateX(10px); opacity: 0.85; }

/* Legal page styles */
.legal-section {
  max-width: 1400px; margin: 80px auto; padding: 0 40px; text-align: left; line-height: 1.8;
}
.legal-section h1 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 400; margin-bottom: 40px; text-align: left; color: #f6c25c;
}
.legal-section p {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: 24px; margin-bottom: 20px; color: rgba(255, 255, 255, 0.85);
}

/* Footer color accents */
.footer-left, .footer-right a { color: rgba(255,255,255,0.6); }
.footer-right a:hover { color: #ffffff; }
.footer-center a, .footer-center span { color: #ffffff; font-weight: bold; letter-spacing: 1px; text-transform: uppercase; }

/* Legal page single-column */
main.legal-section {
  display: block; max-width: 1400px; margin: 80px auto; padding: 0 40px; text-align: left; line-height: 1.8;
}

/* Section lines */
.section-line {
  width: 90px; height: 3px; background: linear-gradient(90deg, #E6B980, #57c1ff);
  border-radius: 999px; margin-bottom: var(--space-sm);
}

/* Navigation button styling (pills) */
.nav-button {
  padding: 12px 24px; border-radius: 25px;
  background: linear-gradient(135deg, rgba(246, 194, 92, 0.2), rgba(87, 193, 255, 0.2));
  transition: all 0.3s ease;
}
.nav-button:hover {
  background: linear-gradient(135deg, rgba(246, 194, 92, 0.4), rgba(87, 193, 255, 0.4));
  transform: translateY(-2px); color: #f6c25c;
}
.nav-button.active {
  background: linear-gradient(135deg, #f6c25c, #57c1ff);
  color: #0B1D36; font-weight: 700; transform: translateY(-2px);
}

/* ======== MOBILE-ONLY FIXES (≤768px) ======== */
@media (max-width: 768px) {

  /* 1) Hamburger always above the drawer */
  .menu-icon {
    position: fixed !important;
    left: 16px !important;
    top: 16px !important;
    z-index: 1002 !important; /* above the drawer */
  }

  /* 2) Side drawer: full-screen overlay on phones */
  /* Uses the exact id+class in your HTML: <nav id="sidePanel" class="side-panel"> */
  #sidePanel.side-panel {
    position: fixed !important;
    top: 0 !important;
    left: -100vw !important;       /* fully off-screen until opened */
    width: 100vw !important;       /* cover full width */
    max-width: 100vw !important;
    height: 100vh !important;      /* cover full height */
    overflow-y: auto !important;
    box-sizing: border-box !important;
    padding: 96px 24px 32px !important;
    background: rgba(11, 29, 54, 0.98) !important; /* brand navy, nearly opaque */
    backdrop-filter: none !important;
    transform: none !important;    /* neutralize any translateX rules */
    transition: left .3s ease !important;
    z-index: 1001 !important;      /* below the hamburger, above page content */
  }
  #sidePanel.side-panel.show { left: 0 !important; }

  /* Overlay not needed on mobile since drawer is full-screen */
  .overlay { display: none !important; }

  /* (Optional) if JS toggles .drawer-open on <body>, lock background scroll */
  body.drawer-open { overflow: hidden !important; touch-action: none !important; }

  /* 3) Inside-page chip nav: single-row horizontal scroller */
  .nav-bar, .nav-links {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 12px !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 0 16px !important;
  }
  .nav-links li { flex: 0 0 auto !important; }
  .nav-links a, .nav-button {
    font-size: 14px !important;
    line-height: 1 !important;
    padding: 10px 14px !important;
    border-radius: 999px !important; /* keep pill look */
  }

  /* 4) Tame oversized elements on phones (desktop untouched) */
  .header-logo { height: 40px !important; max-width: 60vw !important; }
  .hero h1, h1.hero-title { font-size: clamp(26px, 7vw, 34px) !important; }

  /* Stack cards one-per-row on mobile */
  .value-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Optional: make each card breathe a bit on narrow screens */
  .value-card,
  .service-item {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 24px 20px !important;
  }

}
