/* ============================================================
   HEALTH PLUS — RESPONSIVE STYLES
   Mobile-first breakpoints applied globally
   ============================================================ */

/* ── Base (mobile portrait, < 480px) ────────────────────── */
.section {
  padding: clamp(48px, 8vw, 80px) clamp(16px, 5vw, 80px);
}

.section-full {
  padding: clamp(48px, 8vw, 80px) clamp(16px, 5vw, 80px);
}

/* ── Tablet (≥ 768px) ────────────────────────────────────── */
@media (min-width: 768px) {
  .hide-mobile {
    display: block;
  }
  .hide-desktop {
    display: none;
  }
}

/* ── Laptop (≥ 1024px) ───────────────────────────────────── */
@media (min-width: 1024px) {
  .section {
    padding: var(--section-pad-y) var(--section-pad-x);
  }
  .section-full {
    padding: var(--section-pad-y) var(--section-pad-x);
  }
}

/* ── Mobile nav strip ────────────────────────────────────── */
.mobile-nav-strip {
  display: none;
}

.nav-cta-mobile-phone {
  display: none;
}

@media (max-width: 1023px) {
  /* 2-row mobile nav: logo row + links strip */
  #site-nav {
    height: auto;
  }

  #site-nav-inner {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    padding: 0;
  }

  .nav-inner {
    height: 64px;
    padding: 0 clamp(14px, 4vw, 28px);
  }

  /* Hide desktop elements, show phone icon */
  .nav-links,
  .nav-cta-desktop,
  .nav-hamburger {
    display: none;
  }

  .nav-cta-mobile-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-mid);
    color: var(--teal);
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
  }

  .nav-cta-mobile-phone:hover {
    background: var(--teal-light);
    border-color: var(--teal);
  }

  /* Links strip row */
  .mobile-nav-strip {
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    padding: 0 4px;
  }

  .mobile-nav-strip::-webkit-scrollbar {
    display: none;
  }

  .nav-strip-link {
    flex: 1;
    min-width: max-content;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
  }

  .nav-strip-link.active,
  .nav-strip-link:hover {
    color: var(--teal);
    border-bottom-color: var(--teal);
  }

  /* Push page content below the 2-row mobile nav (64px logo + 38px strip) */
  #hero {
    padding-top: calc(64px + 38px + 36px);
  }

  .page-hero {
    padding-top: calc(64px + 38px + 28px);
    min-height: 38vh;
  }
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
  .nav-cta,
  .nav-cta-desktop {
    display: inline-flex;
  }
  .nav-hamburger {
    display: none;
  }
  .mobile-menu,
  .mobile-nav-strip {
    display: none;
  }
}

/* ── Grid utilities ──────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 480px) {
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

/* ── Typography adjustments ──────────────────────────────── */
@media (max-width: 480px) {
  h1 { font-size: clamp(36px, 10vw, 52px); }
  h2 { font-size: clamp(28px, 7vw, 42px); }
  .section-title { font-size: clamp(28px, 7vw, 42px); }
}

/* ── Utilities ───────────────────────────────────────────── */
.text-center { text-align: center; }
.text-left   { text-align: left; }

.mt-sm  { margin-top: 16px; }
.mt-md  { margin-top: 32px; }
.mt-lg  { margin-top: 48px; }
.mb-sm  { margin-bottom: 16px; }
.mb-md  { margin-bottom: 32px; }
.mb-lg  { margin-bottom: 48px; }

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

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Mobile spacing tweaks ───────────────────────────────── */
@media (max-width: 767px) {
  .btn {
    padding: 12px 24px;
    font-size: 11px;
    min-height: 44px;
  }
  .stat-number {
    font-size: clamp(36px, 8vw, 56px);
  }
  .section-subtitle {
    margin-bottom: 32px;
  }
  .pull-quote {
    font-size: 16px;
  }

  /* Bold professional phone number on all mobile displays */
  .contact-phone-anim,
  .location-phone,
  .footer-phone,
  .mobile-phone {
    font-weight: 700;
  }

  /* Nav inner gap tighter on mobile */
  .nav-inner {
    gap: 0;
  }
  .nav-logo-img {
    width: 36px;
    height: 36px;
  }
  .nav-logo-name {
    font-size: 13px;
    letter-spacing: 0.09em;
  }
}

/* ── Safe area bottom padding ────────────────────────────── */
.safe-bottom {
  padding-bottom: env(safe-area-inset-bottom);
}

/* ── Mobile body padding for fixed float bar ─────────────── */
@media (max-width: 767px) {
  body {
    padding-bottom: calc(52px + env(safe-area-inset-bottom));
  }

  /* Hero layout fixes */
  #hero {
    padding-left: clamp(16px, 5vw, 40px);
    padding-right: clamp(16px, 5vw, 40px);
  }

  .hero-stats {
    gap: 16px;
  }

  .hero-stat-sep {
    height: 28px;
  }

  /* Nav logo: hide subtitle on tight screens */
  .nav-logo-sub {
    display: none;
  }

  /* Page hero — account for 2-row mobile nav (64px logo + 38px strip) */
  .page-hero {
    min-height: 38vh;
    padding-top: calc(64px + 38px + 28px);
  }

  /* Footer bottom safe area */
  .footer-bottom {
    padding-bottom: 24px;
  }

  /* Hours list alignment */
  .hours-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  /* Location phone */
  .location-phone {
    font-size: clamp(24px, 8vw, 40px);
  }

  /* Gallery filter wrapping */
  .gallery-filter {
    gap: 6px;
  }
  .gallery-tab {
    padding: 8px 14px;
    font-size: 10px;
  }

  /* Contact grid gap */
  .contact-grid {
    gap: 40px;
  }

  /* Map wrap */
  .map-wrap {
    aspect-ratio: 4/3;
  }
}

/* ── Small phone fixes (< 380px) ────────────────────────── */
@media (max-width: 380px) {
  .hero-headline {
    font-size: clamp(36px, 11vw, 52px);
  }

  .hero-stats {
    gap: 12px;
  }

  .hero-stat-num {
    font-size: clamp(22px, 7vw, 32px);
  }

  .nav-logo-name {
    font-size: 12px;
    letter-spacing: 0.08em;
  }

  .btn {
    padding: 10px 18px;
    font-size: 10px;
  }
}

/* ── Stat strip mobile ───────────────────────────────────── */
@media (max-width: 767px) {
  .stat-strip-inner {
    gap: 0;
  }

  .stat-strip-item {
    padding: 20px 12px;
    flex: 1;
  }

  .stat-strip-sep {
    height: 28px;
  }
}

/* ── Photo strip mobile ──────────────────────────────────── */
@media (max-width: 767px) {
  #photo-strip {
    height: 160px;
  }

  .photo-strip-img {
    width: 220px;
    height: 160px;
  }
}
