/*
 * Regency Mobile Header: phones only (screens up to 767px wide). Nothing here applies to tablets or computers.
 * Owner's choice, 16 Nov 2026 ("Option B"): logo left, social icons two over two, "Call us" button in the
 * blue bar where the telephone number and search box were, and a taller picture slider.
 * "html body" in front of each rule makes these win over the theme and over the page-layout plugins.
 */

@media (max-width: 767px) {

	/* ---------- Grey area: logo left, social icons right ---------- */
	html body header {
		position: relative;
		padding-top: 0;
		padding-bottom: 0;
	}

	html body header > .container > .row {
		display: flex;
		align-items: center;
		justify-content: space-between;
		height: 70px;
		margin-left: 0;
		margin-right: 0;
	}

	html body header > .container > .row::before,
	html body header > .container > .row::after {
		display: none;
	}

	html body header > .container > .row > .col-md-4,
	html body header > .container > .row > .col-md-8 {
		display: block;
		position: static; /* so the "Call us" button is placed from the header's left edge */
		float: none;
		width: auto;
		min-height: 0;
		padding: 0;
		margin: 0;
	}

	html body header > .container {
		position: static;
	}

	html body header .logo {
		float: none;
		margin: 0;
		text-align: left;
	}

	/* Logo: 236 x 74 becomes 172 x 54. */
	html body header .logo img {
		display: block;
		width: auto;
		height: 54px;
		max-width: none;
	}

	html body header .col-md-8 .top-social {
		float: none;
		width: auto;
		margin: 0;
		padding: 0;
		order: 0;
	}

	html body header .top-social .socialmedia-buttons {
		display: grid;
		grid-template-columns: 26px 26px;
		gap: 5px;
		margin: 0;
		padding: 0;
	}

	html body header .top-social .socialmedia-buttons a {
		display: block;
		margin: 0;
		line-height: 0;
	}

	html body header .top-social .socialmedia-buttons img {
		display: block;
		width: 26px;
		height: 26px;
		margin: 0;
	}

	/* ---------- "Call us" button in the blue bar ----------
	   This is the site's own telephone link, moved and restyled: the number is no longer shown as text,
	   but tapping the button still calls it. */
	html body header .col-md-8 .call-us {
		position: absolute;
		z-index: 5;
		top: 80px; /* 70px grey area + the bar's 6px top line + 4px */
		left: 12px;
		float: none;
		width: auto;
		height: auto;
		margin: 0;
		padding: 0;
		letter-spacing: 0;
		text-transform: none;
	}

	html body header .call-us p {
		margin: 0;
		line-height: 1;
	}

	html body header .call-us img {
		display: none;
	}

	html body header .call-us a {
		display: inline-flex;
		align-items: center;
		gap: 7px;
		height: 32px;
		margin: 0;
		padding: 0 14px 0 11px;
		border-radius: 8px;
		background: #f9a31a;
		color: #1d2433;
		white-space: nowrap;
		font-size: 0; /* hides the number's digits; the words below replace them */
		text-decoration: none;
		box-shadow: none;
	}

	html body header .call-us a::before {
		content: "";
		width: 18px;
		height: 18px;
		background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d2433' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3h4l2 5-2.5 1.5a11 11 0 0 0 6 6L16 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 5a2 2 0 0 1 2-2z'/%3E%3C/svg%3E") no-repeat center / contain;
	}

	html body header .call-us a::after {
		content: "Call us";
		font-family: Arial, Helvetica, sans-serif;
		font-size: 15px;
		font-weight: 700;
		line-height: 1;
		letter-spacing: 0;
		color: #1d2433;
	}

	/* The blue bar keeps a steady height so the button sits neatly in it. */
	html body header .main-nav {
		min-height: 46px;
	}

	/* The search box gives way to the "Call us" button on phones. */
	html body header .main-nav .search-box {
		display: none;
	}

	/* ---------- Taller picture slider, using the space gained above ---------- */
	html body .banner-area .banner {
		width: 100%;
		min-height: 0;
		border-right: 0;
	}

	html body .banner-area .banner .nivoSlider.nivoSlider {
		width: 100% !important;
		height: 54vw !important;
		max-height: 300px;
		overflow: hidden;
	}

	html body .banner-area .banner .nivoSlider.nivoSlider img {
		width: 100% !important;
		height: 54vw !important;
		max-height: 300px;
		object-fit: cover;
	}

	html body .banner-area .banner .nivoSlider.nivoSlider .nivo-slice,
	html body .banner-area .banner .nivoSlider.nivoSlider .nivo-box {
		height: 54vw !important;
		max-height: 300px;
	}

	/* ---------- Menu button: the word MENU and its three lines in the same orange as "Call us" (owner, 16 Nov 2026) ---------- */
	html body header #mega-menu-wrap-primary .mega-menu-toggle .mega-toggle-block .mega-toggle-label,
	html body header #mega-menu-wrap-primary .mega-menu-toggle .mega-toggle-block .mega-toggle-label .mega-toggle-label-closed,
	html body header #mega-menu-wrap-primary .mega-menu-toggle .mega-toggle-block .mega-toggle-label .mega-toggle-label-open,
	html body header #mega-menu-wrap-primary .mega-menu-toggle .mega-toggle-block::after,
	html body header #mega-menu-wrap-primary .mega-menu-toggle .mega-toggle-block::before {
		color: #f9a31a !important;
	}

	/* Owner, 16 Nov 2026: make MENU more noticeable - bold and larger, with larger lines. */
	html body header #mega-menu-wrap-primary .mega-menu-toggle .mega-toggle-block .mega-toggle-label,
	html body header #mega-menu-wrap-primary .mega-menu-toggle .mega-toggle-block .mega-toggle-label span {
		font-weight: 700 !important;
		font-size: 17px !important;
		letter-spacing: 0.5px;
	}

	html body header #mega-menu-wrap-primary .mega-menu-toggle .mega-toggle-block::after {
		font-size: 30px !important;
	}
}
