/*
Theme Name: BClean
Theme URI: https://www.bcleanservicespro.com
Author: BClean Services Professional Cleaning, INC.
Description: Custom block theme for BClean. White space, thin hairlines, and one giant word per page, inspired by White Desert and the BClean brand guideline.
Version: 0.2.1
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bclean
*/

/* Colors, fonts and sizes live in theme.json (editable under Appearance > Editor > Styles).
   This file holds the layout details theme.json can't express. */

:root {
	--bclean-hair: rgba(18, 12, 8, 0.08);
	--bclean-line: var(--wp--preset--color--light-gray);
	--bclean-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

/* Header, page and footer sit flush against each other. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* So do a page's full-width sections; each one brings its own padding. */
.wp-block-post-content > .alignfull {
	margin-block-start: 0;
}

/* Headings break into even lines, so one word never hangs alone on a phone. */
h2,
h3 {
	text-wrap: balance;
}

::selection {
	background: var(--wp--preset--color--tan);
	color: var(--wp--preset--color--ink);
}

/* ---------- Hairline frame (White Desert + brand guideline) ---------- */

body::before,
body::after {
	content: "";
	position: fixed;
	top: 0;
	bottom: 0;
	width: 1px;
	background: var(--bclean-hair);
	pointer-events: none;
	z-index: 60;
}

body::before {
	left: max(12px, calc(50vw - 690px));
}

body::after {
	right: max(12px, calc(50vw - 690px));
}

/* ---------- Header ---------- */

header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.97);
	box-shadow: 0 1px 0 var(--bclean-line);
	transition: background-color 0.4s var(--bclean-ease), box-shadow 0.4s var(--bclean-ease), color 0.4s var(--bclean-ease);
}

.admin-bar header.wp-block-template-part {
	top: var(--wp-admin--admin-bar--height, 32px);
}

/* On pages that open with a full-screen hero, the header floats over its bright top, then turns white on scroll. */
body:has(.bclean-hero) header.wp-block-template-part {
	position: fixed;
	left: 0;
	right: 0;
	background: transparent;
	box-shadow: none;
	color: var(--wp--preset--color--ink);
}

body:has(.bclean-hero).is-scrolled header.wp-block-template-part {
	background: rgba(255, 255, 255, 0.97);
	box-shadow: 0 1px 0 var(--bclean-line);
	color: var(--wp--preset--color--ink);
}

.bclean-header.bclean-header {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 1rem;
	padding: 12px clamp(16px, 3vw, 40px);
	margin: 0;
}

.bclean-header > * {
	margin: 0 !important;
}

.bclean-header .bclean-nav {
	justify-self: start;
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.72rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	gap: 0.5rem;
}

/* Desktop menu: each top-level item is a soft pill. Phone menu styles are further down. */
.bclean-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	padding: 0.55rem 1rem;
	border-radius: 999px;
	background: rgba(18, 12, 8, 0.05);
	transition: background-color 0.3s var(--bclean-ease);
}

body:has(.bclean-hero):not(.is-scrolled) .bclean-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	background: rgba(255, 255, 255, 0.55);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.bclean-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .wp-block-navigation-item:hover > .wp-block-navigation-item__content,
body:has(.bclean-hero):not(.is-scrolled) .bclean-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .wp-block-navigation-item:hover > .wp-block-navigation-item__content {
	background: var(--wp--preset--color--tan);
	color: var(--wp--preset--color--ink);
}

/* The call and quote links only show inside the phone menu. */
.bclean-nav .bclean-nav__phone-only {
	display: none !important;
}

/* Services: hover (or tap the arrow) to open the list of services. */
.bclean-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .bclean-nav__services > .wp-block-navigation-item__content {
	padding-right: 2.1rem;
	cursor: default;
}

.bclean-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .bclean-nav__services > .wp-block-navigation__submenu-icon {
	position: absolute;
	right: 0.9rem;
	top: 50%;
	transform: translateY(-50%);
	margin: 0;
	z-index: 1;
	width: 0.6rem;
	height: 0.6rem;
	transition: transform 0.3s var(--bclean-ease);
}

.bclean-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .bclean-nav__services:hover > .wp-block-navigation__submenu-icon,
.bclean-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .bclean-nav__services > .wp-block-navigation__submenu-icon[aria-expanded="true"] {
	transform: translateY(-50%) rotate(180deg);
}

.bclean-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .bclean-nav__services > .wp-block-navigation__submenu-container {
	top: calc(100% + 10px);
	left: 0;
	min-width: 240px;
	padding: 0.6rem;
	gap: 0.15rem;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	border: 1px solid var(--bclean-line);
	border-radius: 24px;
	box-shadow: 0 18px 44px rgba(18, 12, 8, 0.08);
	transition: opacity 0.25s var(--bclean-ease);
}

/* An invisible bridge, so the list stays open while the mouse travels down to it. */
.bclean-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .bclean-nav__services > .wp-block-navigation__submenu-container::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -12px;
	height: 12px;
}

.bclean-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .bclean-nav__services .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.75rem 1.1rem;
	border-radius: 999px;
	white-space: nowrap;
	transition: background-color 0.3s var(--bclean-ease);
}

.bclean-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .bclean-nav__services .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--tan);
}

/* ---------- Phone menu (full screen, under 782px wide) ---------- */

/* WordPress switches to the menu button under 600px; tablets and small laptops (up to 900px) get it too,
   so the three menu pills never wrap onto a second line. */
