/* =============================================
   RESPONSIVE.CSS — All breakpoints
   The Stairlift Company

   Breakpoints:
   1024px — Tablet landscape
    768px — Tablet portrait / large phones
    480px — Small phones
   ============================================= */

/* ===== 1024px — Tablet Landscape ===== */
@media (max-width: 1024px) {

  :root {
    --fs-3xl: 48px;
    --fs-2xl: 40px;
  }

  /* Hero */
  .hero { padding: 80px 0 100px; }
  .hero-grid { grid-template-columns: 1fr 380px; gap: 40px; }

  /* Trust bar: 2 × 2 */
  .trust-bar-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: none; }
  .trust-item:nth-child(3),
  .trust-item:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; }

  /* Products: 2 columns */
  .products-grid > article { flex: 0 0 calc(50% - 14px); }

  /* Financing: 2 columns, last card centred */
  .financing-grid { grid-template-columns: 1fr 1fr; }
  .financing-grid > :last-child { grid-column: 1 / -1; max-width: 480px; margin: 0 auto; }

  /* Testimonials: 2 columns, last card centred */
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid > :last-child { grid-column: 1 / -1; max-width: 520px; margin: 0 auto; }

  /* Final CTA: stacked */
  .final-cta-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .final-cta-actions { width: 100%; }
  .final-cta h2 { font-size: var(--fs-xl); }

  /* Footer: 2 × 2 */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ===== 768px — Tablet Portrait / Large Mobile ===== */
@media (max-width: 768px) {

  :root {
    --fs-3xl: 40px;
    --fs-xl:  32px;
    --fs-lg:  26px;
  }

  .container { padding: 0 20px; }

  /* Nav: hide text links, keep logo + phone + CTA */
  .nav-links { display: none; }
  .nav-phone-text { display: none; }
  .nav-inner { height: 68px; }
  .nav-logo-img { height: 42px; }

  /* Hero: single column */
  .hero { padding: 60px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero h1   { font-size: 38px; }
  .hero-sub  { font-size: var(--fs-base); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .hero-card { padding: 32px 28px; }

  /* Sections */
  .section       { padding: 64px 0; }
  .section-title { font-size: 28px; }
  .section-head  { margin-bottom: 44px; }

  /* Trust bar: 2 × 2 */
  .trust-bar { padding: 28px 0; }
  .trust-bar-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item {
    padding: 14px 20px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }
  .trust-item:nth-child(odd)   { border-right: 1px solid rgba(255,255,255,0.12); }
  .trust-item:nth-child(3),
  .trust-item:nth-child(4)     { border-top: none; border-bottom: none; }

  /* Products: single column */
  .products-grid > article { flex: 0 0 100%; }

  /* How it works: stacked with inline layout */
  .how-grid { grid-template-columns: 1fr; gap: 48px; }
  .how-grid::before { display: none; }
  .how-step { display: grid; grid-template-columns: 88px 1fr; gap: 24px; text-align: left; align-items: start; }
  .how-num  { margin: 0; }
  .how-step-title,
  .how-step-text { text-align: left; }

  /* Brands: 2 columns */
  .brands-row { grid-template-columns: repeat(2, 1fr); }

  /* Financing: single column */
  .financing-grid { grid-template-columns: 1fr; }
  .financing-grid > :last-child { max-width: 100%; }

  /* Testimonials: single column */
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonials-grid > :last-child { grid-column: auto; max-width: 100%; margin: 0; }

  /* Final CTA */
  .final-cta { padding: 64px 0; }
  .final-cta-inner { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .final-cta h2 { font-size: 28px; }
  .final-cta-actions { min-width: unset; }
  .btn-white { width: 100%; justify-content: center; }
  .final-cta-phone { font-size: var(--fs-lg); justify-content: center; }

  /* Footer: 2 columns */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }

  /* Sticky call: icon only */
  .sticky-call {
    bottom: 16px; right: 16px;
    padding: 0;
    width: 58px; height: 58px;
    border-radius: 50%;
    justify-content: center;
  }
  .sticky-call-text { display: none; }
}

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

  :root {
    --fs-3xl: 34px;
    --fs-xl:  28px;
  }

  .container { padding: 0 16px; }

  .nav-inner { height: 64px; }
  .nav-logo-img { height: 36px; }

  .hero h1   { font-size: 32px; }
  .hero-sub  { font-size: 18px; }
  .hero-card { padding: 28px 22px; }

  .section-title { font-size: 26px; }

  /* Trust bar: single column */
  .trust-bar-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .trust-item:nth-child(3),
  .trust-item:nth-child(4) { border-top: none; }
  .trust-item:last-child { border-bottom: none; }

  /* How it works: centred column */
  .how-step       { grid-template-columns: 1fr; text-align: center; }
  .how-num        { margin: 0 auto 20px; }
  .how-step-title,
  .how-step-text  { text-align: center; }

  /* Footer: single column */
  .footer-grid  { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }

  .final-cta-phone { font-size: var(--fs-md); }
}
