/*
Theme Name: Coastal Services LLC
Theme URI: https://example.com/coastal-services-llc
Author: Coastal Services LLC
Description: The official theme for Coastal Services LLC. Classic blog-first layout.
Version: 1.0.0
*/

/* ------------------------------------------------------------------
   Local fonts
------------------------------------------------------------------ */
@font-face {
	font-family: 'Outfit';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/Outfit/Outfit-VariableFont_wght.ttf') format('truetype-variations'),
	     url('../fonts/Outfit/static/Outfit-Regular.ttf') format('truetype');
}

@font-face {
	font-family: 'Outfit';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/Outfit/static/Outfit-Bold.ttf') format('truetype');
}

@font-face {
	font-family: 'Outfit';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('../fonts/Outfit/static/Outfit-SemiBold.ttf') format('truetype');
}

@font-face {
	font-family: 'Roboto';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/Roboto/Roboto-VariableFont_wdth,wght.ttf') format('truetype-variations'),
	     url('../fonts/Roboto/static/Roboto-Regular.ttf') format('truetype');
}

@font-face {
	font-family: 'Roboto';
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/Roboto/Roboto-Italic-VariableFont_wdth,wght.ttf') format('truetype-variations'),
	     url('../fonts/Roboto/static/Roboto-Italic.ttf') format('truetype');
}

@font-face {
	font-family: 'Roboto';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/Roboto/static/Roboto-Bold.ttf') format('truetype');
}

@font-face {
	font-family: 'Roboto';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('../fonts/Roboto/static/Roboto-Medium.ttf') format('truetype');
}

/* ------------------------------------------------------------------
   Theme variables
------------------------------------------------------------------ */
:root {
    --color-light:          #fff;
    --color-dark:           #000;
	--color-bg:             #fdfaf6;
	--color-dark-bg:        navy;
	--color-text:           #1c2127;
	--color-muted:          #5a6675;
	--color-accent:         #0b4f6c;
	--color-accent-hover:   #1a6f8e;
	--color-accent-light:   #2bb3ed;
	--color-beige-accent:   #e3dccf;
	--color-beige:          #e3dccf;
	--color-light-blue:     #f1f8ff;
	--color-border:         var(--color-beige);
	--color-link:           var(--color-accent-light);
	--color-heading:        var(--color-accent-light);
	--color-topbar-welcome: var(--color-light);
	--color-topbar:         var(--color-accent);
	--color-topbar-border:  rgba(255, 255, 255, 0.35);
	--color-logo-accent:    var(--color-accent-light);
	--color-emergency:      #e11d2a;
	--color-emergency-hover:#c6111d;
	--color-danger:         var(--color-emergency);
	--color-nav-link:       var(--color-text);
	--color-nav-link-hover: var(--color-accent-light);
	--font-heading:         'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-body:            'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	--font-button:          'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--content-width:        1200px;
	--wide-width:           80%;
	--full-width:           100%;
}