@media (min-width: 600px) and (max-width: 900px) {
	.bclean-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.bclean-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

.bclean-nav .wp-block-navigation__responsive-container-open,
.bclean-nav .wp-block-navigation__responsive-container-close {
	padding: 10px;
	margin: -10px;
}

.bclean-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 14px 24px 40px;
	color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--white);
}

.bclean-nav .is-menu-open .wp-block-navigation__responsive-container-close {
	top: 14px;
	right: 0;
}

.bclean-nav .is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 4rem;
}

.bclean-nav .is-menu-open .wp-block-navigation__container,
.bclean-nav .is-menu-open .wp-block-navigation__container .wp-block-navigation-item {
	align-items: stretch;
	gap: 0 !important;
	width: 100%;
}

.bclean-nav .is-menu-open .wp-block-navigation-item__content {
	display: block;
	padding: 0.9rem 0 !important;
	border-bottom: 1px solid var(--bclean-line);
	font-size: 1.15rem;
	letter-spacing: 0.14em;
	color: var(--wp--preset--color--ink);
}

/* "Services" becomes a small label above the five services. */
.bclean-nav .is-menu-open .bclean-nav__services > .wp-block-navigation-item__content {
	padding: 0 0 0.6rem !important;
	font-size: 0.75rem;
	letter-spacing: 0.26em;
	color: var(--wp--preset--color--warm-gray);
}

.bclean-nav .is-menu-open .bclean-nav__services > .wp-block-navigation__submenu-container {
	padding: 0 !important;
	min-width: 0;
}

.bclean-nav .is-menu-open li.bclean-nav__services {
	margin-bottom: 1.75rem;
}

.bclean-nav .is-menu-open li.bclean-nav__services + li > .wp-block-navigation-item__content {
	border-top: 1px solid var(--bclean-line);
}

/* Call and quote sit at the bottom as two full-width buttons. */
.bclean-nav .is-menu-open .bclean-nav__phone-only {
	display: flex !important;
}

.bclean-nav .is-menu-open .bclean-nav__call {
	margin-top: 2rem;
}

.bclean-nav .is-menu-open .bclean-nav__quote {
	margin-top: 0.75rem;
}

.bclean-nav .is-menu-open .bclean-nav__phone-only > .wp-block-navigation-item__content {
	padding: 1.05rem 1.5rem !important;
	border: 1px solid var(--wp--preset--color--ink);
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-align: center;
}

.bclean-nav .is-menu-open .bclean-nav__quote > .wp-block-navigation-item__content {
	background: var(--wp--preset--color--black);
	border-color: var(--wp--preset--color--black);
	color: var(--wp--preset--color--white);
}

.bclean-brand {
	justify-self: center;
}

.bclean-logo {
	margin: 0;
}

.bclean-logo a {
	display: block;
	line-height: 0;
}

.bclean-logo img {
	width: 64px;
	height: auto;
}

.bclean-header__actions {
	justify-self: end;
	gap: 1.25rem;
}

.bclean-phone {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.78rem;
	letter-spacing: 0.12em;
	white-space: nowrap;
}

.bclean-phone a {
	color: inherit;
	text-decoration: none;
	display: inline-block;
	padding: 0.55rem 1rem;
	border-radius: 999px;
}

/* Over the hero photo, the phone number gets the same frosted pill as the menu. */
body:has(.bclean-hero):not(.is-scrolled) .bclean-phone a {
	background: rgba(255, 255, 255, 0.55);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.bclean-header__cta .wp-block-button__link {
	padding: 0.8rem 1.4rem;
}

/* Special Offer: a pill beside Free quote with a thin gold outline (the current promo is at /special-offer/). */
.bclean-header__actions {
	gap: 0.75rem;
}

.bclean-offer-pill {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.72rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	white-space: nowrap;
}

.bclean-offer-pill a {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.55rem 1rem;
	border-radius: 999px;
	background: rgba(18, 12, 8, 0.05);
	box-shadow: inset 0 0 0 1px rgba(188, 129, 45, 0.55);
	color: inherit;
	text-decoration: none;
	transition: background-color 0.3s var(--bclean-ease);
}

.bclean-offer-pill a:hover {
	background: var(--wp--preset--color--tan);
}

body:has(.bclean-hero):not(.is-scrolled) .bclean-offer-pill a {
	background: rgba(255, 255, 255, 0.55);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

/* The Special Offer link in the menu only shows inside the phone menu (the pill covers wider screens). */
.bclean-nav .bclean-nav__menu-only {
	display: none !important;
}

.bclean-nav .is-menu-open .bclean-nav__menu-only {
	display: flex !important;
}

/* Three pills on the left, three items on the right: the phone number steps aside first on smaller laptops. */
@media (max-width: 1180px) {
	.bclean-phone {
		display: none;
	}
}

@media (max-width: 781px) {
	.bclean-offer-pill {
		display: none;
	}
}

@media (max-width: 781px) {
	.bclean-phone {
		display: none;
	}

	.bclean-logo img {
		width: 46px;
	}

	.bclean-header__cta .wp-block-button__link {
		padding: 0.7rem 1rem;
		font-size: 0.7rem;
	}
}

/* ---------- Shared section rhythm ---------- */

.bclean-section {
	padding-top: var(--wp--preset--spacing--70);
	padding-bottom: var(--wp--preset--spacing--70);
}

.bclean-section + .bclean-section:not(.has-background) {
	border-top: 1px solid var(--bclean-line);
}

/* Small uppercase label that sits above a heading. */
.is-style-label {
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: var(--wp--preset--color--warm-gray);
	margin-bottom: 1.25rem;
}

.wp-block-cover .is-style-label,
.bclean-footer .is-style-label {
	color: rgba(255, 255, 255, 0.78);
}

.bclean-lead {
	font-size: clamp(1.05rem, 1.35vw, 1.25rem);
	line-height: 1.8;
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
}

.bclean-num {
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.8rem;
	letter-spacing: 0.22em;
	color: var(--wp--preset--color--warm-gray);
	margin: 1.5rem 0 0.25rem;
}

.bclean-section h2 {
	margin-top: 0;
}

/* Section titles line up with the wide photo grid below them. */
.bclean-section-head > p:not(.is-style-label) {
	max-width: 620px;
}

.bclean-section-head + * {
	margin-top: clamp(2rem, 4vw, 3rem) !important;
}

/* Linked headings (service names) read as headings, not as links. */
.wp-block-heading a {
	color: inherit;
	text-decoration: none;
}

.wp-block-heading a:hover {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

/* ---------- Buttons ---------- */

.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 1px solid currentColor;
	background: transparent;
	color: inherit;
	padding: calc(1rem - 1px) calc(2.1rem - 1px);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
}

.wp-block-cover .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
}

.wp-block-button.is-style-light > .wp-block-button__link {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--black);
}

