/* ═══════════════════════════════════════════════════════════════
   MOBILE OPTIMIZATION STYLES - Applied to all 7 HTML pages
   ═══════════════════════════════════════════════════════════════ */

/* ── HAMBURGER MENU BUTTON ── */
.hamburger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.hamburger-menu span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
  display: block;
}

.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(5, 16, 31, 0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  gap: 0;
  padding: 16px 0;
  z-index: 99;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  color: var(--mid);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 12px 24px;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.mobile-menu a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--cyan);
}

.mobile-menu a.active {
  color: var(--cyan);
  border-left-color: var(--cyan);
}

/* ── RESPONSIVE BREAKPOINT: MOBILE (max-width: 768px) ── */
@media (max-width: 768px) {
  html {
    zoom: 1;
  }

  body {
    font-size: 14px;
  }

  /* ── NAVIGATION ── */
  nav {
    padding: 0 16px;
    height: 56px;
  }

  .nav-logo-icon {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }

  .nav-logo-text {
    font-size: 16px;
  }

  .nav-links {
    display: none;
  }

  .hamburger-menu {
    display: flex;
  }

  .nav-right {
    gap: 8px;
  }

  .btn-login,
  .btn-start {
    font-size: 12px;
    padding: 6px 14px;
  }

  /* ── HERO SECTION ── */
  .hero {
    min-height: 80vh;
    padding: 40px 16px 40px;
    text-align: center;
  }

  .hero h1 {
    font-size: 28px !important;
    line-height: 1.3 !important;
    margin: 20px 0 !important;
  }

  .hero p {
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin: 16px 0 !important;
  }

  /* ── TWO-COLUMN CARDS (Investor/RIA) ── */
  .cards-container,
  .card-grid,
  .two-column,
  .grid-2,
  [class*="grid"],
  [class*="flex-row"] {
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
  }

  .card,
  .card-box,
  [class*="card"] {
    width: 100% !important;
    min-width: unset !important;
    margin: 12px 0 !important;
  }

  /* ── SECTIONS ── */
  section {
    padding: 32px 16px !important;
  }

  section h2 {
    font-size: 22px !important;
  }

  section h3 {
    font-size: 18px !important;
  }

  /* ── BUTTONS ── */
  .btn-outline,
  .btn-li,
  .btn-primary,
  button,
  [class*="btn"] {
    width: 100% !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    margin: 8px 0 !important;
  }

  /* ── FORMS ── */
  form {
    padding: 16px !important;
  }

  input,
  textarea,
  select {
    width: 100% !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
    margin: 8px 0 !important;
  }

  /* ── TABLES ── */
  table {
    font-size: 12px !important;
  }

  th,
  td {
    padding: 8px 4px !important;
  }

  /* ── SPACING ── */
  .container {
    padding: 0 16px !important;
  }

  .gap-4 {
    gap: 12px !important;
  }

  .gap-6 {
    gap: 16px !important;
  }

  /* ── TEXT ── */
  .text-sm {
    font-size: 12px !important;
  }

  .text-lg {
    font-size: 16px !important;
  }

  .text-xl {
    font-size: 18px !important;
  }

  /* ── HIDE DESKTOP-ONLY ELEMENTS ── */
  .desktop-only {
    display: none !important;
  }

  /* ── SHOW MOBILE-ONLY ELEMENTS ── */
  .mobile-only {
    display: block !important;
  }

  /* ── ABOUT PAGE SPECIFIC ── */
  /* Pricing cards - stack vertically */
  .pricing-container,
  .pricing-grid,
  .pricing-cards,
  [class*="pricing"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .pricing-card,
  [class*="pricing-card"],
  .plan-card {
    width: 100% !important;
    min-width: unset !important;
    margin: 0 !important;
  }

  /* Product suite cards - stack vertically */
  .product-grid,
  .product-suite,
  .suite-container,
  [class*="product"][class*="grid"],
  [class*="suite"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .product-card,
  .suite-card,
  [class*="product-card"],
  [class*="suite-card"] {
    width: 100% !important;
    min-width: unset !important;
    margin: 0 !important;
  }

  /* Team member cards */
  .team-grid,
  .team-container,
  [class*="team"][class*="grid"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .team-card,
  [class*="team-card"] {
    width: 100% !important;
    min-width: unset !important;
    margin: 0 !important;
  }

  /* ── FOOTER ── */
  footer {
    padding: 24px 16px !important;
  }

  footer a {
    display: block !important;
    margin: 8px 0 !important;
  }
}

/* ── RESPONSIVE BREAKPOINT: TABLET (max-width: 1024px) ── */
@media (max-width: 1024px) {
  .cards-container,
  .card-grid,
  .two-column {
    grid-template-columns: 1fr !important;
  }
}
