/* ==========================================================================
   Mobile refinements (loaded last, after all theme and page CSS).
   Phones and tablets only; desktop (1024px+) is unchanged except where noted.
   ========================================================================== */

.top-bar__short { display: none; }

/* Nothing may push the page wider than the screen (the testimonial carousel did, at every width). */
#primary { overflow-x: clip; }

/* ---------- Sticky Call + Directions bar ---------- */
.revme-mobile-bar { display: none; }

@media (max-width: 1023px) {
	.revme-mobile-bar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
		display: flex; gap: 8px;
		padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
		background: var(--revme-navy);
		box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.18);
	}
	.revme-mobile-bar a {
		display: flex; align-items: center; justify-content: center; gap: 8px;
		min-height: 52px; border-radius: 10px; text-decoration: none;
		font-family: var(--revme-font-heading); font-weight: 700;
		-webkit-tap-highlight-color: transparent;
	}
	.revme-mobile-bar__call { flex: 1 1 auto; background: var(--revme-gold); color: var(--revme-navy); padding: 6px 12px; }
	.revme-mobile-bar__call:hover, .revme-mobile-bar__call:focus { color: var(--revme-navy); }
	.revme-mobile-bar__text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
	.revme-mobile-bar__label { font-size: 1.0625rem; }
	.revme-mobile-bar__sub { font-size: 0.8125rem; font-weight: 600; opacity: 0.85; }
	.revme-mobile-bar--after-hours .revme-mobile-bar__sub { font-size: 0.75rem; }
	.revme-mobile-bar__dir {
		flex: 0 0 auto; padding: 6px 14px; font-size: 0.9375rem;
		color: var(--revme-white); border: 1.5px solid rgba(255, 255, 255, 0.55);
	}
	.revme-mobile-bar__dir:hover, .revme-mobile-bar__dir:focus { color: var(--revme-white); border-color: var(--revme-white); }
	.revme-mobile-bar a:focus-visible { outline: 3px solid var(--revme-sky-blue); outline-offset: 2px; }

	@media (min-width: 600px) {
		.revme-mobile-bar { justify-content: center; }
		.revme-mobile-bar__call { flex: 0 1 380px; }
	}

	/* Room so the bar never covers the end of the page. */
	body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }

	/* Floating buttons sit above the bar. */
	#revme-back-to-top, #revme-back-to-top.revme-btt-above-bar { bottom: calc(84px + env(safe-area-inset-bottom)); }
	.revme-fax-float { bottom: calc(84px + env(safe-area-inset-bottom)); right: auto; left: 12px; }

	/* Hide the bar while the mobile menu is open (the menu has its own call button). */
	body.mobile-menu-is-open .revme-mobile-bar { display: none; }
}

/* ---------- Header: compact, and the main bar stays pinned while scrolling ---------- */
@media (max-width: 1279px) {
	.site-header { position: sticky; top: -34px; z-index: 1000; }
	.site-header__top-bar { height: 34px; padding: 0; display: flex; align-items: center; font-size: 0.9375rem; }
	.top-bar__full { display: none; }
	.top-bar__short { display: inline; }
	.site-header__main { position: relative; }
	.site-header__inner { min-height: 64px; }
	.site-branding img, .site-branding__logo { max-height: 40px; }
}

/* ---------- Phones ---------- */
@media (max-width: 767px) {
	.revme-video-carousel { margin-inline: 0; padding-inline: 0; }

	/* Base readability */
	.site-main p, .site-main li { font-size: max(1em, 15px); }

	/* Section rhythm: less dead space between sections */
	.revme-section { padding: 2.25rem 0; }
	.revme-section__header { margin-bottom: 1.25rem; }

	/* "Do any of these sound familiar?" cards: tighter */
	.revme-symptom-grid { gap: 10px; margin-top: 1.25rem; }
	.revme-symptom-card { padding: 14px 16px 12px; }
	.revme-symptom-card__sub { margin-bottom: 6px; }

	/* Condition link lists: two columns instead of one long column */
	.revme-conditions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.revme-condition-link { padding: 12px; font-size: 0.875rem; line-height: 1.3; display: flex; align-items: center; min-height: 52px; }

	/* "Why choose" value cards: icon beside text, compact */
	.revme-value-card { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; text-align: left; padding: 16px; }
	.revme-value-card__icon { grid-row: span 2; margin: 0; }
	.revme-value-card__icon svg { width: 36px; height: 36px; }
	.revme-value-card__title { margin-bottom: 4px; font-size: 1.0625rem; }

	/* Service area cities: two columns */
	.revme-service-area-section { padding: 2.5rem 0; }
	.revme-service-area-header { margin-bottom: 1.5rem; }
	.revme-service-area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
	.revme-service-area-card { padding: 14px; }
	.revme-service-area-card__city { font-size: 1.0625rem; }
	.revme-service-area-card__distance { margin-bottom: 6px; }
	.revme-service-area-card__link { font-size: 0.8125rem; }

	/* Condition pages: related conditions as compact rows */
	.revme-conditions-related-grid { gap: 10px !important; }
	.revme-condition-card { padding: 14px 16px !important; }
	.revme-condition-card h3 { font-size: 1.0625rem; margin-bottom: 4px; }
	.revme-condition-card p { font-size: 0.875rem; line-height: 1.5; }

	/* Bigger tap targets for inline contact links */
	.site-main p > a[href^="tel:"]:not([class]), .site-main p > a[href^="mailto:"]:not([class]) { display: inline-block; padding: 8px 0; }
	.site-main .revme-phone-cta-btn, .site-main .revme-btn { min-height: 48px; }

	/* HBOT page indication cards: compact, description trimmed to 3 lines (full text is on each condition page) */
	.revme-indication-list { gap: 10px !important; }
	.revme-indication-detail { padding: 14px 16px !important; }
	.revme-indication-detail h3 { font-size: 1.0625rem; margin-bottom: 4px; }
	.revme-indication-detail p {
		font-size: 0.9375rem !important; line-height: 1.5; margin-bottom: 4px;
		display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
	}
	.revme-indication-detail__link { display: inline-block; padding: 6px 0; }

	/* Numbered steps: number beside the text instead of stacked and centered */
	.revme-steps { gap: 12px; }
	.revme-step { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; text-align: left; padding: 8px 0; }
	.revme-step__number { grid-row: span 2; width: 44px; height: 44px; font-size: 1.125rem; margin: 0; }
	.revme-step__title { margin-bottom: 4px; }
}
