/* ── RESPONSIVE — all breakpoints ── */

@media (max-width: 1024px) {
  .reviews-cards-track    { grid-template-columns: 1fr 1fr; }
  .footer-grid            { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 900px) {
  .site-nav               { gap: 18px; }
  .site-nav > a,
  .site-nav .nav-drop-trigger { font-size: 13px; }
}

@media (max-width: 768px) {
  :root { --pad-x: 20px; }

  /* Header */
  .top-bar                { display: none; }
  .site-nav               { display: none; }
  .hdr-phone              { display: none; }
  .nav-hamburger          { display: flex; }

  /* Hero */
  .hero                   { min-height: 400px; }
  .hero-inner             { padding: 48px 0; }
  .hero h1                { font-size: 26px; }
  .hero-ctas              { flex-direction: column; }
  .hero-cta-primary,
  .hero-cta-secondary     { width: 100%; justify-content: center; }
  .page-hero              { padding: 32px 0; }
  .page-hero-inner        { grid-template-columns: 1fr; gap: 28px; }
  .page-hero-left         { order: 2; }
  .page-action-card       { order: 1; }
  .pac-phone              { font-size: 22px; }

  /* Sections */
  .section                { padding: 48px var(--pad-x); }
  .why-grid               { grid-template-columns: 1fr; gap: 32px; }
  .services-grid          { grid-template-columns: 1fr 1fr; }
  .blog-index-grid        { grid-template-columns: 1fr 1fr; }
  .doctors-grid           { grid-template-columns: 1fr 1fr; }
  .cp-section             { padding: 32px var(--pad-x); }
  .cp-grid                { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cp-benefits-grid       { gap: 0; }
  .cp-benefit-card        { border-right: 0; border-bottom: 1px solid var(--border); padding: 22px 18px; }
  .cp-benefit-card:nth-last-child(-n+2) { border-bottom: 0; }
  .stats-grid             { grid-template-columns: 1fr; }
  .reviews-layout         { grid-template-columns: 1fr; }
  .reviews-aggregate      { position: static; }
  .reviews-cards-track    { grid-template-columns: 1fr; }
  .building-strip         { height: 180px; }
  .features-grid          { grid-template-columns: 1fr; }
  .feature-card           { border-right: none; border-bottom: 1px solid var(--border); padding: 22px 16px; }
  .feature-card:last-child { border-bottom: none; }

  /* Why choose section */
  .why-grid               { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid            { grid-template-columns: 1fr; gap: 24px; }
  .footer-bar             { flex-direction: column; text-align: center; }
  .site-footer            { padding: 40px var(--pad-x) 24px; }

  /* Page banner */
  .page-banner            { padding: 36px 0; }
  .page-banner h1         { font-size: clamp(30px, 8vw, 38px); line-height: 1.08; }
  .page-banner-sub        { font-size: 16px; }
  .page-banner-ctas       { flex-direction: column; gap: 12px; }
  .pb-btn-call,
  .pb-btn-checkin,
  .pb-btn-dir             { width: 100%; }
  .page-banner-location-note {
    width: 100%;
    min-height: 0;
    padding: 13px 12px;
    font-size: 14.5px;
    line-height: 1.4;
  }
  .page-banner-location-note::after {
    margin-left: auto;
    padding: 4px 9px;
    font-size: 11px;
  }

  /* Content grid (service pages) */
  .content-grid           { grid-template-columns: 1fr; }
  .sidebar-card           { position: static; }
  .page-content           { padding: 40px var(--pad-x); }
  .contact-grid           { grid-template-columns: 1fr; gap: 36px; }
  .contact-form-col       { padding: 24px; }
  .contact-info-block     { padding: 24px; }

  /* Mobile sticky */
  .mobile-sticky          { display: flex; }
  body                    { padding-bottom: 70px; }

  /* Form */
  .form-row-half          { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .info-grid              { grid-template-columns: 1fr; }
  .page-slug-news-segments { padding: 42px var(--pad-x) 56px; }
  .page-slug-news-segments .covid .row { grid-template-columns: 1fr; gap: 20px; margin-bottom: 20px; }
  .page-slug-news-segments .covid [class*="col-"] { padding: 14px; }
  .page-slug-news-segments .covid-ii h2 { min-height: 0; font-size: 20px; }
  .page-slug-news-segments .covid-ii img { max-height: 58px; }
}

@media (max-width: 480px) {
  .services-grid          { grid-template-columns: 1fr; }
  .blog-index-grid        { grid-template-columns: 1fr; }
  .doctors-grid           { grid-template-columns: 1fr; }
  .hero h1                { font-size: 22px; }
  .cp-grid                { grid-template-columns: 1fr; }
  .cp-benefit-card:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .cp-benefit-card:last-child { border-bottom: 0; }
  .band-247 h2            { font-size: 20px; }
  .footer-grid            { grid-template-columns: 1fr; }
  .form-card              { padding: 22px; }
}

/* Final mobile reference overrides loaded after the base header/global files. */
@media (max-width: 768px) {
  .site-header,
  .site-header-inner {
    height: 67px;
    min-height: 67px;
  }

  .site-header-inner {
    gap: 12px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .site-logo img {
    max-width: 178px;
    height: 48px;
  }

  .header-ctas {
    display: flex;
    gap: 12px;
    margin-left: auto;
  }

  .header-ctas .btn-solid {
    display: none;
  }

  .hdr-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 9px;
    background: #fdecee;
    color: transparent;
    font-size: 0;
    overflow: hidden;
  }

  .hdr-phone svg {
    width: 18px;
    height: 18px;
    color: var(--red);
    stroke: var(--red);
  }

  .nav-hamburger {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 56px;
    height: 56px;
    padding: 17px 14px;
    border: 1px solid var(--border);
    border-radius: 0 0 0 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
  }

  .nav-hamburger span {
    width: 28px;
    height: 3px;
    background: #555;
  }

  .page-banner {
    padding: 30px 0 34px;
  }

  .page-banner-inner {
    padding-right: 22px;
    padding-left: 22px;
  }

  .page-banner h1 {
    font-family: "Montserrat", var(--font-sans);
    font-size: 34px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .page-banner-ctas {
    display: flex;
    flex-direction: column;
    gap: 11px;
  }

  .pb-btn-call,
  .pb-btn-checkin,
  .pb-btn-dir {
    justify-content: center;
    width: 100%;
    border-radius: 9px;
    padding: 16px;
  }
}

/* Mobile header controls: reuse existing phone link and menu controls. */
@media (max-width: 768px) {
  .site-header,
  .site-header-inner {
    height: 68px;
    min-height: 68px;
  }

  .site-header-inner {
    gap: 6px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .site-logo {
    min-width: 0;
  }

  .site-logo img {
    max-width: clamp(104px, 32vw, 150px);
    height: 46px;
  }

  .header-ctas {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    min-width: 0;
  }

  .hdr-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: auto;
    height: 38px;
    padding: 0 2px;
    border-radius: 0;
    background: transparent;
    color: var(--dark);
    font-size: clamp(12px, 3.25vw, 14px);
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    overflow: visible;
  }

  .hdr-phone svg {
    width: 14px;
    height: 14px;
    color: var(--blue-icon);
    stroke: var(--blue-icon);
    flex: 0 0 auto;
  }

  .nav-hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 11px 9px;
    border: 1px solid #e1e4e8;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(17, 24, 39, .14);
  }

  .nav-hamburger span,
  .nav-hamburger.open span:nth-child(1),
  .nav-hamburger.open span:nth-child(2),
  .nav-hamburger.open span:nth-child(3) {
    display: block !important;
    width: 22px !important;
    height: 2px !important;
    border-radius: 2px;
    background: #555 !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .mobile-nav {
    top: 68px;
    max-height: calc(100vh - 68px);
  }

  .mobile-nav-header {
    display: flex;
    padding: 12px 0 18px;
    border-bottom: 1px solid var(--border);
  }

  .mobile-nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    margin-left: auto;
    border-radius: 8px;
    background: #202226;
    color: #fff;
    font-size: 34px;
    line-height: 1;
  }
}