/* ------------------------------------------------------------------
   Reset & base
------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

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

@media (max-width: 782px) {
    html {
        margin-top: 0 !important;
    }
}

body {
	margin: 0;
	background: var(--color-light);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: 19px;
	line-height: 1.7;
	position: relative;
}

#page {
    position: relative;
}

img, video, svg { max-width: 100%; height: auto; }

a {
	color: var(--color-link);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}
a:hover { color: var(--color-accent-hover); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	font-weight: 600;
	line-height: 1.25;
	margin: 1.25em 0 0.5em;
	text-transform: capitalize;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }

button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.button {
	font-family: var(--font-button);
	border: none;
}

p { margin: 0 0 1.25em; }

blockquote {
	margin: 1.5em 0;
	padding: 0.5em 1.25em;
	border-left: 4px solid var(--color-accent);
	color: var(--color-muted);
	font-style: italic;
}

code, pre, kbd, samp {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.95em;
}

pre {
	padding: 1em;
	background: #f1ebe0;
	border-radius: 4px;
	overflow-x: auto;
}

hr {
	border: 0;
	border-top: 1px solid var(--color-border);
	margin: 2em 0;
}

.home .section-our-trusted-partners svg,
.home .section-about-us svg,
.home .section-stress-free svg                      { width: 3em; height: 3em; fill: currentColor; color: var(--color-accent); }
.home .kicker                                       { font-size: 1rem; text-transform: uppercase; }
.home .kicker .icon                                 { display: inline-flex; align-items: center; margin-right: 0.4em; vertical-align: middle; }

.highlight-text {
    color: var(--color-heading);
    font-weight: bolder;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	-webkit-clip-path: inset(50%);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link {
	background: #000;
	color: #fff;
	font-family: var(--font-body);
	padding: 8px 16px;
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
}
.skip-link:focus { left: 8px; top: 8px; }

.site { display: flex; flex-direction: column; }

/* ------------------------------------------------------------------
    Elementor custom class styles
------------------------------------------------------------------ */
.service-areas ul,
.service-areas li                           { list-style-type: none; }
.service-areas ul                           { padding: 0; }
.service-areas li                           { padding: 10px; border-bottom: 1px solid var(--color-heading); }
.service-areas li::before {
	content: "";
	display: inline-block;
	width: 1.5rem;
	height: 1.5rem;
	margin-right: 0.5rem;
	vertical-align: middle;
	background-color: var(--color-accent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M12%202a8%208%200%200%200-8%208c0%205.4%207%2011.5%207.3%2011.76a1%201%200%200%200%201.4%200C13%2021.5%2020%2015.4%2020%2010a8%208%200%200%200-8-8zm0%2011a3%203%200%201%201%200-6%203%203%200%200%201%200%206z%22%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M12%202a8%208%200%200%200-8%208c0%205.4%207%2011.5%207.3%2011.76a1%201%200%200%200%201.4%200C13%2021.5%2020%2015.4%2020%2010a8%208%200%200%200-8-8zm0%2011a3%203%200%201%201%200-6%203%203%200%200%201%200%206z%22%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
}
.about-us-24-hour h2                            { text-align: center; margin: 10px 0 0 0; }
.our-values img                                 { display: block; margin: auto; aspect-ratio: 1/1; object-fit: cover; object-position: center center; padding: 15px; }
.square-image img                               { display: block; aspect-ratio: 1/1; object-fit: cover; object-position: center center; }
.rank-math-breadcrumb p,
.rank-math-breadcrumb p a                       { color: var(--color-light); }
.rank-math-breadcrumb p a                       { font-weight: bolder; }
.rank-math-breadcrumb p a:hover                 { text-decoration: underline; }

/* ------------------------------------------------------------------
    Contact Page
------------------------------------------------------------------ */
#contact-page-info-block h2,
#contact-page-info-block h3 {
    margin: 15px auto;
}

/* ------------------------------------------------------------------
   Site header — top info bar
------------------------------------------------------------------ */
.site-header-top {
	background: var(--color-topbar);
	color: #fff;
	font-family: var(--font-body);
	font-size: 0.9rem;
}

.site-header-top__inner {
	max-width: var(--full-width);
	margin: 0 auto;
	padding: 0;
	display: flex;
	align-items: stretch;
	flex-wrap: nowrap;
	min-height: 40px;
}

.site-header-top__welcome {
	background: var(--color-topbar-welcome);
	color: var(--color-dark);
	font-weight: 500;
	padding: 0.55rem 1.5rem 0.55rem 0.75rem;
	clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
	margin-right: 1.5rem;
	display: flex;
	align-items: center;
	white-space: nowrap;
	flex: 0 0 auto;
}

.site-header-top__contact,
.footer-navigation-contact-details {
	display: flex;
	flex-wrap: nowrap;
	justify-content: flex-end;
	align-items: center;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0 1rem 0 0;
	flex: 1 1 auto;
	min-width: 0;
}

.footer-navigation-contact-details {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
    gap: 10px;
}

.site-header-top__item,
.footer-navigation-contact-details__item {
	display: flex;
	align-items: center;
	padding: 0 0.85rem;
	border-right: 1px solid var(--color-topbar-border);
	font-size: 0.9rem;
	white-space: nowrap;
	min-width: 0;
	gap: 5px;
}

.site-header-top__item:first-child,
.footer-navigation-contact-details__item:first-child {
	padding-left: 0;
}

.site-header-top__item:last-child,
.footer-navigation-contact-details__item:last-child {
	border-right: 0;
}

.site-header-top__item--social,
.footer-navigation-contact-details__item--social {
	padding-right: 0;
}

.site-header-top__item a {
	color: var(--color-light);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
}

.site-header-top__item a:hover {
	color: rgba(255, 255, 255, 0.8);
}

.site-header-top__icon {
	flex: 0 0 auto;
	fill: currentColor;
}

.footer-navigation-contact-details__item {
    border-right: none;
    padding: 0;
}

/* ------------------------------------------------------------------
   Site header — main bar
------------------------------------------------------------------ */
.site-header {
	background: var(--color-light);
	border-bottom: 1px solid var(--color-border);
	padding: 0;
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 1360px) {
    .footer-navigation-contact-details,
    .footer-navigation-contact-details__item {
        justify-content: center;
        align-items: center;
    }

    .footer-navigation-contact-details li,
    .footer-navigation-contact-details a {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 0;
	}
}

