:root {
	--teal: #1ABC9C;
	--navy: #1A1A49;
	--yellow: #FFD60A;
	--gutter: 0.75rem;
	--header-height: 100px;
	--header-height-shrunk: 60px;
	--anchor-offset: 40px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

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

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	margin: 0;
	font: 400 1rem/1.5 'Lato', sans-serif;
	color: #555;
	background: #FFF;
}

::selection {
	background: var(--teal);
	color: #FFF;
}

a {
	color: var(--teal);
	text-decoration: none;
}

a:hover {
	color: #222;
}

img,
svg {
	vertical-align: middle;
}

img {
	max-width: 100%;
}

h2,
h3,
h4 {
	margin: 0 0 30px;
	font: 600 1rem/1.5 'Poppins', sans-serif;
	color: #444;
}

h2 { font-size: 30px; }
h3 { font-size: 1.5rem; }
h4 { font-size: 18px; }

p,
ul {
	margin: 0 0 30px;
}

ul {
	padding: 0;
}

hr {
	margin: 4rem 0;
	border: 0;
	border-top: 1px solid #EEE;
}

@media (max-width: 767.98px) {
	h2 { font-size: 1.5rem; }
	h3 { font-size: 1.25rem; }
	h4 { font-size: 1rem; }
}

.container {
	width: 100%;
	margin: 0 auto;
	padding: 0 var(--gutter);
}

@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }

/* Columns: a flex row with a gutter on each side of every column */

.cols {
	display: flex;
	flex-wrap: wrap;
	margin: 0 calc(var(--gutter) * -1);
}

.cols > * {
	flex-shrink: 0;
	width: 100%;
	max-width: 100%;
	padding: 0 var(--gutter);
}

.cols-spaced {
	margin-bottom: -50px;
}

.cols-spaced > * {
	padding-bottom: 50px;
}

.cols-middle {
	align-items: center;
}

.cols-centered {
	justify-content: center;
}

@media (min-width: 576px) {
	.col-contact { width: 50%; }
}

@media (min-width: 768px) {
	.col-third { width: 33.33333333%; }
	.col-two-thirds { width: 66.66666667%; }
	.col-half,
	.col-feature { width: 50%; }
}

@media (min-width: 992px) {
	.col-feature { width: 33.33333333%; }
	.col-contact { width: 25%; }
}

/* Header */

.site-header {
	background: var(--navy);
	border-bottom: 1px solid #F5F5F5;
}

.header-bar {
	background: var(--navy);
}

.header-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.logo {
	display: flex;
	margin-right: auto;
}

.logo img {
	display: block;
	height: var(--header-height);
}

.lang-switch {
	padding: 14px 10px;
	font: 700 0.8125rem/22px 'Poppins', sans-serif;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #FFF;
}

.lang-switch:hover {
	color: var(--teal);
}

.menu-toggle {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 50px;
	height: 50px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.menu-toggle svg {
	width: 30px;
	height: 30px;
	transition: transform 400ms;
}

.menu-toggle path {
	fill: none;
	stroke: #FFF;
	stroke-width: 5;
	stroke-linecap: round;
	transition: stroke-dasharray 400ms, stroke-dashoffset 400ms;
}

.menu-toggle path:nth-child(1) { stroke-dasharray: 40 160; }

.menu-toggle path:nth-child(2) {
	stroke-dasharray: 40 142;
	transform-origin: 50%;
	transition: transform 400ms;
}

.menu-toggle path:nth-child(3) {
	stroke-dasharray: 40 85;
	transform-origin: 50%;
	transition: transform 400ms, stroke-dashoffset 400ms;
}

.nav-open .menu-toggle svg { transform: rotate(45deg); }

.nav-open .menu-toggle path:nth-child(1),
.nav-open .menu-toggle path:nth-child(3) { stroke-dashoffset: -64px; }

.nav-open .menu-toggle path:nth-child(2) { transform: rotate(90deg); }

/* The menu opens and closes by animating its row from 0 to its natural height */

.nav {
	display: grid;
	grid-template-rows: 0fr;
	flex-basis: 100%;
	transition: grid-template-rows 200ms ease;
}

.nav-open .nav {
	grid-template-rows: 1fr;
}

.nav ul {
	min-height: 0;
	margin: 0;
	overflow: hidden;
	list-style: none;
	visibility: hidden;
	transition: visibility 200ms;
}

.nav-open .nav ul {
	visibility: visible;
}

.nav li + li {
	border-top: 1px solid #EEE;
}

.nav a {
	display: block;
	padding: 14px 5px;
	font: 700 0.8125rem/22px 'Poppins', sans-serif;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #FFF;
}

.nav a:hover,
.nav .current a {
	color: var(--teal);
}

@media (min-width: 992px) {
	.site-header {
		height: calc(var(--header-height) + 1px);
	}

	.header-bar {
		position: fixed;
		top: 0;
		left: 0;
		z-index: 299;
		width: 100%;
	}

	.is-stuck .header-bar {
		box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	}

	.logo img {
		transition: height 400ms ease;
	}

	.is-shrunk .logo img {
		height: var(--header-height-shrunk);
	}

	.lang-switch {
		order: 1;
		padding: 39px 15px;
		transition: padding 400ms ease;
	}

	.is-shrunk .lang-switch {
		padding-top: 19px;
		padding-bottom: 19px;
	}

	.menu-toggle {
		display: none;
	}

	.nav {
		display: block;
		flex-basis: auto;
	}

	.nav ul {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		overflow: visible;
		visibility: visible;
	}

	.nav li + li {
		margin-left: 2px;
		border-top: 0;
	}

	.nav a {
		padding: 39px 15px;
		transition: padding 400ms ease;
	}

	.is-shrunk .nav a {
		padding-top: 19px;
		padding-bottom: 19px;
	}
}

/* Page */

main {
	flex: 1;
	padding: 80px 0;
	overflow: hidden;
}

main p {
	line-height: 1.8;
}

section {
	scroll-margin-top: var(--anchor-offset);
}

#top {
	scroll-margin-top: 0;
}

