/*
 * Main homepage phone and tablet layout — 14 August 2026
 * Loaded only by public_html/index.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-grid {
    align-items: center !important;
    gap: 28px !important;
  }

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

  .btn,
  button,
  input,
  select,
  textarea {
    min-height: 48px;
  }

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

  .price-strip {
    display: grid !important;
    grid-template-columns:
      repeat(3, minmax(0, 1fr)) !important;
    gap: 9px !important;
  }

  .price-tile {
    min-width: 0;
    padding: 14px 8px !important;
    border-radius: 16px !important;
  }

  .price-tile strong {
    font-size: clamp(20px, 2.5vw, 24px) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.04em;
    white-space: nowrap;
  }

  .price-tile span {
    margin-top: 6px;
    font-size: 12px !important;
    line-height: 1.25;
  }

  .card,
  .panel,
  .hero-card,
  .callout {
    border-radius: 20px !important;
    box-shadow:
      0 12px 30px rgba(4, 47, 88, 0.08) !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(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }

  .grid-2 {
    grid-template-columns:
      repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }

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

  .steps {
    gap: 14px !important;
  }

  .step {
    padding: 18px !important;
  }

  .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 (min-width: 921px) and (max-width: 1023px) {
  .hero-grid {
    grid-template-columns:
      minmax(0, 1.08fr)
      minmax(360px, 0.92fr) !important;
  }

  .hero h1 {
    font-size: clamp(48px, 5.2vw, 54px) !important;
  }
}

@media (min-width: 600px) and (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr !important;
  }

  .hero-card {
    width: 100%;
    max-width: none;
  }

  .hero h1 {
    font-size: clamp(44px, 7vw, 56px) !important;
  }

  .hero-actions {
    display: grid !important;
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
    gap: 10px !important;
  }

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

  .hero-actions .btn:first-child {
    grid-column: 1 / -1;
  }
}

@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-grid,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr !important;
  }

  .hero-grid > div:first-child {
    display: flex;
    flex-direction: column;
  }

  .hero-grid > div:first-child > .eyebrow {
    order: 1;
    align-self: flex-start;
  }

  .hero-grid > div:first-child > h1 {
    order: 2;
  }

  .hero-grid > div:first-child > .lead {
    order: 3;
  }

  .hero-grid > div:first-child > .hero-actions {
    order: 4;
  }

  .hero-grid > div:first-child > .price-strip {
    order: 5;
  }

  .hero-grid > div:first-child > .accessibility-tools {
    order: 6;
  }

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

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

  .price-strip {
    display: grid !important;
    grid-template-columns:
      repeat(3, minmax(0, 1fr)) !important;
  }

  .price-tile {
    padding-inline: 6px !important;
  }

  .price-tile strong {
    font-size: clamp(17px, 5.2vw, 22px) !important;
    letter-spacing: -0.045em;
    white-space: nowrap;
  }

  .price-tile span {
    font-size: 10.5px !important;
  }

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

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

  .callout {
    display: grid !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;
  }
}