/* =========================================================
   Hisparadise Therapy — Responsive Rules
   Mobile is the default in style.css; this file adds
   behavior for small screens (nav drawer) and scales
   things up for tablet (>=640px) and desktop (>=1024px).
   ========================================================= */

/* ---------- Mobile nav drawer (below 900px) ---------- */
@media (max-width: 899px) {
  .nav-toggle { display: flex; }

  .primary-nav {
    position: fixed;
    inset: var(--header-height) 0 0 0;
    top: calc(var(--header-height) + env(safe-area-inset-top, 0px));
    background: #fff;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    overflow-y: auto;
    z-index: 400;
    border-top: 1px solid var(--border-color);
  }
  .primary-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .primary-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 24px;
  }
  .primary-nav li { border-bottom: 1px solid var(--border-color); }
  .primary-nav a { display: block; padding: 16px 4px; font-size: 1.05rem; }

  .header-actions .btn-cta { padding: 9px 12px; font-size: 0.8rem; }
}

/* ---------- Small phones ---------- */
@media (max-width: 480px) {
  .brand-tagline { display: none; }
}

@media (max-width: 400px) {
  .brand-logo { height: 32px; }
  .header-actions { gap: 8px; }
  .header-actions .btn-cta { padding: 8px 10px; font-size: 0.75rem; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 1.6rem; }
}

/* ---------- Tablet and up (>=640px) ---------- */
@media (min-width: 640px) {
  h1 { font-size: 2.4rem; }
  .hero h1 { font-size: 2.5rem; }
  h2 { font-size: 1.9rem; }

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

  .state-grid, .city-grid, .service-grid, .article-grid, .resource-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top { grid-template-columns: 1.2fr 2fr; }
  .footer-links { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Desktop (>=1024px) ---------- */
@media (min-width: 1024px) {
  .hero-inner { flex-direction: row; text-align: center; align-items: center; }
  .hero-inner .hero-copy { flex: 1 1 50%; }
  .hero-inner .hero-media { flex: 1 1 50%; max-width: 50%; }
  .hero-ctas { justify-content: center; }

  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }

  .state-grid, .city-grid { grid-template-columns: repeat(3, 1fr); }
  .service-grid { grid-template-columns: repeat(4, 1fr); }
  .article-grid, .resource-grid { grid-template-columns: repeat(3, 1fr); }

  .two-col { grid-template-columns: 1.1fr 0.9fr; }
  .two-col.reverse { grid-template-columns: 0.9fr 1.1fr; }

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

/* ---------- Large desktop ---------- */
@media (min-width: 1280px) {
  :root { --header-height: 84px; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .nav-toggle, .cta-band { display: none; }
}