.wp-block-button.is-style-light > .wp-block-button__link:hover {
	background: var(--wp--preset--color--tan);
	color: var(--wp--preset--color--black);
}

.bclean-arrow-link {
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.75rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.bclean-arrow-link a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	border-bottom: 1px solid var(--wp--preset--color--ink);
	padding-bottom: 4px;
}

.wp-block-cover .bclean-arrow-link a {
	color: var(--wp--preset--color--white);
	border-bottom-color: currentColor;
}

/* Links under a paragraph in ruled columns (the BBB link on About Us) get room to breathe. */
.bclean-ruled .bclean-arrow-link {
	margin-top: 2rem;
	margin-bottom: 2rem;
}

/* ---------- Photos ---------- */

.wp-block-image.bclean-ratio-1x1 img,
.wp-block-image.bclean-ratio-4x5 img,
.wp-block-image.bclean-ratio-3x2 img {
	width: 100%;
	height: auto;
	object-fit: cover;
}

.wp-block-image.bclean-ratio-1x1 img { aspect-ratio: 1; }
.wp-block-image.bclean-ratio-4x5 img { aspect-ratio: 4 / 5; }
.wp-block-image.bclean-ratio-3x2 img { aspect-ratio: 3 / 2; }

/* Keep the subject in frame when a photo is cropped (cards turn landscape on phones). */
.wp-block-image.bclean-focus-top img { object-position: 50% 20%; }

.bclean-card .wp-block-image,
.bclean-feature .wp-block-image {
	overflow: hidden;
	margin-bottom: 0;
}

.bclean-card .wp-block-image img,
.bclean-feature .wp-block-image img {
	transition: transform 1.4s var(--bclean-ease);
}

/* Only on devices with a mouse, so a tap on a phone doesn't leave a photo zoomed in. */
@media (hover: hover) {
	.bclean-card:hover .wp-block-image img,
	.bclean-feature:hover .wp-block-image img {
		transform: scale(1.035);
	}
}

.bclean-photo-placeholder {
	aspect-ratio: 4 / 5;
	background: #E3DBCD;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
}

.bclean-photo-placeholder p {
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.75rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--warm-gray);
	text-align: center;
	margin: 0;
}

/* ---------- Hero ---------- */

.bclean-hero.wp-block-cover {
	padding: 0 clamp(16px, 3vw, 40px) clamp(6px, 1.5vw, 20px);
	align-items: flex-end;
}

.bclean-hero .wp-block-cover__inner-container {
	width: 100%;
	max-width: none;
}

