/*
Theme Name: CMH Center Nav
Theme URI: https://century-mech.com
Author: Century Mechanical Holdings
Description: A general purpose Elementor theme with a center desktop navbar and fade-in full screen mobile menu.
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:             #f5f7fa;
	--color-dark-bg:        #1a2742;
	--color-text:           #1c2127;
	--color-muted:          #5a6675;

	--color-primary:        #0B1B2B;
	--color-primary-hover:  #d93a40;
	--color-primary-light:  var(--color-primary-hover);
	--color-primary-dark:   #9b1318;
	--color-primary-pale:   #e8eef5;

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

	--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:     #eef3f8;
	--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; }
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; }

/* ------------------------------------------------------------------
    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); }
.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; }

.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;
}

/* Table Style 1 — base */
.table-style-1 {
    display: table;
    width: 100%;
    max-width: 100%;
    min-width: 640px;
    border: 1px solid #dddddd;
    border-collapse: collapse;
    border-spacing: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    table-layout: auto;
    margin: 0 0 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
}

.elementor-widget:has(.table-style-1) {
    overflow: auto;
}

.table-style-1 th,
.table-style-1 td {
    padding: 15px;
    border: 1px solid #dddddd;
    vertical-align: middle;
    word-break: break-word;
    overflow-wrap: break-word;
}

.table-style-1 th {
    background-color: var(--color-red-600);
    color: var(--color-light);
    font-weight: 700;
    text-align: left;
}

.table-style-1 td {
    text-align: left;
}

/* Zebra striping for readability */
.table-style-1 tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Subtle hover for interactivity */
.table-style-1 tbody tr:hover {
    background-color: #f1f1f1;
}

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

/* Table Style 1 — tablets & mobile (≤ 1024px)
   The table itself becomes a self-contained horizontal scroll region.
   max-width: 100% ensures the table never exceeds its parent, so only
   the table scrolls horizontally — the page itself does not overflow.
   Headers stay on a single line so they always display in full. */
@media (max-width: 1024px) {
    .table-style-1 th,
    .table-style-1 td {
        padding: 10px 8px;
    }

    .table-style-1 th {
        font-size: 0.8125rem;
        line-height: 1.3;
        /* Keep header text on a single line so it never truncates or wraps. */
        white-space: nowrap;
    }
}

/* ------------------------------------------------------------------
    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;
}

.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;
	top: 0;
	z-index: 100;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	position: relative; /* anchor the full-bleed mega-menu */
}

@media (max-width: 1599px) {
    .site-header {
        position: sticky;
    }
}

@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-primary);
}
.site-header__logo-fallback .site-title { margin: 0; font-size: 1.4rem; }

.main-navigation {
	display: flex;
	justify-content: center;
	font-family: var(--font-body);
	position: relative; /* anchor the full-width mega-menu */
}

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

.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;
	transition: color 0.3s ease;
}

.main-navigation a:hover { color: var(--color-primary-hover); }

/* 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 {
	color: var(--color-primary-dark);
}

/* ------------------------------------------------------------------
   Desktop sub-menus (≥1600px)

   Two-tier hybrid layout:

   • Level 2 (.sub-menu): a full-bleed white mega-menu panel anchored
     under the header. Columns (.sub-menu > li) sit inside an inner
     grid and each column's first <a> gets a .heading-link class
     (injected by navigation.js) styled as a small uppercase section
     heading with a red underline accent.

   • Level 3+ (.sub-menu .sub-menu): a compact floating flyout card
     anchored to its parent column's <li>, not the full column width.
     The card uses a stronger shadow + CSS pointer arrow, and flips
     to the left of the parent when near the right viewport edge
     (.is-flip-left, added by navigation.js).

   Showing/hiding is JS-driven via the .show class on mouseenter of a
   top-level <li>. CSS animates opacity + a small Y translate.
------------------------------------------------------------------*/

.main-navigation .menu-item-has-children { position: static; }

/* Re-enable positioning only for level-2+ items so deep flyouts (level 3)
   can anchor to their parent column <li>, while level-1 items stay
   un-positioned so the mega-menu can anchor to .main-navigation. */
