/*
 * compmarc.com static site.
 * Look copied from the old Joomla template (RocketTheme Halcyon, green),
 * values measured on the 9 June 2026 copy at 1366px wide.
 */

/* Open Sans Bold (latin), SIL Open Font License 1.1, served from this site instead of Google. */
@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/open-sans-700.woff2") format("woff2");
}

:root {
	--cm-green: #5ea94c;
	--cm-green-light: #bfddb7;
	--cm-text: #888;
	--cm-dark: #4d4d4d;
	--cm-heading-dark: #555;
	--cm-top-bg: #f7f7f7;
	--cm-showcase-bg: #fafafa;
	--cm-extension-bg: #f3f3f3;
	--cm-line: #ebebeb;
	--cm-error: #b94a48;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	background: #fff;
	color: var(--cm-text);
	font-family: Helvetica, Arial, sans-serif;
	font-size: 13px;
	line-height: 1.6;
}

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

a {
	color: var(--cm-green);
	text-decoration: none;
	transition: color 0.2s ease-out;
}

a:hover,
a:focus {
	color: var(--cm-dark);
}

p {
	margin: 0 0 15px;
}

h1,
h2 {
	font-family: "Open Sans", Helvetica, Arial, serif;
}

h2 {
	color: var(--cm-text);
	font-size: 26px;
	font-weight: 700;
	line-height: 20.8px;
	margin: 15px 0;
}

.cm-green {
	color: var(--cm-green);
}

.cm-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 25px;
}

.cm-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	padding: 8px 12px;
	background: #fff;
	color: var(--cm-dark);
}

.cm-skip:focus {
	left: 8px;
	top: 8px;
}

:focus-visible {
	outline: 2px solid var(--cm-green);
	outline-offset: 2px;
}

/* ---------- Header ---------- */

.cm-top {
	background: var(--cm-top-bg);
	color: var(--cm-heading-dark);
}

.cm-top-pattern {
	background: url("../img/squares.png") repeat;
}

.cm-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	min-height: 133px;
}

.cm-logo {
	display: block;
	margin-top: 25px;
	line-height: 0;
}

.cm-logo img {
	width: 280px;
	height: 83px;
}

.cm-hotline {
	width: 350px;
	margin: 50px 0 0;
	font-size: 18.67px;
	line-height: 22px;
}

.cm-hotline a {
	color: inherit;
}

.cm-nav {
	height: 50px;
	background: url("../img/bevel-div.png") 50% 0 repeat-x;
}

.cm-menu {
	display: flex;
	justify-content: flex-end;
	margin: 0 -15px 0 0;
	padding: 8px 0 0;
	list-style: none;
}

.cm-menu li {
	margin: 0 2px;
	border-radius: 8px 8px 0 0;
	transition: background-color 0.2s linear;
}

.cm-menu a {
	display: block;
	height: 42px;
	padding: 0 14px;
	color: var(--cm-dark);
	font-size: 14.3px;
	line-height: 37px;
}

.cm-menu .is-current,
.cm-menu li:hover,
.cm-menu li:focus-within {
	background-color: var(--cm-green);
}

.cm-menu .is-current > a,
.cm-menu li:hover > a,
.cm-menu li:focus-within > a {
	color: #fff;
}

.cm-menu-mobile {
	display: none;
}

/* ---------- Inner pages ---------- */

.cm-content {
	padding-top: 30px;
	padding-bottom: 30px;
}

.cm-content ul {
	margin: 10px 0;
	padding: 0 0 0 15px;
	list-style: square;
}

.cm-content li {
	line-height: 1.7;
}

/* About Us: green round first letters */
.dropcap6::first-letter {
	float: left;
	margin: 0 10px 10px 0;
	padding: 5px 10px;
	border-radius: 30px;
	background: var(--cm-green);
	color: #fff;
	font-size: 30px;
	line-height: 30px;
}

/* ---------- Home: slideshow ---------- */

.cm-showcase {
	padding: 30px 0;
	background: var(--cm-showcase-bg);
	border-bottom: 1px solid var(--cm-line);
}

.cm-slider {
	position: relative;
	width: 910px;
	max-width: 100%;
	margin-left: auto;
	padding-bottom: 10px;
}

/* Soft shadow under the picture: left end, right end, middle strip. */
.cm-slider::before,
.cm-slider::after {
	content: "";
	position: absolute;
	bottom: 0;
	height: 10px;
	pointer-events: none;
}

.cm-slider::before {
	left: 0;
	right: 0;
	background:
		url("../img/taper-l.png") 0 0 no-repeat,
		url("../img/taper-r.png") 100% 0 no-repeat;
}

.cm-slider::after {
	left: 394px;
	right: 394px;
	background: url("../img/taper-m.png") 50% 0 repeat-x;
}

.cm-slides {
	position: relative;
	aspect-ratio: 910 / 332;
	overflow: hidden;
	border-radius: 8px 8px 0 0;
	background: #f9f9fb url("../img/slide-gradient.png") 50% 0 repeat-x;
}