.bclean-hero__top {
	align-items: flex-end;
	margin-bottom: clamp(1rem, 2vw, 2rem);
	padding-bottom: clamp(1rem, 2vw, 1.5rem);
	border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.bclean-hero__tagline {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(0.72rem, 1vw, 0.85rem);
	font-weight: 400;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	max-width: 30ch;
	margin: 0;
	line-height: 1.8;
}

/* Pages without a giant word (Home Cleaning) make the tagline their h1; it keeps the tagline look. */
.wp-block-cover h1.bclean-hero__tagline {
	color: var(--wp--preset--color--white);
	font-size: clamp(0.72rem, 1vw, 0.85rem) !important;
}

/* A soft shadow keeps hero text readable over bright photos. */
.bclean-hero .is-style-hero-word {
	text-shadow: 0 1px 18px rgba(18, 12, 8, 0.35);
}

.bclean-hero__tagline {
	text-shadow: 0 1px 2px rgba(18, 12, 8, 0.45), 0 0 22px rgba(18, 12, 8, 0.4);
}

.bclean-hero .wp-block-button.is-style-outline > .wp-block-button__link {
	background: rgba(18, 12, 8, 0.16);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.is-style-hero-word {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 400;
	font-size: clamp(3.9rem, 15.5vw, 17rem) !important;
	line-height: 0.82;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-align: center;
	margin: 0;
	white-space: nowrap;
}

.wp-block-cover .is-style-hero-word {
	color: var(--wp--preset--color--white);
}

/* With no giant word under it (the homepage), the top row ends the hero: no rule, more room below. */
.bclean-hero__top:last-child {
	border-bottom: 0;
	padding-bottom: 0;
	margin-bottom: clamp(1.75rem, 4vw, 3.5rem);
}

/* Homepage: the headline says what we do at a glance. */
.bclean-hero__intro {
	flex: 1 1 26rem;
	max-width: 54rem;
}

.wp-block-cover .bclean-hero__headline {
	color: var(--wp--preset--color--white);
	font-size: clamp(2.1rem, 4vw, 3.75rem);
	line-height: 1.06;
	margin: 0 0 0.85rem;
	text-wrap: balance;
	text-shadow: 0 1px 2px rgba(18, 12, 8, 0.35), 0 0 28px rgba(18, 12, 8, 0.35);
}

.bclean-hero__also {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(0.72rem, 1vw, 0.85rem);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	line-height: 1.9;
	margin: 0;
	text-shadow: 0 1px 2px rgba(18, 12, 8, 0.45), 0 0 22px rgba(18, 12, 8, 0.4);
}

.bclean-hero__also a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-decoration-color: rgba(255, 255, 255, 0.55);
	text-underline-offset: 0.35em;
}

/* ---------- Intro with the soft logo-color glow (Quinta da Malia) ---------- */

.bclean-glow {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.bclean-glow::before {
	content: "";
	position: absolute;
	z-index: -1;
	left: 50%;
	top: 50%;
	width: min(980px, 130vw);
	aspect-ratio: 1;
	transform: translate(-50%, -50%);
	background:
		radial-gradient(closest-side at 32% 42%, rgba(53, 160, 253, 0.22), transparent 62%),
		radial-gradient(closest-side at 66% 40%, rgba(113, 193, 80, 0.22), transparent 62%),
		radial-gradient(closest-side at 50% 64%, rgba(28, 158, 116, 0.18), transparent 62%);
	filter: blur(30px);
	pointer-events: none;
}

/* ---------- Values, stats and steps: columns split by hairlines ---------- */

.bclean-ruled.wp-block-columns {
	gap: 0;
}

.bclean-ruled > .wp-block-column {
	padding: 0 clamp(14px, 2.2vw, 32px);
	border-left: 1px solid var(--bclean-line);
}

.bclean-ruled > .wp-block-column:first-child {
	border-left: 0;
	padding-left: 0;
}

.bclean-ruled > .wp-block-column:last-child {
	padding-right: 0;
}

.bclean-ruled h3 {
	margin: 0.25rem 0 0.75rem;
}

.bclean-ruled p {
	margin-top: 0;
}

/* The four values sit centered under their photos: number, name, one line. */
.bclean-values > .wp-block-column {
	text-align: center;
}

@media (max-width: 781px) {
	.bclean-ruled > .wp-block-column,
	.bclean-ruled > .wp-block-column:first-child {
		border-left: 0;
		border-top: 1px solid var(--bclean-line);
		padding: 1.75rem 0 0;
	}

	.bclean-ruled > .wp-block-column:first-child {
		border-top: 0;
		padding-top: 0;
	}
}

.bclean-stat {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.35rem, 2.5vw, 3rem);
	line-height: 1;
	margin: 0 0 0.75rem;
	overflow-wrap: normal;
	word-break: keep-all;
	color: var(--wp--preset--color--ink);
}

.bclean-stats p:not(.bclean-stat) {
	color: var(--wp--preset--color--warm-gray);
	font-size: 0.95rem;
}

/* ---------- Split layouts ---------- */

.bclean-split.wp-block-columns {
	gap: clamp(2rem, 6vw, 6rem);
}

.bclean-checklist,
.bclean-benefits {
	list-style: none;
	padding: 0;
	margin: 2rem 0;
	border-top: 1px solid rgba(18, 12, 8, 0.12);
}

.bclean-checklist li {
	position: relative;
	padding: 0.95rem 0 0.95rem 2.1rem;
	border-bottom: 1px solid rgba(18, 12, 8, 0.12);
	text-wrap: balance;
}

.bclean-checklist li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 1.25rem;
	width: 7px;
	height: 12px;
	border-right: 1.5px solid var(--wp--preset--color--deep-emerald);
	border-bottom: 1.5px solid var(--wp--preset--color--deep-emerald);
	transform: rotate(45deg);
}

/* Homepage benefits of a clean home: a short title over one line of why it matters,
   with generous space so each one lands on its own. */
.bclean-benefits {
	margin-top: clamp(2.25rem, 4vw, 3rem);
}

.bclean-benefits li {
	padding: clamp(1.5rem, 2.5vw, 1.85rem) 0;
	border-bottom: 1px solid rgba(18, 12, 8, 0.12);
	color: var(--wp--preset--color--warm-gray);
}

.bclean-benefits strong {
	display: block;
	margin-bottom: 0.4rem;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 400;
	color: var(--wp--preset--color--ink);
}

/* ---------- Services ---------- */

.bclean-feature {
	margin-bottom: clamp(3rem, 6vw, 5rem);
}

.bclean-cards.wp-block-columns {
	gap: clamp(1.25rem, 2.2vw, 2rem);
}

.bclean-card h3 {
	margin: 1.25rem 0 0.5rem;
}

.bclean-card h3 a {
	color: inherit;
	text-decoration: none;
}

