/* Tablets and phones. The desktop layout (1100px wide and up) is unchanged; below that the
   page narrows to the screen, columns stack, and the menu wraps under the logo. Added
   2026-10-01 when the minis stopped sending phones to their .mobi twin. */

@media (max-width: 1119px) {
	section img, section iframe {
		max-width: 100%;
	}
	.mothership, .mothership-logo, #contact-three {
		width: auto;
		max-width: 100%;
		padding: 0 20px;
		box-sizing: border-box;
	}
	#contact-three {
		height: auto;
		float: none;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
	}
	.contact_three {
		float: none;
		height: auto;
		min-height: 275px;
	}
	.accreditations {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		height: auto;
		width: auto;
		gap: 4px 12px;
	}
	#header {
		height: 380px;
		line-height: normal;
		display: flex;
		align-items: center;
		justify-content: center;
		position: relative;
	}
	#header h2 {
		position: static;
		transform: none;
		font-size: 6.5vw;
		line-height: 1.1;
		padding: 0 12px;
	}
	.four {
		width: calc(49% - 20px);
		margin: 0 5px;
	}
}

/* The menu button only shows on tablets and phones. */
.menu-toggle {
	display: none;
}

@media (max-width: 939px) {
	/* Logo on the left, menu button on the right; the links drop down under the bar. */
	/* The sticky menu bar only sticks within body, so body must wrap the floated sections
	   (on desktop it is one screen tall). */
	html, body {
		height: auto;
	}
	body {
		display: flow-root;
	}
	header {
		position: sticky;
		height: auto;
		padding: 0;
	}
	header .mothership {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
	}
	#logo {
		float: none;
		width: auto;
		height: auto;
		padding: 8px 0;
	}
	#logo img {
		height: 46px;
		width: auto;
		max-width: 100%;
		display: block;
	}
	.menu-toggle {
		order: 2;
		display: block;
		width: 46px;
		height: 46px;
		padding: 11px 9px;
		border: 0;
		border-radius: 8px;
		background: transparent;
		cursor: pointer;
		box-sizing: border-box;
	}
	.menu-toggle span {
		display: block;
		height: 3px;
		margin-bottom: 7px;
		border-radius: 2px;
		background: #00aeee;
		transition: transform 0.2s ease, opacity 0.2s ease;
	}
	.menu-toggle span:last-child {
		margin-bottom: 0;
	}
	header.menu-open .menu-toggle span:nth-child(1) {
		transform: translateY(10px) rotate(45deg);
	}
	header.menu-open .menu-toggle span:nth-child(2) {
		opacity: 0;
	}
	header.menu-open .menu-toggle span:nth-child(3) {
		transform: translateY(-10px) rotate(-45deg);
	}
	#nav {
		display: none;
		width: 100%;
		order: 3;
	}
	header.menu-open #nav {
		display: block;
	}
	.standardNav ul {
		float: none;
		height: auto;
		margin: 0;
		padding: 0 0 8px;
	}
	.standardNav li {
		float: none;
	}
	.standardNav li a {
		height: auto;
		line-height: 1;
		padding: 15px 0;
		font-size: 1.15em;
		border-top: 1px solid #e1dcd7;
	}
	.standardNav li.active a {
		box-shadow: none;
		border-radius: 0;
	}
	#header {
		margin-top: 0;
	}
}

@media (max-width: 760px) {
	#header {
		height: 220px;
	}
	/* "Stairlifts in" on the first line, the place on the second. */
	#header h2 span {
		display: block;
	}
	#header h2 {
		font-size: 9vw;
	}
	h1 {
		height: auto;
		line-height: 1.2;
		padding: 14px 0;
		font-size: 2em;
	}
	.colarticle {
		-moz-column-count: 1;
		-webkit-column-count: 1;
		column-count: 1;
	}
	.four {
		width: 100%;
		margin: 0 0 10px;
	}
	.contact_three {
		width: 100%;
		margin: 0 0 10px;
		min-height: 0;
	}
	.fb-like-box {
		width: 100%;
	}
	footer img {
		max-width: 100%;
		box-sizing: border-box;
	}
	footer img {
		height: auto;
		width: 300px;
		padding: 10px;
		margin-left: 0;
	}
	p {
		font-size: 1.15em;
	}
	/* On phones the text is centred (Jacob, 2026-10-01); list bullets sit next to their text. */
	section, section p, section h3, section li {
		text-align: center;
	}
	section ul, section ol {
		padding-left: 0;
		list-style-position: inside;
	}
}