.main-navigation .sub-menu > .menu-item-has-children { position: relative; }

/* Top-level parent links: chevron + animated underline. */
.main-navigation > ul > .menu-item-has-children > a {
	position: relative;
	padding-right: 1.5rem;
}
.main-navigation > ul > .menu-item-has-children > a::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 0.6rem;
	width: 0.45rem;
	height: 0.45rem;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-65%) rotate(45deg);
	transition: transform 0.2s ease;
	opacity: 0.7;
}
.main-navigation > ul > .menu-item-has-children:hover > a::after,
.main-navigation > ul > .menu-item-has-children:focus-within > a::after {
	transform: translateY(-35%) rotate(225deg);
	opacity: 1;
}

/* Animated underline-grow on hover/focus for top-level links. */
.main-navigation > ul > li > a {
	position: relative;
}
.main-navigation > ul > li > a::before {
	content: "";
	position: absolute;
	left: 1rem;
	right: 1rem;
	bottom: 0.35rem;
	height: 2px;
	background: var(--color-primary-hover);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.25s ease;
}
.main-navigation > ul > li:hover > a::before,
.main-navigation > ul > li:focus-within > a::before,
.main-navigation > ul > .current-menu-item > a::before,
.main-navigation > ul > .current-menu-ancestor > a::before,
.main-navigation > ul > .current_page_item > a::before,
.main-navigation > ul > .current_page_ancestor > a::before {
	transform: scaleX(1);
}

/* Mega-menu panel (level 2). Full-width across the nav, capped to the
   content width and centered. Anchored to .main-navigation (which is
   position: relative) so it spans the full nav row, not just the
   hovered <li>. */
.main-navigation > ul > li > .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background-color: var(--color-light);
	box-shadow:
		0 24px 48px -12px rgba(11, 27, 43, 0.18),
		0 8px 16px -8px rgba(11, 27, 43, 0.08);
	border-top: 3px solid var(--color-primary-hover);
	border-radius: 0 0 12px 12px;
	z-index: 50;

	/* Inner grid sits inside this padded container. */
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1.75rem;
	padding: 2rem clamp(1.5rem, 5vw, 3.5rem) 2.25rem;
	width: 100%;
	max-width: var(--content-width);
	margin: 0 auto;

	/* Closed state — JS adds .show to reveal. */
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	pointer-events: none;
	transition:
		opacity 0.18s ease,
		transform 0.18s ease,
		visibility 0s linear 0.18s;
}

.main-navigation > ul > li > .sub-menu.show {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
	transition:
		opacity 0.18s ease,
		transform 0.18s ease,
		visibility 0s linear 0s;
}

/* Each direct-child <li> is a column. */
.main-navigation .sub-menu > li {
	position: relative;
	padding: 0 0.25rem;
}

/* Column heading (.heading-link class is added by navigation.js).
   Replaces the old red pill: a small uppercase label with a red
   underline accent that acts as the visual section divider. */
.main-navigation .sub-menu > li > a.heading-link {
	display: inline-flex;
	align-items: center;
	text-transform: uppercase;
	font-weight: 700;
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	color: var(--color-primary);
	background: transparent;
	border-radius: 0;
	padding: 0 0 0.55rem;
	margin: 0 0 0.75rem;
	position: relative;
	text-align: left;
	width: auto;
}
.main-navigation .sub-menu > li > a.heading-link::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 28px;
	height: 2px;
	background: var(--color-primary-hover);
	transition: width 0.25s ease;
}
.main-navigation .sub-menu > li:hover > a.heading-link::after,
.main-navigation .sub-menu > li:focus-within > a.heading-link::after {
	width: 100%;
}
.main-navigation .sub-menu > li > a.heading-link:hover {
	background: transparent;
	color: var(--color-primary);
}

/* Active/current heading in the mega-menu. */
.main-navigation .sub-menu > .current-menu-item > a.heading-link,
.main-navigation .sub-menu > .current-menu-ancestor > a.heading-link,
.main-navigation .sub-menu > .current_page_item > a.heading-link,
.main-navigation .sub-menu > .current_page_ancestor > a.heading-link {
	color: var(--color-primary-hover);
}
.main-navigation .sub-menu > .current-menu-item > a.heading-link::after,
.main-navigation .sub-menu > .current-menu-ancestor > a.heading-link::after,
.main-navigation .sub-menu > .current_page_item > a.heading-link::after,
.main-navigation .sub-menu > .current_page_ancestor > a.heading-link::after {
	width: 100%;
	background: var(--color-primary-hover);
}