.bclean-card p {
	font-size: 0.95rem;
	margin-top: 0;
}

/* ---------- Covers used as sections (eco promise, closing) ---------- */

/* Cover photos sit in a <picture> so phones get a tall crop (inc/images.php); it adds no box of its own. */
.wp-block-cover > picture {
	display: contents;
}

.bclean-cover-section.wp-block-cover {
	padding: var(--wp--preset--spacing--60) clamp(1.25rem, 4vw, 3rem);
}

.bclean-eco .wp-block-cover__inner-container {
	max-width: 620px;
	margin-left: max(0px, calc(50% - 660px));
}

/* The eco photo is bright, so its text gets the same soft shadow as the hero's. */
.bclean-eco .wp-block-cover__inner-container > * {
	text-shadow: 0 1px 2px rgba(18, 12, 8, 0.45), 0 0 22px rgba(18, 12, 8, 0.4);
}

.bclean-cover-section h2 {
	color: var(--wp--preset--color--white);
}

.bclean-cities {
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.72rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	line-height: 2.2;
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
	opacity: 0.85;
}

.bclean-coords {
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.75rem;
	letter-spacing: 0.24em;
	opacity: 0.75;
}

/* ---------- Founder ---------- */

.bclean-quote {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.6rem, 3vw, 2.6rem);
	line-height: 1.3;
	margin: 0;
	text-wrap: balance;
}

.bclean-quote-by {
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.78rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	margin: 0;
}

hr.bclean-gold-rule {
	width: 64px;
	margin: 2rem 0 !important;
	border: 0;
	border-top: 1px solid var(--wp--preset--color--gold) !important;
	color: var(--wp--preset--color--gold);
	opacity: 1;
}

/* ---------- Reviews (swipe on phones, arrows on desktop) ---------- */

.bclean-reviews__head {
	align-items: flex-end;
}

.bclean-reviews__arrows .wp-block-button__link,
.bclean-slideshow__arrows .wp-block-button__link {
	width: 52px;
	height: 52px;
	padding: 0 !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	letter-spacing: 0;
}

.bclean-reviews__track {
	display: flex;
	gap: 1.5rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: 0.5rem;
	margin-top: 2.5rem !important;
}

.bclean-reviews__track::-webkit-scrollbar {
	display: none;
}

.bclean-reviews__track > .bclean-review {
	flex: 0 0 min(420px, 84vw);
	scroll-snap-align: start;
	margin: 0 !important;
	border: 1px solid var(--bclean-line);
	padding: clamp(1.5rem, 3vw, 2.5rem);
	display: flex;
	flex-direction: column;
}

/* ---------- Slideshow (About Us team photos): swipe on phones; bclean.js adds arrows, a counter and autoplay ---------- */

.bclean-slideshow {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
	/* The photos are tall (2:3); capped by screen height so a laptop shows each one whole. */
	width: min(100%, 54vh);
	aspect-ratio: 2 / 3;
	margin-inline: auto;
	background: var(--wp--preset--color--tan);
}

.bclean-slideshow::-webkit-scrollbar {
	display: none;
}

.bclean-slideshow:focus-visible {
	outline: 1px solid currentColor;
	outline-offset: 6px;
}

.bclean-slideshow > .wp-block-image {
	flex: 0 0 100%;
	margin: 0;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

.bclean-slideshow > .wp-block-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bclean-slideshow__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: min(100%, 54vh);
	margin: 1.25rem auto 0;
}

.bclean-slideshow__count {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.85rem;
	letter-spacing: 0.22em;
}

.bclean-slideshow__arrows {
	display: flex;
	gap: 0.75rem;
}

.bclean-slideshow__arrows button {
	cursor: pointer;
}

.bclean-stars {
	color: var(--wp--preset--color--gold);
	letter-spacing: 0.3em;
	font-size: 0.9rem;
	margin: 0 0 1rem;
}

.bclean-review p:not(.bclean-stars):not(.bclean-review__name) {
	flex: 1;
	margin: 0 0 1.5rem;
}

.bclean-review__name {
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.75rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--warm-gray);
	margin: 0;
}

/* ---------- Footer ---------- */

.bclean-footer {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: 2rem;
	font-size: 0.95rem;
}

.bclean-footer a {
	color: var(--wp--preset--color--white);
	text-decoration: none;
}

.bclean-footer a:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.bclean-footer .bclean-logo {
	margin-bottom: 1.5rem;
}

.bclean-footer .bclean-logo a {
	display: inline-block;
}

@media (min-width: 782px) and (max-width: 1080px) {
	.bclean-footer .wp-block-columns {
		flex-wrap: wrap !important;
		row-gap: 2.5rem;
	}

	.bclean-footer .wp-block-columns > .wp-block-column {
		flex-basis: calc(50% - 1rem) !important;
	}
}

.bclean-footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
}

.bclean-footer-links li {
	margin: 0 0 0.6rem;
}

.bclean-footer__bottom {
	margin-top: 3rem !important;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.62);
	justify-content: space-between;
}

.bclean-footer__bottom p {
	margin: 0;
}

/* ---------- Gentle reveal on scroll (front end only, off for reduced motion) ---------- */

.js-reveal .bclean-section > *,
.js-reveal .bclean-cover-section .wp-block-cover__inner-container > * {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 1.1s var(--bclean-ease), transform 1.1s var(--bclean-ease);
}

