/* Comprehensive Responsive Styles for TriMap Solutions */

/* Standard Breakpoints */
:root {
  --mobile: 480px;
  --tablet: 768px;
  --laptop: 1024px;
  --desktop: 1200px;
}

/* Base Responsive Fixes */
img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
}

/* Prevent horizontal scroll */
body,
html {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* Typography Scale for Mobile */
@media (max-width: 768px) {

  h1,
  .hero-content h1,
  .services-hero h1,
  .offering-hero h1,
  .about-hero h1 {
    font-size: 34px !important;
    line-height: 1.2 !important;
    margin-bottom: 20px !important;
  }

  h2,
  .section-header h2,
  .product-text h2,
  .cta-box h2 {
    font-size: 28px !important;
    line-height: 1.3 !important;
  }

  h3 {
    font-size: 22px !important;
  }

  p,
  .hero-content p,
  .footer-desc {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }

  .section-padding {
    padding: 50px 0 !important;
  }
}

/* Navigation Improvements */
@media (max-width: 768px) {
  .header {
    height: 70px !important;
  }

  .navbar-container {
    padding: 0 10px;
  }

  .brand-logo img {
    height: 40px !important;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: #ffffff;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    gap: 20px;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    width: 100%;
    text-align: center;
  }

  .nav-link {
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f1f5f9;
    width: 100%;
    text-align: left;
  }

  /* Make the chevron icon a larger click target */
  .nav-link i {
    padding: 10px;
    margin: -10px;
    cursor: pointer;
    font-size: 14px !important;
    transition: transform 0.3s ease;
  }

  .dropdown.active>.nav-link i {
    transform: rotate(180deg);
  }

  .dropdown-menu {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none;
    background: #f8fafc;
    width: 100%;
    padding: 5px 0;
    display: none;
    border-radius: 8px;
    margin-top: 10px;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }

  .play-store-btn {
    margin-top: 20px;
    width: 200px;
    justify-content: center;
  }

  .mobile-toggle {
    display: flex !important;
    z-index: 1001;
  }
}

/* Homepage Specifics */
@media (max-width: 1024px) {

  .hero-container,
  .about-summary-grid {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 40px !important;
  }

  .hero-image,
  .about-summary-image {
    margin-top: 20px;
    order: -1;
    max-width: 80% !important;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-content p {
    max-width: 100% !important;
  }

  .services-grid-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    flex-direction: column;
  }

  .service-card {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 30px 20px;
  }

  .service-card:hover {
    transform: translateY(-5px);
  }
}

/* Services Page Specifics */
@media (max-width: 768px) {
  .services-grid-page {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
  }

  .service-card-alt {
    padding: 35px 25px !important;
    border-radius: 24px !important;
  }
}

/* Offering Pages Specifics */
@media (max-width: 768px) {
  .feature-card-alt {
    flex-direction: column !important;
    text-align: center !important;
    padding: 30px 20px !important;
    gap: 20px !important;
  }

  .feature-card-alt i {
    font-size: 36px !important;
    margin-bottom: 0 !important;
  }

  .feature-info {
    text-align: center !important;
  }

  .download-box {
    flex-direction: column !important;
    gap: 25px !important;
    text-align: center;
    padding: 30px 20px !important;
  }

  .download-info {
    flex-direction: column !important;
    gap: 15px !important;
  }
}

/* About Page Fixes */
@media (max-width: 992px) {

  .story-grid,
  .mission-vision-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  .story-image::after {
    display: none;
    /* Simplify for mobile */
  }
}

/* Contact Page Fixes */
@media (max-width: 1024px) {
  .contact-container {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  .contact-form-wrapper {
    padding: 30px 20px !important;
  }
}

/* Footer Responsive Stack */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 50px 0 30px !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 30px !important;
  }

  .footer-socials {
    justify-content: center;
  }

  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-bottom {
    padding-top: 20px !important;
  }
}

/* Helper Classes */
.m-hide {
  display: none !important;
}

@media (min-width: 769px) {
  .d-hide {
    display: none !important;
  }
}