/* Mobile-first fixes — tight spacing, sliders, no overlap */

.gt-hscroll,
.gt-hscroll-dots,
.gt-projects-mobile,
.gt-cap-mobile,
.gt-why-mobile,
.gt-engage-mobile { display: none; }

@media (max-width: 768px) {
  .gt-container {
    padding: 0 16px;
  }

  .gt-heading-lg {
    font-size: clamp(24px, 7vw, 32px);
  }

  .gt-heading-xl {
    font-size: clamp(28px, 8vw, 40px);
  }

  .gt-hscroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -16px;
    padding: 4px 16px 20px;
  }

  .gt-hscroll::-webkit-scrollbar { display: none; }

  .gt-hscroll > * {
    flex: 0 0 min(84vw, 320px);
    scroll-snap-align: center;
  }

  .gt-hscroll-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 4px;
  }

  .gt-hscroll-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gt-gray-200);
    border: none;
    padding: 0;
    transition: background 0.3s, transform 0.3s;
  }

  .gt-hscroll-dot.active {
    background: var(--gt-blue-500);
    transform: scale(1.3);
  }

  .gt-desktop-grid { display: none !important; }

  #gt-sec-hero {
    min-height: 100svh;
    height: auto;
  }

  #gt-sec-services .gt-theme-card { min-height: 220px; }

  #gt-sec-process .gt-process-body {
    min-height: 78vh;
    padding: 40px 16px 32px;
    justify-content: center;
    text-align: center;
  }

  #gt-sec-process .gt-process-stage {
    min-height: 240px;
    margin-bottom: 24px;
  }

  #gt-sec-video .gt-video-pin {
    min-height: auto;
    padding: 24px 16px;
  }

  #gt-sec-video .gt-video-quote {
    padding: 32px 16px 48px;
    text-align: left;
  }

  #gt-sec-projects .gt-projects-arch { display: none !important; }
  #gt-sec-projects .gt-projects-mobile { display: block; }
  #gt-sec-projects .gt-projects-top { padding-bottom: 0; }

  #gt-sec-projects .gt-project-mobile-card {
    background: var(--gt-blue-700);
    border-radius: var(--gt-radius-lg);
    overflow: hidden;
    border: 1px solid var(--gt-gray-200);
    box-shadow: 0 8px 24px rgba(10, 22, 40, 0.06);
  }

  #gt-sec-projects .gt-project-mobile-card img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
  }

  #gt-sec-projects .gt-project-mobile-body { padding: 20px; }
  #gt-sec-projects .gt-project-mobile-card:nth-child(4n+2) { background: var(--gt-blue-600); }
  #gt-sec-projects .gt-project-mobile-card:nth-child(4n+3) { background: var(--gt-blue-800); }
  #gt-sec-projects .gt-project-mobile-card:nth-child(4n) { background: var(--gt-gold); }
  #gt-sec-projects .gt-project-mobile-card .gt-heading-sm,
  #gt-sec-projects .gt-project-mobile-card .gt-text-sm { color: var(--gt-white); }
  #gt-sec-projects .gt-project-mobile-card:nth-child(4n) .gt-heading-sm,
  #gt-sec-projects .gt-project-mobile-card:nth-child(4n) .gt-text-sm { color: var(--gt-blue-900); }
  #gt-sec-projects .gt-projects-cta { padding: 24px 0 48px; }

  #gt-sec-tech.gt-tech-gradient {
    min-height: clamp(240px, 38vh, 360px);
    height: auto;
    overflow-x: hidden;
  }

  #gt-sec-tech .gt-tech-gradient-inner {
    padding-inline: 16px;
    width: 100%;
    max-width: 100%;
  }

  #gt-sec-tech .gt-tech-gradient-title {
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }

  #gt-sec-tech .gt-tech-wordmark {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    margin: 0 auto;
    display: block;
    object-fit: contain;
  }

  .gt-timeline-grid {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    justify-items: stretch;
  }

  .gt-timeline-grid > .gt-theme-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .gt-newsletter-card {
    grid-template-columns: 1fr;
    padding: 28px 20px;
    width: 100%;
    max-width: 100%;
  }

  .gt-newsletter-inner {
    max-width: none;
    width: 100%;
  }

  .gt-newsletter-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: none;
  }

  .gt-newsletter-input,
  .gt-newsletter-btn {
    width: 100%;
    flex: none;
    min-width: 0;
    max-width: 100%;
  }

  #gt-sec-capabilities .gt-cap-grid { display: none; }
  #gt-sec-capabilities .gt-cap-mobile { display: block; }

  #gt-sec-why .gt-why-mobile,
  #gt-sec-engage .gt-engage-mobile { display: block; }

  #gt-sec-testimonials .gt-testimonial-card {
    flex: 0 0 min(88vw, 340px);
  }

  .gt-footer-mega { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .gt-footer-contact-bar,
  .gt-footer-meta-row,
  .gt-footer-bottom { grid-template-columns: 1fr; gap: 20px; }

  .gt-hscroll { display: flex; }
  .gt-hscroll-dots { display: flex; }
}

@media (max-width: 640px) {
  .gt-timeline-grid {
    grid-template-columns: 1fr;
  }

  .gt-timeline-grid > .gt-theme-card {
    padding: 22px 18px;
  }

  .gt-newsletter-card {
    padding: 22px 16px;
  }

  .gt-newsletter-title {
    font-size: clamp(22px, 6vw, 28px);
  }
}
