/* ==========================================================================
   TOPSTAR GROUP - MASTER RESPONSIVE STYLESHEET
   Comprehensive Breakpoints for Mobile, Tablet, Laptop, and 4K Displays
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Large Laptops & Desktops (max-width: 1200px)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .container {
    max-width: 1120px;
    padding: 0 1.5rem;
  }

  .nav-mega-menu {
    width: 780px;
  }

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

  .hero-heading {
    font-size: 3rem;
  }

  .hero-grid {
    gap: 2rem;
  }

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

/* --------------------------------------------------------------------------
   2. Tablets and Medium Viewports (max-width: 992px)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .top-bar {
    display: none; /* Hide top utility bar on tablet/mobile for clean compact header */
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: var(--navy-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 1.5rem 2rem 1.5rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    z-index: 1050;
    gap: 0.5rem;
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    font-size: 1.05rem;
  }

  .nav-dropdown, .nav-mega-menu {
    position: static;
    transform: none !important;
    width: 100% !important;
    opacity: 1;
    visibility: visible;
    display: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    padding: 0.5rem 0.5rem 0.5rem 1.2rem;
  }

  .nav-item.dropdown-open .nav-dropdown,
  .nav-item.dropdown-open .nav-mega-menu {
    display: block;
  }

  .mega-menu-grid {
    grid-template-columns: 1fr;
  }

  .mobile-menu-toggle,
  .mobile-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

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

  .hero-section {
    padding-top: 100px;
    min-height: auto;
    padding-bottom: 4rem;
  }

  .hero-heading {
    font-size: 2.6rem;
  }

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

  .overview-grid, 
  .network-grid, 
  .contact-layout-grid, 
  .detail-layout-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .overview-float-card {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 1.5rem;
    max-width: 100%;
  }

  /* Corporate Profile & Governance Grid scaling on Tablet */
  .profile-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  .growth-engines-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .gov-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

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

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

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

  .timeline::before,
  .timeline-track::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 0;
    text-align: left !important;
  }

  .timeline-item.right,
  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-dot {
    left: 11px !important;
    right: auto !important;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .cta-text p {
    margin: 0 auto;
  }

  .cta-actions {
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   3. Small Screens and Smartphones (max-width: 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .section-padding {
    padding: 3.5rem 0;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .page-hero {
    padding: 6rem 0 3.5rem 0 !important;
  }

  .page-title {
    font-size: 2.1rem !important;
  }

  .page-subtitle {
    font-size: 1rem !important;
  }

  .hero-heading {
    font-size: 2.2rem;
  }

  .hero-heading span.accent-text {
    font-size: 1.4rem;
  }

  .hero-desc {
    font-size: 0.98rem;
  }

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

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
  }

  .hero-stat-num {
    font-size: 1.7rem;
  }

  .hero-stat-label {
    font-size: 0.75rem;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .detail-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .detail-services-list {
    grid-template-columns: 1fr;
  }

  .board-grid {
    grid-template-columns: 1fr;
  }

  .multiplier-grid {
    grid-template-columns: 1fr;
  }

  .company-grid {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .sector-nav-tabs {
    gap: 0.4rem;
  }

  .sector-pill-btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
  }
}

/* --------------------------------------------------------------------------
   4. Extra Small Phones (max-width: 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .brand-logo-name {
    font-size: 1.1rem;
  }

  .brand-logo-img {
    height: 36px;
  }

  .hero-heading {
    font-size: 1.85rem;
  }

  .hero-heading span.accent-text {
    font-size: 1.2rem;
  }

  .exec-grid {
    grid-template-columns: 1fr;
  }

  .gov-pillar-card {
    padding: 1.8rem 1.2rem;
  }

  .gov-avatar-circle,
  .gov-avatar-img {
    width: 140px !important;
    height: 140px !important;
  }

  .board-avatar,
  .board-avatar-img {
    width: 80px !important;
    height: 80px !important;
  }

  .modal-dialog {
    margin: 1rem;
    padding: 1.5rem;
  }

  .modal-title {
    font-size: 1.15rem;
  }

  .tracker-header h3 {
    font-size: 1.1rem;
  }

  .tracker-input {
    font-size: 0.85rem;
    padding: 0.65rem 0.8rem;
  }
}
