/* ==========================================================================
   HDM Marketing Theme — Responsive Breakpoints
   ========================================================================== */

/* ── 1024px — Tablets & Small Laptops ── */
@media (max-width: 1024px) {

  /* Typography Scale Down */
  h1, .hero-title { font-size: var(--text-5xl); }
  h2, .section-title { font-size: var(--text-3xl); }

  section {
    padding-block: 80px;
  }

  /* Grids → 2 columns */
  .services-grid,
  .case-studies-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .process-grid::before {
    display: none;
  }

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

  /* Hero */
  .hero-inner {
    gap: var(--space-10);
  }
}


/* ── 768px — Tablets Portrait & Large Phones ── */
@media (max-width: 768px) {

  /* Typography */
  h1, .hero-title { font-size: var(--text-4xl); }
  h2, .section-title { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl); }

  section {
    padding-block: 60px;
  }

  .container {
    padding-inline: var(--space-4);
  }

  /* ── Header → Mobile ── */
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
  }

  .header-inner {
    height: 64px;
  }

  .header-spacer {
    height: 64px;
  }

  /* ── Hero → Stack ── */
  .hero {
    min-height: auto;
    padding-block: 100px 60px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .hero-content {
    text-align: center;
    align-items: center;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual {
    order: 2;
  }

  /* ── Grids → 1 Column ── */
  .services-grid,
  .process-grid,
  .results-grid,
  .case-studies-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* ── Dashboard Stats ── */
  .dashboard-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  /* ── Footer ── */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
  }

  /* ── Trust Bar ── */
  .trust-bar-logos {
    gap: var(--space-8);
  }

  .trust-bar-logos img {
    height: 22px;
  }

  /* ── CTA Section ── */
  .cta-content {
    padding-inline: var(--space-4);
  }

  /* ── Metric Card ── */
  .metric-card-value {
    font-size: var(--text-4xl);
  }

  /* ── Section Header ── */
  .section-header {
    margin-bottom: var(--space-10);
  }
}


/* ── 480px — Small Phones ── */
@media (max-width: 480px) {

  /* Typography */
  h1, .hero-title { font-size: var(--text-3xl); }
  h2, .section-title { font-size: var(--text-xl); }
  h3 { font-size: var(--text-lg); }

  section {
    padding-block: 48px;
  }

  .container {
    padding-inline: var(--space-3);
  }

  /* Hero */
  .hero {
    padding-block: 80px 48px;
  }

  .hero-subtitle {
    font-size: var(--text-base);
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  /* Dashboard */
  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  .dashboard-chart {
    height: 120px;
  }

  /* Buttons */
  .btn {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
  }

  .btn-lg {
    padding: var(--space-3) var(--space-8);
    font-size: var(--text-base);
  }

  /* Footer */
  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-social {
    justify-content: center;
  }

  /* Cards */
  .service-card,
  .process-card,
  .metric-card {
    padding: var(--space-6);
  }

  .case-study-card-metrics {
    flex-direction: column;
    gap: var(--space-3);
  }

  /* Metric Card */
  .metric-card-value {
    font-size: var(--text-3xl);
  }

  /* CTA */
  .cta-section .btn-group {
    flex-direction: column;
  }

  .cta-section .btn-group .btn {
    width: 100%;
  }

  /* Trust Bar */
  .trust-bar-logos {
    gap: var(--space-6);
  }

  .trust-bar-logos img {
    height: 18px;
  }

  /* Stagger — reduce delays on mobile */
  .stagger > *:nth-child(n) {
    transition-delay: 0ms;
  }
}
