/* ============================================================
   Prestige Networks — responsive.css
   Mobile-first breakpoints
   Breakpoints: 480px | 640px | 768px | 1024px | 1280px
   ============================================================ */

/* --- Large Desktop (1280px+) -------------------------------- */
@media (min-width: 1280px) {
  .container {
    padding-left: var(--space-7);
    padding-right: var(--space-7);
  }
}

/* --- Desktop only (1024px+) --------------------------------- */
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .process-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- Tablet and below (max 1023px) ------------------------- */
@media (max-width: 1023px) {

  /* Nav */
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(13, 27, 62, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-4) var(--space-5) var(--space-6);
    gap: var(--space-1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
    max-height: calc(100vh - var(--nav-height));
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    padding: var(--space-3) var(--space-4);
    font-size: 1rem;
    border-radius: var(--radius-md);
  }

  .nav-cta {
    margin-top: var(--space-3);
    text-align: center;
  }

  .nav-dropdown {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: rgba(255,255,255,0.05);
    box-shadow: none;
    border: none;
    padding: var(--space-2) var(--space-3);
    margin-top: var(--space-1);
  }

  /* Services grid */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Voice grid */
  .voice-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Process steps */
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps::before {
    display: none;
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Two col */
  .two-col {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }

  .two-col-reverse {
    direction: ltr;
  }

  /* Footer grid */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-7);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2) {
    border-right: none;
  }

  .stat-item:nth-child(1),
  .stat-item:nth-child(2) {
    border-bottom: 1px solid var(--color-border);
  }
}

/* --- Tablet: scale down hero brand mark -------------------- */
@media (max-width: 1023px) {
  .hero-brand-mark {
    left: 24px;
    top: calc(var(--nav-height) + 20px);
  }

  .hero-brand-logo {
    width: 200px;
  }
}

/* --- Mobile (max 767px) ------------------------------------ */
@media (max-width: 767px) {

  /* Typography scaling */
  :root {
    --space-9:  60px;
    --space-10: 72px;
  }

  /* Hero brand mark */
  .hero-brand-mark {
    left: 16px;
    top: calc(var(--nav-height) + 14px);
  }

  .hero-brand-logo {
    width: 160px;
  }

  /* Hero */
  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero-ctas .btn {
    width: 100%;
    max-width: 300px;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Voice grid */
  .voice-grid {
    grid-template-columns: 1fr;
  }

  /* Process */
  .process-steps {
    grid-template-columns: 1fr 1fr;
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal-nav {
    justify-content: center;
  }

  /* Trust logos */
  .trust-logos {
    gap: var(--space-5);
  }
}

/* --- Small mobile (max 479px) ------------------------------ */
@media (max-width: 479px) {

  .section {
    padding: var(--space-8) 0;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .card {
    padding: var(--space-5);
  }
}

/* --- Contact page layout ----------------------------------- */
@media (max-width: 1023px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-side {
    /* Reorder: side panel info goes above form on tablet */
    order: -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    align-items: start;
  }

  .response-badge {
    grid-column: 1 / -1;
  }

  .cta-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .contact-strip-grid {
    grid-template-columns: 1fr;
  }

  .contact-strip-item {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .contact-strip-item:last-child {
    border-bottom: none;
  }

  .contact-form-panel {
    padding: var(--space-5);
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-side {
    grid-template-columns: 1fr;
  }

  .page-hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .page-hero-actions .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

/* --- Print styles ------------------------------------------ */
@media print {
  .navbar,
  .hero-scroll-indicator,
  .cta-section,
  .site-footer .footer-social,
  .btn { display: none !important; }

  .hero {
    min-height: auto;
    padding: var(--space-6) 0;
  }
}

/* --- Reduced motion ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-slide {
    animation: none;
    opacity: 0;
  }

  .slide-1 {
    opacity: 1;
  }
}
