/* ==========================================================================
   Harsh Hospitals — Responsive layer (mobile-first).
   Base styles in style.css target mobile. These media queries scale up.
   ========================================================================== */

/* ---------- Mobile-only: sticky CTA bar ---------- */
@media (max-width: 767px) {
	.hh-mobile-cta-bar {
		display: grid;
		grid-template-columns: 1fr 1fr 1fr;
		position: fixed; bottom: 0; left: 0; right: 0;
		background: #fff; box-shadow: 0 -2px 12px rgba(42,19,32,.12);
		z-index: 9999;
	}
	.hh-mcb-item {
		padding: 10px 4px; text-align: center; font-size: 12px;
		text-decoration: none; color: var(--hh-text-dark);
		border-right: 1px solid rgba(42,19,32,.08);
		display: flex; flex-direction: column; align-items: center; justify-content: center;
		min-height: 56px; font-weight: 600;
	}
	.hh-mcb-item span { display: block; font-size: 20px; margin-bottom: 2px; }
	.hh-mcb-wa { background: var(--hh-whatsapp); color: #fff; border-right-color: rgba(255,255,255,.25); }
	.hh-mcb-book { background: var(--hh-primary); color: #fff; border-right: none; }
	body { padding-bottom: 60px; }

	/* The bottom bar already covers Call + WhatsApp, so hide the side floats. */
	.hh-floats { display: none; }
	.hh-to-top { bottom: 74px; right: 12px; }
}

/* ---------- Small (>=480px) ---------- */
@media (min-width: 480px) {
	.hh-form-grid { grid-template-columns: 1fr 1fr; }
	.hh-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Tablet (>=640px) ---------- */
@media (min-width: 640px) {
	.hh-container, .container { padding-inline: 28px; }
	.hh-header-call { display: inline-flex; }
	h1 { font-size: 2.3rem; }
	.hh-hero h1 { font-size: 2.9rem; }
	.hh-cta-banner h3 { font-size: 1.8rem; }
	.hh-newsletter-inner { grid-template-columns: 1.2fr 1fr; }
	.hh-cats-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Tablet landscape (>=768px) ---------- */
@media (min-width: 768px) {
	.hh-row { grid-template-columns: 1fr 1fr; }
	.hh-row .hh-col-7 { grid-column: auto; }
	/* 7/5 and 8/4 splits */
	.hh-row:has(.hh-col-7) { grid-template-columns: 7fr 5fr; }
	.hh-row:has(.hh-col-8) { grid-template-columns: 8fr 4fr; }
	.hh-row:has(.hh-col-6) { grid-template-columns: 1fr 1fr; }

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

	.hh-conditions-grid { grid-template-columns: repeat(3, 1fr); }
	.hh-why-grid { grid-template-columns: repeat(3, 1fr); }
	.hh-blog-grid { grid-template-columns: repeat(3, 1fr); }
	.hh-testi-track { grid-template-columns: repeat(3, 1fr); }
	.hh-stats .container { grid-template-columns: repeat(4, 1fr); }
	.hh-doctor { grid-template-columns: 5fr 7fr; }
	.hh-appoint-grid { grid-template-columns: 1fr 1fr; }
	.hh-cats-grid { grid-template-columns: repeat(5, 1fr); }

	.hh-section { padding: 56px 0; }
	.hh-home-section { padding: 70px 0; }
	h1 { font-size: 2.7rem; }
	h2 { font-size: 2rem; }
	.hh-section-title { font-size: 2rem; }
	.hh-home-section h2 { font-size: 2.2rem; }
	.hh-page-banner h1 { font-size: 2.6rem; }
}

/* ---------- Desktop (>=960px) ----------
   Lowered from 1024px so the full desktop layout (top nav + 2-column hero)
   also appears on laptops running Windows display scaling at 150–175%,
   where the effective CSS width is often just under 1024px. */
@media (min-width: 960px) {
	.hh-nav { display: flex; }
	.hh-menu-toggle { display: none; }
	.hh-header-book { display: inline-flex; }

	.hh-hero .container { padding-block: 72px; }
	.hh-hero-grid { grid-template-columns: 1fr 1fr; }
	.hh-hero h1 { font-size: 3.4rem; }
	.hh-hero p { font-size: 1.18rem; }

	.hh-page-grid { grid-template-columns: minmax(0,1fr) 330px; gap: 44px; }
	.hh-doctor { gap: 48px; }

	.hh-footer-main {
		grid-template-columns: 1.7fr 1fr 1.2fr 1.6fr;
		gap: 44px;
	}
	.hh-footer-bottom .container { flex-direction: row; justify-content: space-between; }

	.hh-bg-cream, .hh-bg-pink, .hh-bg-teal { padding: 52px 44px; }
}

/* ---------- Large (>=1280px) ---------- */
@media (min-width: 1280px) {
	:root { --hh-container: 1200px; }
	.hh-hero h1 { font-size: 3.8rem; }
}

/* ---------- Print ---------- */
@media print {
	.hh-floats, .hh-mobile-cta-bar, .hh-to-top, .hh-announce, .hh-header, .hh-newsletter { display: none !important; }
}