@media (min-width: 992px) {
	:root {
		--anchor-offset: 100px;
	}
}

.divider {
	display: flex;
	align-items: center;
	width: 100%;
	margin: 3rem auto;
	overflow: hidden;
	color: #E5E5E5;
}

.divider::before,
.divider::after {
	content: '';
	flex: 1 1 0;
	height: 1px;
	background: #EEE;
}

.divider::before {
	display: none;
	margin-right: 0.5rem;
}

.divider::after {
	margin-left: 0.5rem;
}

.divider-short {
	width: 55%;
}

.divider-centered::before {
	display: block;
}

.divider svg {
	flex: none;
	width: 24px;
	height: 18px;
	padding: 0 3px;
	font-size: 18px;
}

.photo {
	position: relative;
	height: 301px;
}

.photo img {
	position: absolute;
	top: 0;
	left: 0;
}

@media (min-width: 576px) { .photo { height: 416px; } }
@media (min-width: 768px) { .photo { height: 438px; } }
@media (min-width: 992px) { .photo { height: 542px; } }
@media (min-width: 1200px) { .photo { height: 635px; } }

/* Hero promo: real text over a crop of the team photo, so it translates and stays sharp */

.promo {
	display: grid;
	gap: 20px;
	padding: 24px;
	background: var(--navy);
	color: #FFF;
}

.promo :where(p, ul) {
	margin: 0;
	line-height: 1.3;
}

.promo-kicker {
	font: 700 1.25rem/1.2 'Poppins', sans-serif;
	text-transform: uppercase;
}

.promo-banner {
	margin: 12px -24px 0;
	padding: 8px 24px;
	background: var(--yellow);
	font: 700 1rem/1.2 'Poppins', sans-serif;
	text-transform: uppercase;
	color: var(--navy);
}

.promo-question {
	margin-top: 16px;
	font: 700 1.75rem/1.2 'Poppins', sans-serif;
	color: var(--yellow);
}

.promo-list {
	margin-top: 10px;
	padding: 0;
	list-style: none;
}

.promo-list li {
	position: relative;
	padding: 2px 0 2px 16px;
	font-size: 1rem;
}

.promo-list li::before {
	content: '';
	position: absolute;
	top: 0.75em;
	left: 0;
	width: 6px;
	height: 6px;
	background: var(--yellow);
}

.promo-cta {
	margin-top: 18px;
	font: 700 1.5rem/1.1 'Poppins', sans-serif;
	text-transform: uppercase;
	color: var(--yellow);
}

.promo-cta span {
	display: block;
	padding-bottom: 6px;
	border-bottom: 2px solid var(--yellow);
	font-size: 1rem;
	color: #FFF;
}

.promo-phones {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 20px;
	margin-top: 12px;
}

.promo-phones a {
	padding: 4px 0;
	color: #FFF;
	font-size: 1rem;
}

.promo-phones a:hover {
	color: var(--yellow);
}