.site-header__inner {
	max-width: var(--full-width);
	margin: 0 auto;
	padding: 1.25rem 1.5rem;
	display: flex;
	align-items: center;
	gap: 1.5rem;
	position: relative;
}

.site-header__logo-wrap {
	position: relative;
	flex: 0 0 auto;
	max-height: 100px;
	padding: 0.25rem;
}

.site-logo { display: block; line-height: 0; }
.site-logo img { display: block; max-height: 100px; width: auto; transition: height 100ms ease; }

.site-header__logo-fallback {
	display: inline-block;
	text-decoration: none;
	color: var(--color-text);
}
.site-header__logo-fallback .site-title { margin: 0; font-size: 1.4rem; }

.main-navigation {
	flex: 1 1 auto;
	display: flex;
	justify-content: flex-end;
	font-family: var(--font-body);
}

.main-navigation ul {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	color: var(--color-nav-link);
	text-decoration: none;
	font-weight: 500;
	font-size: 1.05rem;
	padding: 0.5rem 1rem;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.main-navigation a:hover { background-color: var(--color-accent); color: var(--color-light); }

/* Active page indicator for the desktop nav menu. */
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a,
.main-navigation .current_page_item > a,
.main-navigation .current_page_ancestor > a {
    background-color: var(--color-accent-hover) !important;
	color: var(--color-light) !important;
}

/* Submenu: anchored beneath its parent <li>. Capped at 500px tall so a tall
   first-level dropdown stays visually compact — but we deliberately do NOT
   set `overflow` here. `overflow: hidden`/`auto` would clip absolutely-
   positioned descendants (the level-2+ fly-outs), which is why deeper
   submenus disappeared behind the level-1 box. With `overflow: visible`,
   a tall first-level dropdown simply grows past the cap instead of clipping,
   and every nested submenu renders as expected. */
.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-light);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    width: max-content;
    max-width: 90vw;
    max-height: 500px;
    flex-direction: column;
    gap: 0;
    display: none;
    z-index: 50;
}

.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu { display: flex; }

/* Level 2+ fly out to the right of their parent <li>. Don't clip either —
   see the comment on `.main-navigation .sub-menu` above. */
.main-navigation .sub-menu .sub-menu {
	top: 0;
	left: 100%;
	transform: none;
	min-width: 240px;
	max-height: 500px;
}

/* When a parent <li> is close to the right edge, JS flips the fly-out to
   open to the left instead of running off-screen. */
.main-navigation .sub-menu .sub-menu.is-flip-left {
	left: auto;
	right: 100%;
}

.main-navigation .sub-menu a {
	color: var(--color-dark);
	font-weight: 400;
	font-size: 0.95rem;
	padding: 0.5rem 1rem;
	width: 100%;
	text-align: center;
	transition: background 0.4s ease;
}

.main-navigation .sub-menu a:hover { background-color: var(--color-accent); color: var(--color-light); text-decoration: none; }

