/* =========================================================
   Northern Geek — responsive.css
   Breakpoints: 1024 / 768 / 480
   ========================================================= */

/* ---------- 1024px and below ---------- */
@media (max-width: 1024px) {
  .solutions-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
  .footer-contact {
    grid-column: span 1;
  }
}

/* ---------- Short viewports (laptops / landscape) ----------
   Prevents the vertically-centered hero content from crowding
   the absolutely-positioned scroll indicator. */
@media (max-height: 820px) {
  .hero {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }
  .hero-title {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
  }
  .hero-eyebrow {
    margin-bottom: var(--space-3);
  }
  .hero-sub {
    margin-bottom: var(--space-3);
  }
  .scroll-indicator {
    bottom: var(--space-2);
  }
  .scroll-indicator .scroll-text {
    display: none;
  }
}

/* ---------- 768px and below ---------- */
@media (max-width: 768px) {
  :root {
    --space-8: 5rem;
    --space-7: 3.5rem;
  }

  /* Nav collapses to slide-in drawer */
  .nav-toggle {
    display: flex;
  }
  .navbar .container {
    padding: 0 var(--space-3);
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    border-left: 1px solid var(--border);
    z-index: 400;
  }
  .nav-links.open {
    transform: translateX(0);
  }
  .nav-links a {
    font-size: 1.1rem;
  }
  .navbar-actions .btn-primary {
    display: none;
  }

  .hero-title {
    font-size: clamp(2.2rem, 9vw, 3.2rem);
  }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta .btn {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
  }

  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split {
    grid-template-columns: 1fr;
  }
  .split-visual {
    order: -1;
  }
  .service-list {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  .timeline-line {
    display: none;
  }
  .timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .why-list {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }
  .footer-brand {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-col {
    text-align: center;
  }
  .social-row {
    justify-content: center;
  }
}

/* ---------- 480px and below ---------- */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-3);
  }
  .navbar .container {
    padding: 0 var(--space-2);
  }

  .hero-title {
    font-size: clamp(2rem, 11vw, 2.6rem);
  }
  .hero-eyebrow {
    font-size: 0.72rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .solutions-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-inner h2 {
    font-size: clamp(1.8rem, 9vw, 2.6rem);
  }

  /* Let the mockup card size to its content instead of stretching
     into a fixed portrait box — a forced aspect-ratio combined with
     the inner `flex:1; justify-content:center` content blocks was
     leaving large dead gaps above/below shorter content. */
  .screen-glass {
    aspect-ratio: auto;
    padding: var(--space-3);
    gap: var(--space-3);
  }
  .mockup-columns,
  .mockup-rows,
  .mockup-bars,
  .mockup-progress-list {
    flex: none;
    justify-content: flex-start;
  }
  .mockup-bars {
    height: 90px;
  }

  .mockup-kpi {
    padding: 8px;
  }
  .mockup-kpi strong {
    font-size: 1rem;
  }
  .mockup-kpi span {
    font-size: 0.58rem;
    letter-spacing: 0;
  }
  .mockup-col-label {
    display: none;
  }
  .mockup-badge {
    font-size: 0;
    padding: 5px;
    width: 8px;
    height: 8px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    padding-bottom: var(--space-4);
  }
  .footer-brand {
    grid-column: span 1;
  }

  /* Tighten the section rhythm and stop container + slider + card
     padding from stacking three deep, which squeezed the card
     narrower than it needed to be and left oversized empty gaps
     above/below it. */
  .testimonials {
    padding: 3.5rem 0;
  }
  .testimonials .section-head {
    margin-bottom: var(--space-4);
  }
  .testimonial-slider {
    padding: 0;
  }
  .testimonial-card {
    padding: 0;
  }
  .testimonial-content {
    padding: var(--space-4) var(--space-3);
  }
  .testimonial-content p {
    font-size: 1.05rem;
  }

  .back-to-top {
    right: var(--space-2);
    bottom: var(--space-2);
  }

  /* Equal space above and below the divider line, plus clearance
     below the copyright line so the fixed back-to-top button never
     sits on top of it at full scroll. */
  .footer-bottom {
    margin-top: 0;
    padding-top: var(--space-4);
    padding-bottom: calc(var(--space-4) + 64px);
  }
}
