/* ═══════════════════════════════════════════════
   MAK PIK — Responsive Breakpoints
   Mobile-first → scale up
   ═══════════════════════════════════════════════ */

/* ═══ EXTRA SMALL PHONES (<= 360px) ═══ */
@media (max-width: 360px) {
  :root {
    --container-padding: 0.875rem;
    --fs-hero: 1.75rem;
    --fs-h2: 1.35rem;
    --fs-h3: 1.1rem;
  }

  .header__logo-brand {
    font-size: 1.05rem;
  }

  .header__logo-tagline {
    font-size: 0.55rem;
  }

  .header__logo img {
    height: 30px;
  }

  .cert-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══ ALL PHONES (<= 480px) ═══ */
@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .partner-cta__actions {
    flex-direction: column;
    width: 100%;
  }

  .partner-cta__actions .btn {
    width: 100%;
  }

  .segment-chip {
    padding: var(--space-xs) var(--space-md);
    font-size: 0.8rem;
  }

  /* World Map Telemetry on mobile */
  .dist-map-telemetry {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 14px;
    gap: 8px;
  }

  .telemetry-item--status {
    width: 100%;
    margin-top: 4px;
  }

  .telemetry-badge {
    display: block;
    width: 100%;
    text-align: center;
  }

  .wmap-svg {
    min-height: 220px;
  }
}

/* ═══ TABLET (600px+) ═══ */
@media (min-width: 600px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }

  .stat-band__inner {
    grid-template-columns: repeat(4, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .story-item {
    flex-direction: row;
    align-items: center;
  }

  .story-item:nth-child(even) {
    flex-direction: row-reverse;
  }

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

  .footer__inner {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* ═══ NAV BREAKPOINT (860px+) ═══ */
@media (min-width: 860px) {
  .hamburger {
    display: none !important;
  }

  .nav {
    display: flex !important;
  }

  .nav__list {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: none;
    padding: 0;
    width: auto;
    height: auto;
    opacity: 1;
    pointer-events: all;
  }

  .nav-drawer,
  .nav-drawer__backdrop {
    display: none !important;
  }
}

/* Mobile nav — below 860px */
@media (max-width: 859px) {
  .hamburger {
    display: flex !important;
  }

  .nav {
    display: none !important;
  }

  .nav__list {
    display: none !important;
  }

  .capacity-card {
    padding: var(--space-md);
  }

  .capacity-card__val {
    font-size: 1.6rem;
  }

  .legal-banner {
    padding: var(--space-md);
  }

  .cert-cards-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .cert-item__frame {
    height: 310px;
    padding: 12px;
  }

  .cert-item__mobile-action {
    display: flex;
  }

  .cert-item__action {
    display: none;
  }
}

/* ═══ LAPTOP (1024px+) ═══ */
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }

  .hero__inner {
    grid-template-columns: 1fr 1fr;
  }

  .split {
    grid-template-columns: 1fr 1fr;
  }

  .cert-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

  /* Polaroid rotation — desktop only */
  .polaroid:nth-child(odd) {
    transform: rotate(-3deg);
  }

  .polaroid:nth-child(even) {
    transform: rotate(2deg);
  }

  .polaroid:hover {
    transform: rotate(0deg) scale(1.03);
  }

  /* Process flow — horizontal on desktop */
  .process-flow--horizontal {
    grid-template-columns: repeat(7, 1fr);
    gap: var(--space-sm);
    text-align: center;
  }

  .process-flow--horizontal .process-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .process-flow--horizontal .process-step:not(:last-child)::after {
    left: 56px;
    top: 28px;
    width: calc(100% - 28px);
    height: 2px;
  }
}

/* ═══ DESKTOP (1280px+) ═══ */
@media (min-width: 1280px) {
  .grid--5 { grid-template-columns: repeat(5, 1fr); }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr) repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
  }

  /* First gallery item spans 2 rows */
  .gallery-grid .gallery-item:first-child {
    grid-row: span 2;
  }

  .gallery-grid .gallery-item:first-child img {
    aspect-ratio: auto;
    height: 100%;
  }
}

/* ═══ WIDE (1440px+) ═══ */
@media (min-width: 1440px) {
  :root {
    --container-padding: 4rem;
  }
}
