/* ==========================================================================
   Dunwell Fire: layout and components
   Breakpoints: tablet <= 1024px, mobile <= 767px
   ========================================================================== */

:root {
	--dw-blue: #1879b6;
	--dw-blue-dark: #054975;
	--dw-blue-link: #0b67a3;
	--dw-cyan: #00aff2;
	--dw-red: #e00b0b;
	--dw-red-dark: #b80808;
	--dw-text: #555;
	--dw-focus: #0b5cab;
	--dw-font: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	--dw-admin-bar: 0px;
}

html {
	scroll-padding-top: 70px;
}

body {
	background-color: #fcfcfc;
}

body.admin-bar {
	--dw-admin-bar: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar {
		--dw-admin-bar: 46px;
	}
}

@media screen and (max-width: 600px) {
	body.admin-bar {
		--dw-admin-bar: 0px;
	}
}

a {
	color: var(--dw-blue-link);
}

a:hover,
a:active {
	color: var(--dw-blue-dark);
}

.dw-topbar a,
.dw-navbar a,
.dw-page a,
.dw-footer a {
	box-shadow: none;
	text-decoration: none;
}

.dw-page img,
.dw-footer img,
.dw-topbar img {
	border: none;
	box-shadow: none;
	height: auto;
	max-width: 100%;
}

/* Phone/email links that must look like the surrounding text. */
a.dw-plain-link,
a.dw-plain-link:hover,
a.dw-plain-link:active {
	color: inherit;
	font: inherit;
}

a.dw-plain-link:hover {
	text-decoration: underline;
}

.dw-icon {
	display: block;
	fill: currentColor;
	height: 1em;
	width: auto;
}

/* ---------- Focus and motion ---------- */

:focus-visible {
	outline: 3px solid var(--dw-focus);
	outline-offset: 2px;
}

/* Light ring where the background is dark or photographic. */
.dw-topbar :focus-visible,
.dw-footer-main :focus-visible,
.dw-copyright :focus-visible,
.dw-slides :focus-visible,
.dw-search :focus-visible {
	outline-color: #fff;
}

#main:focus {
	outline: none;
}

.dw-skip-link {
	background-color: #fff;
	border-radius: 0 0 4px 4px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
	color: var(--dw-blue-dark);
	font-family: var(--dw-font);
	font-weight: 500;
	left: 16px;
	padding: 10px 16px;
	position: absolute;
	top: 0;
	transform: translateY(-120%);
	z-index: 10000;
}

