/*
Theme Name: Neighbors AC
Theme URI: https://neighborsac.com
Author: Century Mechanical Holdings
Description: Neighbors AC brand stylesheet. Replaces the parent theme's
main.css wholesale (see \Neighbors_AC\Setup::use_child_theme_assets)
rather than layering overrides on it, because the two themes use different
navigation designs and different responsive breakpoints — hover fly-outs above
881px here versus the parent's click-driven mega menu above 1600px.

The @font-face rules below deliberately point up into the parent theme so the
font files are not duplicated in this child. WordPress requires a child theme's
parent to live in the same themes directory, so this relative path is stable.
Version: 1.0.0
*/

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

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

@font-face {
	font-family: 'Outfit';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('../../../cmh-center-nav/assets/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('../../../cmh-center-nav/assets/fonts/Roboto/Roboto-VariableFont_wdth,wght.ttf') format('truetype-variations'),
	     url('../../../cmh-center-nav/assets/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('../../../cmh-center-nav/assets/fonts/Roboto/Roboto-Italic-VariableFont_wdth,wght.ttf') format('truetype-variations'),
	     url('../../../cmh-center-nav/assets/fonts/Roboto/static/Roboto-Italic.ttf') format('truetype');
}

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

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

/* ------------------------------------------------------------------
   Theme variables
------------------------------------------------------------------ */
:root {
    --color-light:          #fff;
    --color-dark:           #000;
	--color-bg:             #f5f7fa;
	--color-dark-bg:        #1e3a8a;
	--color-text:           #1c2127;
	--color-muted:          #5a6675;

	/* Brand palette — Neighbors A/C (sky family). */
	--color-primary:        #0284c7;
	--color-primary-hover:  #0369a1;
	--color-primary-light:  #38bdf8;
	--color-primary-dark:   #075985;
	--color-primary-pale:   #e0f2fe;

	--color-secondary:      #444444;
	--color-secondary-hover:#dfdfdf;
	--color-secondary-light:#f4f4f4;

	--color-emergency:      #d93a40;
	--color-emergency-dark: #9b1318;

	--color-accent:         var(--color-primary);
	--color-accent-hover:   var(--color-primary-hover);
	--color-accent-light:   var(--color-primary-light);
	--color-beige-accent:   var(--color-primary-pale);
	--color-beige:          var(--color-primary-pale);
	--color-light-blue:     #f0f9ff;
	--color-border:         var(--color-primary-pale);
	--color-link:           var(--color-primary);
	--color-heading:        var(--color-primary);
	--color-logo-accent:    var(--color-primary-light);
	--color-emergency:      var(--color-secondary);
	--color-emergency-hover:var(--color-secondary-hover);
	--color-danger:         var(--color-secondary);
	--color-nav-link:       var(--color-dark);
	--color-nav-link-hover: var(--color-accent);
	--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%;
}

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; font-weight: 900; }
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: var(--color-primary-pale);
	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; min-height: 100vh; }

/* ------------------------------------------------------------------
    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; padding: 15px; }
.feature-icons h2,
.feature-icons h3,
.feature-icons h4,
.feature-icons h5,
.feature-icons h6                               { margin: 0; }
.feature-icons-left-aligned-text h2,
.feature-icons-left-aligned-text h3,
.feature-icons-left-aligned-text h4,
.feature-icons-left-aligned-text h5,
.feature-icons-left-aligned-text h6             { margin-bottom: 5px; }
.emergency-feature-block p                      { background-color: var(--color-secondary); border-radius: 50px; padding: 5px 15px; }
.service-area-section a                         { border-radius: 5px; overflow: hidden; }
.service-area-section a:hover                   { background-color: var(--color-light-blue); }

.emergency-feature-block .elementor-icon-box-wrapper {
    justify-content: space-between !important;
}

.emergency-feature-block .elementor-icon-box-content {
    width: auto !important;
    flex-grow: 0 !important;
}

.js-schedule-now {
    cursor: pointer;
}

.textarea-no-resize {
    resize: none;
}

@media (max-width: 1200px) {
    .feature-image                              { left: 50%; transform: translate(-50%, 0); }
}

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

/* ------------------------------------------------------------------
   Site header — top info bar

   Slim dark band: a centered warning message ("Gas emergency?") with a
   warning triangle on its left, and a right-aligned pill CTA that dials
   the configured phone number. On narrow screens the message and CTA
   stack vertically and remain centered.
------------------------------------------------------------------ */
.site-header-top {
	background: var(--color-primary);
	color: var(--color-light);
	font-family: var(--font-body);
	font-size: 0.95rem;
}