/* Column item links. Left-aligned, with a hover row + red side-bar
   and a small red left padding shift on hover for a subtle slide. */
.main-navigation .sub-menu > li > a:not(.heading-link) {
	display: flex;
	align-items: center;
	width: auto;
	text-align: left;
	color: var(--color-text);
	font-weight: 500;
	font-size: 0.92rem;
	padding: 0.55rem 0.85rem;
	margin: 0 -0.85rem;
	border-radius: 6px;
	border-left: 3px solid transparent;
	transition:
		color 0.18s ease,
		background-color 0.18s ease,
		border-color 0.18s ease,
		padding-left 0.18s ease;
}
.main-navigation .sub-menu > li > a:not(.heading-link):hover,
.main-navigation .sub-menu > li > a:not(.heading-link):focus-visible {
	color: var(--color-primary-hover);
	background-color: var(--color-primary-pale);
	border-left-color: var(--color-primary-hover);
	padding-left: 1.1rem;
	text-decoration: none;
	outline: none;
}
.main-navigation .sub-menu > .current-menu-item > a:not(.heading-link),
.main-navigation .sub-menu > .current-menu-ancestor > a:not(.heading-link),
.main-navigation .sub-menu > .current_page_item > a:not(.heading-link),
.main-navigation .sub-menu > .current_page_ancestor > a:not(.heading-link) {
	color: var(--color-primary-hover);
	font-weight: 600;
}

/* ------------------------------------------------------------------
   Deep level flyout (.sub-menu .sub-menu — level 3+)

   Switched from a wide column into a compact floating card anchored
   to its parent column's <li>. The parent <li> is position: relative
   (set above) so the flyout floats to its right edge.

   .is-flip-left is added by navigation.js when the flyout would
   overflow the viewport's right edge.
------------------------------------------------------------------*/

.main-navigation .sub-menu .sub-menu {
	position: absolute;
	top: 0;
	left: 100%;
	margin-left: 0.5rem;
	min-width: 240px;
	max-width: 280px;
	width: max-content;
	background-color: var(--color-light);
	box-shadow:
		0 16px 36px -8px rgba(11, 27, 43, 0.22),
		0 4px 10px -4px rgba(11, 27, 43, 0.10);
	border-radius: 12px;
	border: 1px solid var(--color-primary-pale);
	border-left: 0;
	padding: 0.6rem;
	display: flex;
	flex-direction: column;
	gap: 2px;
	z-index: 51;

	opacity: 0;
	visibility: hidden;
	transform: translateX(-4px);
	pointer-events: none;
	transition:
		opacity 0.15s ease,
		transform 0.15s ease,
		visibility 0s linear 0.15s;
}
.main-navigation .sub-menu .sub-menu.show,
.main-navigation .sub-menu .sub-menu.show-parent {
	opacity: 1;
	visibility: visible;
	transform: translateX(0);
	pointer-events: auto;
	transition:
		opacity 0.15s ease,
		transform 0.15s ease,
		visibility 0s linear 0s;
}

/* Pointer arrow on the left edge of the flyout card. */
.main-navigation .sub-menu .sub-menu::before {
	content: "";
	position: absolute;
	top: 1rem;
	left: -7px;
	width: 12px;
	height: 12px;
	background-color: var(--color-light);
	border-left: 1px solid var(--color-primary-pale);
	border-bottom: 1px solid var(--color-primary-pale);
	transform: rotate(45deg);
}
.main-navigation .sub-menu .sub-menu.is-flip-left {
	left: auto;
	right: 100%;
	margin-left: 0;
	margin-right: 0.5rem;
	transform: translateX(4px);
}
.main-navigation .sub-menu .sub-menu.is-flip-left::before {
	left: auto;
	right: -7px;
	transform: rotate(225deg);
}
.main-navigation .sub-menu .sub-menu.is-flip-left.show,
.main-navigation .sub-menu .sub-menu.is-flip-left.show-parent {
	transform: translateX(0);
}