.menu-toggle {
	background: var(--color-accent);
	border: 0;
	color: var(--color-light);
	cursor: pointer;
	font-family: var(--font-body);
	display: none;
	width: 48px;
	height: 48px;
	padding: 0;
	border-radius: 4px;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, transform 0.2s ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible { background: var(--color-accent-hover); outline: none; }
.menu-toggle:active { transform: scale(0.96); }

.menu-toggle__box {
	position: relative;
	width: 22px;
	height: 16px;
	display: inline-block;
}

.menu-toggle__bar {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: var(--color-light);
	border-radius: 2px;
	transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}

.menu-toggle__bar:nth-child(1) { top: 0; }
.menu-toggle__bar:nth-child(2) { top: 7px; }
.menu-toggle__bar:nth-child(3) { top: 14px; }

/* Hamburger -> X when the drawer is open. */
.menu-toggle.is-active .menu-toggle__bar:nth-child(1) {
	top: 7px;
	transform: rotate(45deg);
}
.menu-toggle.is-active .menu-toggle__bar:nth-child(2) {
	opacity: 0;
	transform: translateX(-8px);
}
.menu-toggle.is-active .menu-toggle__bar:nth-child(3) {
	top: 7px;
	transform: rotate(-45deg);
}

.button,
.site-header__cta {
	flex: 0 0 auto;
	background: var(--color-emergency);
	color: var(--color-light) !important;
	font-family: var(--font-button);
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 1rem 1.5rem;
	border-radius: 2px;
	white-space: nowrap;
	transition: background 0.2s ease;
}

.button:hover,
.site-header__cta:hover {
	background: var(--color-emergency-hover);
	color: var(--color-light) !important;
}

@media (max-width: 1280px) {
	.site-header-top__item--address,
	.site-header-top__item--email { display: none; }
}

@media (max-width: 1100px) {
	.site-header-top__item--hours { display: none; }
}

@media (max-width: 1024px) {
    .site-header-top__welcome, .site-header-top__item--social, .site-header-top__item span { display: none }
    .site-header-top__item.site-header-top__item--email span,
    .site-header-top__item.site-header-top__item--phone span { display: flex; }
    .site-header-top__contact { justify-content: center; }
    .site-header-top__item { border-right: none; }
}

@media (max-width: 880px) {
	.site-header__inner {
		flex-wrap: wrap;
		gap: 1rem;
		padding: 0.75rem 1rem;
	}

	.site-header__logo-wrap {
		max-width: 140px;
		padding-left: 1rem;
	}

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

	.main-navigation {
		order: 2;
		margin-left: auto;
		justify-content: flex-end;
	}

	.main-navigation ul {
		flex-direction: column;
		gap: 0.5rem;
		width: 100%;
		display: none;
		padding: 1rem 0;
	}

	.main-navigation.toggled ul,
	.main-navigation ul.toggled { display: none; }

	.main-navigation .sub-menu {
		position: static;
		transform: none;
		box-shadow: none;
		border: 0;
		padding-left: 1rem;
		display: none;
	}

	.site-header__cta {
		order: 2;
		margin-left: auto;
		padding: 0.65rem 1rem;
		font-size: 0.85rem;
		display: none;
	}
}

@media (max-width: 640px) {
	.site-header-top__inner { padding: 0; }
	.site-header-top__welcome {
		flex: 1 1 100%;
		margin-right: 0;
		clip-path: none;
		justify-content: center;
	}
	.site-header-top__contact { padding: 0.5rem 1rem; }
	.site-header-top__item { padding: 0 0.6rem; font-size: 0.85rem; }
}

/* ------------------------------------------------------------------
   Mobile slide-in menu
------------------------------------------------------------------ */
.csl-no-scroll { overflow: hidden; }

:root { --csl-header-offset: 0px; }

.mobile-menu {
	position: fixed;
	top: var(--csl-header-offset);
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1000;
	pointer-events: none;
}

.mobile-menu[hidden] { display: none; }

.mobile-menu__scrim {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 32, 0.55);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.mobile-menu__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(86vw, 360px);
	height: 100%;
	background: linear-gradient(180deg, #ffffff 0%, #f6f9fb 100%);
	box-shadow: -18px 0 40px rgba(11, 79, 108, 0.18);
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
	will-change: transform;
	outline: none;
	overflow-y: auto;
}

.mobile-menu.is-open {
	pointer-events: auto;
}

.mobile-menu.is-open .mobile-menu__scrim { opacity: 1; }
.mobile-menu.is-open .mobile-menu__panel { transform: translateX(0); }

.mobile-menu__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.25rem 1.5rem;
	border-bottom: 1px solid var(--color-border);
}

.mobile-menu__brand {
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 0.85rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-accent);
}

.mobile-menu__close {
	background: transparent;
	border: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: var(--color-text);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, color 0.2s ease;
}

.mobile-menu__close:hover,
.mobile-menu__close:focus-visible {
	background: rgba(11, 79, 108, 0.08);
	color: var(--color-accent);
	outline: none;
}

.mobile-menu__nav {
	flex: 0 0 auto;
	min-height: 0;
	padding: 0;
}

/* Stacked panel container. Each panel is absolutely positioned and translated
   off-screen by default; only the active panel is on-screen. Vertical scroll
   lives inside each panel so tall menus remain navigable. */
.mobile-menu__panels {
	position: relative;
	flex: 0 0 auto;
	min-height: 0;
	overflow: hidden;
	display: block;
}

.mobile-menu__list {
	list-style: none;
	margin: 0;
	padding: 0;
	transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
	will-change: transform;
}

.mobile-menu__list--root {
	max-height: 50vh;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
}

@media (max-height: 500px) and (orientation: landscape) {
	.mobile-menu__list--root {
		max-height: 30vh;
	}
}

.mobile-menu__list--panel {
	position: absolute;
	inset: 0;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	transform: translateX(100%);
	z-index: 0;
}

/* Sub-menus inside a panel are templates only — pushPanel() reads them as
   the source for the next level's clone. They must never render visually
   inside the active panel. */
.mobile-menu__list--panel .sub-menu { display: none !important; }

/* State classes that JS swaps between. Each one sets a stable transform
   value; the `transition` on `.mobile-menu__list` animates between them
   without relying on keyframe-fill-mode side effects. */
.mobile-menu__list.is-active       { transform: translateX(0);     z-index: 2; }
.mobile-menu__list.is-exited-left  { transform: translateX(-100%); z-index: 1; }
.mobile-menu__list.is-exited-right { transform: translateX(100%);  z-index: 1; }