.cm-slide {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 8px 8px 0 0;
	opacity: 0;
	transform: translateY(100%);
	transition: transform 1s cubic-bezier(0.87, 0, 0.13, 1), opacity 0s linear 1s;
}

.cm-slide.is-active {
	z-index: 2;
	opacity: 1;
	transform: translateY(0);
	transition: transform 1s cubic-bezier(0.87, 0, 0.13, 1), opacity 0s;
}

.cm-slide.is-leaving {
	z-index: 1;
	opacity: 1;
	transform: translateY(0);
	transition: none;
}

/* Without JavaScript only the first picture shows. */
.no-js .cm-slide:first-child {
	opacity: 1;
	transform: none;
}

.cm-slide-nums {
	position: absolute;
	right: 17px;
	bottom: 15px;
	z-index: 5;
	display: flex;
	gap: 8px;
}

.cm-slide-num {
	width: 23px;
	height: 23px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 30px;
	background-color: var(--cm-green-light);
	color: #fff;
	font: 13px/23px Helvetica, Arial, sans-serif;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.2s linear;
}

.cm-slide-num.is-active {
	background-color: var(--cm-green);
}

.no-js .cm-slide-nums {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	.cm-slide,
	.cm-slide.is-active {
		transition: none;
	}
}

/* ---------- Home: client quotes in tabs ---------- */

/* The thin line under the quotes runs the full 1200px, past the text edges. */
.cm-maintop {
	margin: 0 -25px;
	padding: 30px 25px 15px;
	border-bottom: 1px solid var(--cm-line);
}

.cm-tabs-nav {
	display: flex;
	flex-wrap: wrap;
	padding: 5px 0 2px;
	background: var(--cm-top-bg);
}

.cm-tabs-nav [role="tab"] {
	margin: 0 0 -2px 15px;
	padding: 0 24px 2px;
	border: 0;
	border-left: 1px solid transparent;
	border-right: 1px solid transparent;
	border-top: 2px solid transparent;
	border-radius: 0;
	background: transparent;
	color: var(--cm-green);
	font: 14.3px/41px Helvetica, Arial, sans-serif;
	cursor: pointer;
}

.cm-tabs-nav [role="tab"]:hover {
	color: var(--cm-dark);
}

.cm-tabs-nav [role="tab"][aria-selected="true"] {
	border-left-color: #f0f0f0;
	border-right-color: #f0f0f0;
	border-top-color: var(--cm-line);
	background: #fff;
	color: var(--cm-text);
}

.cm-tabs-panels {
	position: relative;
	padding-top: 0;
}

.cm-tab-panel[hidden],
.cm-tabs:not(.is-ready) .cm-tab-panel:not(:first-child) {
	display: none;
}

.cm-tab-panel.is-entering {
	animation: cm-slide-fade 0.45s ease-out;
}

