/* ==========================================================================
   Open Spaces Sanctuary — Responsive
   ========================================================================== */

@media (max-width: 1024px) {
	.oss-feature-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
	.oss-card-grid { grid-template-columns: repeat(2, 1fr); }
	.oss-values-grid { grid-template-columns: repeat(2, 1fr); }
	.oss-footer__grid { grid-template-columns: 1fr 1fr; }
	.oss-contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
	.oss-header__nav { display: none; }
	.oss-menu-toggle { display: inline-flex; }
	.oss-mobile-panel,
	.oss-mobile-overlay { display: block; }

	.oss-split,
	.oss-split:not(.elementor-section),
	.oss-split--reverse .oss-split__media { grid-template-columns: 1fr; }
	.oss-split--reverse .oss-split__media { order: 0; }

	/* Homepage hero (Elementor): the second column (elementor-element-c523c1a)
	   is an empty spacer that only makes sense reserving space next to the
	   wide background photo on desktop — below 900px it just steals width
	   from the text column, so drop it and let the text column go full width.
	   Targets Elementor's auto-generated element-id classes directly since
	   this content lives in the page builder, not theme markup. */
	.elementor-element-c523c1a { display: none !important; }
	.elementor-element-d4c55c6 { width: 100% !important; }
}

@media (max-width: 768px) {
	:root { --oss-section-space: clamp(2.5rem, 8vw, 4rem); }
	.oss-hero { min-height: 80vh; }
	.oss-hero--page { min-height: 38vh; }
	.oss-feature-grid { grid-template-columns: 1fr; gap: 2.25rem; }
	.oss-card-grid { grid-template-columns: 1fr; }
	.oss-values-grid { grid-template-columns: 1fr; }
	.oss-who-grid { grid-template-columns: 1fr; gap: 0.85rem; }
	.oss-footer__grid { grid-template-columns: 1fr; gap: 2rem; text-align: left; }
	.oss-footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
	.oss-hero__actions,
	.oss-hero__btn-row { flex-direction: column; align-items: stretch; }
	.oss-hero__actions .oss-btn,
	.oss-hero__btn-row .oss-btn { width: 100%; justify-content: center; }
	.oss-hero__badge { display: none; }
}

@media (max-width: 480px) {
	.oss-header__brand img { max-height: 48px; }
}

@media (max-width: 600px) {
	/* Homepage hero H1 (Elementor widget elementor-element-15f87f8) carries
	   a fixed 60px desktop font-size with no responsive variant set in the
	   builder — left alone it overflows/wraps badly on phones. Fall back to
	   the theme's own fluid .oss-hero h1 scale below 600px. */
	.elementor-element-15f87f8.elementor-widget-heading .elementor-heading-title {
		font-size: clamp(1.9rem, 9vw, 2.6rem) !important;
		line-height: 1.2 !important;
	}
}