@media (prefers-reduced-motion: reduce) {
	.mobile-menu__list { transition-duration: 0.001s; }
}

.mobile-menu__list > li {
	border-bottom: 1px solid rgba(227, 220, 207, 0.6);
}

/* Header injected at the top of every sub-panel, hosting the back button. */
.mobile-menu__panel-header {
	list-style: none;
	border-bottom: 1px solid var(--color-border);
	background: rgba(11, 79, 108, 0.04);
	padding: 0;
}

.mobile-menu__back {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	width: 100%;
	background: transparent;
	border: 0;
	padding: 1rem 1.25rem;
	font-family: var(--font-button);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-accent);
	cursor: pointer;
	text-align: left;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.mobile-menu__back:hover,
.mobile-menu__back:focus-visible {
	background: rgba(11, 79, 108, 0.08);
	color: var(--color-accent-hover);
	outline: none;
}

.mobile-menu__back svg { flex-shrink: 0; transition: transform 0.2s ease; }
.mobile-menu__back:hover svg,
.mobile-menu__back:focus-visible svg { transform: translateX(-2px); }

/* Parent items that contain a submenu get a flex layout so the link and
   the toggle button can sit side by side. The submenu itself breaks onto
   its own row via width: 100%. */
.mobile-menu__list > li.menu-item-has-children {
	display: flex;
	flex-wrap: wrap;
	position: relative;
}

.mobile-menu__list > li.menu-item-has-children > a {
	flex: 1 1 auto;
	width: auto;
}

.mobile-menu__list > li.menu-item-has-children > .mobile-menu__submenu-toggle {
	flex: 0 0 3rem;
}

.mobile-menu__list a {
	display: block;
	padding: 1rem 1.5rem;
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--color-text);
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
	flex: 1 1 auto;
}

.mobile-menu__list a:hover,
.mobile-menu__list a:focus-visible {
	background: rgba(11, 79, 106, 0.06);
	color: var(--color-accent);
	padding-left: 1.75rem;
	outline: none;
}

/* Active page indicator for the slide-in mobile nav. */
.mobile-menu__list .current-menu-item > a,
.mobile-menu__list .current-menu-ancestor > a,
.mobile-menu__list .current_page_item > a,
.mobile-menu__list .current_page_ancestor > a {
	color: var(--color-accent-hover);
	text-decoration: underline;
	background: rgba(11, 79, 106, 0.06);
}

/* Chevron toggle button injected by navigation.js for any parent item
   that contains a submenu. */
.mobile-menu__submenu-toggle {
	flex: 0 0 auto;
	width: 3rem;
	background: transparent;
	border: 0;
	border-left: 1px solid rgba(227, 220, 207, 0.6);
	color: var(--color-accent);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background 0.2s ease, color 0.2s ease;
}

.mobile-menu__submenu-toggle:hover,
.mobile-menu__submenu-toggle:focus-visible {
	background: rgba(11, 79, 106, 0.08);
	color: var(--color-accent-hover);
	outline: none;
}

.mobile-menu__submenu-toggle svg {
	transition: transform 0.2s ease;
}

/* Legacy inline-accordion styles were removed in favor of the panel-stack
   approach (see `.mobile-menu__list--panel`). Sub-menus in the source DOM are
   hidden via [hidden] and re-rendered as full panels by navigation.js. */

.mobile-menu__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 1.25rem 1.5rem 0.75rem;
	padding: 0.95rem 1.25rem;
	background: var(--color-emergency);
	color: var(--color-light) !important;
	font-family: var(--font-button);
	font-weight: 700;
	font-size: 0.9rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 4px;
	transition: background 0.2s ease, transform 0.2s ease;
}

.mobile-menu__cta:hover,
.mobile-menu__cta:focus-visible {
	background: var(--color-emergency-hover);
	color: var(--color-light) !important;
	outline: none;
}

.mobile-menu__contact {
	list-style: none;
	margin: 0.75rem 1.5rem 1.5rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.mobile-menu__contact a {
	text-decoration: none;
}

.mobile-menu__item {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.4rem 0;
	font-family: var(--font-body);
	font-size: 0.95rem;
	line-height: 1.4;
	color: var(--color-text);
}

@media (max-height: 500px) and (orientation: landscape) {
	.mobile-menu__contact {
		margin: 0.5rem 1.5rem 0.75rem;
		gap: 0.15rem;
	}

	.mobile-menu__item {
		padding: 0.15rem 0;
		font-size: 0.85rem;
	}

	.mobile-menu__cta {
		margin: 0.75rem 1.5rem 0.5rem;
		padding: 0.6rem 1rem;
		font-size: 0.8rem;
	}
}

.mobile-menu__item a {
	color: inherit;
}

.mobile-menu__item--phone {
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--color-accent);
}