.site-header-top__inner {
	max-width: var(--full-width);
	margin: 0 auto;
	padding: 0.65rem 2.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.25rem;
	position: relative;
	min-height: 44px;
}

.site-header-top__message {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	font-weight: 500;
	color: var(--color-light);
	flex: 1 1 auto;
	justify-content: center;
	text-align: center;
}

@media (min-width: 1200px) {
    .site-header-top__message-desktop-message {
        display: block;
    }
    .site-header-top__message-mobile-message {
        display: none;
    }
}

@media (max-width: 1199px) {
    .site-header-top__message-desktop-message {
        display: none;
    }
    .site-header-top__message-mobile-message {
        display: block;
    }
}

/* The parent's topbar.php drops the inline `text-decoration: none` this theme
   used to carry, so the emergency link would underline its whole sentence.
   Only the <u> around the phone number should be underlined. */
.site-header-top__message a {
	text-decoration: none;
}

.site-header-top__warning {
	flex: 0 0 auto;
	fill: var(--color-secondary-light);
}

.site-header-top__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: var(--color-secondary);
	color: var(--color-light);
	font-family: var(--font-button);
	font-weight: 700;
	font-size: 0.85rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 0.45rem 1.15rem;
	border-radius: 999px;
	white-space: nowrap;
	transition: background 0.2s ease, transform 0.2s ease;
	position: absolute;
	right: 2.5rem;
	top: 50%;
	transform: translateY(-50%);
}

.site-header-top__cta:hover,
.site-header-top__cta:focus-visible {
	background: var(--color-secondary-hover);
	color: var(--color-light);
	outline: none;
}

.site-header-top__cta-icon {
	flex: 0 0 auto;
}

@media (max-width: 640px) {
	.site-header-top__inner {
		flex-direction: column;
		gap: 0.65rem;
		padding: 0.6rem 1.5rem;
	}

	.site-header-top__message {
		font-size: 0.85rem;
	}

	.site-header-top__cta {
		position: static;
		transform: none;
		font-size: 0.8rem;
		padding: 0.45rem 1.1rem;
	}
}


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

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

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

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

.site-header__logo-wrap {
	position: relative;
	max-width: 180px;
	padding: 0.25rem;
	justify-self: start;
}

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

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

.main-navigation {
	display: flex;
	justify-content: center;
	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-secondary);
	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-secondary-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 {
	justify-self: auto;
	flex: 0 0 auto;
	background: var(--color-secondary);
	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: 14px 26px;
	border-radius: 7px;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	transition: background 0.2s ease, transform 0.2s ease;
}

.site-header__cta-arrow {
	flex: 0 0 auto;
	transition: transform 0.2s ease;
}

.button:hover,
.site-header__cta:hover {
	background: var(--color-secondary-hover);
	color: var(--color-light) !important;
	transform: translateY(-1px);
}

.site-header__cta:hover .site-header__cta-arrow {
	transform: translateX(3px);
}

.site-header__actions {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	justify-self: end;
}

.site-header__call {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: transparent;
	color: var(--color-primary) !important;
	font-family: var(--font-button);
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 13px 24px;
	border: 1.5px solid var(--color-primary);
	border-radius: 7px;
	white-space: nowrap;
	transition: background 0.2s ease, color 0.2s ease;
}

.site-header__call:hover,
.site-header__call:focus-visible {
	background: var(--color-primary);
	color: var(--color-light) !important;
	outline: none;
}

