/* ══════════════════════════════════════
   MOBILE RESPONSIVE — Lantern Labs
   Breakpoint: 768px and below
   ══════════════════════════════════════ */

/* ── Hamburger Button ── */
.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 10px;
  background: rgba(30, 30, 30, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ll-amber);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hide hamburger when sidebar is open (overlay tap closes it) */
.mobile-menu-btn.menu-open {
  opacity: 0;
  pointer-events: none;
}

/* ── Mobile overlay backdrop ── */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.mobile-overlay.overlay-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ════════════════════════════════════════════
   TABLET BREAKPOINT: 768px
   ════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Show hamburger */
  .mobile-menu-btn {
    display: flex;
  }

  /* Show overlay element */
  .mobile-overlay {
    display: block;
  }

  /* ── Sidebar: off-screen drawer ── */
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.33, 1, 0.68, 1);
    width: 280px;
    z-index: 150;
  }

  /* Remove hover expand — we use the hamburger now */
  .sidebar:hover {
    width: 280px;
    box-shadow: none;
  }

  /* When open, slide in */
  .sidebar.sidebar--open {
    transform: translateX(0);
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.6);
  }

  /* Always show labels when sidebar is open on mobile */
  .sidebar.sidebar--open .nav-item .nav-label {
    opacity: 1;
  }

  .sidebar.sidebar--open .sidebar-profile .nav-label {
    opacity: 1;
  }

  .sidebar.sidebar--open .sidebar-footer-link {
    width: auto;
  }

  /* Nav items — bigger touch targets */
  .nav-item {
    height: 72px;
    padding-left: 8px;
  }

  .nav-item .nav-icon {
    width: 64px;
  }

  .nav-item .nav-icon svg {
    width: 36px;
    height: 36px;
  }

  .nav-item .nav-label {
    font-size: 18px;
  }

  /* ── Main content: full width ── */
  .main {
    margin-left: 0;
  }

  .content {
    padding: 20px 16px;
  }

  /* ── Hero adjustments ── */
  .dashboard-hero {
    padding: 56px 12px 0;
    min-height: calc(100vh - 40px);   /* fallback */
    min-height: calc(100dvh - 40px);  /* accounts for mobile browser chrome */
  }

  .dash-title {
    font-size: clamp(2rem, 8vw, 3.4rem);
    letter-spacing: 0.08em;
  }

  .dash-tagline {
    font-size: clamp(0.95rem, 3vw, 1.3rem);
  }

  /* Lantern scales down nicely */
  .lantern-wrap {
    padding-top: 16px;
  }

  .lantern-svg {
    width: 90px;
  }

  .lantern-wall-glow {
    width: 200px;
    height: 200px;
  }

  /* ── Graphite card ── */
  .card-cta-wrapper {
    max-width: 100%;
  }

  /* Disable scroll-driven grow — card already fills the screen */
  .graphite-card {
    transform: none !important;
  }

  .graphite-body {
    padding: 1.5rem 1.25rem 2rem;
  }

  .graphite-body p {
    font-size: 1rem;
  }

  .graphite-body .graphite-heading {
    font-size: 1.3rem;
  }

  .heading-row {
    gap: 1rem;
  }

  .cta-below-card {
    padding: 100px 0 80px;
  }

  /* ── Services section ── */
  .services-intro-card {
    margin: 40px auto 36px;
    padding: 28px 24px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 16px;
  }

  .how-it-works {
    padding: 0 16px;
    margin-bottom: 60px;
  }

  .pricing-section {
    padding: 0 16px;
  }

  .pricing-grid {
    flex-direction: column;
    align-items: center;
  }

  .pricing-card {
    width: 100%;
    max-width: 360px;
    flex: none;
  }

  /* ── About section ── */
  .about-layout {
    padding: 20px 16px 40px;
  }

  .about-intro {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-text {
    text-align: left;
  }

  .about-heading {
    justify-content: center;
  }

  /* ── Timeline on About page ── */
  .timeline-section {
    padding: 60px 12px 40px;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-marker {
    left: 20px;
    width: 30px;
    height: 30px;
  }

  .timeline-number {
    font-size: 0.7rem;
  }

  .timeline-item--left,
  .timeline-item--right {
    padding-left: 56px;
    padding-right: 0;
    text-align: left;
    justify-content: flex-start;
  }

  .timeline-item--left,
  .timeline-item--right {
    transform: translateY(30px);
  }

  .timeline-item--visible {
    transform: translateY(0);
  }

  .timeline-item--left .timeline-card,
  .timeline-item--right .timeline-card {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
  }

  .timeline-item {
    margin-bottom: 48px;
  }

  .cta-btn--big {
    min-width: 240px;
    min-height: 56px;
    font-size: 1rem;
    padding: 16px 36px;
  }

  /* ── Chat section ── */
  .chat-section {
    margin: 60px 4px 0;
    border-radius: 12px;
  }

  /* ── Page headers ── */
  .page-header {
    padding: 56px 16px 24px;
  }

  .page-body {
    padding: 0 16px 60px;
  }

  /* ── Contact panel compact ── */
  [data-panel="contact"] .page-header {
    padding: 56px 16px 12px;
  }

  [data-panel="contact"] .page-body {
    padding: 0 16px 30px;
  }

  /* ── Footer ── */
  .site-footer {
    padding: 28px 16px 20px;
  }

  /* ── Sidebar footer links ── */
  .sidebar-footer {
    padding: 8px 0 12px;
  }

  .sidebar-footer-link {
    font-size: 0.85rem;
    padding: 6px 16px;
    width: auto;
  }

  /* ── Background image: cover on mobile ── */
  .main::before {
    background-size: cover;
  }

  /* ── Orbit: hide on mobile (needs responsive rework) ── */
  .dashboard-orbit {
    display: none;
  }
}

/* ════════════════════════════════════════════
   SMALL PHONE BREAKPOINT: 480px
   ════════════════════════════════════════════ */
@media (max-width: 480px) {

  .content {
    padding: 16px 10px;
  }

  .dashboard-hero {
    padding: 48px 8px 0;
  }

  .dash-title {
    font-size: clamp(1.6rem, 10vw, 2.4rem);
  }

  .lantern-svg {
    width: 70px;
  }

  .graphite-body {
    padding: 1.2rem 1rem 1.5rem;
  }

  .graphite-body p {
    font-size: 0.92rem;
    line-height: 1.65;
  }

  .page-header {
    padding: 48px 12px 20px;
  }

  .page-body {
    padding: 0 12px 40px;
  }

  .page-title {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
  }

  .cta-below-card {
    padding: 60px 0 60px;
  }

  .cta-btn--big {
    min-width: 200px;
    min-height: 48px;
    font-size: 0.9rem;
    padding: 14px 28px;
  }

  /* ── About on small phones ── */
  .about-layout {
    padding: 16px 10px 32px;
  }

  .about-text {
    font-size: 1.1rem;
    line-height: 1.75;
  }

  /* ── Timeline on small phones ── */
  .timeline-section {
    padding: 40px 8px 20px;
  }

  .timeline-card {
    padding: 18px 20px;
  }

  .timeline-card-title {
    font-size: 0.95rem;
  }

  .timeline-card-desc {
    font-size: 0.88rem;
  }
}