.mobile-menu__item--phone a { color: var(--color-accent); }
.mobile-menu__item--phone a:hover { color: var(--color-accent-hover); }

.mobile-menu__item--email a {
	color: var(--color-accent);
	word-break: break-word;
}
.mobile-menu__item--email a:hover { color: var(--color-accent-hover); }

.mobile-menu__item--social a {
	color: var(--color-accent);
}

.mobile-menu__icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	color: currentColor;
}

.mobile-menu__icon svg {
	width: 18px;
	height: 18px;
	display: block;
}

.mobile-menu__item--phone .mobile-menu__icon { color: var(--color-accent); }
.mobile-menu__item--social .mobile-menu__icon { color: var(--color-accent); }
.mobile-menu__item--social a:hover .mobile-menu__icon { color: var(--color-accent-hover); }

@media (min-width: 881px) {
	.mobile-menu { display: none !important; }
}

.site-content {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2.5rem;
	max-width: var(--wide-width);
	width: 100%;
	margin: 2.5rem auto;
	padding: 0 1rem;
}

@media (min-width: 880px) {
	.site-content {
		grid-template-columns: minmax(0, 1fr) 280px;
	}
}

.site-main { min-width: 0; }
.site-main--full { grid-column: 1 / -1; max-width: var(--content-width); margin: 0 auto; }

.sidebar {
	font-family: var(--font-body);
	font-size: 0.95rem;
}

.no-sidebar .site-content { grid-template-columns: minmax(0, 1fr); }
.no-sidebar .sidebar { display: none; }

/* ------------------------------------------------------------------
   Entries (fallback for page.php, 404.php, and other non-blog templates.
   The modern blog index, single, and search templates live in blogs.css.)
------------------------------------------------------------------ */
.entry {
	background: var(--color-light);
	border: 1px solid var(--color-border);
	border-radius: 6px;
	padding: 1.75rem;
	margin: 0 0 2rem;
}

.entry-header { margin-bottom: 1rem; }
.entry-title {
	margin: 0 0 0.5rem;
	font-size: 1.8rem;
	line-height: 1.2;
}
.entry-title a { color: var(--color-text); text-decoration: none; }
.entry-title a:hover { color: var(--color-accent); }

.entry-content img,
.entry-content figure { max-width: 100%; }
.entry-content figure img { display: block; height: auto; }
.wp-caption-text {
	font-family: var(--font-body);
	font-size: 0.85rem;
	color: var(--color-muted);
	text-align: center;
	margin-top: 0.5rem;
}

/* ------------------------------------------------------------------
   Pagination (also overridden inside blogs.css for the blog templates)
------------------------------------------------------------------ */
.navigation.pagination,
.navigation.posts-navigation,
.navigation.post-navigation {
	font-family: var(--font-body);
	margin: 2rem 0;
}
.nav-links,
.page-numbers {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
}
.page-numbers li a,
.page-numbers li span,
.nav-links a,
.nav-links span {
	display: inline-block;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--color-border);
	border-radius: 4px;
	background: var(--color-light);
	color: var(--color-text);
	text-decoration: none;
}
.page-numbers li a:hover,
.nav-links a:hover { border-color: var(--color-accent); color: var(--color-accent); }
.page-numbers li .current { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-light); }

/* ------------------------------------------------------------------
   Widgets
------------------------------------------------------------------ */
.widget {
	background: var(--color-light);
	border: 1px solid var(--color-border);
	border-radius: 6px;
	padding: 1.25rem;
	margin: 0 0 1.5rem;
	font-family: var(--font-body);
}
.widget-title {
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--color-muted);
	margin: 0 0 0.75rem;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 0.35rem 0; border-top: 1px dashed var(--color-border); }
.widget li:first-child { border-top: 0; }
.widget a { color: var(--color-text); text-decoration: none; }
.widget a:hover { color: var(--color-accent); text-decoration: underline; }

.search-form { display: flex; gap: 0.5rem; }
.search-field {
	flex: 1 1 auto;
	font-family: inherit;
	font-size: 1rem;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--color-border);
	border-radius: 4px;
	background: var(--color-light);
}

/* Sidebar (widget-area) search widget — modernized to match the
   blog header search treatment. Two widget variants need styling:
     1. The classic widget (section.widget_search > form.search-form)
        uses .search-form / .search-field / .search-submit.
     2. The Gutenberg block widget uses .wp-block-search__* classes
        (the form is .wp-block-search with an .inside-wrapper div).
   Both are covered here so the sidebar looks the same regardless of
   which widget the editor drops in. */