.site-header__call-icon {
	flex: 0 0 auto;
}

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

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

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

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

	.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__actions {
		display: none;
	}
}


/* ------------------------------------------------------------------
   Mobile fullscreen menu

   A fade-in / fade-out overlay that covers the entire viewport. All
   content is center-aligned and stacks vertically; the dialog itself
   scrolls when content overflows the screen, so tall menus and the
   contact block stay reachable on small phones.
------------------------------------------------------------------ */
.atcg-no-scroll { overflow: hidden; }

.mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 1000;
	pointer-events: none;
}

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

.mobile-menu__scrim {
	position: absolute;
	inset: 0;
	background: var(--color-dark-bg);
	opacity: 0;
	transition: opacity 0.3s ease;
}

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

.mobile-menu.is-open .mobile-menu__scrim { opacity: 1; }

/* Dialog: full-viewport surface that fades + scales in. The entire
   surface scrolls as one column when content exceeds the viewport, so
   center-aligned stacks never get clipped. */
.mobile-menu__dialog {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	background: var(--color-primary-pale);
	color: var(--color-dark-bg);
	opacity: 0;
	transform: scale(0.96);
	transition: opacity 0.3s ease, transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
	outline: none;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
}

.mobile-menu.is-open .mobile-menu__dialog {
	opacity: 1;
	transform: scale(1);
}

.mobile-menu__close {
	position: absolute;
	top: 1.25rem;
	right: 1.25rem;
	background: transparent;
	border: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	color: var(--color-dark-bg);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.mobile-menu__close:hover,
.mobile-menu__close:focus-visible {
	background: rgba(30, 58, 138, 0.1);
	color: var(--color-primary-dark);
	outline: none;
	transform: rotate(90deg);
}

.mobile-menu__content {
	flex: 0 0 auto;
	width: 100%;
	max-width: 480px;
	margin: 0 auto;
	padding: 4.5rem 1.5rem 2.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 1.75rem;
	min-height: 100%;
	justify-content: center;
}

.mobile-menu__brand {
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	width: 100%;
	line-height: 0;
}

.mobile-menu__brand .site-logo img {
	display: block;
	max-height: 140px;
	max-width: 100%;
	width: auto;
	height: auto;
	margin: 0 auto;
}

.mobile-menu__brand-name {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1.5rem;
	color: var(--color-dark-bg);
	letter-spacing: 0.04em;
}

.mobile-menu__nav {
	width: 100%;
}

.mobile-menu__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
}

.mobile-menu__list li {
	width: 100%;
}

/* Parent items that contain a sub-menu use a CSS grid so the link is
   left-aligned and the injected chevron sits on the right. The sub-menu drops
   to a full-width second row beneath the parent row. */
.mobile-menu__list .menu-item-has-children {
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-areas:
		"link button"
		"submenu submenu";
	align-items: center;
	width: 100%;
}

.mobile-menu__list .menu-item-has-children > a {
	grid-area: link;
	justify-self: start;
	text-align: left;
}

.mobile-menu__list a {
    width: 100%;
	display: inline-block;
	padding: 0.85rem 0;
	font-family: var(--font-button);
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--color-dark-bg);
	text-decoration: none;
	text-align: left;
	transition: color 0.2s ease;
}

.mobile-menu__list a:hover,
.mobile-menu__list a:focus-visible {
	color: var(--color-primary-dark);
	outline: none;
}

.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-primary-dark);
	text-decoration: underline;
	text-underline-offset: 6px;
}

/* Chevron toggle button injected by navigation.js. Same 44x44 box and 22x22
   glyph size as the leaf arrow ::after, so both icons appear at the exact
   same location on the right edge of the row. */
.mobile-menu__submenu-toggle {
	grid-area: button;
	justify-self: end;
	width: 44px;
	height: 44px;
	background: transparent;
	border: 0;
	color: var(--color-dark-bg);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: color 0.2s ease, transform 0.25s ease;
}

.mobile-menu__submenu-toggle svg {
	width: 22px;
	height: 22px;
	flex: 0 0 auto;
	transition: transform 0.25s ease;
}

