/* CMC Technical one-page design. Accent #b7d138, headings Dosis, statements Lora italic. */
:root { --cmc-green: #b7d138; --cmc-dark: #2b2b2b; --cmc-grey: #6f6f6f; --cmc-light: #f4f4f4; }

/* generic section */
.cmc-sec { padding: 80px 20px; }
.cmc-sec > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.cmc-tight { padding-top: 10px; }
.cmc-wide > * { max-width: 1300px; }

/* headings, rule, intro text */
.cmc-h2, .cmc-photo-title, .cmc-box-title { font-family: 'Dosis', sans-serif; text-transform: uppercase; color: var(--cmc-dark); }
.cmc-h2 { font-weight: 400; letter-spacing: 4px; font-size: clamp(30px, 4vw, 44px); margin: 0; }
.cmc-h2.cmc-left { text-align: left; }
hr.cmc-line { width: 64px !important; max-width: 64px !important; height: 3px; background: var(--cmc-green); border: 0; opacity: 1; margin: 16px auto 34px; }
hr.cmc-line-left { margin-left: 0; margin-right: auto; }
.cmc-lead { font-size: 17px; line-height: 1.75; color: var(--cmc-grey); max-width: 820px; margin-left: auto !important; margin-right: auto !important; text-align: center; }
.cmc-box-title { font-weight: 500; letter-spacing: 2px; font-size: 20px; }

/* icons (Image blocks, so they can be replaced from the media library) */
.cmc-icon { margin: 0 0 14px; }
.cmc-icon img { width: 64px; height: 64px; }
.cmc-icon-lg img { width: 90px; height: 90px; }
.cmc-icon-sm img { width: 38px; height: 38px; }
.cmc-cols { gap: 48px; margin-bottom: 30px; }
.cmc-box-text { font-size: 15px; line-height: 1.75; color: var(--cmc-grey); }

/* image on grey band */
.cmc-band-grey { background: var(--cmc-light); padding: 0 20px 70px; margin: 0; }
.cmc-float-img { margin: 0 auto; position: relative; top: -110px; margin-bottom: -110px; max-width: 900px; }
.cmc-float-img img { width: 100%; height: auto; }

/* statements */
.cmc-statements > * { max-width: 900px; }
.cmc-statements { border-top: 1px solid #e3e3e3; border-bottom: 1px solid #e3e3e3; padding: 40px 15%; max-width: 1100px; margin: 0 auto; }
.cmc-statement { font-family: 'Lora', serif; font-style: italic; font-size: 22px; line-height: 1.5; color: var(--cmc-dark); margin: 14px 0; }
.cmc-statement:first-child { color: #8aa112; }

/* service cards + announcement */
.cmc-card-img img { width: 100%; height: auto; display: block; margin-bottom: 18px; }
.cmc-announce { font-family: 'Lora', serif; font-style: italic; font-size: 24px; line-height: 1.5; color: var(--cmc-dark); margin-top: 50px; }
.cmc-announce a { color: #8aa112; }
.cmc-announce-upper { font-family: 'Dosis', sans-serif; font-style: normal; text-transform: uppercase; letter-spacing: 1px; font-size: 26px; font-weight: 500; margin-bottom: 40px; }

/* alternating text / photo bands */
.cmc-split-wrap { padding: 0; margin: 0; }
.cmc-split { margin: 0 !important; gap: 0 !important; align-items: stretch; }
.cmc-split > .cmc-col { flex-basis: 50%; margin: 0; display: flex; flex-direction: column; justify-content: center; }
.cmc-split > .cmc-col > :not(.wp-block-cover):not(.wp-block-image) { padding-left: 40px; padding-right: 40px; box-sizing: border-box; }
.cmc-split:not(.cmc-split-rev) > .cmc-col:first-child > :not(.wp-block-cover):not(.wp-block-image) { padding-left: max(40px, calc((100vw - 1200px) / 2)); padding-right: 60px; }
.cmc-split.cmc-split-rev > .cmc-col:last-child > :not(.wp-block-cover):not(.wp-block-image) { padding-right: max(40px, calc((100vw - 1200px) / 2)); padding-left: 60px; }
.cmc-split > .cmc-col > ul, .cmc-split > .cmc-col > ol { padding-left: 0; }
.cmc-split ul.wp-block-list { list-style-position: outside; }
.cmc-split > .cmc-col > ul { margin-left: 0; }
.cmc-split > .cmc-col > .cmc-h2 { padding-top: 70px; }
.cmc-split > .cmc-col > :last-child:not(.wp-block-cover):not(.wp-block-image) { padding-bottom: 70px; }
.cmc-split ul { color: var(--cmc-grey); line-height: 1.7; }
.cmc-split p { color: var(--cmc-grey); line-height: 1.75; }
.cmc-fill-img { margin: 0; height: 100%; }
.cmc-fill-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cmc-photo { min-height: 520px; }
.cmc-photo-title { color: #fff; font-weight: 400; font-size: clamp(30px, 4vw, 48px); letter-spacing: 6px; }
.cmc-quote { font-family: 'Lora', serif; font-style: italic; font-size: 20px; color: var(--cmc-dark) !important; }
.cmc-clients { list-style: none; columns: 2; column-gap: 40px; font-size: 14px; margin-left: 0; margin-right: 0; }
.cmc-clients li { margin-bottom: 14px; break-inside: avoid; }

/* works */
.cmc-works { gap: 20px; }
.cmc-work { margin: 0; }
.cmc-work img { width: 100%; height: auto; display: block; }
.cmc-work figcaption { font-family: 'Dosis', sans-serif; font-size: 16px; letter-spacing: 1px; text-align: center; color: var(--cmc-dark); margin-top: 10px; }

/* contact */
.cmc-contact { gap: 60px; }
.cmc-cline { gap: 0; margin-bottom: 10px; align-items: center; }
.cmc-cline p { margin: 0; line-height: 1.6; }
.cmc-cline .cmc-icon { margin: 0; }
.cmc-contact-logo img { width: 206px; height: auto; margin-top: 20px; }
.cmc-contact .wpcf7 input[type=text], .cmc-contact .wpcf7 input[type=email], .cmc-contact .wpcf7 textarea { width: 100%; border: 1px solid #ddd; padding: 12px 14px; font-size: 15px; }
.cmc-contact .wpcf7 input[type=submit] { background: var(--cmc-green); color: #222; border: 0; padding: 14px 34px; font-family: 'Dosis', sans-serif; text-transform: uppercase; letter-spacing: 2px; cursor: pointer; }

/* hero slide text (each slide is an editable Cover block) */
.cmc-slide-title { font-family: 'Dosis', sans-serif; font-weight: 300; font-size: clamp(30px, 5vw, 62px); line-height: 1.15; color: #fff; text-transform: none; }
.cmc-slide-sub { font-family: 'Lora', serif; font-style: italic; font-size: 18px; color: #fff; margin: 6px 0; }
.cmc-slide-sub2 { font-family: 'Dosis', sans-serif; font-style: normal; text-transform: uppercase; letter-spacing: 3px; font-size: 16px; color: var(--cmc-green); }

@media (max-width: 781px) {
	.cmc-sec { padding: 50px 20px; }
	.cmc-clients { columns: 1; }
	.cmc-statements { padding: 30px 20px; }
	.cmc-float-img { top: -50px; margin-bottom: -50px; }
	.cmc-hero { height: 520px; }
}

/* header (Kadence header builder): top bar + menu */
.site-top-header-wrap { font-family: 'Dosis', sans-serif; font-size: 15px; letter-spacing: .5px; }
.site-top-header-wrap a { color: var(--cmc-dark); text-decoration: none; }
.site-top-header-wrap a:hover { color: #8aa112; }
.header-navigation .header-menu-container > ul > li > a, .header-navigation .menu > li > a {
	font-family: 'Dosis', sans-serif; text-transform: uppercase; letter-spacing: 1px; font-size: 14.5px; font-weight: 500; }
.header-navigation .header-menu-container > ul > li.menu-item > a { padding-left: .75em; padding-right: .75em; }
html { scroll-behavior: smooth; }
.cmc-hero, [id] { scroll-margin-top: 90px; }

/* contact block without form: centred single column */
.cmc-contact { justify-content: center !important; }
.cmc-contact.wp-block-columns > .wp-block-column.cmc-col { flex: 0 1 auto !important; width: fit-content; min-width: min(380px, 100%); max-width: 100%; margin-left: auto; margin-right: auto; }

/* "no cookies" notice: an editable Group block at the end of the page */
.cmc-cookiefree { margin: 0; padding: 12px 20px; background: #2b2b2b; text-align: center; }
.cmc-cookiefree-text { margin: 0; font-family: 'Dosis', sans-serif; font-size: 15px; letter-spacing: 1.5px; text-transform: uppercase; color: #fff; }
.cmc-cookiefree-text strong { color: #b7d138; font-weight: 600; }