/* Classic widget selectors */
.widget.widget_search .search-form,
.widget .search-form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	box-shadow: 0 4px 18px rgba(11, 79, 108, 0.08);
	border-radius: 999px;
	padding: 0.25rem;
	background: var(--color-light);
	border: 1px solid var(--color-border);
	width: 100%;
	min-width: 0;
}

.widget.widget_search .search-field,
.widget .search-field {
	flex: 1 1 120px;
	min-width: 0;
	border: 0;
	background: transparent;
	padding: 0.6rem 1rem;
	font-size: 0.95rem;
	border-radius: 999px;
	font-family: var(--font-body);
	color: var(--color-text);
	transition: background-color 0.2s ease;
}

.widget.widget_search .search-field:focus,
.widget .search-field:focus {
	outline: none;
	background: var(--color-light-blue);
}

.widget.widget_search .search-field::placeholder,
.widget .search-field::placeholder {
	color: var(--color-muted);
	opacity: 0.7;
}

.widget.widget_search .search-submit,
.widget .search-submit {
	flex: 0 0 auto;
	font-family: var(--font-button);
	font-weight: 600;
	font-size: 0.9rem;
	background: var(--color-accent);
	border: 0;
	color: var(--color-light);
	padding: 0.6rem 1.25rem;
	border-radius: 999px;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.widget.widget_search .search-submit:hover,
.widget .search-submit:hover {
	background: var(--color-accent-hover);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px -4px rgba(11, 79, 108, 0.4);
}

.widget.widget_search .search-submit:active,
.widget .search-submit:active {
	transform: translateY(0);
}

/* Gutenberg block widget selectors.
   The block's HTML structure is:
     <form class="wp-block-search [__button-outside|__button-inside] [__text-button]">
       <label class="wp-block-search__label">Search</label>
       <div class="wp-block-search__inside-wrapper">
         <input class="wp-block-search__input">
         <button class="wp-block-search__button">Search</button>
       </div>
     </form>
   Despite the `__button-outside` modifier, in practice the button can
   sit inside the inside-wrapper. To support both layouts cleanly, the
   form itself is a plain block (label on top, wrapper below) and the
   wrapper is the styled pill. */
.widget .wp-block-search {
	margin: 0;
	width: 100%;
}

.widget .wp-block-search__label {
	display: block;
	font-family: var(--font-button);
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--color-text);
	margin: 0 0 0.5rem;
}

.widget .wp-block-search__inside-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	box-shadow: 0 4px 18px rgba(11, 79, 108, 0.08);
	border-radius: 999px;
	padding: 0.25rem;
	background: var(--color-light);
	border: 1px solid var(--color-border);
	width: 100%;
	min-width: 0;
	transition: background-color 0.2s ease;
}

.widget .wp-block-search__inside-wrapper:focus-within {
	background: var(--color-light-blue);
}

.widget .wp-block-search__input {
	flex: 1 1 120px;
	min-width: 0;
	border: 0;
	background: transparent;
	padding: 0.6rem 1rem;
	font-size: 0.95rem;
	border-radius: 999px;
	font-family: var(--font-body);
	color: var(--color-text);
	box-shadow: none;
}

.widget .wp-block-search__input:focus {
	outline: none;
	box-shadow: none;
}

.widget .wp-block-search__input::placeholder {
	color: var(--color-muted);
	opacity: 0.7;
}