/* The lower-right panel of the team collage */
.promo-photo {
	width: 100%;
	max-width: 260px;
	margin: 0 auto;
	aspect-ratio: 234 / 314;
	background: url('images/landing/clean_it_queens_team.webp') 98.5% 98.8% / 213.7% auto no-repeat;

	/* Feather every edge into the navy panel; the two ramps multiply, so corners fade the most */
	--feather: 18%;
	mask-image:
		linear-gradient(to right, transparent, #000 var(--feather), #000 calc(100% - var(--feather)), transparent),
		linear-gradient(to bottom, transparent, #000 var(--feather), #000 calc(100% - var(--feather)), transparent);
	mask-composite: intersect;
}

@media (min-width: 576px) {
	.promo {
		grid-template-columns: 1fr 38%;
		align-items: end;
	}

	.promo-photo { max-width: none; }
}

@media (min-width: 1200px) {
	.promo { padding: 32px; }
	.promo-banner { margin: 12px -32px 0; padding: 8px 32px; font-size: 1.125rem; }
	.promo-kicker { font-size: 1.5rem; }
	.promo-question { font-size: 2.125rem; }
	.promo-list li { font-size: 1.0625rem; }
}

.checklist {
	list-style: none;
	font-size: 1.5rem;
}

.checklist li {
	display: flex;
	align-items: baseline;
	margin: 4px 0;
	padding-top: 1px;
}

.check {
	flex: none;
	position: relative;
	top: 1px;
	width: 1.5rem;
	margin-right: 5px;
	text-align: center;
}

.divider svg,
.contact-icon svg,
.check svg,
.to-top svg {
	fill: currentColor;
}

.check svg,
.to-top svg {
	height: 1em;
	vertical-align: -0.0625em;
}

.section-head {
	margin-bottom: 50px;
	text-align: center;
}

.section-head h2 {
	margin: 0;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #333;
}

.section-head p {
	max-width: 700px;
	margin: 10px auto 0;
	font-size: 1.25rem;
	font-weight: 300;
	line-height: 1.5;
	color: #777;
}

.section-head::after {
	content: '';
	display: block;
	width: 40px;
	margin: 30px auto 0;
	border-top: 2px solid #444;
}

@media (max-width: 767.98px) {
	.section-head h2 { font-size: 26px; }
	.section-head p { font-size: 18px; }
}

.features {
	margin-bottom: 0;
}

.feature {
	display: flex;
	gap: 1.5rem;
}

.feature-icon {
	flex: none;
	width: 4rem;
	height: 4rem;
}

.feature > div {
	flex: 1;
	min-width: 0;
}

.feature h3,
.contact-card h3 {
	margin: 0;
	font-size: 1rem;
	text-transform: uppercase;
	color: #333;
}

.feature p {
	margin: 0.5rem 0 0;
	color: #999;
}

.contact-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: 2rem;
	padding: 0 2rem 2rem;
	border: 1px solid #E5E5E5;
	border-radius: 5px;
	text-align: center;
}

.contact-icon {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	width: 5.5rem;
	height: 4rem;
	margin: -2rem 0 1.5rem;
	background: #FFF;
	font-size: 3rem;
}

.contact-icon svg {
	height: 1em;
}

.contact-card h3 {
	padding: 0 var(--gutter);
}

.contact-card h3 span {
	display: block;
	margin-top: 5px;
	font-weight: 300;
	text-transform: none;
	color: #444;
}

/* Footer */

.site-footer {
	padding: 40px 0;
	border-top: 5px solid #484848;
	background: #202020;
	font-size: 0.875rem;
	line-height: 1.8;
	color: rgba(255, 255, 255, 0.4);
	text-align: center;
}

@media (min-width: 768px) {
	.site-footer {
		text-align: left;
	}
}

.to-top {
	position: fixed;
	right: 30px;
	bottom: 30px;
	z-index: 599;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 2px;
	background: rgba(0, 0, 0, 0.3);
	font-size: 1.25rem;
	line-height: 36px;
	color: #FFF;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: background-color 200ms linear, opacity 400ms, visibility 400ms;
}

.to-top:hover {
	background: var(--teal);
}

.to-top.is-visible {
	opacity: 1;
	visibility: visible;
}

@media (max-width: 767.98px) {
	.to-top { display: none; }
}

/* Entrance animations, started by site.js when an element scrolls into view */

.js [data-animate] {
	opacity: 0;
}

.js [data-animate].is-animated {
	animation: 1s both;
	animation-delay: calc(500ms + var(--delay, 0ms));
}

.js [data-animate="fade-in-left"].is-animated { animation-name: fade-in-left; }
.js [data-animate="fade-in-right"].is-animated { animation-name: fade-in-right; }

.js [data-animate="bounce-in"].is-animated {
	animation-name: bounce-in;
	animation-duration: 0.75s;
}

@media (prefers-reduced-motion: reduce) {
	.js [data-animate].is-animated {
		animation-duration: 1ms;
		animation-delay: 0s;
	}
}

@keyframes fade-in-left {
	from { opacity: 0; transform: translate3d(-100%, 0, 0); }
	to { opacity: 1; transform: none; }
}

@keyframes fade-in-right {
	from { opacity: 0; transform: translate3d(100%, 0, 0); }
	to { opacity: 1; transform: none; }
}

@keyframes bounce-in {
	from, 20%, 40%, 60%, 80%, to { animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); }
	0% { opacity: 0; transform: scale3d(0.3, 0.3, 0.3); }
	20% { transform: scale3d(1.1, 1.1, 1.1); }
	40% { transform: scale3d(0.9, 0.9, 0.9); }
	60% { opacity: 1; transform: scale3d(1.03, 1.03, 1.03); }
	80% { transform: scale3d(0.97, 0.97, 0.97); }
	to { opacity: 1; transform: none; }
}