.mobile-menu__submenu-toggle:hover,
.mobile-menu__submenu-toggle:focus-visible {
	color: var(--color-primary-dark);
	outline: none;
}

/* When a parent <li> at any depth is open, its chevron is highlighted and
   rotated to point up. */
.mobile-menu__list .menu-item-has-children.is-open > .mobile-menu__submenu-toggle,
.mobile-menu__list .menu-item-has-children.is-open > a + .mobile-menu__submenu-toggle {
	color: var(--color-primary-dark);
	transform: rotate(180deg);
}

/* Dropdown panel. Hidden by default — visually and from the a11y tree — and
   revealed as a left-aligned vertical list when its parent <li> carries
   `.is-open`. It always spans the full width in the "submenu" grid area. */
.mobile-menu__list .sub-menu {
	grid-area: submenu;
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.2rem;
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	visibility: hidden;
	transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.25s ease, visibility 0s linear 0.3s;
}

/* Match sub-menus at every depth: parent <li>.<is-open> > .sub-menu. */
.mobile-menu__list .menu-item-has-children.is-open > .sub-menu {
	max-height: 800px;
	opacity: 1;
	visibility: visible;
	padding: 0.5rem 0 0.75rem;
	transition: max-height 0.35s ease, opacity 0.25s ease 0.05s, padding 0.25s ease, visibility 0s linear 0s;
}

.mobile-menu__list .sub-menu li {
	width: 100%;
}

.mobile-menu__list .sub-menu a {
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	padding: 0.55rem 0;
	color: rgba(28, 33, 39, 0.78);
}

.mobile-menu__list .sub-menu a:hover,
.mobile-menu__list .sub-menu a:focus-visible {
	color: var(--color-dark-bg);
}

/* Deeper sub-menus get a smaller font + softer color to convey hierarchy. */
.mobile-menu__list .sub-menu .sub-menu a {
	font-size: 0.9rem;
	color: rgba(28, 33, 39, 0.62);
}

.mobile-menu__list .sub-menu .sub-menu .sub-menu a {
	font-size: 0.85rem;
	color: rgba(28, 33, 39, 0.5);
}

.mobile-menu__ctas {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.85rem;
}

.mobile-menu__call,
.mobile-menu__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	width: 100%;
	max-width: 320px;
	padding: 0.95rem 1.5rem;
	font-family: var(--font-button);
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 7px;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.mobile-menu__call {
	background: transparent;
	color: var(--color-dark-bg) !important;
	border: 1.5px solid var(--color-dark-bg);
}

.mobile-menu__call:hover,
.mobile-menu__call:focus-visible {
	background: var(--color-dark-bg);
	color: var(--color-light) !important;
	outline: none;
	transform: translateY(-1px);
}

.mobile-menu__call-icon { flex: 0 0 auto; }

.mobile-menu__call-number {
	font-weight: 500;
	letter-spacing: 0.02em;
	text-transform: none;
}

.mobile-menu__cta {
	background: var(--color-secondary);
	color: var(--color-light) !important;
}

/* Keep the trailing arrow in sync with the button label color. */
.mobile-menu__cta svg { fill: currentColor; }

.mobile-menu__cta:hover,
.mobile-menu__cta:focus-visible {
	background: var(--color-secondary-hover);
	color: var(--color-light) !important;
	outline: none;
	transform: translateY(-1px);
}

.mobile-menu__contact {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1.25rem 1.75rem;
	color: rgba(28, 33, 39, 0.85);
}

.mobile-menu__contact-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: rgba(28, 33, 39, 0.85);
	font-family: var(--font-body);
	font-size: 0.95rem;
	text-decoration: none;
	transition: color 0.2s ease;
}

.mobile-menu__contact-link:hover,
.mobile-menu__contact-link:focus-visible {
	color: var(--color-dark-bg);
	outline: none;
}

.mobile-menu__contact-icon { flex: 0 0 auto; }

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

