/*
 * What We Fix page phone and tablet layout — 14 August 2026
 * Loaded only by public_html/services.php.
 * Desktop widths of 1024px and above are intentionally unchanged.
 */

@media (max-width: 1023px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  body {
    color: #102b49;
    font-size: 16px;
    line-height: 1.58;
    -webkit-font-smoothing: antialiased;
  }

  .container {
    width: min(calc(100% - 32px), 1080px) !important;
  }

  .hero {
    padding: 42px 0 36px !important;
    background:
      radial-gradient(
        circle at 92% 8%,
        rgba(255, 211, 77, 0.20),
        transparent 28%
      ),
      linear-gradient(
        145deg,
        #e7f7ff 0%,
        #f8fcff 58%,
        #fff9e8 100%
      ) !important;
  }

  .hero h1 {
    max-width: 760px;
    margin-bottom: 16px !important;
    font-size: clamp(42px, 7vw, 62px) !important;
    line-height: 1 !important;
    letter-spacing: -0.045em !important;
    text-wrap: balance;
  }

  .hero .lead {
    max-width: 760px;
    margin-bottom: 22px !important;
    color: #52677e !important;
    font-size: 18px !important;
    line-height: 1.55 !important;
  }

  .eyebrow {
    max-width: 100%;
    padding: 7px 11px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    line-height: 1.28 !important;
    letter-spacing: 0.035em;
  }

  .hero-actions,
  .action-row {
    gap: 10px !important;
  }

  .btn {
    min-height: 48px;
    border-radius: 14px !important;
    font-weight: 850 !important;
  }

  .section {
    padding-block: 48px !important;
  }

  .section-header {
    margin-bottom: 24px !important;
  }

  .section h2,
  .section-header h2 {
    font-size: clamp(30px, 5.2vw, 44px) !important;
    line-height: 1.06 !important;
    letter-spacing: -0.03em !important;
    text-wrap: balance;
  }

  .grid-3 {
    grid-template-columns:
      repeat(
        auto-fit,
        minmax(min(100%, 300px), 1fr)
      ) !important;
    gap: 16px !important;
  }

  .card,
  .service-card,
  .callout {
    border-radius: 20px !important;
    box-shadow:
      0 12px 30px rgba(4, 47, 88, 0.08) !important;
  }

  .card,
  .service-card {
    padding: 22px !important;
  }

  .service-card .action-row {
    display: grid !important;
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
    margin-top: auto;
  }

  .service-card .action-row .btn,
  .service-card > .btn {
    width: 100%;
  }

  .service-card > .btn {
    margin-top: auto;
  }

  .footer {
    padding-bottom: 42px !important;
  }

  .footer-grid {
    gap: 28px !important;
  }
}

@media (min-width: 600px) and (max-width: 1023px) {
  .container {
    width: min(calc(100% - 48px), 1080px) !important;
  }

  .sticky-cta {
    display: none !important;
  }

  .footer-grid {
    grid-template-columns: 1.15fr 1fr 1fr !important;
  }
}

@media (max-width: 599px) {
  .container {
    width: min(calc(100% - 24px), 1080px) !important;
  }

  .hero {
    padding: 34px 0 30px !important;
  }

  .hero h1 {
    font-size: clamp(38px, 11.4vw, 50px) !important;
  }

  .hero .lead {
    font-size: 17px !important;
  }

  .hero-actions,
  .action-row,
  .service-card .action-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .hero-actions .btn,
  .action-row .btn {
    width: 100%;
  }

  .grid-3 {
    grid-template-columns: 1fr !important;
  }

  .section {
    padding-block: 40px !important;
  }

  .card,
  .service-card {
    padding: 19px !important;
  }

  .callout {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    padding: 22px !important;
  }

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

  .footer {
    padding-bottom: 100px !important;
  }

  .sticky-cta {
    left: 10px !important;
    right: 10px !important;
    bottom:
      calc(10px + env(safe-area-inset-bottom)) !important;
    z-index: 1100 !important;
    width: auto !important;
    padding: 8px !important;
    background: rgba(255, 255, 255, 0.97) !important;
    border: 1px solid #d4e3ee !important;
    border-radius: 18px !important;
    box-shadow:
      0 15px 38px rgba(4, 47, 88, 0.23) !important;
    backdrop-filter: blur(12px);
  }

  .sticky-cta-toggle {
    display: none !important;
  }

  .sticky-cta-panel,
  .sticky-cta .container {
    width: 100% !important;
    display: grid !important;
    grid-template-columns:
      1fr 1fr 1.35fr !important;
    gap: 7px !important;
    padding: 0 !important;
  }

  .sticky-cta-panel > :nth-child(3) {
    display: none !important;
  }

  .sticky-cta .btn {
    min-height: 46px !important;
    padding: 8px !important;
    border: 0 !important;
    border-radius: 12px !important;
    font-size: 14px !important;
  }

  .sticky-cta .btn.green {
    background: #159a57 !important;
    color: #fff !important;
  }

  .sticky-cta .btn.secondary {
    background: #eaf6ff !important;
    color: #083b75 !important;
  }

  .sticky-cta .btn:last-child {
    background: #0869c9 !important;
    color: #fff !important;
  }
}

@media (max-width: 374px) {
  .container {
    width: min(calc(100% - 20px), 1080px) !important;
  }

  .hero h1 {
    font-size: 36px !important;
  }
}