/* ==========================================================================
   Swift Traders INC — Responsive Rules
   ========================================================================== */

/* Large desktop refinements */
@media (max-width: 1140px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-col.footer-newsletter { grid-column: 1 / -1; }
}

/* Nav switches to hamburger earlier than other tablet layout changes,
   since the full nav needs more horizontal room than the rest of the grid */
@media (max-width: 1180px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
}

/* Tablet */
@media (max-width: 960px) {
  .hero { min-height: 0; padding-bottom: 70px; }
  .hero-grid { text-align: left; }
  .hero-copy p.lead { margin-inline: 0; }
  .hero-actions, .hero-trust { justify-content: flex-start; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .marketplace-cards { grid-template-columns: 1fr; }
  .testimonial-track { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }

  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }

  .section { padding: 72px 0; }
}

/* Mobile */
@media (max-width: 640px) {
  .container { padding-inline: 18px; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.6rem; }

  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .process-steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .cta-panel { padding: 44px 24px; }
  .marketplace-card { padding: 28px; }
  .feature-icon.generated-art { width: 76px; height: 76px; border-radius: 18px; }
  .overview-stat-icon.generated-art { width: 58px; height: 58px; border-radius: 14px; }
  .contact-info-item .icon-wrap.generated-art { width: 64px; height: 64px; border-radius: 16px; }
  .store-card .store-icon.generated-art { width: 68px; height: 68px; border-radius: 16px; }
  .hero { min-height: 0; padding: calc(var(--header-height) + 36px) 0 70px; }
  .hero-slide:first-child img { object-position: 68% center; }
  .hero-slideshow-controls { top: auto; right: 18px; bottom: 18px; }
  .editorial-banner { aspect-ratio: 1.25 / 1; margin-bottom: 36px; }
  .editorial-media-portrait, .contact-media { aspect-ratio: 4 / 3; }
  .editorial-media figcaption { left: 12px; right: 12px; bottom: 12px; padding: 12px 14px; }

  .cookie-banner { left: 14px; right: 14px; bottom: 14px; padding: 20px; }
  .back-to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }

  .section { padding: 56px 0; }
  .section-header { margin-bottom: 36px; }

  .legal-nav { gap: 8px; }

  .header-actions { gap: 8px; }
  .header-actions .btn-sm { display: none; }
  .theme-toggle, .hamburger { width: 36px; height: 36px; }
  .theme-toggle svg { width: 17px; height: 17px; }
  .brand { gap: 8px; }
  .brand img, .brand .logo-mark { height: 34px; }
  .brand-name { font-size: 0.78rem; }
}

/* Small phones */
@media (max-width: 400px) {
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .cta-panel .btn-group { flex-direction: column; width: 100%; }
  .cta-panel .btn-group .btn { width: 100%; }
}

/* Seven-item navigation and Amazon service discovery */
@media (min-width: 1181px) {
  .header-inner { max-width: 1360px; gap: 14px; }
  .main-nav { gap: 0; }
  .main-nav a { padding: 10px 9px; font-size: .84rem; }
  .site-header .brand { gap: 8px; font-size: 1rem; }
  .site-header .brand img { height: 38px; }
  .header-actions { gap: 8px; }
  .header-actions .btn-sm { padding: 10px 14px; font-size: .78rem; }
}
.mobile-nav a[aria-current="page"] { color: var(--accent-strong); font-weight: 800; }
.sp-discovery { padding: 28px 0; background: var(--bg-surface-alt); border-bottom: 1px solid var(--border-color); }
.sp-discovery .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.sp-discovery-link { display: inline-block; margin-top: 20px; color: var(--accent-strong); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.cookie-banner { visibility: hidden; }
.cookie-banner.visible { visibility: visible; }
@media (max-width: 640px) { .sp-discovery .container { align-items: flex-start; flex-direction: column; } }
