/* ==========================================================================
   Responsive Breakpoints & Mobile Optimization
   ========================================================================== */

/* Large Tablets & Small Desktops (max-width: 1024px) */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.75rem;
  }
  .priority-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .card-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .stat-item:nth-child(2)::after {
    display: none;
  }
}

/* Tablets & Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .top-bar-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.4rem;
  }
  .top-bar-info {
    justify-content: center;
    font-size: 0.8rem;
    gap: 0.75rem;
  }

  .hamburger {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 290px;
    height: 100vh;
    background: #FFFFFF;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
    padding: 5rem 2rem 2rem;
    transition: right var(--transition-normal);
    z-index: 1001;
    overflow-y: auto;
  }
  .main-nav.active {
    right: 0;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
  }
  .main-nav a {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1.05rem;
  }
  .main-nav li.has-dropdown {
    width: 100%;
  }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--color-bg);
    margin-top: 0.35rem;
    padding-left: 1rem;
    width: 100%;
  }
  .btn-nav-cta {
    margin-left: 0 !important;
    margin-top: 0.75rem;
    width: 100%;
    text-align: center;
  }

  /* Nav Backdrop Overlay */
  .nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
  }
  .nav-backdrop.active {
    opacity: 1;
    visibility: visible;
  }

  /* Hero Section */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .hero-badge-wrap,
  .hero-buttons,
  .hero-quick-points {
    justify-content: center;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-image-wrap {
    order: -1;
  }
  .hero-image-card {
    max-width: 300px;
  }
  .hero-image-card img {
    height: 380px;
  }
  .hero-floating-badge {
    left: 50%;
    transform: translateX(-50%);
    bottom: -15px;
    width: 85%;
    justify-content: center;
  }

  /* Stat bar */
  .stat-bar {
    margin-top: -1.5rem;
    padding: 1.5rem;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat-item::after {
    display: none !important;
  }
  .stat-number {
    font-size: 2rem;
  }

  /* Section Headings */
  .section {
    padding: 4rem 0;
  }
  .section-title {
    font-size: 1.85rem;
  }
  .section-header {
    margin-bottom: 2.5rem;
  }

  /* Cards */
  .priority-grid,
  .card-grid-3,
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Timeline */
  .timeline::after {
    left: 31px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 15px;
    text-align: left !important;
  }
  .timeline-item.right {
    left: 0%;
  }
  .timeline-dot {
    left: 21px !important;
    right: auto;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .contact-info-card,
  .contact-form-card {
    padding: 1.75rem;
  }

  /* CTA Banner */
  .cta-banner {
    padding: 2.25rem 1.5rem;
    text-align: center;
  }
  .cta-banner-inner {
    justify-content: center;
  }

  /* Lightbox */
  .lightbox-prev {
    left: 10px;
  }
  .lightbox-next {
    right: 10px;
  }
}

/* Small Mobile Phones (max-width: 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
    justify-content: center;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .hero-buttons .btn {
    width: 100%;
  }
  .stat-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