.js-reveal .bclean-section > .is-visible,
.js-reveal .bclean-cover-section .wp-block-cover__inner-container > .is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.js-reveal .bclean-section > *,
	.js-reveal .bclean-cover-section .wp-block-cover__inner-container > * {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ---------- Service cards with a "best for" line and a button ---------- */

.bclean-bestfor {
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.72rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--warm-gray);
	margin: 0 0 1rem !important;
}

/* Cards stretch to equal height so their buttons line up along the bottom. */
.bclean-cards > .bclean-card {
	display: flex;
	flex-direction: column;
}

.bclean-card .wp-block-buttons {
	margin-top: auto !important;
	padding-top: 1.25rem;
}

/* ---------- Standard vs deep comparison table ---------- */

.bclean-compare table th:first-child {
	width: 56%;
}

.bclean-compare table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.98rem;
}

.bclean-compare th,
.bclean-compare td {
	border: 0;
	border-bottom: 1px solid var(--bclean-line);
	padding: 1rem 0.75rem;
	text-align: center;
}

.bclean-compare th:first-child,
.bclean-compare td:first-child {
	text-align: left;
	padding-left: 0;
	text-wrap: balance;
}

.bclean-compare thead th {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 500;
	font-size: 0.78rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--warm-gray);
	border-bottom: 1px solid var(--wp--preset--color--ink);
}

.bclean-compare td:not(:first-child) {
	color: var(--wp--preset--color--deep-emerald);
	font-size: 1.1rem;
	width: 22%;
}

.bclean-compare-note {
	margin-top: 1.5rem !important;
	color: var(--wp--preset--color--warm-gray);
	text-wrap: balance;
}

/* ---------- Airbnb rules band (Vacation Rentals): pacific blue so hosts notice it ---------- */

.bclean-airbnb h2,
.bclean-airbnb h3 {
	color: var(--wp--preset--color--white);
}

.bclean-airbnb .is-style-label {
	color: rgba(255, 255, 255, 0.78);
}

.bclean-airbnb .bclean-section-head p:not(.is-style-label) {
	color: rgba(255, 255, 255, 0.9);
	text-wrap: pretty;
}

.bclean-airbnb .bclean-roomlist li {
	border-bottom-color: rgba(255, 255, 255, 0.22);
}

.bclean-airbnb .bclean-ruled > .wp-block-column {
	border-color: rgba(255, 255, 255, 0.22);
}

.bclean-airbnb__note {
	margin-top: 1.5rem !important;
	color: rgba(255, 255, 255, 0.78);
	text-wrap: balance;
}

.bclean-airbnb__note a {
	color: inherit;
	text-underline-offset: 3px;
}

.bclean-airbnb__note a:hover {
	color: var(--wp--preset--color--white);
}

/* ---------- FAQ (open and close with a click) ---------- */

.bclean-faq.wp-block-details {
	border-top: 1px solid var(--bclean-line);
	padding: 0;
	margin-block: 0 !important;
}

.bclean-faq.wp-block-details:last-of-type {
	border-bottom: 1px solid var(--bclean-line);
}

.bclean-faq summary {
	list-style: none;
	cursor: pointer;
	padding: 1.4rem 2.5rem 1.4rem 0;
	position: relative;
	font-weight: 400;
	font-size: 1.1rem;
	text-wrap: balance;
}

.bclean-faq summary::-webkit-details-marker {
	display: none;
}

.bclean-faq summary::after {
	content: "+";
	position: absolute;
	right: 0.25rem;
	top: 50%;
	transform: translateY(-50%);
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.5rem;
	color: var(--wp--preset--color--warm-gray);
	transition: transform 0.3s var(--bclean-ease);
}

.bclean-faq[open] summary::after {
	transform: translateY(-50%) rotate(45deg);
}

.bclean-faq > :not(summary) {
	margin: 0 0 1.4rem !important;
	max-width: 680px;
	color: var(--wp--preset--color--warm-gray);
}

@media (max-width: 600px) {
	.bclean-compare table th:first-child {
		width: 50%;
	}

	.bclean-compare thead th {
		font-size: 0.62rem;
		letter-spacing: 0.08em;
		overflow-wrap: normal;
		word-break: keep-all;
		hyphens: none;
	}
}

/* WordPress lets fixed-layout table cells break mid-word; keep column titles and row text whole. */
.bclean-compare.wp-block-table thead th,
.bclean-compare.wp-block-table td {
	word-break: normal !important;
	overflow-wrap: normal !important;
}

/* ---------- Room-by-room lists (Move-In / Move-Out) ---------- */

.bclean-roomlist {
	list-style: none;
	padding: 0;
	margin: 1rem 0 0;
	font-size: 0.95rem;
}

.bclean-roomlist li {
	padding: 0.6rem 0;
	border-bottom: 1px solid rgba(18, 12, 8, 0.12);
}

/* ---------- Before and after spots for real job photos ---------- */

.bclean-photo-placeholder--wide {
	aspect-ratio: 3 / 2;
}

.bclean-before-after.wp-block-columns {
	margin-top: clamp(3rem, 6vw, 5rem) !important;
	gap: clamp(1.25rem, 2.2vw, 2rem);
}

.bclean-before-after .bclean-bestfor {
	margin-top: 1rem !important;
}

/* ---------- About: eight principles in two ruled rows ---------- */

.bclean-principles .bclean-ruled + .bclean-ruled {
	margin-top: clamp(2.5rem, 5vw, 4rem);
}