.widget .wp-block-search__button {
	flex: 0 0 auto;
	font-family: var(--font-button);
	font-weight: 600;
	font-size: 0.9rem;
	background: var(--color-accent) !important;
	border: 0 !important;
	color: var(--color-light) !important;
	padding: 0.6rem 1.25rem !important;
	border-radius: 999px !important;
	cursor: pointer;
	white-space: nowrap;
	box-shadow: none !important;
	transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.widget .wp-block-search__button:hover {
	background: var(--color-accent-hover) !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px -4px rgba(11, 79, 108, 0.4) !important;
}

.widget .wp-block-search__button:active {
	transform: translateY(0);
}

@media (max-width: 360px) {
	.widget .search-form,
	.widget .wp-block-search__inside-wrapper {
		flex-direction: column;
		border-radius: 16px;
		padding: 0.5rem;
	}

	.widget .search-field,
	.widget .wp-block-search__input {
		flex: 1 1 auto;
		width: 100%;
		border-radius: 12px;
		padding: 0.7rem 1rem;
	}

	.widget .search-submit,
	.widget .wp-block-search__button {
		flex: 1 1 auto;
		width: 100%;
		border-radius: 12px;
		padding: 0.7rem 1rem;
	}
}

/* Comments are rendered on single posts only, so the styles live in
   blogs.css alongside the rest of the post-template styles. */


/* ------------------------------------------------------------------
        Site footer
------------------------------------------------------------------ */
.site-footer                                                { margin-top: auto; background: var(--color-dark); color: #d6e6ec; font-family: var(--font-body); font-size: 0.9rem; padding: 4rem 1rem 2rem 1rem; }
.site-footer .footer-content                                { display: grid; grid-template-columns: 25% 25% 25% 25%; gap: 2rem; width: 100%; max-width: var(--content-width); margin: auto auto 2rem auto; }
.site-footer .footer-content.three-columns                  { grid-template-columns: 33% 33% 33%; }
.site-footer .footer-content.three-columns .footer-cmh-logo { display: block; margin: auto; }
.site-footer .footer-widgets,
.site-footer .site-info                                     { max-width: var(--wide-width); margin: 0 auto; }
.site-footer a                                              { color: #fff; text-decoration: none; }
.site-footer a:hover                                        { color: var(--color-heading); text-decoration: underline; }
.site-footer .widget                                        { background: transparent; border: 0; padding: 0; color: #d6e6ec; }
.site-footer .widget-title                                  { color: #fff; }
.site-footer .widget a                                      { color: #fff; }

@media (max-width: 1360px) {
    .site-footer .footer-content                            { display: flex; flex-direction: column; justify-content: center; align-items: center; }
}

/* ------------------------------------------------------------------
        Site footer contact
------------------------------------------------------------------ */
.footer-content__contact__wrap:not(:has(.footer-content__site-title)) {
    max-width: 150px;
    width: 100%;
}

.footer-content__contact__footer-logo img                   { width: 100%; }
.footer-content__site-title                                 { color: var(--color-light); font-size: 1.25rem; }
.footer-content__contact__description                       { display: block; width: 100%; color: var(--color-light); font-size: 1rem; }
.footer-content__contact__social-media-links                { display: flex; gap: 1rem; justify-content: flex-start; align-items: center; }
.footer-content__contact__social-media-links:last-of-type   { margin-bottom: 1rem; }
.footer-content__contact__social-media-links svg            { width: 2rem; height: 2rem; fill: currentColor; color: var(--color-light); }
.footer-content__contact__icon-text-block                   { display: flex; align-items: center; margin-bottom: 1rem; }
.footer-content__contact__icon-text-block svg               { width: 1.5rem; height: 1.5rem; fill: currentColor: color: var(--color-light); margin-right: 0.5rem; }
.footer-content__contact__social-media-links svg:hover,
.footer-content__contact__icon-text-block svg:hover         { fill: currentColor; color: var(--color-heading); }

@media (max-width: 1360px) {
    .footer-content__site-title                             { text-align: center; }
    .footer-content__contact__social-media-links,
    .footer-content__contact__icon-text-block               { justify-content: center; }
    .footer-content__contact__description                   { text-align: center; }
    .fluentform .ff-el-input--label                         { width: 100%; }
    .fluentform .ff-el-input--label label                   { width: 100%; max-width: 100%; text-align: center; }
}

/* ------------------------------------------------------------------
        Site footer navigation
------------------------------------------------------------------ */
.footer-navigation                                          { margin-left: 0; }
.footer-navigation__section-title                           { font-size: 1rem; text-transform: uppercase; margin: 0 0 1rem 0; }
.footer-navigation ul.footer-menu                           { display: flex; flex-direction: column; justify-content: flex-start; padding-left: 5px; }
.footer-navigation ul.footer-menu a:hover                   { text-decoration: underline; }
.footer-navigation .footer-menu                             { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.footer-cmh-logo                                            { width: 150px; height: auto; }
.footer-newsletter-signup                                   { width: 100%; max-width: fit-content; }

@media (max-width: 1360px) {
    .footer-content__contact__wrap                          { margin: auto; }
    .footer-navigation:last-of-type                         { margin-bottom: 2rem; }
    .footer-navigation__section-title,
    .footer-navigation .footer-menu li                      { text-align: center; }
    .footer-navigation .footer-menu li::after               { display: none; }
    .footer-cmh-logo                                        { width: 100px; }
}

/* ------------------------------------------------------------------
        Site footer bottom bar
------------------------------------------------------------------ */

.bottom-bar                                                 { max-width: var(--content-width); margin: auto; display: flex; flex-wrap: nowrap; justify-content: space-between; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.footer-site-info                                           { color: rgba(255, 255, 255, 0.7); text-align: center; }

@media (max-width: 1360px) {
    .bottom-bar                                             { flex-direction: column; justify-content: center; align-items: center; }
    .footer-site-info,
    .legal-links,
    .legal-links a                                          { width: 100%; text-align: center }
}