@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(51, 87, 143, 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-secondary);
	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-secondary-hover);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px -4px rgba(51, 87, 143, 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(51, 87, 143, 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-secondary) !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-secondary-hover) !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px -4px rgba(51, 87, 143, 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: 23% 23% 23% 23%; gap: 2rem; width: 100%; max-width: var(--content-width); margin: auto auto 2rem auto; }
.site-footer .footer-widgets,
.site-footer .site-info                 { max-width: var(--wide-width); margin: 0 auto; }
.site-footer .footer-content .footer-cmh-logo               { display: block; margin: auto; margin-left: 0; }
.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; }
.site-footer .cmh-logo-wrapper          { display: flex; justify-content: center; align-items: center; gap: 10px; }

@media (max-width: 1200px) {
        .site-footer .footer-content,
        .site-footer .cmh-logo-wrapper                  { display: flex; flex-direction: column; justify-content: center; align-items: center; }
        .site-footer .footer-content .footer-cmh-logo   { margin-left: auto; }
}

/* ------------------------------------------------------------------
        Site footer contact
------------------------------------------------------------------ */
    .footer-content__contact__wrap                              { max-width: 100%; width: 100%; }
    .footer-content__contact__footer-logo img                   { width: 100%; filter: invert(100%) saturate(0) }
    .footer-content__contact__wrap-title                        { font-size: 2rem; margin: 10px auto; }
    .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      { fill: currentColor; color: var(--color-heading); }

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

        .footer-content__contact__footer-logo img   { max-width: 300px; margin: auto; display: block; }
    }

   	/* ------------------------------------------------------------------
            Site footer navigation
   	------------------------------------------------------------------ */
    .footer-navigation                              { margin-left: 0; }
    .footer-navigation__section-title               { 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: 100px; height: auto; }

    @media (max-width: 1200px) {
        .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 contact list (icon-text)
    ------------------------------------------------------------------ */
    .footer-navigation-contact-details                          { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 0; gap: 10px; list-style: none; margin: 0; }
    .footer-navigation-contact-details__item                    { display: flex; align-items: flex-start; padding: 0; font-size: 0.9rem; white-space: wrap; min-width: 0; gap: 5px; }
    .footer-navigation-contact-details__icon                    { width: 1.25rem; height: 1.25rem; fill: currentColor; color: var(--color-light); flex-shrink: 0; }
    .footer-navigation-contact-details__item a:hover .footer-navigation-contact-details__icon,
    .footer-navigation-contact-details__item a:hover            { color: var(--color-light); fill: currentColor; }

    @media (max-width: 1200px) {
        .footer-navigation-contact-details,
        .footer-navigation-contact-details__item                { justify-content: center; align-items: flex-start; width: 100%; }
        .footer-navigation-contact-details span                 { margin-bottom: 10px; }
        .footer-navigation-contact-details li,
        .footer-navigation-contact-details a                   { width: 100%; text-align: center; }
    }

   	/* ------------------------------------------------------------------
            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); }
    .legal-links a                  { color: rgba(255, 255, 255, 0.7); }
    .legal-links a:hover            { color: #fff; }

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

   	/* ------------------------------------------------------------------
   	        Social icons (mobile menu + footer)
   	------------------------------------------------------------------ */
    .mobile-menu__contact-link--social       { gap: 0; }
    .mobile-menu__contact-link--social .mobile-menu__contact-icon { fill: currentColor; color: inherit; }

    .footer-navigation__social               { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: flex-start; padding: 0; margin: 1rem 0 0; list-style: none; }
    .footer-navigation__social-item         { display: inline-flex; }
    .footer-navigation__social-item a       { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; color: var(--color-light); fill: currentColor; transition: color 0.2s ease, background-color 0.2s ease; }
    .footer-navigation__social-item a:hover,
    .footer-navigation__social-item a:focus-visible { color: var(--color-heading); outline: none; }
    .footer-navigation__social-icon         { fill: currentColor; width: 2rem; height: 2rem; }

    @media (max-width: 1200px) {
        .footer-navigation__social           { justify-content: center; width: 100%; }
    }
