/* Shared responsive fixes for phones and tablets */
:root {
  --mobile-padding: 18px;
}

html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

.container,
.section,
.footer-overlay {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 1024px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .navbar {
    left: 12px;
    right: 12px;
    width: auto;
  }
}

@media (max-width: 768px) {
  .navbar {
    top: 10px;
    padding: 10px 14px;
    border-radius: 16px;
    justify-content: space-between;
  }

  .gklogo {
    width: 110px !important;
    position: static !important;
  }

  .gklogo img {
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .hero-logo {
    width: 110px !important;
    top: 16px !important;
    right: 16px !important;
  }

  .hero-logo img {
    width: 100% !important;
    height: auto !important;
  }

  .navbar {
    position: relative;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    padding: 22px 20px;
    gap: 15px;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    z-index: 999;
    width: calc(100% - 28px);
    margin: 0 auto;
  }

  .nav-links.open {
    display: flex !important;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    display: block;
    padding: 14px 0;
    width: 100%;
  }

  .submenu {
    position: static;
    width: 100%;
    padding-left: 15px;
    margin-top: 10px;
  }

  .submenu li a {
    padding: 10px 0;
  }

  .dropdown-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
  }

  .dropdown.open .submenu {
    display: block;
  }

  .hero,
  .creative-hero,
  .section {
    padding-left: var(--mobile-padding);
    padding-right: var(--mobile-padding);
  }

  .hero-title,
  .section-title {
    font-size: 2.2rem !important;
    line-height: 1.15;
  }

  .hero-desc,
  .section-description,
  .testimonial-text,
  .info-item p,
  .footer-brand p {
    font-size: 1rem !important;
  }

  .buttons,
  .services,
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .service-tag {
    width: 100%;
    text-align: center;
  }

  .about-grid,
  .contact-content,
  .footer-grid,
  .horizontal-item {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .about-card img,
  .timeline-img {
    height: auto !important;
    min-height: 240px;
  }

  .testimonial-card,
  .contact-card {
    padding: 24px 18px !important;
  }

  .contact-form input,
  .contact-form textarea,
  .newsletter-form input {
    font-size: 16px;
  }

  .whatsapp-float {
    bottom: 18px;
    right: 18px;
    width: 56px;
    height: 56px;
    font-size: 24px;
  }

  .timeline-row {
    padding-left: 72px !important;
    padding-right: 8px !important;
  }

  .timeline-content,
  .timeline-node {
    max-width: 100% !important;
    margin: 0 !important;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 8px 12px;
  }

  .hero h1,
  .hero-title {
    font-size: 2rem !important;
  }

  .section-title {
    font-size: 1.8rem !important;
  }

  .stat h2,
  .stat-num {
    font-size: 1.5rem !important;
  }

  .btn {
    padding: 12px 20px;
  }
}
