/* ==========================================================================
   responsive.css — Media queries ONLY
   --------------------------------------------------------------------------
   Role: every viewport adjustment lives here, grouped by Bootstrap 5.3
   breakpoint (descending). The base styles are mobile-first-ish and
   desktop-rich; these queries tune, stack and hide as the viewport shrinks.
   Breakpoints: <1200px (xl) · <992px (lg) · <768px (md) · <576px (sm).
   Bootstrap's navbar collapse is used as-is; we only theme its panel.
   ========================================================================== */

/* ============================ < 1200px (xl) ============================= */

@media (max-width: 1199.98px) {
  .hero-title { font-size: clamp(2.4rem, 5.6vw, 4rem); }
  .hero-phone__ring { width: 20rem; height: 20rem; }
  .hero-phone__ring--outer { width: 25rem; height: 25rem; }
  .service-row { grid-template-columns: 6.5rem 1fr auto; }
  .service-row__media { width: 6.5rem; height: 6.5rem; }
}

/* ============================ < 992px (lg) ============================== */

@media (max-width: 991.98px) {
  /* Header: collapsed panel becomes a floating dark card */
  .site-header .navbar-collapse {
    background: rgba(13, 11, 8, .97);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem 1.25rem 1.5rem;
    margin-top: .9rem;
    box-shadow: var(--shadow-lg);
  }
  .site-header .nav-link { padding: .75rem .5rem !important; }
  .site-header .nav-link::after { left: .5rem; right: auto; width: 2.4rem; }
  .header-cta { margin: 1rem 0 0; width: 100%; }

  /* Hero stacks: copy first, phone hidden on tablet and below */
  .hero { min-height: auto; padding: 6.5rem 0 5rem; }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(42,6,3,.88), rgba(42,6,3,.62) 55%, rgba(42,6,3,.85)),
      linear-gradient(0deg, var(--charcoal) 0%, transparent 18%);
  }
  .hero-copy { max-width: 100%; text-align: center; }
  .hero-kicker { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-ctas, .hero-badges { justify-content: center; }
  .hero-phone, .hero-scroll { display: none; }

  /* Story stacks */
  .story-grid { grid-template-columns: 1fr; }
  .story-media { max-width: 30rem; margin: 0 auto; width: 100%; }

  /* Service rows: media shrinks, side stacks under */
  .service-row { grid-template-columns: 5.5rem 1fr; }
  .service-row__media { width: 5.5rem; height: 5.5rem; }
  .service-row__side {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    border-top: 1px dashed var(--line-soft);
    padding-top: 1rem;
    min-width: 0;
  }

  /* CTA band stacks */
  .cta-band__inner { flex-direction: column; text-align: center; justify-content: center; }
  .cta-band__sub { margin: 0 auto; }

  /* Footer: 2 columns */
  .site-footer .footer-col { margin-bottom: 2rem; }
}

/* ============================ < 768px (md) ============================== */

@media (max-width: 767.98px) {
  .section-pad { padding-top: 3rem; padding-bottom: 3rem; }

  .hero { padding: 5.5rem 0 4rem; }
  .hero-title { font-size: clamp(2.1rem, 9.5vw, 2.9rem); }
  .hero-ctas .btn-gold, .hero-ctas .btn-outline-gold { width: 100%; }

  /* Cards go single column rhythm */
  .service-card, .testimonial-card, .offer-card, .feature-card { margin-bottom: 0; }

  /* Stats: keep 3-up but tighten; stat dividers stay */
  .stat-value { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .stat-label { font-size: .66rem; letter-spacing: .18em; }

  /* Filter pills scroll horizontally */
  .pills {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: .75rem;
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    scrollbar-width: none;
  }
  .pills::-webkit-scrollbar { display: none; }
  .pill { flex: 0 0 auto; }

  /* Service rows become simple stacked cards */
  .service-row { grid-template-columns: 1fr; gap: 1rem; padding: 1.25rem; }
  .service-row__media { width: 100%; height: 11rem; }
  .service-row__side { border-top: 1px dashed var(--line-soft); }

  /* Policy sections: number sits inline */
  .policy-section { padding: 1.4rem 1.25rem; }
  .policy-num { position: static; margin-bottom: 1rem; }

  /* Enquiry modal full-bleed-ish on phones */
  .enquiry-modal .modal-dialog { margin: .75rem; }
  .enquiry-modal .modal-body { padding: 1.25rem; }

  /* App columns stack naturally via grid; tighten padding */
  .app-column { padding: 1.75rem 1.25rem; }

  .heritage-quote { font-size: clamp(1.3rem, 5.4vw, 1.7rem); }

  /* Footer stacks to one column */
  .site-footer__top { padding: 2.5rem 0 1.5rem; }
  .footer-bottom { text-align: center; }
  .footer-bottom a { margin: 0 .6rem; display: inline-block; }
  .footer-bottom .copy { display: block; margin-bottom: .75rem; }
}

/* ============================ < 576px (sm) ============================== */

@media (max-width: 575.98px) {
  body { font-size: .96rem; }

  .brand-name { font-size: 1.15rem; }
  .brand-tag { font-size: .52rem; letter-spacing: .22em; }
  .brand-mark { width: 2.2rem; height: 2.2rem; }

  .page-hero { padding: 3.5rem 0 2.75rem; }
  .page-hero h1 { font-size: clamp(1.8rem, 8.5vw, 2.4rem); }

  .section-title { font-size: clamp(1.65rem, 7.5vw, 2.1rem); }
  .kicker { letter-spacing: .24em; }

  .btn-gold, .btn-outline-gold { padding: .9rem 1.6rem; font-size: .76rem; }

  /* Stats become a vertical stack with dividers rotated */
  .stats-row { grid-template-columns: 1fr; gap: 1.75rem; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line-soft); padding-top: 1.75rem; }

  .t-quote { font-size: 1rem; }

  .offer-card__foot { flex-direction: column; align-items: stretch; }
  .offer-code { text-align: center; }

  .contact-actions .btn-gold, .contact-actions .btn-outline-gold { width: 100%; }

  .map-wrap__label { left: .9rem; bottom: .9rem; font-size: .66rem; }

  .footer-social a { width: 2.4rem; height: 2.4rem; }

  /* Toasts take the full width */
  .toast-container { width: calc(100vw - 2rem); }
}
