/* ==========================================================
   McIntosh site chrome on the OIW framework (Canvas 8.1)
   Loaded on every page by /includes/site/head.htm, after custom.css.
   1. Header: dark top bar, red quote button, blue menu underline (matches the new homepage)
   2. Footer: the McIntosh footer design (/includes/site/footer.htm)
   ========================================================== */

/* ---------- 1. Header ---------- */
#top-bar.oiw-topbar { background: #0d1029; }
.oiw-topbar-note { display: flex; align-items: center; gap: 8px; }
.oiw-topbar-note i,
.oiw-topbar-links i { color: #7fcbe8; }
.oiw-topbar-social a i { color: #fff; }
.oiw-topbar-social a:hover i { color: #7fcbe8; }

/* navy-to-blue rule along the top of the header */
.oiw-header #header-wrap::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 3px;
	background: linear-gradient(90deg, #28357a 0%, #2F97C1 100%);
	z-index: 2;
}
/* the logo file has built-in padding, so it is set taller than the framework default */
#header.oiw-header #header-wrap #logo img { height: 74px; max-height: none; width: auto; }
#header.oiw-header.sticky-header #header-wrap #logo img { height: 56px; }

/* top-level menu: blue underline slides in on hover */
.is-expanded-menu .oiw-header .primary-menu .menu-container > .cnvs-menu-item > .cnvs-menu-link > div { position: relative; }
.is-expanded-menu .oiw-header .primary-menu .menu-container > .cnvs-menu-item > .cnvs-menu-link > div::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -8px;
	height: 3px;
	background: #2F97C1;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .3s ease;
}
.is-expanded-menu .oiw-header .primary-menu .menu-container > .cnvs-menu-item:hover > .cnvs-menu-link > div::after,
.is-expanded-menu .oiw-header .primary-menu .menu-container > .cnvs-menu-item.current > .cnvs-menu-link > div::after { transform: scaleX(1); }
.oiw-header .primary-menu .menu-container > .cnvs-menu-item:hover > .cnvs-menu-link,
.oiw-header .primary-menu .menu-container > .cnvs-menu-item.current > .cnvs-menu-link { color: #28357a; }

/* red "Request a Quote" button */
.oiw-header-cta { background: #C44536; color: #fff; }
.oiw-header-cta:hover { background: #a3372a; color: #fff; }
.oiw-menu-cta-mobile > .cnvs-menu-link { color: #C44536 !important; }

/* page banner title in the homepage heading font */
.oiw-page-title h1 { font-family: 'Barlow Condensed', 'Inter', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }

@media (max-width: 1399.98px) {
	.oiw-topbar-tollfree { display: none !important; }
}
/* tablets and phones: keep the top bar to one line (location + phone, then phone only) */
@media (max-width: 991.98px) {
	.oiw-topbar-note { display: none; }
	.oiw-topbar-row { justify-content: center; }
}
@media (max-width: 575.98px) {
	.oiw-topbar-links li:first-child { display: none; }
}

/* ---------- 2. Footer ---------- */
#footer.mc-footer {
	--mf-ink: #0b0e24;
	--mf-navy: #28357a;
	--mf-blue: #457cc0;
	--mf-accent: #2F97C1;
	--mf-accent-light: #7fcbe8;
	--mf-cta: #C44536;
	--mf-cta-dark: #a3372a;
	--mf-text: rgba(255,255,255,0.62);
	--mf-line: rgba(255,255,255,0.1);
	--mf-head: 'Barlow Condensed', 'Inter', sans-serif;
	position: relative;
	overflow: hidden;
	border-top: 0 !important;
	background:
		linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px) 0 0 / 100% 64px,
		var(--mf-ink) !important;
	color: var(--mf-text);
	font-size: 0.95rem;
}
/* blue bar along the top edge */
#footer.mc-footer::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	width: 33%;
	height: 6px;
	background: var(--mf-accent);
}
.mc-footer p { color: var(--mf-text); line-height: 1.7; }
.mc-footer a { color: #fff; }

/* ---------- Logo + motto ---------- */
.mc-footer-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	padding: 70px 0 44px;
	border-bottom: 1px solid var(--mf-line);
}
.mc-footer-logo img { width: 280px; max-width: 100%; }
.mc-footer-motto { text-align: right; }
.mc-footer-motto small {
	display: block;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	color: var(--mf-accent);
	margin-bottom: 6px;
}
.mc-footer-motto span {
	font-family: var(--mf-head);
	font-size: clamp(1.6rem, 3vw, 2.5rem);
	font-weight: 700;
	line-height: 1.05;
	text-transform: uppercase;
	color: #fff;
}

.mc-footer-main { padding: 56px 0 40px; }

/* ---------- Headings + links ---------- */
.mc-footer-title {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	font-family: var(--mf-head);
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	margin-bottom: 22px;
}
.mc-footer-title::before {
	content: '';
	width: 10px;
	height: 10px;
	background: var(--mf-accent);
}
.mc-footer-links { list-style: none; margin: 0; padding: 0; }
.mc-footer-links li { margin-bottom: 10px; }
.mc-footer-links a {
	position: relative;
	color: var(--mf-text);
	transition: color 0.25s ease, padding 0.25s ease;
}
.mc-footer-links a::before {
	content: '/';
	position: absolute;
	left: 0;
	opacity: 0;
	color: var(--mf-accent);
	transition: opacity 0.25s ease;
}
.mc-footer-links a:hover { color: #fff; padding-left: 14px; }
.mc-footer-links a:hover::before { opacity: 1; }

.mc-footer-partners {
	display: flex;
	align-items: center;
	gap: 26px;
	margin-top: 24px;
}
/* object-fit keeps logos from stretching if the column gets tight */
.mc-footer-partners img { height: 84px; width: auto; min-width: 0; object-fit: contain; opacity: 0.85; transition: opacity 0.3s ease; }
.mc-footer-partners img:hover { opacity: 1; }

/* ---------- Contact (Construction "footer-big-contacts") ---------- */
.mc-footer-contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.mc-footer-big {
	display: block;
	padding: 16px 18px;
	border: 1px solid var(--mf-line);
	font-family: var(--mf-head);
	font-size: 1.65rem;
	font-weight: 700;
	line-height: 1.1;
	color: #fff;
	white-space: nowrap;
	transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.mc-footer-big small {
	display: block;
	font-family: 'Inter', sans-serif;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--mf-text);
	margin-bottom: 4px;
	transition: color 0.3s ease;
}
.mc-footer-big:hover { background: var(--mf-accent); border-color: var(--mf-accent); color: #fff; }
.mc-footer-big:hover small { color: rgba(255,255,255,0.8); }
.mc-footer-address { display: flex; gap: 14px; line-height: 1.6; }
.mc-footer-address > i { flex: none; font-size: 1.6rem; color: var(--mf-accent); line-height: 1; }
.mc-footer-address strong { display: block; color: #fff; }
.mc-footer-address a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 6px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--mf-accent);
	transition: gap 0.25s ease;
}
.mc-footer-address a:hover { gap: 8px; }

/* ---------- Newsletter strip ---------- */
.mc-footer-news {
	display: flex;
	align-items: center;
	gap: 22px;
	margin-bottom: 60px;
	padding: 26px 30px;
	background: var(--mf-navy);
	border-left: 6px solid var(--mf-accent);
}
.mc-footer-news > i { flex: none; font-size: 2.4rem; color: var(--mf-accent-light); }
.mc-footer-news > div { flex: 1; }
.mc-footer-news h4 { margin: 0 0 2px; font-family: var(--mf-head); font-size: 1.35rem; font-weight: 700; text-transform: uppercase; color: #fff; }
.mc-footer-news p { margin: 0; color: rgba(255,255,255,0.75); }
.mc-footer-btn {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	background: var(--mf-cta);
	color: #fff !important;
	font-weight: 700;
	transition: background 0.3s ease, gap 0.3s ease;
}
.mc-footer-btn:hover { background: var(--mf-cta-dark); gap: 12px; }

/* ---------- Bottom bar ---------- */
#copyrights.mc-footer-bottom {
	background: rgba(0,0,0,0.3) !important;
	border-top: 1px solid var(--mf-line);
	padding: 30px 0;
	font-size: 0.85rem;
	color: var(--mf-text);
}
.mc-footer-bottom .mc-footer-legal { font-size: 0.76rem; color: rgba(255,255,255,0.42); line-height: 1.6; }
.mc-footer-social { display: inline-flex; gap: 8px; margin-bottom: 10px; }
.mc-footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--mf-line);
	color: #fff;
	transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.mc-footer-social a:hover { background: var(--mf-accent); border-color: var(--mf-accent); color: #fff; }
.mc-footer-powered { font-size: 0.8rem; color: rgba(255,255,255,0.42); }
.mc-footer-powered a { color: rgba(255,255,255,0.75); }

/* homepage: the CTA card overlaps the top of the footer */
.mc-home-page #footer.mc-footer .mc-footer-top { padding-top: 150px; }

@media (max-width: 991.98px) {
	.mc-footer-top { flex-direction: column; align-items: flex-start; }
	.mc-footer-motto { text-align: left; }
	.mc-footer-main { padding: 44px 0 30px; }
	.mc-home-page #footer.mc-footer .mc-footer-top { padding-top: 140px; }
}
@media (max-width: 575.98px) {
	.mc-footer-contacts { grid-template-columns: 1fr; }
	.mc-footer-news { flex-direction: column; align-items: flex-start; padding: 24px; }
	.mc-footer-partners img { height: 70px; }
}
