/* ==========================================================================
   MINDMATRIX - RESPONSIVE DESIGN (360px to 1920px+)
   ========================================================================== */

/* Large Screens (1440px - 1920px+) */
@media (min-width: 1440px) {
  .container {
    max-width: 1380px;
  }
}

/* Laptop / Small Desktop (max-width: 1240px) */
@media (max-width: 1240px) {
  .nav-menu {
    gap: 0.1rem;
  }

  .nav-link {
    padding: 0.45rem 0.72rem;
    font-size: 0.85rem;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .hero-visual-stage {
    height: 520px;
  }

  .framework-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .framework-connecting-line {
    display: none;
  }

  .why-orbital-layout {
    grid-template-columns: 1fr 270px 1fr;
    gap: 1.35rem;
  }

  .why-center-hub {
    width: 260px;
    height: 260px;
  }
}

/* Tablet Landscape & Portrait (max-width: 1024px) */
@media (max-width: 1024px) {
  .nav-menu,
  .nav-cta-desktop {
    display: none;
  }

  .mobile-toggle-btn {
    display: inline-flex;
  }

  .hero-section {
    padding: calc(var(--nav-height) + 2rem) 0 4rem;
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-trust-grid {
    max-width: 560px;
    margin: 0 auto;
    text-align: left;
  }

  .hero-visual-stage {
    height: 470px;
    max-width: 600px;
    margin: 0 auto;
  }

  .growth-strip-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .growth-strip-line {
    display: none;
  }

  .solutions-bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .solution-card,
  .solution-card.span-3 {
    grid-column: span 1;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-orbital-layout {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .why-center-hub {
    order: -1;
    margin-bottom: 0.5rem;
  }

  .why-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .about-grid,
  .contact-section-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

/* Mobile & Small Tablet (max-width: 768px) */
@media (max-width: 768px) {
  .section-padding {
    padding: 5rem 0;
  }

  .container {
    padding: 0 1.25rem;
  }

  .hero-title {
    font-size: clamp(2.1rem, 7vw, 2.85rem);
  }

  .hero-visual-stage {
    height: 410px;
  }

  .hero-floating-card {
    padding: 0.5rem 0.78rem;
    font-size: 0.76rem;
  }

  .hfc-1 { top: 4%; left: 0%; }
  .hfc-2 { top: 8%; right: 0%; }
  .hfc-3 { top: 52%; left: 0%; }
  .hfc-4 { bottom: 18%; right: 0%; }
  .hfc-5 { bottom: 4%; left: 4%; }

  .hero-handwritten-caption {
    font-size: 1.2rem;
    right: 6px;
    bottom: -16px;
  }

  .growth-strip-card {
    padding: 1.85rem 1.35rem;
  }

  .growth-strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .solutions-bento-grid,
  .projects-grid,
  .industries-grid,
  .why-column,
  .mission-vision-grid,
  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  /* Convert Growth Framework to Vertical Timeline on Mobile */
  .framework-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
    position: relative;
    padding-left: 1.25rem;
    border-left: 2px solid rgba(0, 212, 255, 0.35);
  }

  .framework-step-card {
    align-items: flex-start;
    text-align: left;
    padding: 1.35rem;
  }

  .framework-hex-wrap {
    width: 68px;
    height: 68px;
    margin-bottom: 1rem;
  }

  .cta-box {
    padding: 2.75rem 1.5rem;
  }

  .careers-banner {
    padding: 2rem 1.5rem;
  }

  .contact-info-panel,
  .contact-form-card {
    padding: 1.85rem 1.4rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .cookie-banner {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
  }
}

/* Compact Mobile (360px - 430px) */
@media (max-width: 480px) {
  .brand-title {
    font-size: 1.06rem;
  }

  .brand-sub {
    display: none;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .hero-trust-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual-stage {
    height: 360px;
  }

  .hfc-3 {
    display: none; /* Prevent clutter on ultra-narrow 360px screens */
  }

  .growth-strip-grid {
    grid-template-columns: 1fr;
  }

  .cta-button-group {
    flex-direction: column;
  }

  .cta-button-group .btn {
    width: 100%;
  }

  .modal-dialog {
    padding: 1.65rem 1.25rem;
  }
}