@keyframes cm-slide-fade {
	from {
		opacity: 0;
		transform: translateX(20px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.cm-testimonials blockquote {
	margin: 0;
	padding: 5px 0 0 35px;
	background: url("../img/quote-l.png") 0 0 no-repeat;
	color: var(--cm-text);
	font: italic 16px/22px Georgia, serif;
}

.cm-testimonials blockquote p {
	margin: 0 0 15px;
	padding: 0 35px 5px 0;
	background: url("../img/quote-r.png") 100% 100% no-repeat;
	font-size: 15px;
}

.cm-testimonials blockquote a {
	color: var(--cm-green);
	font-weight: 700;
}

/* Two quotes were pasted from Word on the old site; these keep their old look. */
.cm-bg-white {
	background: #fff;
}

.cm-word-paste {
	color: #1f497d;
	font-family: Calibri, "sans-serif";
	font-size: 11pt;
}

/* ---------- Contact Us: form laid out like the old RSForm ---------- */

.cm-form-row {
	display: flex;
	align-items: flex-start;
	gap: 23px;
	margin: 0 0 18px;
}

.cm-form-row > label,
.cm-label-spacer {
	flex: 0 0 230px;
	padding-top: 5px;
	text-align: right;
}

.cm-req {
	margin-left: 3px;
}

.cm-form-controls {
	flex: 1 1 auto;
	min-width: 0;
}

.cm-contact input[type="text"],
.cm-contact input[type="email"],
.cm-contact textarea {
	display: block;
	width: 220px;
	max-width: 100%;
	margin: 0 0 18px;
	padding: 4px;
	border: 1px solid #ccc;
	border-radius: 3px;
	background: #fff;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
	color: #555;
	font: 13px/18px Arial, sans-serif;
	transition: border 0.2s linear, box-shadow 0.2s linear;
}

.cm-contact input[type="text"],
.cm-contact input[type="email"] {
	height: 28px;
}

.cm-contact textarea {
	height: 100px;
	margin: 0 0 15px;
	font-family: monospace;
	resize: both;
}

.cm-contact input:focus,
.cm-contact textarea:focus {
	border-color: rgba(82, 168, 236, 0.8);
	outline: 0;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
}

.cm-contact [aria-invalid="true"] {
	border-color: var(--cm-error);
}

.cm-field-error {
	display: block;
	margin: -14px 0 4px;
	color: var(--cm-error);
}

.cm-field-error[hidden] {
	display: none;
}

/* Trap field for spam robots: off screen, not just hidden. */
.cm-hp {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.cm-captcha-row[hidden] {
	display: none;
}

.cm-btn {
	display: inline-block;
	height: 28px;
	margin: 0;
	padding: 4px 10px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-bottom-color: rgba(0, 0, 0, 0.25);
	border-radius: 4px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
	color: #fff;
	font: 13px/18px Arial, sans-serif;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
	cursor: pointer;
	vertical-align: middle;
}

.cm-btn-submit {
	background: #0074cc linear-gradient(to bottom, #0088cc, #0055cc);
}

.cm-btn-submit:hover,
.cm-btn-submit:focus {
	background: #0055cc;
}

.cm-btn-reset {
	background: #da4f49 linear-gradient(to bottom, #ee5f5b, #bd362f);
}

.cm-btn-reset:hover,
.cm-btn-reset:focus {
	background: #bd362f;
}

.cm-btn[disabled] {
	opacity: 0.65;
	cursor: wait;
}

.cm-form-status {
	max-width: 600px;
	margin: 0 0 18px 253px;
	padding: 8px 14px;
	border: 1px solid #d6e9c6;
	border-radius: 4px;
	background: #dff0d8;
	color: #468847;
}

.cm-form-status {
	white-space: pre-line;
}

.cm-contact.is-sent .cm-form-row,
.cm-contact.is-sent noscript {
	display: none;
}

.cm-contact.is-sent .cm-form-status {
	margin-left: 0;
}

.cm-form-status.is-error {
	border-color: #eed3d7;
	background: #f2dede;
	color: var(--cm-error);
}

.cm-noscript {
	margin-left: 253px;
	color: var(--cm-error);
}

/* ---------- Footer ---------- */

.cm-extension {
	padding: 30px 0;
	background: var(--cm-extension-bg) url("../img/shadow-div2.png") 50% 0 repeat-x;
}

.cm-company {
	font-size: 120%;
	font-style: normal;
	line-height: 145%;
}

.cm-extension a {
	font-weight: 700;
}

.cm-copyright {
	border-top: 1px solid var(--cm-line);
}

.cm-copyright p {
	margin: 0;
	padding: 7px 0;
}

/* ---------- Narrower screens ---------- */

@media (max-width: 959px) {
	.cm-hotline {
		width: auto;
	}

	.cm-slider::after {
		display: none;
	}

	.cm-form-row > label,
	.cm-label-spacer {
		flex-basis: 140px;
	}

	.cm-form-status,
	.cm-noscript {
		margin-left: 163px;
	}
}

@media (max-width: 767px) {
	.cm-container {
		padding: 0 16px;
	}

	.cm-header {
		flex-direction: column;
		align-items: center;
		min-height: 0;
		padding-bottom: 10px;
	}

	.cm-logo {
		margin-top: 15px;
	}

	.cm-hotline {
		margin: 10px 0 0;
		text-align: center;
	}

	.cm-nav {
		height: auto;
		padding: 10px 0;
	}

	.js .cm-menu {
		display: none;
	}

	.no-js .cm-menu {
		flex-wrap: wrap;
		justify-content: center;
		margin: 0;
		padding: 0;
	}

	.js .cm-menu-mobile {
		display: block;
		width: 100%;
		height: 34px;
		padding: 4px 6px;
		border: 1px solid #ccc;
		border-radius: 3px;
		background: #fff;
		color: #555;
		font-size: 14px;
	}

	.cm-showcase {
		padding: 16px 0;
	}

	.cm-maintop {
		margin: 0 -16px;
		padding-left: 16px;
		padding-right: 16px;
	}

	.cm-slider::before {
		display: none;
	}

	.cm-slide-nums {
		right: 10px;
		bottom: 18px;
	}

	.cm-tabs-nav [role="tab"] {
		margin-left: 0;
		padding: 0 12px 2px;
	}

	.cm-testimonials blockquote p {
		padding-right: 30px;
	}

	/* About Us: keep wrapped lines beside the green letter instead of under it. */
	.dropcap6 {
		padding-left: 58px;
	}

	.dropcap6::first-letter {
		margin-left: -58px;
	}

	.cm-form-row {
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
	}

	.cm-contact input[type="text"],
	.cm-contact input[type="email"],
	.cm-contact textarea {
		margin-bottom: 0;
	}

	.cm-field-error {
		margin: 4px 0 0;
	}

	.cm-form-row > label,
	.cm-label-spacer {
		flex-basis: auto;
		text-align: left;
	}

	.cm-form-status,
	.cm-noscript {
		margin-left: 0;
	}

	.cm-contact input[type="text"],
	.cm-contact input[type="email"],
	.cm-contact textarea {
		width: 100%;
	}
}
