/* ===========================
   RESPONSIVE — Mobile-First
   Thumb-zone nav at bottom on mobile
   =========================== */

/* ===========================
   Tablet (≤ 1024px)
   =========================== */
@media (max-width: 1024px) {
  .about-opening { margin-bottom: 24px; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-credentials { position: static; }
  .about-photo-wrap  { max-width: 340px; }

  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-wide { grid-column: span 2; }

  .steps-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .step-connector { display: none; }

  .contact-cards {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Footer right stacks under brand on tablet */
  .footer-right {
    align-items: flex-start;
    width: 100%;
  }
  .footer-nav {
    flex-wrap: wrap;
    gap: 0.5rem 1.2rem;
    justify-content: flex-start;
  }
  .footer-socials { justify-content: flex-start; }

  /* Stats strip flex-wrap on tablet */
  .about-stats-strip { padding: 28px 28px; }

  /* Portfolio image height reduce on tablet */
  .portfolio-card-img { height: 155px; }

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

/* ===========================
   Mobile (≤ 768px)
   Thumb-zone: nav moves to bottom
   =========================== */
@media (max-width: 768px) {
  /* Move nav to bottom for thumb reach */
  .nav-header {
    top: auto;
    bottom: 0;
    border-bottom: none;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 20px 20px 0 0;
    backdrop-filter: blur(32px) saturate(200%);
    -webkit-backdrop-filter: blur(32px) saturate(200%);
  }
  [data-theme="dark"] .nav-header {
    border-top: 1px solid rgba(255,255,255,0.06);
  }

  /* Body padding to clear bottom nav */
  body { padding-bottom: var(--nav-h); }

  /* Hero padding clears bottom nav */
  .hero-inner {
    padding-top: 60px;
    padding-bottom: calc(var(--nav-h) + 60px);
  }

  /* Nav links drawer opens upward */
  .nav-links { display: none; }
  .nav-links.nav-open {
    bottom: var(--nav-h);
    top: auto;
  }

  .hamburger { display: flex; }

  /* Sections */
  .section { padding: 72px 0; }

  .bento-grid { grid-template-columns: 1fr; }
  .bento-wide { grid-column: span 1; }

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

  .portfolio-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }

  /* Footer bottom pad for fixed nav */
  .footer { padding-bottom: calc(var(--nav-h) + 32px); }

  /* Footer stacks fully on mobile */
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-right { align-items: flex-start; width: 100%; }
  .footer-nav { flex-wrap: wrap; gap: 0.5rem 1.1rem; justify-content: flex-start; }
  .footer-socials { justify-content: flex-start; }

  /* Stats strip stacks */
  .about-stats-strip {
    flex-wrap: wrap;
    gap: 24px 0;
    padding: 28px 20px;
  }
  .about-stat { min-width: 50%; }
  .about-stat-sep { display: none; }

  /* Portfolio image */
  .portfolio-card-img { height: 145px; }

  .hero-headline { font-size: clamp(2rem, 9vw, 3.2rem); }
  .hero-cta-group { flex-direction: column; align-items: center; }
  .hero-cta-group .btn { width: 100%; max-width: 340px; justify-content: center; }
  .hero-bottom { bottom: 80px; }

  /* About decision chips wrap nicely */
  .about-decision-chips { gap: 6px; }
  .decision-chip { font-size: 0.78rem; padding: 7px 14px; }

  /* About opening — tighter on mobile */
  .about-opening-headline { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .about-opening { margin-bottom: 22px; }

  /* Story chapters — reduce tilt on small screens */
  .story-chapter     { transform: rotate(-0.2deg); }
  .story-chapter--alt { transform: rotate(0.2deg); }
  .story-pullquote   { transform: rotate(0.3deg); }

  /* About photo — full width on mobile */
  .about-photo-wrap  { max-width: 100%; transform: rotate(0deg); }
  .about-photo-stat  { right: 8px; top: 12px; }
  .about-photo-badge { left: 12px; right: 40px; }
}

/* ===========================
   Small mobile (≤ 480px)
   =========================== */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .about-credentials { padding: 24px 18px; }
  .about-decision { padding: 20px 16px; }
  .contact-card { padding: 36px 24px 28px; }
  .about-opening { margin-bottom: 18px; }
  .footer-wordmark { width: 220px; }
  .about-stats-strip { padding: 22px 16px; gap: 20px 0; }
  .about-stat-num { font-size: 2rem; }
  .portfolio-card-img { height: 130px; }

  .hero-badge { font-size: 0.70rem; }
  .hero-sub { font-size: 0.9rem; }
  .hero-bottom { bottom: 84px; gap: 10px; }
  .hero-service-label { font-size: 0.65rem; }

  .nav-links.nav-open { padding: 24px 20px 20px; }
  .nav-links.nav-open a { font-size: 1.1rem; }
}
