/* ==========================================================================
   Responsive - Mobile / Tablet / Laptop
   ========================================================================== */

.row > * {
  min-width: 0;
}

@media (max-width: 1199.98px) {
  .hero-grid { gap: 36px; }
  .hero-headline { max-width: 22ch; }
  .process-track { gap: 16px; }
  .main-nav { gap: 18px; }
  .main-nav a { font-size: 0.9rem; }
}

@media (max-width: 991.98px) {
  :root { --header-h: 72px; }

  .section,
  .hero,
  .page-hero,
  .trust-section,
  .about-section,
  .cta-section,
  .site-footer,
  #main {
    width: 100%;
    max-width: 100%;
  }

  .section { padding: 88px 0; }

  .brand-logo {
    height: 56px;
    max-width: min(150px, 42vw);
  }

  .header-inner {
    gap: 8px;
    justify-content: flex-start;
  }
  .header-actions {
    margin-left: auto;
    gap: 4px;
  }
  .header-search-btn {
    width: 40px;
    height: 40px;
  }
  .nav-toggle {
    margin-left: 0;
    flex-shrink: 0;
  }
  .brand { flex-shrink: 1; min-width: 0; }

  /* Hide “24 x 7 Assistance”; phone left, email right */
  .topbar-left { display: none !important; }
  .topbar-inner {
    justify-content: stretch;
  }
  .site-topbar { overflow: hidden; }
  .topbar-right {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
  }
  .topbar-right > a:first-child {
    justify-content: flex-start;
  }
  .topbar-email {
    justify-content: flex-end;
    min-width: 0;
  }
  .topbar-email-text {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 48vw;
  }

  .hero {
    padding-top: calc(var(--header-h) + var(--topbar-h) + 36px);
    padding-bottom: 64px;
    min-height: auto;
    overflow-x: clip;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-headline { max-width: none; }
  .hero-card { max-width: 480px; }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-meta {
    grid-template-columns: 1fr;
  }

  .about-section .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }

  .about-section p,
  .about-section .section-lead,
  .about-section .section-title,
  .page-hero h1,
  .page-hero-lead {
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  .process-track {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }

  .process-track::before {
    display: none;
  }

  .cta-panel { padding: 36px 28px; }

  .consult-modal {
    padding: 12px;
    align-items: start;
  }

  .consult-modal-dialog {
    max-height: calc(100vh - 24px);
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  body { font-size: 1rem; }

  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Kill Bootstrap row side-bleed that can widen the page */
  .row {
    --bs-gutter-x: 1rem;
    margin-left: 0;
    margin-right: 0;
  }
  .row > * {
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    padding-right: calc(var(--bs-gutter-x) * 0.5);
  }

  .brand-logo {
    height: 48px;
    max-width: min(132px, 38vw);
  }

  .hero-brand { font-size: clamp(2.2rem, 10vw, 3rem); }
  .hero-cta {
    display: grid;
    gap: 12px;
  }
  .hero-cta .btn { width: 100%; }

  .hero-form-split { grid-template-columns: 1fr; }
  .hero-card { padding: 24px 20px; }
  .hero-card-title { font-size: 1.4rem; }

  .trust-grid { gap: 12px; }
  .trust-item { padding: 20px 12px; }
  .trust-item strong { font-size: 1.6rem; }

  .assoc-row {
    flex-direction: column;
    gap: 8px;
  }
  .assoc-row .dot { display: none; }

  .why-item {
    grid-template-columns: 48px 1fr;
    padding: 18px;
  }

  .results-timeline::before { left: 22px; }
  .result-card {
    grid-template-columns: 56px 1fr;
    gap: 14px;
  }
  .result-year {
    width: 44px;
    height: 44px;
    font-size: 0.62rem;
  }
  .result-body { padding: 20px; }

  .process-track { grid-template-columns: 1fr; }
  .process-step {
    text-align: left;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 8px 16px;
    align-items: start;
  }
  .process-node {
    margin: 0;
    grid-column: 1;
    grid-row: 1 / span 2;
  }
  .process-step h3 {
    grid-column: 2;
    margin-bottom: 6px;
  }
  .process-step p {
    grid-column: 2;
    max-width: none;
  }

  .cta-actions {
    display: grid;
    gap: 12px;
  }
  .cta-actions .btn { width: 100%; }
  .consult-form { padding: 24px 20px; }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-legal { justify-content: center; }

  .swiper-nav {
    position: static;
    justify-content: flex-end;
    margin-top: 0;
  }
  .reviews-controls {
    position: static;
    margin-top: 20px;
  }

  /* Floating actions - keep inside viewport */
  .whatsapp-float {
    left: 14px;
    bottom: 18px;
    width: 52px;
    height: 52px;
  }
  .sticky-cta {
    left: 14px;
    right: auto;
    bottom: 78px;
    width: 52px;
    height: 52px;
  }
  .back-to-top {
    right: 14px;
    bottom: 18px;
    width: 44px;
    height: 44px;
  }

  #main {
    padding-bottom: 0;
  }

  .page-hero {
    min-height: 42vh;
    padding-left: 0;
    padding-right: 0;
  }

  .page-hero h1 {
    font-size: clamp(1.85rem, 8vw, 2.4rem);
  }

  .legal-content { padding: 28px 18px; }

  .location-board,
  .loc-detail,
  .loc-detail-alt,
  .related-grid,
  .benefit-grid,
  .credential-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  :root { --topbar-h: 34px; }

  .trust-grid { grid-template-columns: 1fr 1fr; }
  .hero-scroll { display: none; }
  .cta-panel { padding: 28px 18px; border-radius: 22px; }

  .site-topbar { font-size: 0.75rem; }
  .topbar-right { gap: 8px; }
  .topbar-email-text {
    max-width: 42vw;
  }

  .about-badge {
    left: 12px;
    bottom: 12px;
    padding: 10px 12px;
  }
  .about-badge strong { font-size: 1.25rem; }

  .section-title {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
  }

  .consult-modal-aside,
  .consult-modal-main {
    padding: 24px 18px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-bg { transform: none !important; }
}

/* High contrast helpers */
@media (prefers-contrast: more) {
  .btn-gold { border: 2px solid var(--navy); }
  .practice-card,
  .quote-card,
  .why-item { border-width: 2px; }
}