/* ---------- Community: partner logo on a white panel ---------- */

.bclean-logo-panel {
	aspect-ratio: 4 / 3;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--bclean-line);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(2rem, 5vw, 4rem);
}

.bclean-logo-panel .wp-block-image {
	margin: 0;
	width: 100%;
	max-width: 360px;
}

.bclean-logo-panel .wp-block-image img {
	width: 100%;
	height: auto;
}

/* ---------- Get a Quote: phone number first, then a short form ---------- */

.bclean-request__intro {
	align-self: flex-start;
}

/* The phone number stays in view while the form scrolls past it. */
@media (min-width: 782px) {
	.bclean-request__intro {
		position: sticky;
		top: 120px;
	}
}

.bclean-request__phone {
	margin-top: 2.5rem !important;
	padding-top: 2rem;
	border-top: 1px solid rgba(18, 12, 8, 0.12);
}

.bclean-request__phone .is-style-label {
	margin-bottom: 0.75rem;
}

.bclean-request__number {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.7rem, 3vw, 2.5rem);
	line-height: 1.1;
	letter-spacing: 0.02em;
	margin: 0 0 1.5rem;
	white-space: nowrap;
}

.bclean-request__number a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.bclean-form-card {
	border: 1px solid var(--bclean-line);
	padding: clamp(1.5rem, 4vw, 3rem);
}

.bclean-form {
	display: grid;
	gap: 1.5rem;
}

.bclean-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
}

.bclean-field {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.bclean-field > label,
.bclean-field > legend {
	display: block;
	padding: 0;
	margin-bottom: 0.6rem;
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink);
}

.bclean-field > label span {
	font-family: var(--wp--preset--font-family--body);
	letter-spacing: 0.04em;
	text-transform: none;
	color: var(--wp--preset--color--warm-gray);
}

/* 16px text, so iPhone Safari doesn't zoom in when a field is tapped. */
.bclean-form input[type="text"],
.bclean-form input[type="tel"],
.bclean-form input[type="email"],
.bclean-form textarea {
	display: block;
	width: 100%;
	box-sizing: border-box;
	min-height: 52px;
	padding: 0.85rem 1rem;
	font: inherit;
	font-size: 16px;
	color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--white);
	border: 1px solid rgba(18, 12, 8, 0.22);
	border-radius: 0;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.3s var(--bclean-ease), box-shadow 0.3s var(--bclean-ease);
}

.bclean-form textarea {
	min-height: 120px;
	line-height: 1.6;
	resize: vertical;
}

.bclean-form ::placeholder {
	color: var(--wp--preset--color--warm-gray);
	opacity: 0.8;
}

.bclean-form input:focus,
.bclean-form textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--deep-emerald);
	box-shadow: 0 0 0 3px rgba(28, 158, 116, 0.16);
}