/* Compact link rows inside the deep flyout. */
.main-navigation .sub-menu .sub-menu > li { width: 100%; }
.main-navigation .sub-menu .sub-menu a {
	color: var(--color-text);
	font-weight: 500;
	font-size: 0.88rem;
	padding: 0.55rem 0.9rem;
	width: 100%;
	text-align: left;
	border-radius: 8px;
	border-left: 3px solid transparent;
	transition:
		color 0.15s ease,
		background-color 0.15s ease,
		border-color 0.15s ease;
}
.main-navigation .sub-menu .sub-menu a:hover,
.main-navigation .sub-menu .sub-menu a:focus-visible {
	color: var(--color-primary);
	background-color: var(--color-primary-pale);
	border-left-color: var(--color-primary-hover);
	text-decoration: none;
	outline: none;
}
.main-navigation .sub-menu .sub-menu .current-menu-item > a,
.main-navigation .sub-menu .sub-menu .current-menu-ancestor > a,
.main-navigation .sub-menu .sub-menu .current_page_item > a,
.main-navigation .sub-menu .sub-menu .current_page_ancestor > a {
	color: var(--color-primary);
	background-color: var(--color-primary-pale);
	border-left-color: var(--color-primary-hover);
	font-weight: 600;
}

.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);
	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: 1599px) {
	.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;
		width: auto;
		max-width: none;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	.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-dark-bg);
	color: var(--color-light);
	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-light);
	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(255, 255, 255, 0.1);
	color: var(--color-light);
	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-light);
	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-light);
	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-secondary-light);
	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-secondary-light);
	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-light);
	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-secondary-light);
	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-secondary-light);
	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(255, 255, 255, 0.75);
}

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

/* 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(255, 255, 255, 0.6);
}

.mobile-menu__list .sub-menu .sub-menu .sub-menu a {
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 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-light) !important;
	border: 1.5px solid var(--color-light);
}

.mobile-menu__call:hover,
.mobile-menu__call:focus-visible {
	background: var(--color-light);
	color: var(--color-dark-bg) !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;
}

.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(255, 255, 255, 0.85);
}

.mobile-menu__contact-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: rgba(255, 255, 255, 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-light);
	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: 1600px) {
	.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; }

/* ------------------------------------------------------------------
   Hero slider (Swiper.js)
------------------------------------------------------------------ */
.atcg-hero {
	position: relative;
	width: 100%;
	height: min(100vh, 640px);
	background: #16233a;
	color: var(--color-light);
	font-family: var(--font-body);
	overflow: hidden;
}

.atcg-hero__slider,
.atcg-hero__slider .swiper-wrapper,
.atcg-hero__slider .swiper-slide {
	width: 100%;
	height: 100%;
}

.atcg-hero__slide {
	position: relative;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	background-color: #16233a;
	display: flex;
	align-items: center;
}

/* Dark overlay so the text reads on top of any background image. */
.atcg-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient( 90deg, rgba(22, 35, 58, 0.85) 0%, rgba(22, 35, 58, 0.55) 45%, rgba(22, 35, 58, 0.05) 100% );
	pointer-events: none;
}

/* Decorative diagonal accents in the brand blue. */
.atcg-hero__accent {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
}
.atcg-hero__accent::before,
.atcg-hero__accent::after {
	content: "";
	position: absolute;
	top: -10%;
	bottom: -10%;
	width: 18%;
	background: rgba(74, 111, 165, 0.55);
	transform: skewX(-22deg);
}
.atcg-hero__accent::before {
	left: 38%;
}
.atcg-hero__accent::after {
	left: 58%;
	background: rgba(74, 111, 165, 0.25);
}
.atcg-hero__accent .icon-box::after,
.atcg-hero__accent .icon-box::before {
	content: "";
	height: 80px;
	width: 3px;
	background-image: linear-gradient(180deg, var(--theme-color) 0%, rgba(51, 87, 143, 0) 100%);
	position: absolute;
	left: calc(50% - 1.5px);
}

