/* Projectwaala — site-wide mobile fixes (Elementor + Inteshape theme) */

/* Stop sideways scrolling without breaking sticky headers (overflow:hidden breaks position:sticky) */
html:root, html body { overflow-x: clip !important; }

/* Maps & videos: the old Additional CSS forced iframe height:auto, which squashes them to 150px */
html body iframe[src*="google.com/maps"], html body iframe[src*="maps.google"] { height: 380px !important; width: 100% !important; }
html body iframe[src*="youtube"], html body iframe[src*="youtu.be"], html body iframe[src*="vimeo"] { width: 100% !important; height: auto !important; aspect-ratio: 16 / 9; }

/* Long words and URLs never push the page wider than the phone — but whole words stay whole */
.elementor-widget-heading .elementor-heading-title, .elementor-widget-text-editor, .entry-content { overflow-wrap: break-word; word-break: normal; }

/* Buttons always keep their label on one line (fixes "ENQUI / RE") */
html body button, html body .button, html body .btn, html body [class*="-btn"], html body [class*="btn-"],
html body .elementor-button, html body .btn-enquire, html body .pw-enquire-btn, html body .btn-wa-action, html body .pw-row-actionlink,
html body input[type="submit"], html body input[type="button"] {
	overflow-wrap: normal !important; word-break: keep-all !important; hyphens: none !important;
}
html body .btn-enquire, html body .pw-enquire-btn, html body .btn-wa-action, html body .pw-row-actionlink,
html body [class*="enquir" i], html body [class*="inquir" i], html body [class*="enqu" i] button,
html body td button, html body td a.button, html body td [class*="btn"], html body td [class*="Btn"],
html body th button {
	white-space: nowrap !important; overflow-wrap: normal !important; word-break: keep-all !important;
	min-width: max-content; text-align: center;
}
/* Requirement pills (All Basics, Synopsis, Report, PPT, Model Image, Fab Kit) stay readable */
html body td label, html body td [class*="chip"], html body td [class*="pill"], html body td [class*="option"] {
	overflow-wrap: normal !important; word-break: keep-all !important;
}

@media (max-width: 767px) {
	/* Readable, consistent heading sizes */
	html body .elementor-widget-heading h1.elementor-heading-title { font-size: clamp(26px, 7.2vw, 34px) !important; line-height: 1.2 !important; }
	html body .elementor-widget-heading h2.elementor-heading-title { font-size: clamp(22px, 6.2vw, 28px) !important; line-height: 1.25 !important; }
	html body .elementor-widget-heading h3.elementor-heading-title { font-size: clamp(19px, 5.4vw, 23px) !important; line-height: 1.3 !important; }
	html body .elementor-widget-text-editor, html body .elementor-widget-text-editor p { font-size: 16px; line-height: 1.65; }

	/* Breathing room at the edges, without huge desktop paddings */
	html body .elementor-section.elementor-section-boxed > .elementor-container { padding-left: 14px; padding-right: 14px; }
	html body .e-con.e-parent { --padding-left: 14px; --padding-right: 14px; }

	/* Tables scroll inside themselves instead of breaking the layout */
	html body .elementor-widget-text-editor table, html body .entry-content table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

	/* Comfortable tap targets */
	html body .elementor-button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; }
	html body .elementor-widget-button.elementor-align-justify .elementor-button, html body .elementor-mobile-align-justify .elementor-button { width: 100%; }

	/* Inputs at 16px stop iPhones from zooming in on focus */
	html body input[type="text"], html body input[type="email"], html body input[type="tel"], html body input[type="number"], html body select, html body textarea { font-size: 16px !important; }

	/* Images keep their proportions */
	html body .elementor-widget-image img { height: auto; }

	/* Page title banners from the theme take less of the first screen */
	html body .page-title-area, html body .breadcrumb-area, html body .inner-page-banner, html body .page-header { padding-top: 40px !important; padding-bottom: 40px !important; }
}