/* Services are pills: tap one and it turns black. */
.bclean-choices {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.bclean-choice {
	position: relative;
	cursor: pointer;
}

.bclean-choice input {
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.bclean-choice span {
	display: inline-block;
	padding: 0.75rem 1.15rem;
	font-size: 0.95rem;
	line-height: 1.2;
	border: 1px solid rgba(18, 12, 8, 0.22);
	border-radius: 999px;
	transition: background-color 0.3s var(--bclean-ease), border-color 0.3s var(--bclean-ease), color 0.3s var(--bclean-ease);
}

@media (hover: hover) {
	.bclean-choice:hover span {
		border-color: var(--wp--preset--color--ink);
	}
}

.bclean-choice input:checked + span {
	background: var(--wp--preset--color--black);
	border-color: var(--wp--preset--color--black);
	color: var(--wp--preset--color--white);
}

.bclean-choice input:focus-visible + span {
	outline: 2px solid var(--wp--preset--color--deep-emerald);
	outline-offset: 2px;
}

.bclean-form__submit {
	margin: 0.5rem 0 0;
}

.bclean-form__submit .wp-block-button__link {
	width: 100%;
	border: 0;
	cursor: pointer;
}

.bclean-form__submit .wp-block-button__link:disabled {
	opacity: 0.6;
	cursor: wait;
}

.bclean-form__note {
	margin: 0;
	font-size: 0.85rem;
	color: var(--wp--preset--color--warm-gray);
}

.bclean-form__note a {
	color: inherit;
}

.bclean-form__notice {
	margin: 0;
	padding: 1rem 1.25rem;
	background: var(--wp--preset--color--tan);
	border-left: 2px solid var(--wp--preset--color--ink);
}

/* Bots fill in every field; people never see this one. */
.bclean-form__trap {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.bclean-form-card:has(.bclean-form-done) > .is-style-label {
	display: none;
}

.bclean-form-done__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	line-height: 1.25;
	margin: 0 0 1rem;
}

.bclean-form-done a {
	color: var(--wp--preset--color--ink);
}

/* ---------- Phones (most visitors) ---------- */

@media (max-width: 781px) {
	/* iPhone Safari counts its toolbars in 100vh; svh is the screen you actually see. */
	@supports (min-height: 100svh) {
		.bclean-hero.wp-block-cover {
			min-height: 100svh !important;
		}
	}

	.bclean-hero__tagline {
		font-size: 0.78rem;
	}

	/* Four numbers sit in a 2 × 2 grid instead of one long column. */
	.bclean-stats .bclean-ruled.wp-block-columns {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 2rem 1.25rem;
	}

	.bclean-stats .bclean-ruled > .wp-block-column,
	.bclean-stats .bclean-ruled > .wp-block-column:first-child {
		border-top: 1px solid var(--bclean-line);
		padding: 1.25rem 0 0;
	}

	/* With an odd count (Service Areas has three), the last number runs full width, so no gap sits beside it. */
	.bclean-stats .bclean-ruled > .wp-block-column:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}

	.bclean-stats .bclean-stat {
		font-size: 1.6rem;
	}

	.bclean-stats p:not(.bclean-stat) {
		font-size: 0.9rem;
		line-height: 1.6;
	}

	/* Bigger tap areas for small text links. */
	.bclean-arrow-link a {
		display: inline-block;
		padding-top: 0.85rem;
	}

	.bclean-footer-links a {
		display: inline-block;
		padding: 0.3rem 0;
	}

	.bclean-footer-links li {
		margin-bottom: 0.25rem;
	}
}

@media (max-width: 781px) {
	/* The second row of principles keeps the hairline between items. */
	.bclean-principles .bclean-ruled + .bclean-ruled {
		margin-top: 0;
	}

	.bclean-principles .bclean-ruled + .bclean-ruled > .wp-block-column:first-child {
		border-top: 1px solid var(--bclean-line);
		padding-top: 1.75rem;
	}
}

@media (max-width: 600px) {
	/* Portrait photos turn landscape on phones, so each card takes less scrolling. */
	.wp-block-image.bclean-ratio-4x5 img {
		aspect-ratio: 4 / 3;
	}

	.bclean-photo-placeholder:not(.bclean-photo-placeholder--wide) {
		aspect-ratio: 4 / 3;
	}
}

@media (max-width: 781px) {
	/* The quote page's hero is shorter, so the phone number and the form come sooner. */
	.bclean-hero--short.wp-block-cover {
		min-height: 72vh !important;
	}

	@supports (min-height: 100svh) {
		.bclean-hero--short.wp-block-cover {
			min-height: 72svh !important;
		}
	}

	.bclean-request__phone {
		margin-top: 2rem !important;
		padding-top: 1.5rem;
	}

	/* Call and text sit side by side, big enough for a thumb. */
	.bclean-request__phone .wp-block-buttons {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0.75rem;
	}

	.bclean-request__phone .wp-block-button__link {
		display: block;
		width: 100%;
		padding-left: 1rem !important;
		padding-right: 1rem !important;
	}
}

@media (max-width: 600px) {
	.bclean-form__row {
		grid-template-columns: 1fr;
	}

	.bclean-form-card {
		margin-left: -0.5rem;
		margin-right: -0.5rem;
	}
}

@media (max-width: 781px) {
	.bclean-hero__intro {
		flex-basis: 100%;
	}

	/* The homepage's two hero buttons stack full width, easy to hit with a thumb. */
	.bclean-hero__actions.wp-block-buttons {
		display: grid;
		grid-template-columns: 1fr;
		gap: 0.75rem;
		width: 100%;
	}

	.bclean-hero__actions .wp-block-button__link {
		display: block;
		width: 100%;
	}
}

/* ---------- Service Areas: the map and the cities by region ---------- */

/* Longer hero words (SAN DIEGO) run smaller, so they still fit on one line. */
.is-style-hero-word.bclean-hero-word--long {
	font-size: clamp(2.6rem, 11vw, 12rem) !important;
}

.bclean-map {
	aspect-ratio: 1;
	border: 1px solid var(--bclean-line);
	background: #E3DBCD;
}

/* Gray, so Google's colors don't fight the site's. */
.bclean-map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	filter: grayscale(1) contrast(1.05);
}

.bclean-areas h3 {
	font-size: clamp(1.05rem, 1.4vw, 1.3rem);
}

.bclean-areas__beyond {
	margin-top: clamp(2.5rem, 5vw, 4rem) !important;
	padding-top: 1.5rem;
	border-top: 1px solid var(--bclean-line);
	color: var(--wp--preset--color--warm-gray);
	font-size: 0.95rem;
}

@media (max-width: 781px) {
	.bclean-map {
		aspect-ratio: 4 / 3;
	}

	/* Regions sit two to a row on phones, so the list takes half the scrolling. */
	.bclean-areas.wp-block-columns {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 2rem 1.25rem;
	}

	.bclean-areas > .wp-block-column,
	.bclean-areas > .wp-block-column:first-child {
		border-top: 1px solid var(--bclean-line);
		padding: 1.25rem 0 0;
	}
}

/* ---------- Legal pages: long reading, kept calm ---------- */

.bclean-legal h1 {
	margin: 0.5rem 0 clamp(2rem, 4vw, 3rem);
}

.bclean-legal h2 {
	font-size: clamp(1.25rem, 2vw, 1.6rem);
	margin: clamp(2.5rem, 5vw, 3.5rem) 0 1rem;
	padding-top: clamp(1.5rem, 3vw, 2rem);
	border-top: 1px solid var(--bclean-line);
}

.bclean-legal p,
.bclean-legal li {
	line-height: 1.75;
}

.bclean-legal ul {
	padding-left: 1.25rem;
}

.bclean-legal li + li {
	margin-top: 0.5rem;
}

.bclean-legal a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.bclean-legal__more {
	margin-top: clamp(3rem, 6vw, 4.5rem) !important;
	padding-top: 1.5rem;
	border-top: 1px solid var(--bclean-line);
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.75rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--warm-gray);
}
