/* ═══════════════════════════════════════
   RESPONSIVE CSS — All breakpoints
   ═══════════════════════════════════════ */

/* ── Large tablets / small desktops ── */
@media (max-width: 1200px) {
  .hero-homepage,
  .hero-split-dark,
  .hero-split-light {
    grid-template-columns: 1fr 1fr;
  }

  .service-row {
    grid-template-columns: 240px 1fr;
  }
  .service-row-right {
    gap: 24px;
  }
}

/* ── Nav breakpoint ── */
@media (max-width: 1200px) {
  .nav-menu { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── Tablets ── */
@media (max-width: 992px) {
  .site-nav {
    padding: 0 24px;
  }

  /* Heroes — stack */
  .hero-homepage,
  .hero-split-dark,
  .hero-split-light {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-homepage .hero-left,
  .hero-split-dark .hero-left,
  .hero-split-light .hero-left {
    padding: 60px 48px;
  }

  .hero-homepage .hero-right,
  .hero-split-dark .hero-right,
  .hero-split-light .hero-right {
    padding: 48px;
  }

  .hero-split-light .hero-left {
    border-right: none;
    border-bottom: 1px solid var(--warm-gray);
  }

  /* Contact page */
  .contact-page {
    grid-template-columns: 1fr;
  }
  .intro-panel {
    min-height: auto;
    padding: 60px 48px;
  }
  .form-panel {
    padding: 60px 48px;
    border-left: none;
    border-top: 1px solid var(--warm-gray);
  }

  /* Portfolio page */
  .portfolio-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 48px 48px;
  }
  .portfolio-hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .wl-note {
    margin: 0 48px;
  }
  .filter-section {
    padding: 24px 48px 0;
  }
  .portfolio-section {
    padding: 36px 48px 72px;
  }
  .portfolio-grid-full {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio-grid-full .portfolio-item.featured {
    grid-column: span 2;
  }
  .process-strip {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 48px;
  }

  /* Sections — reduce padding */
  .problem,
  .feature-grid-section,
  .who,
  .testimonials,
  .faq-section,
  .delivery,
  .services-detail,
  .pillars,
  .packages,
  .agency-value,
  .reseller {
    padding: 72px 48px;
  }

  .context-strip,
  .testimonial-pull,
  .wpmu-strip,
  .rankmath-strip,
  .agency-dark,
  .testimonial-anchor {
    padding: 60px 48px;
  }

  .cta-close {
    padding: 72px 48px;
  }
  .trust-bar {
    padding: 24px 48px;
  }

  /* 2-col splits — stack */
  .problem-inner,
  .context-strip,
  .delivery-header,
  .who-header,
  .reseller-inner,
  .testimonial-pull,
  .wpmu-strip,
  .rankmath-strip,
  .agency-dark {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* 3-col grids — 2-col */
  .fg-grid--3col,
  .who-grid,
  .delivery-grid,
  .packages-grid,
  .agency-value-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .build-feature {
    grid-template-columns: 1fr;
  }
  .build-feature-left {
    border-right: none;
    border-bottom: 1px solid var(--warm-gray);
  }
  .build-secondary {
    grid-template-columns: 1fr;
  }
  .rebuild-card:first-child {
    border-radius: 0;
  }
  .rebuild-card:last-child {
    border-radius: 0 0 16px 16px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio-item--featured {
    grid-column: span 2;
  }
  .portfolio-strip {
    padding: 72px 48px;
  }
  .portfolio-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .portfolio-desc {
    text-align: left;
    max-width: none;
  }

  /* 4-col process — 2x2 */
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-circles {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 0;
  }
  .process-circles::before {
    display: none;
  }

  /* Service rows — stack */
  .service-row {
    grid-template-columns: 1fr;
  }
  .service-row-left {
    border-right: none;
    border-bottom: 1px solid var(--warm-gray);
  }
  .service-row-right {
    grid-template-columns: 1fr;
  }

  /* Pillar cards — stack */
  .pillar {
    grid-template-columns: 1fr;
  }

  /* CTA split — stack */
  .cta-close--split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .cta-actions {
    justify-content: flex-start;
  }

  /* Testimonials featured — stack */
  .testi-card.featured {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Headers that were side-by-side */
  .fg-header,
  .services-header,
  .packages-header,
  .testimonials-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .fg-intro,
  .services-note,
  .packages-note,
  .testimonials-note {
    text-align: left;
    max-width: none;
  }

  .pillars-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .pillars-desc {
    text-align: left;
    max-width: none;
  }

  /* Footer */
  .site-footer {
    padding: 48px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ── Mobile ── */
@media (max-width: 768px) {
  /* Heroes */
  .hero-homepage .hero-left,
  .hero-split-dark .hero-left,
  .hero-split-light .hero-left {
    padding: 48px 24px;
  }

  .hero-homepage .hero-right,
  .hero-split-dark .hero-right,
  .hero-split-light .hero-right {
    padding: 32px 24px;
  }

  .hero-headline {
    font-size: clamp(30px, 7vw, 42px);
  }
  .hero-proof {
    flex-direction: column;
    gap: 20px;
  }
  .proof-divider {
    width: 100%;
    height: 1px;
  }

  /* All sections — mobile padding */
  .problem,
  .feature-grid-section,
  .who,
  .testimonials,
  .faq-section,
  .delivery,
  .services-detail,
  .pillars,
  .packages,
  .agency-value,
  .reseller {
    padding: 56px 24px;
  }

  .context-strip,
  .testimonial-pull,
  .wpmu-strip,
  .rankmath-strip,
  .agency-dark,
  .testimonial-anchor {
    padding: 48px 24px;
  }

  .cta-close {
    padding: 56px 24px;
  }
  .trust-bar {
    padding: 20px 24px;
    flex-wrap: wrap;
    gap: 16px;
  }
  .direct-note {
    padding: 40px 24px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* All multi-col grids — single column */
  .fg-grid--3col,
  .fg-grid--2col,
  .who-grid,
  .delivery-grid,
  .packages-grid,
  .agency-value-grid,
  .faq-grid,
  .testimonials-grid,
  .wpmu-tools,
  .rm-features {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .portfolio-item--featured {
    grid-column: span 1;
    min-height: 200px;
  }
  .portfolio-strip {
    padding: 56px 24px;
  }

  /* Portfolio page — mobile */
  .portfolio-hero-inner {
    padding: 48px 24px;
  }
  .portfolio-hero-stats {
    grid-template-columns: 1fr;
  }
  .wl-note {
    margin: 0 24px;
    flex-direction: column;
    gap: 10px;
  }
  .filter-section {
    padding: 20px 24px 0;
    top: 60px;
  }
  .filter-inner {
    gap: 6px;
  }
  .portfolio-section {
    padding: 24px 24px 56px;
  }
  .portfolio-grid-full {
    grid-template-columns: 1fr;
  }
  .portfolio-grid-full .portfolio-item.featured {
    grid-column: span 1;
  }
  .process-strip {
    padding: 48px 24px;
  }

  /* Process — stack */
  .process-grid {
    grid-template-columns: 1fr;
  }
  .process-circles {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .process-circle-step {
    padding: 0;
  }
  .process-steps-section {
    padding: 56px 24px;
  }

  /* Contact page */
  .intro-panel {
    padding: 48px 24px;
  }
  .form-panel {
    padding: 48px 24px;
  }

  /* Footer */
  .site-footer {
    padding: 40px 24px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* Metric row */
  .metric-row {
    flex-direction: column;
  }

  /* Button groups — stack on very narrow */
  .hero-actions,
  .cta-actions,
  .button-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* Featured testimonial loses span */
  .testi-card.featured {
    grid-column: span 1;
  }

  /* Pain items */
  .pain-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ── Small mobile ── */
@media (max-width: 480px) {
  .site-nav {
    padding: 0 16px;
    height: 68px;
  }
  .hero-homepage,
  .hero-split-dark,
  .hero-split-light {
    padding-top: 60px;
  }
  .contact-page {
    padding-top: 60px;
  }

  .hero-headline {
    font-size: 28px;
  }

  .hero-card {
    width: calc(100% - 32px);
    padding: 28px;
  }

  .build-feature-left,
  .build-feature-right {
    padding: 36px 24px;
  }
  .rebuild-card {
    padding: 36px 24px;
  }

  .fg-card,
  .who-card,
  .del-card,
  .package-card,
  .av-card,
  .faq-item,
  .testi-card {
    padding: 32px 24px;
  }

  .process-step {
    padding: 28px 24px;
  }
}