.dw-skip-link:focus {
	transform: none;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*:before,
	*:after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

/* ---------- Layout primitives ---------- */

.dw-section {
	position: relative;
}

.dw-container {
	display: flex;
	margin-left: auto;
	margin-right: auto;
	max-width: 1140px;
	position: relative;
}

.dw-col {
	display: flex;
	flex-direction: column;
	min-height: 1px;
	padding: 10px;
	position: relative;
	width: 100%;
}

.dw-container--middle > .dw-col {
	justify-content: center;
}

.dw-col--flush,
.dw-col:empty {
	padding: 0;
}

@media (min-width: 768px) {
	.dw-col--25 { width: 25%; }
	.dw-col--33 { width: 33.333%; }
	.dw-col--35 { width: 35%; }
	.dw-col--50 { width: 50%; }
	.dw-col--65 { width: 65%; }
}

@media (max-width: 1024px) {
	.dw-container {
		flex-wrap: wrap;
		max-width: 1024px;
	}
}

@media (max-width: 767px) {
	.dw-container {
		max-width: 767px;
	}
}

/* ---------- Shared content styles ---------- */

.dw-heading {
	color: var(--dw-blue-dark);
	font-family: var(--dw-font);
	font-weight: 600;
	line-height: 1.1;
	margin: 0;
	padding: 0;
}

/* Vertical rhythm between stacked blocks in a column. */
.dw-w {
	margin-bottom: 20px;
}

.dw-w:last-child {
	margin-bottom: 0;
}

.dw-col--tight > .dw-w:not(:last-child) {
	margin-bottom: 12px;
}

.dw-text {
	color: var(--dw-text);
	font-family: var(--dw-font);
	font-weight: 400;
	line-height: 1.65;
}

.dw-image {
	text-align: center;
}

.dw-image img {
	border-radius: 4px;
	display: inline-block;
	vertical-align: middle;
}

.dw-content .dw-page-title {
	color: var(--dw-red);
	font-size: 2rem;
	margin-bottom: 0;
}

.dw-button,
.dw-button:visited {
	background-color: var(--dw-blue);
	border: 0;
	border-radius: 4px;
	color: #fff;
	cursor: pointer;
	display: inline-block;
	font-family: var(--dw-font);
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	padding: 14px 24px;
	text-decoration: none;
	transition: background-color 0.2s;
}

.dw-button:hover,
.dw-button:focus {
	background-color: var(--dw-blue-dark);
	color: #fff;
}

/* ---------- Top bar ---------- */

.dw-topbar {
	background-color: var(--dw-blue);
	position: relative;
}

.dw-topbar__inner {
	align-items: center;
	flex-wrap: nowrap;
	justify-content: space-between;
	min-height: 130px;
}

.dw-topbar__logo {
	flex: 0 1 274px;
}

.dw-topbar__logo a {
	display: inline-block;
}

.dw-topbar__logo .dw-site-title {
	color: #fff;
	font-family: var(--dw-font);
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
}

.dw-topbar__logo img {
	display: inline-block;
	vertical-align: middle;
	width: 274px;
}

.dw-topbar__contact {
	align-items: flex-end;
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	padding: 10px;
}

.dw-quote {
	align-items: center;
	display: flex;
	gap: 12px;
	margin-bottom: 8px;
}

.dw-quote__icon {
	color: #fff;
	flex: 0 0 auto;
	font-size: 46px;
	line-height: 1;
}

.dw-quote__title {
	color: #fff;
	font-family: var(--dw-font);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.2;
	margin: 0 0 4px;
}

.dw-quote__numbers {
	color: #fff;
	font-family: var(--dw-font);
	font-size: 14px;
	font-weight: 400;
	margin: 0;
}

.dw-social {
	display: flex;
	gap: 6px;
	justify-content: flex-end;
	list-style: none;
	margin: 0;
	padding: 0;
}

.dw-social__icon {
	align-items: center;
	background-color: #69727d;
	border-radius: 4px;
	color: #fff;
	display: flex;
	font-size: 14px;
	height: 28px;
	justify-content: center;
	transition: transform 0.2s, opacity 0.2s;
	width: 28px;
}

.dw-social__icon:hover {
	color: #fff;
	transform: translateY(-2px);
}

.dw-social__icon--facebook { background-color: #3b5998; }
.dw-social__icon--twitter { background-color: #0b76c5; }
.dw-social__icon--linkedin { background-color: #005e93; }

@media (max-width: 1024px) {
	.dw-topbar {
		padding: 0 20px;
	}

	.dw-topbar__inner {
		gap: 20px;
	}
}

@media (max-width: 767px) {
	.dw-topbar {
		padding: 22px 20px 18px;
	}

	.dw-topbar__inner {
		flex-direction: column;
		gap: 14px;
		justify-content: center;
		min-height: 0;
	}

	.dw-topbar__logo {
		flex: 0 0 auto;
		text-align: center;
	}

	.dw-topbar__contact {
		align-items: center;
		padding: 0;
	}

	.dw-quote {
		gap: 8px;
		margin: 0;
	}

	.dw-quote__icon {
		font-size: 20px;
	}

	.dw-quote__content {
		align-items: baseline;
		display: flex;
		flex-wrap: wrap;
		gap: 0 6px;
		justify-content: center;
	}

	.dw-quote__title {
		font-size: 14px;
		margin: 0;
	}

	.dw-social {
		display: none;
	}
}

/* ---------- Navigation bar ---------- */

.dw-navbar {
	background-color: #fff;
	box-shadow: 0 10px 20px -12px rgba(0, 0, 0, 0.42), 0 3px 20px 0 rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2);
	position: relative;
}

.dw-navbar.is-stuck {
	left: 0;
	position: fixed;
	top: var(--dw-admin-bar);
	width: 100%;
	z-index: 99;
}

.dw-navbar__inner {
	align-items: center;
	flex-wrap: nowrap;
}

.dw-navbar__home {
	align-self: stretch;
	background-color: #0088c6;
	flex: 0 0 57px;
	position: relative;
}

.dw-navbar__home:before {
	background-color: #0088c6;
	content: "";
	height: 4px;
	left: 0;
	position: absolute;
	right: 0;
	top: -4px;
}

.dw-navbar__home a {
	align-items: center;
	color: #fff;
	display: flex;
	font-size: 17px;
	height: 100%;
	justify-content: center;
	transition: background-color 0.2s;
}

.dw-navbar__home a:hover {
	background-color: var(--dw-blue);
	color: #fff;
}

.dw-navbar__menu {
	flex: 1 1 auto;
	min-width: 0;
}

.dw-navbar__actions {
	align-items: center;
	display: flex;
	flex: 0 0 auto;
	gap: 4px;
}

.dw-nav {
	display: flex;
}

.dw-menu,
.dw-menu li {
	display: block;
	line-height: normal;
	list-style: none;
	margin: 0;
	padding: 0;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.dw-menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	margin-right: auto;
}

.dw-menu > li {
	display: flex;
	position: relative;
}

.dw-menu a {
	align-items: center;
	color: #4a4a4a;
	display: flex;
	flex-grow: 1;
	font-family: var(--dw-font);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.02em;
	line-height: 20px;
	padding: 18px 28px;
	position: relative;
	text-transform: uppercase;
	transition: color 0.2s, padding 0.2s;
	white-space: nowrap;
}

.dw-menu a:hover,
.dw-menu .current-menu-item > a {
	color: var(--dw-blue-link);
}

/* Underline that grows from the centre on hover / current page. */
.dw-menu a:after {
	background-color: var(--dw-cyan);
	bottom: 0;
	content: "";
	display: block;
	height: 4px;
	left: 0;
	position: absolute;
	transition: 0.3s;
	transition-timing-function: cubic-bezier(0.58, 0.3, 0.005, 1);
	width: 100%;
	z-index: 2;
}

.dw-menu li:not(.current-menu-item) > a:not(:hover):not(:focus-visible):after {
	height: 0;
	left: 50%;
	opacity: 0;
	width: 0;
}

.dw-menu a:focus-visible {
	outline-offset: -3px;
}

.dw-navbar.is-stuck .dw-menu a {
	padding-bottom: 12px;
	padding-top: 12px;
}

.dw-menu-toggle,
.dw-search-toggle {
	align-items: center;
	background-color: transparent;
	border: 0;
	border-radius: 4px;
	color: #4a4a4a;
	cursor: pointer;
	display: flex;
	height: 40px;
	justify-content: center;
	padding: 0;
	transition: background-color 0.2s, color 0.2s;
	width: 40px;
}

.dw-menu-toggle:hover,
.dw-menu-toggle:focus,
.dw-search-toggle:hover,
.dw-search-toggle:focus {
	background-color: #eef4f8;
	color: var(--dw-blue-link);
}

.dw-search-toggle {
	font-size: 18px;
}

.dw-menu-toggle {
	display: none;
	font-size: 22px;
}

.dw-menu-toggle[aria-expanded="true"] .dw-menu-toggle__open,
.dw-menu-toggle[aria-expanded="false"] .dw-menu-toggle__close {
	display: none;
}

@media (max-width: 1024px) {
	.dw-navbar {
		padding: 8px 20px;
	}

	/* Let the dropdown position against the full-width bar, not the container. */
	.dw-navbar__inner {
		justify-content: flex-end;
		position: static;
	}

	.dw-navbar__home {
		display: none;
	}

	.dw-navbar__menu {
		flex: 0 0 auto;
	}

	.dw-menu-toggle {
		display: flex;
	}

	/* The menu becomes a full-width dropdown under the bar. */
	.dw-nav {
		background-color: #fff;
		box-shadow: 0 12px 16px -8px rgba(0, 0, 0, 0.25);
		display: block;
		left: 0;
		max-height: 0;
		overflow: hidden;
		position: absolute;
		top: 100%;
		transform: scaleY(0);
		transform-origin: top;
		transition: max-height 0.3s, transform 0.3s, visibility 0s 0.3s;
		visibility: hidden;
		width: 100%;
		z-index: 9997;
	}

	.dw-navbar.is-open .dw-nav {
		max-height: calc(100vh - 60px);
		overflow-y: auto;
		transform: scaleY(1);
		transition: max-height 0.3s, transform 0.3s, visibility 0s;
		visibility: visible;
	}

	.dw-menu {
		display: block;
		margin: 0;
	}

	.dw-menu > li {
		display: block;
	}

	.dw-menu a,
	.dw-navbar.is-stuck .dw-menu a {
		border-top: 1px solid #eee;
		color: #33373d;
		padding: 14px 20px;
		white-space: normal;
	}

	.dw-menu a:after {
		content: none;
	}

	.dw-menu a:hover,
	.dw-menu a:focus,
	.dw-menu .current-menu-item > a {
		background-color: #3f444b;
		color: #fff;
	}
}

/* ---------- Full-screen search ---------- */

.dw-search {
	align-items: center;
	background-color: rgba(0, 0, 0, 0.88);
	bottom: 0;
	display: flex;
	height: 100vh;
	left: 0;
	padding: 0 10%;
	position: fixed;
	right: 0;
	top: 0;
	transition: opacity 0.3s, transform 0.3s, visibility 0s;
	z-index: 9998;
}

.dw-search[hidden] {
	display: flex;
	opacity: 0;
	overflow: hidden;
	transform: scale(0.96);
	transition: opacity 0.3s, transform 0.3s, visibility 0s 0.3s;
	visibility: hidden;
}

.dw-search__form {
	align-items: center;
	display: flex;
	flex-basis: 100%;
	gap: 12px;
}

.dw-search input[type="search"].dw-search__input {
	background: none;
	border: solid #fff;
	border-radius: 0;
	border-width: 0 0 2px;
	color: #fff;
	flex-basis: 100%;
	font-family: var(--dw-font);
	font-size: clamp(26px, 5vw, 50px);
	font-weight: 400;
	line-height: 1.5;
	min-width: 0;
	padding: 0;
	text-align: center;
	/* The base input transition would delay inherited visibility and block focus on open. */
	transition: none;
}

.dw-search__input::placeholder {
	color: rgba(255, 255, 255, 0.7);
	font-family: inherit;
	opacity: 1;
}

.dw-search__close,
.dw-search__close:hover,
.dw-search__close:focus {
	align-items: center;
	background: none;
	border: 0;
	border-radius: 4px;
	color: #fff;
	cursor: pointer;
	display: flex;
	flex: 0 0 44px;
	font-size: 22px;
	height: 44px;
	justify-content: center;
	padding: 0;
}

.dw-search__close:hover {
	background-color: rgba(255, 255, 255, 0.15);
}

/* ---------- Home: slider ---------- */

/* A Group block with the "Slideshow" style; markup built in inc/blocks.php. */
.dw-slides-section {
	margin-bottom: 0;
}

.dw-slides {
	--swiper-theme-color: #fff;
	--swiper-pagination-bullet-inactive-color: #fff;
	--swiper-pagination-bullet-inactive-opacity: 0.5;
	background-color: #2b2b2b;
	position: relative;
}

.dw-slides .swiper-slide.wp-block-cover {
	align-items: center;
	display: flex;
	height: 400px;
	justify-content: center;
	margin: 0;
	min-height: 0 !important;
	overflow: hidden;
	padding: 50px 70px;
	position: relative;
}

.dw-slides .wp-block-cover__image-background {
	height: 100%;
	left: 0;
	max-width: none;
	object-fit: cover;
	position: absolute;
	top: 0;
	width: 100%;
}

.dw-slides .wp-block-cover__background {
	bottom: 0;
	left: 0;
	opacity: 0.5;
	position: absolute;
	right: 0;
	top: 0;
}

.dw-slides .wp-block-cover__inner-container {
	color: #fff;
	max-width: 100%;
	position: relative;
	text-align: center;
	width: auto;
	z-index: 1;
}

/* Contents fade up once a slide has settled (class toggled in main.js). */
.dw-slides.is-ready .wp-block-cover__inner-container {
	visibility: hidden;
}

.dw-slides.is-ready .wp-block-cover__inner-container.is-in {
	animation: dw-fade-in-up 0.9s;
	visibility: visible;
}

@keyframes dw-fade-in-up {
	from {
		opacity: 0;
		transform: translate3d(0, 40px, 0);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.dw-slides .wp-block-cover :is(h1, h2, h3, h4) {
	color: #fff;
	font-family: var(--dw-font);
	font-size: clamp(24px, 3.2vw, 38px);
	font-weight: 700;
	line-height: 1.1;
	margin: 0 0 24px;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.dw-slides .wp-block-cover p {
	color: #fff;
	font-family: "Roboto Slab", Georgia, serif;
	font-size: clamp(14px, 1.6vw, 18px);
	font-weight: 400;
	line-height: 1.4;
	margin: 0 0 28px;
}

.dw-slides .wp-block-buttons {
	justify-content: center;
	margin: 0;
}

.dw-slides .wp-block-button__link {
	background: transparent;
	border: 2px solid #fff;
	border-radius: 4px;
	color: #fff;
	display: inline-block;
	font-family: var(--dw-font);
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	padding: 13px 26px;
	text-align: center;
	transition: background-color 0.2s, color 0.2s;
}

.dw-slides .wp-block-button__link:hover,
.dw-slides .wp-block-button__link:focus-visible {
	background-color: #fff;
	color: #1d1d1d;
}

.dw-slides__arrow,
.dw-slides__pause {
	align-items: center;
	background-color: rgba(0, 0, 0, 0.35);
	border: 0;
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	display: flex;
	justify-content: center;
	padding: 0;
	position: absolute;
	transition: background-color 0.2s;
	z-index: 2;
}

.dw-slides__arrow:hover,
.dw-slides__arrow:focus,
.dw-slides__pause:hover,
.dw-slides__pause:focus {
	background-color: rgba(0, 0, 0, 0.65);
	color: #fff;
}

.dw-slides__arrow {
	font-size: 22px;
	height: 44px;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
}

.dw-slides__arrow--prev { left: 12px; }
.dw-slides__arrow--next { right: 12px; }

.dw-slides__pause {
	bottom: 12px;
	z-index: 11;
	font-size: 12px;
	height: 32px;
	right: 18px;
	width: 32px;
}

.dw-slides__pause[hidden] {
	display: none;
}

.dw-slides__pause .dw-slides__play-icon,
.dw-slides__pause.is-paused .dw-slides__pause-icon {
	display: none;
}

.dw-slides__pause.is-paused .dw-slides__play-icon {
	display: block;
	margin-left: 2px;
}

.dw-slides .swiper-pagination {
	bottom: 10px;
	left: 0;
	line-height: 0;
	pointer-events: none;
	width: 100%;
}

/* 24px hit area around a 12px dot. */
.dw-slides .swiper-pagination .swiper-pagination-bullet {
	background-clip: content-box;
	box-sizing: border-box;
	height: 24px;
	margin: 0;
	padding: 6px;
	pointer-events: auto;
	width: 24px;
}

@media (max-width: 767px) {
	.dw-slides .swiper-slide.wp-block-cover {
		padding: 30px 56px 44px;
	}

	.dw-slides__arrow {
		height: 36px;
		width: 36px;
	}

	.dw-slides__arrow--prev { left: 8px; }
	.dw-slides__arrow--next { right: 8px; }
}

/* ---------- Page content (blocks) ---------- */

/* Blocks sit in a 1120px column; "Full width" blocks span the window. */
.dw-content {
	color: var(--dw-text);
	font-family: var(--dw-font);
	line-height: 1.65;
	padding-bottom: 40px;
}

.dw-content > * {
	margin-bottom: 0;
	margin-left: auto;
	margin-right: auto;
	margin-top: 20px;
	max-width: 1120px;
	width: calc(100% - 20px);
}

.dw-content > .alignfull {
	max-width: none;
	width: 100%;
}

.dw-content > :first-child,
.dw-content > .alignfull + * {
	margin-top: 30px;
}

.dw-content > .alignfull:first-child {
	margin-top: 0;
}

.dw-content--comments {
	padding-bottom: 40px;
}

.dw-content :is(h1, h2, h3, h4, h5, h6) {
	color: var(--dw-blue-dark);
	font-family: var(--dw-font);
	font-weight: 600;
	line-height: 1.15;
}

.dw-content :is(h2, h3, h4, h5, h6) {
	margin: 0 0 20px;
}

.dw-content h2 { font-size: 1.5rem; }
.dw-content h3 { font-size: 1.25rem; }
.dw-content h4 { font-size: 1.1rem; }

.dw-content .wp-block-column > :last-child,
.dw-content .wp-block-group > :last-child {
	margin-bottom: 0;
}

.dw-content a:not(.wp-block-button__link):not(.dw-plain-link):not(.dw-button) {
	text-decoration: underline;
}

.dw-content li::marker {
	color: var(--dw-blue);
}

.dw-content ul,
.dw-content ol {
	margin-bottom: 0.9rem;
}

.dw-content li {
	break-inside: avoid;
}

.dw-content .is-style-dw-cols-2 { columns: 2 180px; }
.dw-content .is-style-dw-cols-3 { columns: 3 200px; }

/* Columns: the theme's own layout so they stack at the 767px mobile breakpoint. */
.wp-block-columns.wp-block-columns {
	align-items: normal;
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.wp-block-columns.are-vertically-aligned-top { align-items: flex-start; }
.wp-block-columns.are-vertically-aligned-center { align-items: center; }
.wp-block-columns.are-vertically-aligned-bottom { align-items: flex-end; }

.wp-block-column {
	flex: 1 1 0;
	min-width: 0;
	overflow-wrap: break-word;
}

.wp-block-column[style*="flex-basis"] {
	flex-grow: 0;
}

.wp-block-column.is-vertically-aligned-top { align-self: flex-start; }
.wp-block-column.is-vertically-aligned-center { align-self: center; }
.wp-block-column.is-vertically-aligned-bottom { align-self: flex-end; }

/* !important: WordPress prints a per-block "nowrap" rule for columns. */
@media (min-width: 768px) {
	.wp-block-columns {
		flex-wrap: nowrap !important;
	}
}

@media (max-width: 767px) {
	.wp-block-columns:not(.is-not-stacked-on-mobile) {
		flex-wrap: wrap !important;
	}

	.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
		flex-basis: 100% !important;
	}
}

.dw-content .wp-block-image {
	margin: 0 0 20px;
	text-align: center;
}

.dw-content .wp-block-image img {
	border-radius: 4px;
	height: auto;
	max-width: 100%;
	vertical-align: middle;
}

.dw-content .wp-block-cover {
	margin-bottom: 20px;
}

.dw-content .wp-block-buttons {
	margin-bottom: 20px;
}

.wp-block-button__link {
	transition: background-color 0.2s, color 0.2s;
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:focus {
	background-color: var(--dw-blue-dark);
	color: #fff;
}

.wp-block-button.is-style-dw-red .wp-block-button__link {
	background-color: var(--dw-red);
	color: #fff;
}

.wp-block-button.is-style-dw-red .wp-block-button__link:hover,
.wp-block-button.is-style-dw-red .wp-block-button__link:focus {
	background-color: var(--dw-red-dark);
}

.dw-content .wp-block-table td,
.dw-content .wp-block-table th {
	padding: 10px 14px;
}

.dw-content .wp-block-quote {
	border-left: 4px solid var(--dw-blue);
	margin: 0 0 20px;
	padding: 4px 0 4px 20px;
}

.dw-content .wp-block-separator {
	border: 0;
	border-top: 1px solid #ddd;
}

/* "Call Us 24/7" line. */
.dw-content .dw-call-us {
	color: #333;
	font-size: 1.5rem;
	line-height: 1.2;
	margin-bottom: 1rem;
	margin-top: 0.5rem;
}

.dw-call-us a.dw-plain-link {
	color: var(--dw-red);
	white-space: nowrap;
}

.dw-contact-details {
	color: #1d1d1d;
	line-height: 1.9;
}

.dw-contact-details a:not(.dw-plain-link) {
	color: var(--dw-red);
}

.dw-contact-details a:not(.dw-plain-link):hover {
	color: var(--dw-red-dark);
}

/* The "Extra large" size scales with the window in columns; on phones the columns stack. */
@media (max-width: 767px) {
	.dw-content .has-x-large-font-size {
		font-size: 26px !important;
	}
}

/* ---------- Inner pages ---------- */

.dw-hero {
	background-color: #2b2b2b;
	overflow: hidden;
	padding-bottom: 70px;
	padding-top: 120px;
	position: relative;
}

.dw-hero .dw-hero__image {
	height: 100%;
	left: 0;
	max-width: none;
	object-fit: cover;
	object-position: center bottom;
	position: absolute;
	top: 0;
	width: 100%;
}

/* Darkens the side the title sits on so white text stays readable on any banner. */
.dw-hero:after {
	background: linear-gradient(90deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.45) 100%);
	bottom: 0;
	content: "";
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
}

.dw-hero .dw-container {
	z-index: 1;
}

.dw-hero__title {
	color: #fff;
	font-size: clamp(40px, 7vw, 70px);
	line-height: 1;
	text-align: end;
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

@media (max-width: 767px) {
	.dw-hero {
		padding-bottom: 36px;
		padding-top: 70px;
	}

	.dw-hero:after {
		background: rgba(0, 0, 0, 0.35);
	}
}

.dw-map {
	line-height: 0;
	overflow: hidden;
}

.dw-map iframe {
	border: none;
	height: 300px;
	line-height: 1;
	margin: 0;
	max-width: 100%;
	width: 100%;
}

/* ---------- Forms (Contact Form 7 markup) ---------- */

.dw-page .wpcf7 form {
	margin: 0;
}

.dw-form {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -5px -14px;
}

.dw-field {
	display: flex;
	flex-wrap: wrap;
	margin-bottom: 14px;
	padding: 0 5px;
	position: relative;
	width: 100%;
}

.dw-field > label {
	color: #444;
	cursor: pointer;
	display: block;
	font-family: var(--dw-font);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	margin-bottom: 6px;
}

.dw-form--marked .dw-field > label:after {
	color: var(--dw-red);
	content: "*";
	padding-inline-start: 0.3em;
}

.dw-field .wpcf7-form-control-wrap {
	display: block;
	flex-basis: 100%;
	max-width: 100%;
	position: relative;
	width: 100%;
}

.dw-field input:not([type="submit"]),
.dw-field textarea,
.dw-field select {
	background-color: #fff;
	border: 1px solid #69727d;
	border-radius: 4px;
	color: #222;
	display: block;
	font-family: var(--dw-font);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	max-width: 100%;
	min-height: 44px;
	transition: border-color 0.2s, box-shadow 0.2s;
	vertical-align: middle;
	width: 100%;
}

.dw-field textarea {
	padding: 10px 16px;
}

.dw-field input:not([type="submit"]):focus,
.dw-field textarea:focus,
.dw-field select:focus {
	border-color: var(--dw-blue);
	box-shadow: 0 0 0 3px rgba(24, 121, 182, 0.3);
	outline: 0;
}

.dw-field input::placeholder,
.dw-field textarea::placeholder {
	color: #767676;
	font-family: inherit;
	opacity: 1;
}

.dw-select {
	color: #222;
	display: flex;
	flex-basis: 100%;
	font-family: var(--dw-font);
	max-width: 100%;
	position: relative;
	width: 100%;
}

/* Caret drawn in CSS so the select needs no icon font. */
.dw-select:after {
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 7px solid #555;
	content: "";
	pointer-events: none;
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
}

.dw-select select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	padding: 5px 36px 5px 16px;
}

.dw-field--submit {
	align-items: flex-end;
}

.dw-field--submit input[type="submit"] {
	background-color: var(--dw-red);
	border: none;
	border-radius: 4px;
	color: #fff;
	cursor: pointer;
	display: block;
	flex-basis: 100%;
	font-family: var(--dw-font);
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	min-height: 46px;
	padding: 0 24px;
	text-align: center;
	transition: background-color 0.2s;
	width: 100%;
}

.dw-field--submit input[type="submit"]:hover,
.dw-field--submit input[type="submit"]:focus {
	background-color: var(--dw-red-dark);
	color: #fff;
}

.dw-field--submit .wpcf7-spinner {
	margin: 0;
	position: absolute;
	right: 15px;
	top: 11px;
}

/* Validation messages sit inside the field so they never shift the layout
   (a moving Send button can swallow the click that follows a correction). */
.dw-page .wpcf7-not-valid-tip {
	background-color: #fff;
	color: #c00;
	font-family: var(--dw-font);
	font-size: 13px;
	line-height: 18px;
	padding-left: 8px;
	pointer-events: none;
	position: absolute;
	right: 12px;
	top: 13px;
}

.dw-select .wpcf7-not-valid-tip {
	right: 36px;
}

.dw-field input.wpcf7-not-valid,
.dw-field textarea.wpcf7-not-valid,
.dw-field select.wpcf7-not-valid {
	border-color: #c00;
}

.dw-page .wpcf7 form .wpcf7-response-output {
	border-radius: 4px;
	color: #222;
	font-family: var(--dw-font);
	line-height: 1.4;
	margin: 24px 0 0;
	padding: 12px 16px;
}

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

.dw-associations {
	background-color: #f5f5f5;
	padding-bottom: 49px;
	padding-top: 49px;
	position: relative;
}

.dw-associations .dw-container {
	align-items: center;
}

.dw-associations__title {
	color: #6b6b6b;
	font-family: var(--dw-font);
	font-size: 23px;
	font-weight: 500;
	line-height: 1.2;
	margin: 0;
	text-transform: uppercase;
}

.dw-associations .dw-image img {
	border-radius: 0;
}

.dw-footer-main {
	background-color: #232323;
	padding: 50px 0;
	position: relative;
}

.dw-footer-about__title {
	color: #fff;
	font-size: 45px;
}

.dw-footer-about__text {
	color: #adadad;
	font-family: var(--dw-font);
	font-size: 16px;
	font-weight: 300;
	line-height: 1.7em;
	padding-right: 55px;
}

.dw-footer-about__text p:first-child::first-letter {
	color: #fff;
	float: left;
	font-size: 50px;
	line-height: 1;
	margin-right: 10px;
}

.dw-contact-card {
	margin: 0 auto;
	max-width: 100%;
	padding: 20px;
	text-align: center;
	width: 98%;
}

.dw-contact-card__bubble {
	background-color: #3d3d3d;
	border-radius: 4px;
	font-style: normal;
	margin: 0;
	padding: 45px;
	position: relative;
}

.dw-contact-card__bubble:after {
	background-color: #3d3d3d;
	box-sizing: content-box;
	content: "";
	display: block;
	height: 14px;
	left: 50%;
	position: absolute;
	top: calc(100% - 7px);
	transform: translateX(-50%) scaleX(0.75) rotate(45deg);
	width: 14px;
}

.dw-contact-card__text {
	color: #fff;
	font-family: var(--dw-font);
	font-size: 16px;
	font-weight: 300;
	line-height: 1.7em;
}

.dw-contact-card__footer {
	align-items: center;
	display: flex;
	gap: 12px;
	justify-content: center;
	margin-top: 22px;
	padding: 0 45px;
}

.dw-contact-card__image {
	line-height: 0;
}

.dw-contact-card__image img {
	border-radius: 50%;
	height: 60px;
	object-fit: cover;
	width: 60px;
}

.dw-contact-card__cite {
	margin: 0;
}

.dw-contact-card__name,
.dw-contact-card__name:hover {
	color: #fff;
	font-family: var(--dw-font);
	font-size: 25px;
	font-weight: 600;
	line-height: 1.7em;
}

.dw-contact-card__name:hover {
	text-decoration: underline;
}

.dw-copyright {
	background-color: #000;
	padding: 3px 0;
	position: relative;
}

.dw-copyright p {
	color: #a3a3a3;
	font-family: var(--dw-font);
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0.02em;
	line-height: 1.4;
	margin: 0;
	text-transform: uppercase;
}

.dw-scroll-top {
	display: flex;
	justify-content: flex-end;
}

.dw-scroll-top a {
	align-items: center;
	color: #fff;
	display: flex;
	font-size: 40px;
	height: 44px;
	justify-content: center;
	transition: color 0.2s, transform 0.2s;
	width: 44px;
}

.dw-scroll-top a:hover,
.dw-scroll-top a:focus {
	color: #a3a3a3;
	transform: translateY(-3px);
}

@media (max-width: 1024px) {
	.dw-associations {
		padding-left: 10px;
		padding-right: 10px;
	}

	.dw-footer-main {
		padding: 70px 25px;
	}

	.dw-copyright {
		padding: 16px 25px;
	}
}

@media (max-width: 1024px) and (min-width: 768px) {
	.dw-copyright__text { width: 70%; }
	.dw-copyright__top { width: 30%; }
}

@media (max-width: 767px) {
	.dw-associations {
		padding-bottom: 36px;
		padding-top: 36px;
	}

	.dw-footer-main {
		padding: 50px 20px;
	}

	.dw-footer-about__title {
		text-align: center;
	}

	.dw-footer-about__text {
		padding-right: 0;
	}

	.dw-contact-card {
		padding: 30px 0 0;
		width: 100%;
	}

	.dw-contact-card__bubble {
		padding: 30px 20px;
	}

	.dw-contact-card__name {
		font-size: 20px;
	}

	.dw-copyright {
		padding: 22px 20px 14px;
	}

	.dw-copyright p {
		text-align: center;
	}

	.dw-scroll-top {
		justify-content: center;
		padding-top: 8px;
	}
}

/* ---------- Plain pages: default template, search results, 404 ---------- */

.dw-plain {
	color: var(--dw-text);
	font-family: var(--dw-font);
	line-height: 1.65;
	margin: 0 auto;
	max-width: 1140px;
	min-height: 40vh;
	padding: 44px 20px 64px;
}

.dw-plain .entry-title {
	color: var(--dw-blue-dark);
	font-size: clamp(30px, 4.5vw, 42px);
	font-weight: 600;
	line-height: 1.1;
	margin: 0 0 24px;
}

.dw-plain .entry-title span {
	color: var(--dw-red);
}

.dw-plain h2,
.dw-plain h3,
.dw-plain h4 {
	color: var(--dw-blue-dark);
	font-weight: 600;
}

.dw-plain .page-content a:not(.dw-button),
.dw-plain .comments-area a,
.dw-text a:not(.dw-plain-link) {
	text-decoration: underline;
}

.dw-plain img {
	border-radius: 4px;
}

.dw-result {
	border-bottom: 1px solid #e4e4e4;
	padding: 22px 0;
}

.dw-result:first-child {
	padding-top: 0;
}

.dw-result__title {
	font-size: 22px;
	margin: 0 0 8px;
}

.dw-result p:last-child {
	margin-bottom: 0;
}

.dw-searchform {
	display: flex;
	gap: 8px;
	margin: 20px 0;
	max-width: 520px;
}

.dw-searchform input[type="search"] {
	border: 1px solid #69727d;
	border-radius: 4px;
	font-family: var(--dw-font);
	font-size: 16px;
	min-height: 44px;
	padding: 8px 14px;
}

.dw-plain .pagination {
	display: flex;
	justify-content: space-between;
	margin-top: 30px;
}

.dw-plain .comments-area {
	margin-top: 40px;
}
