/*
 * SWS Core 0.4.2 - phones (767px and narrower), every page: Home, Book, Prepare, About Mediumship, Private Readings, Spirit Speaks, Terms, Contact.
 * Loaded last, only while the new look is active, and only by phones (media attribute on the link tag).
 *  1. Text sizes are NOT changed on phones (the 0.4.1 sizes apply); the hamburger menu keeps its normal size.
 *  2. Every box is full width of the screen in ONE column, with a 12px margin each side so the parallax photo shows at the edges.
 *  3. The dark glass is a bit more transparent (alpha .50, was .62).
 *  4. Home: the three service boxes stack; the bio photo runs edge to edge with the text below it.
 * Rules use !important only where Elementor's own saved sizes and widths have to be overridden.
 */
@media (max-width: 767px) {

	/* ------------------------------------------------------------ glass: a bit more see-through */
	html body.sws-on {
		--sws-glass-dark: rgba(70, 34, 140, 0.50);
		--sws-glass-light: rgba(228, 214, 250, 0.80);
		--sws-m: 12px;
	}
	html body.sws-inner { --sws-glass-dark-text: rgba(58, 27, 118, 0.56); --sws-edge: 12px; --sws-muted: #3A2966; }
	html body.sws-on .sws-panel,
	html body.sws-on .sws-card,
	html body.sws-on .sws-panel--wide,
	html body.sws-inner .elementor > .elementor-section-height-min-height,
	html body.sws-inner--dark .elementor-inner-section,
	html body.sws-inner--dark .elementor-top-column > .elementor-widget-wrap > .elementor-widget-text-editor p {
		-webkit-backdrop-filter: blur(10px) saturate(1.1) brightness(0.8);
		backdrop-filter: blur(10px) saturate(1.1) brightness(0.8);
	}

	/* text sizes: phones keep the normal (0.4.1) sizes, nothing is scaled up */
	html body.sws-on { overflow-wrap: break-word; }
	html body.sws-on .elementor-widget-text-editor ul,
	html body.sws-on .elementor-widget-text-editor ol { margin-left: 1.15em; }

	/* buttons */
	html body.sws-on .sws-btn .elementor-button,
	html body.sws-on .sws-btn-alt .elementor-button {
		padding: 14px 24px;
		min-height: 48px;
		white-space: normal;
	}
	html body.sws-on .sws-btn .elementor-button-text,
	html body.sws-on .sws-btn-alt .elementor-button-text { white-space: normal; }
	html body.sws-inner a.acuity-embed-button,
	html body.sws-inner .elementor-widget-html a[class*="acuity"],
	html body.sws-inner .elementor-button {
		letter-spacing: 0.05em;
		min-height: 48px;
		padding: 12px 22px !important;
	}
	/* buttons inside panels and cards: full width, easy to tap */
	html body.sws-on .sws-panel .sws-btnrow,
	html body.sws-on .sws-panel-light .sws-btnrow,
	html body.sws-on .sws-card .sws-btnrow { flex-direction: column; align-items: stretch; gap: 12px; }
	html body.sws-on .sws-panel .sws-btnrow .elementor-widget,
	html body.sws-on .sws-card .sws-btnrow .elementor-widget,
	html body.sws-on .sws-card > .sws-btn,
	html body.sws-on .sws-card > .sws-btn-alt { width: 100% !important; max-width: 100% !important; }
	html body.sws-on .sws-panel .sws-btn .elementor-button,
	html body.sws-on .sws-panel .sws-btn-alt .elementor-button,
	html body.sws-on .sws-panel-light .sws-btn .elementor-button,
	html body.sws-on .sws-card .sws-btn .elementor-button,
	html body.sws-on .sws-card .sws-btn-alt .elementor-button { display: flex; width: 100%; justify-content: center; text-align: center; }
	html body.sws-on .sws-panel--center .sws-btnrow { align-items: stretch; }

	/* ------------------------------------------------------------ header and footer */
	html body.sws-on .sws-footer__links a { display: inline-block; padding: 8px 2px; }
	html body.sws-on .sws-footer__links { gap: 4px 22px; }
	html body.sws-on .sws-footer__tagline { -webkit-text-wrap: balance; text-wrap: balance; }
	html body.sws-on .sws-footer__row { padding-left: 16px; padding-right: 16px; }

	/* ------------------------------------------------------------ Home: boxes full width, one column, 12px margin */
	html body.sws-on .sws-hero,
	html body.sws-on .elementor .sws-hero.e-con { padding: 12px 12px 24px !important; }
	html body.sws-on .sws-hero > .sws-panel,
	html body.sws-on .sws-hero--left > .sws-panel,
	html body.sws-on .sws-hero--right > .sws-panel,
	html body.sws-on .sws-hero--center > .sws-panel,
	html body.sws-on .sws-panel--center,
	html body.sws-on .sws-panel--wide { width: 100% !important; max-width: 100% !important; }
	html body.sws-on .sws-panel { padding: 26px 20px; }
	html body.sws-on .sws-hero--left > .sws-panel { padding-left: 16px; padding-right: 16px; }
	/* "Evidential mediumship with Katya" stays on one line from 385px up (the size follows the width); on the narrowest phones it wraps at a larger size */
	html body.sws-on .sws-hero--left > .sws-panel h1.elementor-heading-title { font-size: clamp(22px, calc((100vw - 62px) / 13.9), 36px) !important; white-space: nowrap; }
	html body.sws-on .sws-hero--left > .sws-panel .sws-btnrow { align-items: center; }
	html body.sws-on .sws-hero--left > .sws-panel .sws-btnrow .elementor-widget { width: 100% !important; max-width: 340px; margin-left: auto; margin-right: auto; }
	html body.sws-on .sws-panel-light { padding: 26px 20px; }

	/* the three service boxes */
	html body.sws-on .elementor .sws-cards.e-con,
	html body.sws-on .sws-cards {
		flex-direction: column !important;
		flex-wrap: nowrap !important;
		align-items: stretch !important;
		padding: 36px 12px !important;
		gap: 16px !important;
		--gap: 16px;
	}
	html body.sws-on .elementor .sws-cards .sws-card.e-con,
	html body.sws-on .sws-cards .sws-card,
	html body.sws-on .sws-cards--two .sws-card {
		flex: 0 0 auto !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0;
		--width: 100%;
	}
	html body.sws-on .sws-card--media { padding: 0 0 26px; }
	html body.sws-on .sws-card--media > .elementor-widget:not(.sws-card__img) { padding: 0 20px; }
	html body.sws-on .sws-cards:not(.sws-cards--two) .sws-card { padding-left: 0; padding-right: 0; }

	/* closing bands (call to action + testimonials) */
	html body.sws-on .elementor .sws-band.e-con,
	html body.sws-on .sws-band--cta,
	html body.sws-on .sws-band--quotes { padding-left: 12px !important; padding-right: 12px !important; }
	html body.sws-on .elementor .sws-band-wrap.e-con,
	html body.sws-on .sws-band-wrap { padding-left: 0 !important; padding-right: 0 !important; }
	html body.sws-on .sws-band--cta { padding-top: 40px !important; padding-bottom: 20px !important; }
	html body.sws-on .sws-band--quotes { padding-top: 16px !important; padding-bottom: 44px !important; }
	/* testimonial pictures: one per row, large enough to look at */
	html body.sws-on .sws-tiles { flex-direction: column; flex-wrap: nowrap; gap: 14px; }
	html body.sws-on .sws-tile { flex: 0 0 auto !important; width: 100% !important; max-width: 100% !important; }
	html body.sws-on .sws-tile img { height: auto !important; max-height: 340px; }

	/* the bio: photo edge to edge, text below it */
	html body.sws-on .sws-intro,
	html body.sws-on .elementor .sws-intro.e-con,
	html body.sws-on .sws-section.sws-intro { padding: 0 0 36px !important; }
	html body.sws-on .sws-intro > .e-con-inner {
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 0 !important;
		padding: 0 !important;
		max-width: 100% !important;
		width: 100% !important;
	}
	html body.sws-on .sws-headshot,
	html body.sws-on .elementor .sws-headshot.elementor-widget {
		flex: 0 0 auto !important;
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 !important;
		align-self: stretch !important;
	}
	html body.sws-on .sws-headshot .elementor-widget-container { padding: 0 !important; margin: 0 !important; }
	html body.sws-on .sws-headshot img {
		display: block;
		width: 100% !important;
		max-width: 100% !important;
		height: auto !important;
		border-radius: 0 !important;
		border-width: 0 0 2px 0;
		box-shadow: none;
	}
	html body.sws-on .sws-intro__text { flex: 0 0 auto !important; width: 100% !important; padding: 26px 20px 0 !important; box-sizing: border-box; }

	/* ------------------------------------------------------------ inner pages: every box full width in one column */
	html body.sws-inner .elementor > * { width: calc(100% - 24px) !important; max-width: none !important; }
	html body.sws-inner--contact .elementor > .elementor-top-section:not(.elementor-section-height-min-height) { width: calc(100% - 24px) !important; }
	html body.sws-inner .elementor .elementor-column,
	html body.sws-inner .elementor .elementor-top-column { width: 100% !important; max-width: 100% !important; }
	html body.sws-inner .elementor .elementor-section .elementor-container { flex-direction: column; flex-wrap: nowrap; }
	html body.sws-inner .elementor .e-con { max-width: 100% !important; }
	html body.sws-inner .elementor > .e-con.e-parent > .e-con-inner,
	html body.sws-inner .elementor > .e-con.e-parent { flex-direction: column; }
	html body.sws-inner .elementor > .e-con.e-parent .e-con { width: 100% !important; --width: 100%; }
	html body.sws-inner--dark .elementor-inner-section { padding: 22px 20px; margin-bottom: 14px; }
	html body.sws-inner--dark .elementor-top-column > .elementor-widget-wrap > .elementor-widget-text-editor p { padding: 22px 20px; margin-bottom: 14px; }
	/* Book sheet rows: info, then a full-width button */
	html body.sws-inner.sws-inner--book .elementor-inner-section > .elementor-container { flex-direction: column; align-items: stretch; }
	/* Contact + embeds */
	html body.sws-inner--contact .elementor .elementor-column > .elementor-widget-wrap { width: 100%; }
	html body.sws-inner .elementor iframe { max-width: 100% !important; }
	html body.sws-inner--contact .elementor-widget:has(iframe),
	html body.sws-inner--contact .elementor-82 .elementor-widget-shortcode { padding: 20px 16px !important; }

	/* ------------------------------------------------------------ the hamburger menu keeps its normal size (17px items, 48px button); only a long menu is allowed to scroll */
	html body.sws-on .sws-nav {
		box-sizing: border-box;
		max-height: calc(100vh - 90px);
		max-height: calc(100dvh - 90px);
		overflow-y: auto;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
	}
}
@media (max-width: 384px) {
	html body.sws-on .sws-hero--left > .sws-panel h1.elementor-heading-title { font-size: 28px !important; white-space: normal; }
}