.atcg-hero__content {
	position: relative;
	z-index: 2;
	max-width: var(--wide-width);
	margin: 0 auto;
	padding: 3rem 2rem;
	width: 100%;
}

.atcg-hero__kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--color-primary-light);
	font-size: 1.1rem;
	font-weight: 500;
	margin-bottom: 1rem;
}

.atcg-hero__kicker-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.atcg-hero__title {
	font-family: var(--font-heading);
	font-size: clamp(2.4rem, 4.5vw, 3.6rem);
	font-weight: 700;
	line-height: 1.1;
	margin: 0 0 1.25rem;
	max-width: 540px;
	color: var(--color-light);
}

.atcg-hero__description {
	font-size: 1.05rem;
	line-height: 1.6;
	max-width: 540px;
	color: rgba(255, 255, 255, 0.92);
	margin: 0 0 2rem;
}

.atcg-hero__buttons {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	max-width: 340px;
}

.atcg-hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.9rem 1.25rem;
	font-family: var(--font-button);
	font-weight: 600;
	font-size: 0.9rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	border: 2px solid transparent;
	border-radius: 2px;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.atcg-hero__btn--primary {
	background: var(--color-secondary);
	color: var(--color-light);
}
.atcg-hero__btn--primary:hover {
	background: var(--color-secondary-hover);
	color: var(--color-light);
}

.atcg-hero__btn--secondary {
	background: transparent;
	color: var(--color-light);
	border-color: var(--color-light);
}
.atcg-hero__btn--secondary:hover {
	background: rgba(255, 255, 255, 0.1);
	color: var(--color-light);
}

.atcg-hero__btn-arrow {
	flex: 0 0 auto;
	fill: currentColor;
}

/* Decorative navigation column on the left. */
.atcg-hero__nav {
	position: absolute;
	top: 50%;
	left: 2rem;
	transform: translateY(-50%);
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
}

.atcg-hero__nav::before {
    background-image: linear-gradient(0deg, var(--color-logo-accent) 0%, rgba(51, 87, 143, 0) 100%);
}

.atcg-hero__nav::after {
    background-image: linear-gradient(180deg, var(--color-logo-accent) 0%, rgba(51, 87, 143, 0) 100%);
}

.atcg-hero__nav::before,
.atcg-hero__nav::after {
	content: "";
	display: block;
	width: 2px;
	height: 60px;
}

.atcg-hero__arrows {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.atcg-hero__arrow {
	background: var(--color-light);
	border: 0;
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--color-logo-accent);
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.atcg-hero__arrow:hover {
	background: var(--color-logo-accent);
	color: var(--color-light);
}
.atcg-hero__arrow:focus-visible {
	outline: 2px solid var(--color-light);
	outline-offset: 2px;
}

.atcg-hero__arrow svg { display: block; }

@media (max-width: 880px) {
	.atcg-hero { height: min(100vh, 1000px); }
	.atcg-hero__content { padding: 2.5rem 2rem; }
	.atcg-hero__title { font-size: clamp(2rem, 7vw, 2.6rem); }
	.atcg-hero__description { font-size: 1rem; }
	.atcg-hero__nav {
		left: 0.75rem;
	}
	.atcg-hero__nav::before,
	.atcg-hero__nav::after { height: 40px; }
	.atcg-hero__arrow { width: 38px; height: 38px; }

	@media (orientation: landscape) {
        .atcg-hero { height: min(150vh, 1000px); }
	}
}

/* ------------------------------------------------------------------
   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-content.three-columns                  { grid-template-columns: 31% 31% 31%; }
.site-footer .footer-content .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; font-weight: 400; }
.site-footer a:hover                                        { color: var(--color-light); 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; flex-direction: column; justify-content: center; align-items: center; }

@media (max-width: 1500px) {
    .site-footer .footer-content                            { grid-template-columns: 50% 50%; }
}

@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: 100%;
    width: 100%;
}

.footer-content__contact__footer-logo img                   { width: 100%; }
.footer-content__site-title                                 { color: var(--color-light); font-size: 1.25rem; }
.footer-navigation-contact-details                          { list-style-type: none; padding-left: 0; }
.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: 400px; }

@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 }
}
