/* ==========================================================================
   TeleWink Global Services - Responsive Layout Adjustments
   ========================================================================== */

/* Laptop / Medium Desktops (max-width: 1024px) */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .about-grid, .contact-grid {
    gap: 2.5rem;
  }
  
  .industries-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-brand {
    grid-column: span 3;
    margin-bottom: 1.5rem;
  }
}

/* Tablets (max-width: 768px) */
@media (max-width: 768px) {
  .section-padding {
    padding: 4.5rem 0;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  /* Mobile Header Navigation */
  .hamburger {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    gap: 1.25rem;
    transition: right var(--transition-normal);
    z-index: 998;
    overflow-y: auto;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-item {
    width: 100%;
  }
  
  .nav-link {
    display: block;
    width: 100%;
    font-size: 1.1rem;
    padding: 0.75rem 0;
  }
  
  /* Disable mega menu, toggle standard links on mobile */
  .has-mega-menu {
    position: relative;
  }
  
  .mega-menu {
    position: relative;
    top: 0;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0.5rem 0 0.5rem 1rem;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none; /* Toggle via JS in mobile */
    box-shadow: none;
    background: transparent;
    border: none;
  }
  
  .has-mega-menu.active .mega-menu {
    display: block;
  }
  
  .mega-column h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }
  
  /* Mobile Header Action adjustment */
  .header-actions .btn {
    display: none; /* Hide header contact button, show inside menu */
  }
  
  /* Hamburger state change */
  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  /* Hero section tablet reflow */
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding-top: 50px;
  }
  
  .hero-content {
    margin: 0 auto;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
    gap: 2rem;
  }
  
  .hero-image-container {
    max-width: 440px;
    margin: 1.5rem auto 0;
  }
  
  /* About Page timeline changes */
  .timeline-row {
    flex-direction: column;
    gap: 2rem;
  }
  
  .timeline-row::before {
    top: 0;
    left: 20px;
    width: 2px;
    height: 100%;
  }
  
  .timeline-node {
    display: flex;
    text-align: left;
    padding: 0;
  }
  
  .timeline-dot {
    margin: 4px 1.5rem 0 0;
  }
  
  /* Columns adjustments */
  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-brand {
    grid-column: span 2;
  }
}

/* Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .section-title h2 {
    font-size: 1.75rem;
  }
  
  .hero-title {
    font-size: 2.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .hero-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  
  .stat-item {
    flex: 1 1 40%;
  }
  
  .stat-number {
    font-size: 1.75rem;
  }
  
  .industries-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .faq-question {
    font-size: 1rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-brand {
    grid-column: span 1;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  /* Scale down hero tech illustration on mobile */
  .hero-image-container {
    max-width: 340px;
    margin: 1rem auto 0;
  }
  
  .hero-illustration .tech-metrics {
    display: none; /* Hide verbose text metrics on small screens */
  }
  
  /* Scale down world map marker layout on mobile */
  .map-wrapper {
    overflow-x: auto;
    max-width: 100%;
  }
  
  .map-svg {
    min-width: 600px;
  }
  
  .map-dot {
    display: none; /* Hide map interaction on tiny screens to avoid overflow */
  }
}
