/* ==========================================================================
   DentalPracticesSale.com — Responsive Breakpoint Rules
   Target Viewports: 375px, 390px, 430px, 768px, 1024px, 1440px, 1920px
   ========================================================================== */

/* --- 1440px+ (Large Displays) --- */
@media (min-width: 1440px) {
  :root {
    --container-max: 1380px;
  }

  .hero-home {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
}

/* --- 1920px+ (Ultra-Wide Displays) --- */
@media (min-width: 1920px) {
  :root {
    --container-max: 1520px;
  }
}

/* --- 1024px and below (Laptops & Large Tablets) --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual-frame {
    max-width: 680px;
    margin: 0 auto;
  }

  .split-card-grid {
    grid-template-columns: 1fr;
  }

  .advisor-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .advisor-portrait-box {
    max-width: 600px;
    margin: 0 auto;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .listing-detail-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .sticky-inquiry-card {
    position: static;
  }
}

/* --- 768px and below (Tablets & Large Phones) --- */
@media (max-width: 768px) {
  :root {
    --container-padding: 1.25rem;
  }

  /* Show Mobile Header Elements */
  .top-bar {
    display: none; /* Hide top utility strip on mobile to conserve vertical space */
  }

  .nav-desktop {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Show persistent bottom mobile action bar */
  .mobile-action-bar {
    display: block;
  }

  body {
    padding-bottom: 60px; /* Room for persistent mobile action bar */
  }

  .header-inner {
    height: 70px;
  }

  .hero-home {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

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

  .hero-phone-callout {
    width: 100%;
    justify-content: center;
  }

  .trust-strip-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-legal-links {
    flex-direction: column;
    gap: 0.75rem;
  }

  .differentiator-synthesis {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .filter-group {
    overflow-x: auto;
    padding-bottom: 0.5rem;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .filter-btn {
    flex-shrink: 0;
  }

  .filter-select {
    width: 100%;
  }

  .personal-note-card {
    padding: 1.75rem 1.5rem 1.5rem;
    margin: 1.75rem 0;
  }

  .personal-note-message {
    font-size: 1.55rem;
    line-height: 1.45;
  }

  .personal-note-thankyou {
    font-size: 2.45rem;
  }

  .signature-name-script {
    font-size: 3rem;
  }

  .advisor-avatar-circle {
    width: 210px;
    height: 210px;
  }
}

/* --- 430px and below (Standard Modern Phones) --- */
@media (max-width: 430px) {
  :root {
    --container-padding: 1rem;
  }

  .brand-name {
    font-size: 1.25rem;
  }

  .brand-tagline {
    font-size: 0.625rem;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-visual-frame {
    padding: 1.5rem 1.25rem;
  }

  .split-card {
    padding: 1.75rem 1.25rem;
  }

  .advisor-portrait-box {
    padding: 2rem 1.25rem;
  }

  .personal-note-card {
    padding: 1.35rem 1.15rem 1.25rem;
  }

  .personal-note-message {
    font-size: 1.35rem;
    line-height: 1.4;
  }

  .personal-note-thankyou {
    font-size: 2.1rem;
    margin: 0 0.2rem;
  }

  .signature-name-script {
    font-size: 2.65rem;
  }

  .advisor-avatar-circle {
    width: 180px;
    height: 180px;
  }

  .snapshot-advisor-header {
    gap: 1rem;
  }

  .snapshot-avatar-ring {
    width: 64px;
    height: 64px;
  }

  .contact-advisor-card {
    padding: 1rem;
    gap: 1rem;
  }

  .contact-avatar-ring {
    width: 62px;
    height: 62px;
  }

  .advisor-full-name {
    font-size: 2rem;
  }

  .cred-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .listing-card-specs {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }
}

/* --- 375px and below (Compact Mobile / iPhone SE) --- */
@media (max-width: 375px) {
  .hero-title {
    font-size: 2rem;
  }

  .btn {
    padding: 0.8rem 1.2rem;
    font-size: 0.875rem;
  }

  .mobile-action-item {
    font-size: 0.6rem;
  }

  .mobile-action-item svg {
    width: 18px;
    height: 18px;
  }
}
