/*
 * M.A. Construction Group: Sitemap page (/sitemap/) styles.
 * Loaded only by konta-child/template-sitemap.php. Everything is scoped to .masm.
 * Zulu Shack Creative, 2026-11-23.
 *
 * Hero: black panel with a red angled edge (matches the 404), dotted red eyebrow, the filter beside
 * the site search, a live status line and jump chips. Below: white cards with a red base, three
 * columns on desktop (Main + Company · Services · Gallery & Case Studies), two on tablets, one on
 * phones; the Blog runs full width, then the Get a Quote panel.
 */
.masm {
	--masm-red: #EC2427;
	--masm-ink: #000;
	--masm-body: #4D5765;
	--masm-grey: #F8F8F8;
	--masm-line: #E8E8E8;
	--masm-angle: 56px;
	background: var(--masm-grey);
	color: var(--masm-body);
	font-family: "Rubik", sans-serif;
	font-size: 16px;
	line-height: 1.6;
	overflow-x: hidden;
	overflow-x: clip;
}
.masm *, .masm *::before, .masm *::after { box-sizing: border-box; }
.masm [hidden] { display: none !important; }
.masm .masm-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.masm ul { margin: 0; padding: 0; list-style: none; }
.masm li { margin: 0; padding: 0; list-style: none; }
.masm .masm-sr {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
	clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.masm a:focus-visible, .masm button:focus-visible, .masm summary:focus-visible, .masm input:focus-visible {
	outline: 3px solid var(--masm-red); outline-offset: 2px;
}

/* ---- Buttons (the site's square red th-btn) ---- */
.masm .masm-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 12px; flex: none;
	min-height: 56px; padding: 0 28px; border: 2px solid var(--masm-red); border-radius: 0;
	background: var(--masm-red); color: #fff; cursor: pointer;
	font-family: "zuume-edge", sans-serif; font-weight: 600; font-size: 22px; line-height: 1;
	letter-spacing: 1.5px; text-transform: uppercase; text-decoration: none;
	transition: background-color .2s, color .2s, border-color .2s;
}
.masm .masm-btn i { font-size: .8em; transition: transform .2s; }
.masm .masm-btn:hover, .masm .masm-btn:focus-visible { background: #fff; border-color: #fff; color: #000; }
.masm .masm-btn:hover i { transform: translateX(4px); }

/* ---- Hero ---- */
.masm .masm-hero {
	position: relative; background: var(--masm-red);
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--masm-angle)), 0 100%);
}
.masm .masm-hero__inner {
	background-color: #000;
	background-image:
		radial-gradient(circle at 82% 30%, rgba(236, 36, 39, .16), transparent 40%),
		repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 26px);
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--masm-angle) - 10px), 0 calc(100% - 10px));
	padding: 84px 0 calc(var(--masm-angle) + 64px);
}
.masm .masm-eyebrow.sub-title6 {
	margin: 0 0 18px; color: #fff; font-family: "Rubik", sans-serif; font-size: 16px; font-weight: 500;
	letter-spacing: 1px; line-height: 1.3;
}
.masm .masm-eyebrow .shape.left { margin-left: 18px; }
.masm .masm-eyebrow .shape.right { margin-right: 18px; }
.masm .masm-h1 {
	margin: 0; color: #fff; font-family: "zuume-edge", sans-serif; font-weight: 600;
	font-size: clamp(56px, 7vw, 96px); line-height: .9; letter-spacing: 1px; text-transform: uppercase;
}
.masm .masm-lead { max-width: 720px; margin: 22px 0 0; color: #bdbdbd; font-size: 18px; line-height: 1.6; }

/* Filter + site search */
.masm .masm-tools { display: grid; gap: 18px 28px; margin-top: 36px; }
@media (min-width: 900px) {
	.masm .masm-tools { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: end; }
}
.masm .masm-field { min-width: 0; margin: 0; }
.masm .masm-label {
	display: block; margin: 0 0 8px; color: #fff; font-family: "zuume-edge", sans-serif; font-weight: 600;
	font-size: 22px; line-height: 1; letter-spacing: 1.5px; text-transform: uppercase;
}
.masm .masm-field--search .masm-label { color: rgba(255, 255, 255, .7); }
.masm .masm-input { position: relative; }
.masm .masm-input i {
	position: absolute; top: 50%; left: 18px; transform: translateY(-50%); color: var(--masm-red);
	font-size: 18px; pointer-events: none;
}
.masm .masm-tools input[type="search"] {
	display: block; width: 100%; min-width: 0; height: 56px; margin: 0; padding: 0 18px;
	border: 2px solid transparent; border-radius: 0; background: #fff; box-shadow: none;
	color: #000; font-family: "Rubik", sans-serif; font-size: 17px; line-height: 1;
	-webkit-appearance: none; appearance: none;
}
.masm .masm-tools input[type="search"]::placeholder { color: #8a9099; opacity: 1; }
.masm .masm-tools input[type="search"]:focus { border-color: var(--masm-red); outline: none; }
.masm .masm-input input[type="search"] { padding-left: 50px; font-size: 18px; }
.masm .masm-field--search input[type="search"] { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); color: #fff; }
.masm .masm-field--search input[type="search"]::placeholder { color: rgba(255, 255, 255, .55); }
.masm .masm-field--search input[type="search"]:focus { border-color: var(--masm-red); background: rgba(255, 255, 255, .14); }
.masm .masm-row { display: flex; gap: 0; }
.masm .masm-row input[type="search"] { flex: 1 1 auto; }
.masm .masm-row .masm-btn { min-height: 56px; }
.masm .masm-status { min-height: 1.6em; margin: 14px 0 0; color: #fff; font-size: 15px; }
.masm .masm-status:empty { visibility: hidden; }

/* Jump chips */
.masm .masm-jump { margin-top: 14px; }
.masm .masm-jump__list { display: flex; flex-wrap: wrap; gap: 10px; }
.masm .masm-jump__list li[hidden] { display: none; }
.masm .masm-chip {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
	border: 1px solid rgba(255, 255, 255, .3); color: #fff; text-decoration: none;
	font-family: "zuume-edge", sans-serif; font-weight: 600; font-size: 19px; line-height: 1;
	letter-spacing: 1.2px; text-transform: uppercase; transition: background-color .2s, border-color .2s, color .2s;
}
.masm .masm-chip:hover, .masm .masm-chip:focus-visible { background: #fff; border-color: #fff; color: #000; }
.masm .masm-chip--red { background: var(--masm-red); border-color: var(--masm-red); }

/* ---- Groups ---- */
.masm .masm-body { padding: 56px 0 110px; }
.masm .masm-grid { display: grid; gap: 30px; align-items: start; }
.masm .masm-col { display: grid; gap: 30px; align-content: start; min-width: 0; }
.masm .masm-col:not(:has(> .masm-group:not([hidden]))) { display: none; }
@media (min-width: 700px) {
	.masm .masm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.masm .masm-col--projects, .masm .masm-col--wide { grid-column: 1 / -1; }
	.masm .masm-col--projects .masm-list--split { column-count: 2; column-gap: 40px; }
}
@media (min-width: 1100px) {
	.masm .masm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.masm .masm-col--projects { grid-column: auto; }
	.masm .masm-col--projects .masm-list--split { column-count: 1; }
}

.masm .masm-group {
	position: relative; min-width: 0; padding: 30px 30px 26px; background: #fff;
	border-bottom: 4px solid var(--masm-red); box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
	scroll-margin-top: 130px;
}
.masm .masm-group__title {
	display: flex; align-items: center; gap: 14px; margin: 0 0 14px; padding: 0 0 16px;
	border-bottom: 1px solid var(--masm-line);
	font-family: "zuume-edge", sans-serif; font-weight: 600; font-size: 30px; line-height: 1;
	letter-spacing: 1px; text-transform: uppercase; color: #000;
}
.masm .masm-group__icon {
	display: inline-flex; flex: 0 0 46px; align-items: center; justify-content: center; height: 46px;
	background: var(--masm-red); color: #fff; font-size: 19px;
	clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}
.masm .masm-group__name { min-width: 0; }
.masm .masm-count {
	margin-left: auto; padding: 5px 10px 4px; background: #000; color: #fff;
	font-family: "Rubik", sans-serif; font-size: 13px; font-weight: 600; line-height: 1; letter-spacing: 0;
	font-variant-numeric: tabular-nums;
}

/* Link lists: a short red rule before each link. */
.masm .masm-list > li { position: relative; padding: 7px 0 7px 22px; line-height: 1.4; break-inside: avoid; }
.masm .masm-list > li::before {
	content: ""; position: absolute; left: 0; top: calc(7px + .7em - 1.5px); width: 12px; height: 3px; background: var(--masm-red);
}
.masm .masm-list a {
	color: #000; font-size: 16px; text-decoration: underline; text-decoration-thickness: 1px;
	text-underline-offset: .25em; text-decoration-color: transparent;
	transition: color .2s, text-decoration-color .2s;
}
.masm .masm-list a:hover { color: var(--masm-red); text-decoration-color: currentColor; }
.masm mark { padding: 0; background: rgba(236, 36, 39, .18); color: inherit; }
.masm .masm-date { margin-left: 4px; color: #8a9099; font-size: 13px; white-space: nowrap; }

/* Commercial Services tree */
.masm .masm-list--tree > li { padding: 10px 0 6px; }
.masm .masm-list--tree > li::before { display: none; }
.masm .masm-list--tree > li + li { border-top: 1px dashed var(--masm-line); }
.masm .masm-list--tree > li > a.masm-branch {
	display: inline-block; color: #000; text-decoration: none;
	font-family: "zuume-edge", sans-serif; font-weight: 600; font-size: 23px; line-height: 1.1;
	letter-spacing: 1px; text-transform: uppercase; transition: color .2s;
}
.masm .masm-list--tree > li > a.masm-branch:hover { color: var(--masm-red); }
.masm .masm-list--tree .masm-list { margin: 6px 0 4px 2px; padding-left: 14px; border-left: 2px solid var(--masm-line); }
.masm .masm-list--tree .masm-list > li { padding-top: 5px; padding-bottom: 5px; }
.masm .masm-list--tree .masm-list a { font-size: 15px; }

/* Sub-lists: case studies, project galleries, topics */
.masm .masm-set + .masm-set { margin-top: 18px; }
.masm .masm-set__title {
	margin: 0 0 6px; color: var(--masm-red); font-family: "zuume-edge", sans-serif; font-weight: 600;
	font-size: 21px; line-height: 1.1; letter-spacing: 1.2px; text-transform: uppercase;
}

/* Blog topics as chips */
.masm .masm-topics { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 6px; }
.masm .masm-topics > li { display: inline-flex; align-items: center; gap: 8px; padding: 0 0 0 12px; border: 1px solid var(--masm-line); background: var(--masm-grey); }
.masm .masm-topics > li::before { display: none; }
.masm .masm-topics a { padding: 7px 0; font-size: 15px; }
.masm .masm-topics__n { align-self: stretch; display: inline-flex; align-items: center; padding: 0 9px; background: #fff; border-left: 1px solid var(--masm-line); color: #6b7280; font-size: 13px; font-variant-numeric: tabular-nums; }

/* Blog years as folds */
.masm .masm-fold { border-top: 1px solid var(--masm-line); }
.masm .masm-set--topics + .masm-fold { margin-top: 18px; }
.masm .masm-fold + .masm-fold { margin-top: 0; }
.masm .masm-fold:last-child { border-bottom: 1px solid var(--masm-line); }
.masm .masm-fold summary {
	display: flex; align-items: center; gap: 12px; min-height: 56px; cursor: pointer; list-style: none;
}
.masm .masm-fold summary::-webkit-details-marker { display: none; }
.masm .masm-fold summary::marker { content: ""; }
.masm .masm-fold__name {
	color: #000; font-family: "zuume-edge", sans-serif; font-weight: 600; font-size: 26px; line-height: 1;
	letter-spacing: 1px; transition: color .2s;
}
.masm .masm-fold summary:hover .masm-fold__name { color: var(--masm-red); }
.masm .masm-fold__count { color: #6b7280; font-size: 14px; font-variant-numeric: tabular-nums; }
.masm .masm-fold summary i { margin-left: auto; color: var(--masm-red); font-size: 15px; transition: transform .25s; }
.masm .masm-fold[open] summary i { transform: rotate(180deg); }
.masm .masm-fold > .masm-list { padding-bottom: 14px; }
@media (min-width: 900px) {
	.masm .masm-list--posts { column-count: 2; column-gap: 48px; }
}

/* ---- Nothing matches ---- */
.masm .masm-empty {
	margin-top: 30px; padding: 44px 24px; background: #fff; border-bottom: 4px solid var(--masm-red);
	box-shadow: 0 10px 30px rgba(0, 0, 0, .06); text-align: center;
}
.masm .masm-empty__title {
	margin: 0 0 12px; color: #000; font-family: "zuume-edge", sans-serif; font-weight: 600;
	font-size: clamp(28px, 3.4vw, 40px); line-height: 1.05; letter-spacing: 1px; text-transform: uppercase;
	overflow-wrap: anywhere;
}
.masm .masm-empty__title span { color: var(--masm-red); }
.masm .masm-empty__text { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; margin: 0; }
.masm .masm-link, .masm .masm-clear {
	display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; cursor: pointer;
	font-family: "zuume-edge", sans-serif; font-weight: 600; font-size: 21px; line-height: 1.2;
	letter-spacing: 1.5px; text-transform: uppercase; color: var(--masm-red); text-decoration: none;
}
.masm .masm-clear { color: #000; }
.masm .masm-link:hover, .masm .masm-clear:hover { color: #000; text-decoration: underline; }
.masm .masm-clear:hover { color: var(--masm-red); }

/* ---- Get a Quote panel ---- */
.masm .masm-quote {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); margin-top: 56px; background: #000;
	scroll-margin-top: 130px;
}
.masm .masm-quote__intro {
	display: flex; align-items: center; gap: 22px; padding: 40px 90px 40px 40px; background: var(--masm-red); color: #fff;
	clip-path: polygon(0 0, 100% 0, calc(100% - 50px) 100%, 0 100%);
}
.masm .masm-quote__icon {
	display: inline-flex; flex: 0 0 58px; align-items: center; justify-content: center; height: 58px;
	background: #000; color: #fff; font-size: 24px;
}
.masm .masm-quote__title {
	margin: 0; color: #fff; font-family: "zuume-edge", sans-serif; font-weight: 600;
	font-size: clamp(34px, 3.4vw, 46px); line-height: 1; letter-spacing: 1px; text-transform: uppercase;
}
.masm .masm-quote__sub { margin: 8px 0 0; color: rgba(255, 255, 255, .9); font-size: 16px; line-height: 1.45; }
.masm .masm-quote__actions {
	display: grid; grid-template-columns: auto auto; justify-content: start; align-items: center;
	gap: 14px 36px; padding: 30px 40px;
}
.masm .masm-quote__actions .masm-btn { grid-row: span 2; }
.masm .masm-phone { display: inline-flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.masm .masm-phone__icon {
	display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center; height: 44px;
	border: 1px solid rgba(255, 255, 255, .3); color: var(--masm-red); font-size: 16px; transition: background-color .2s, color .2s;
}
.masm .masm-phone:hover .masm-phone__icon { background: var(--masm-red); border-color: var(--masm-red); color: #fff; }
.masm .masm-phone__label { display: block; color: #bdbdbd; font-size: 13px; line-height: 1.2; text-transform: uppercase; letter-spacing: 1px; }
.masm .masm-phone__num { display: block; font-family: "zuume-edge", sans-serif; font-weight: 600; font-size: 24px; line-height: 1.1; letter-spacing: 1px; }

/* ---- Tablets and phones ---- */
@media (max-width: 991px) {
	.masm .masm-quote { grid-template-columns: 1fr; }
	.masm .masm-quote__intro { padding: 32px 28px; clip-path: none; }
	.masm .masm-quote__actions { padding: 28px; }
}
@media (max-width: 575px) {
	.masm { --masm-angle: 34px; }
	.masm .masm-wrap { padding: 0 16px; }
	.masm .masm-hero__inner { padding: 56px 0 calc(var(--masm-angle) + 44px); }
	.masm .masm-eyebrow.sub-title6 { font-size: 14px; }
	.masm .masm-eyebrow .shape { width: 28px; }
	.masm .masm-lead { font-size: 16px; }
	.masm .masm-tools { margin-top: 28px; }
	.masm .masm-row .masm-btn { padding: 0 18px; font-size: 20px; }
	.masm .masm-chip { min-height: 40px; padding: 0 12px; font-size: 17px; }
	.masm .masm-body { padding: 36px 0 72px; }
	.masm .masm-grid, .masm .masm-col { gap: 20px; }
	.masm .masm-group { padding: 24px 18px 20px; }
	.masm .masm-group__title { gap: 12px; font-size: 26px; }
	.masm .masm-group__icon { flex-basis: 40px; height: 40px; font-size: 17px; }
	.masm .masm-topics { gap: 6px; }
	.masm .masm-topics > li { gap: 6px; padding-left: 9px; }
	.masm .masm-topics a { padding: 5px 0; font-size: 14px; }
	.masm .masm-topics__n { padding: 0 7px; font-size: 12px; }
	.masm .masm-quote { margin-top: 36px; }
	.masm .masm-quote__intro { gap: 16px; padding: 26px 18px; }
	.masm .masm-quote__icon { flex-basis: 48px; height: 48px; font-size: 20px; }
	.masm .masm-quote__actions { grid-template-columns: 1fr; padding: 24px 18px 28px; }
	.masm .masm-quote__actions .masm-btn { grid-row: auto; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.masm *, .masm *::before, .masm *::after { transition: none !important; }
}
