/* Macrocomm site layer: the only stylesheet in the plugin that is not scoped to a widget.
   It holds three things the design applies to the page itself:
   1. the fixed drafting grid behind every page (shows through wherever a section is left clear);
   2. section container classes, added in Elementor under Advanced → CSS Classes:
        mc-sec   every page section: 88 px above and below (56 px on phones), black, red rule underneath
        mc-jet   with mc-sec: the "jet" #111 background used on alternate sections
        mc-band  with mc-sec: the shorter 72 px bands (calls to action)
        mc-first with mc-sec: the first section of a page, which starts under the fixed header (144 px above)
        mc-top   with mc-sec: the first section of a domain page (112 px above, 88 px below, at every width)
        mc-clear with mc-sec: no background, so the drafting grid shows through
        mc-join  with mc-sec: the section runs on into a band below it (64 px under its content, no red rule)
        mc-sub   with mc-sec: that band (Home: Sectors we serve): 26 px above and below, grey rule on top,
                 drafting grid behind
      The section's inner width follows the design's .wrap: 96 % up to 1140 px, 16 px from the edges on phones.
   3. mc-split: a two-column row (Contact: form and contact details) that stacks when there is no room.
   4. mc-cards: a row of cards of equal height (MC Sheet card), three across (one per row from tablet width down);
      add mc-cols-2 for two across (one per row on phones), and mc-tablet-1 as well for one per row from tablet width.
   Section padding is set through Elementor's own container variables, so a padding typed into a
   container's Advanced tab still wins over these defaults. */

body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-color: #000;
	background-image: linear-gradient(#353535 1px, transparent 1px), linear-gradient(90deg, #353535 1px, transparent 1px), linear-gradient(#232323 1px, transparent 1px), linear-gradient(90deg, #232323 1px, transparent 1px);
	background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
}

.e-con.mc-sec {
	--padding-top: 88px;
	--padding-bottom: 88px;
	--padding-left: 0px;
	--padding-right: 0px;
	position: relative;
	background-color: #000;
	border-bottom: 1px solid #ea2127;
}
.e-con.mc-sec.mc-jet { background-color: #111; }
.e-con.mc-sec.mc-clear { background-color: transparent; }
.e-con.mc-sec.mc-band { --padding-top: 72px; --padding-bottom: 72px; }
.e-con.mc-sec.mc-first { --padding-top: 144px; }
.e-con.mc-sec.mc-top { --padding-top: 112px; --padding-bottom: 88px; }
.e-con.mc-sec.mc-intro { --padding-top: 128px; --padding-bottom: 72px; }
.e-con.mc-sec.mc-join { --padding-bottom: 64px; border-bottom: 0; }
.e-con.mc-sec.mc-sub { --padding-top: 26px; --padding-bottom: 26px; background-color: transparent; border-top: 1px solid #4c4345; }
/* graph paper behind a whole section (Mission-critical: Designed against); it holds still while the page scrolls */
.e-con.mc-sec.mc-grid { overflow: hidden; background-color: #000; background-image: linear-gradient(#353535 1px, transparent 1px), linear-gradient(90deg, #353535 1px, transparent 1px), linear-gradient(#232323 1px, transparent 1px), linear-gradient(90deg, #232323 1px, transparent 1px); background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px; background-attachment: fixed; }
.e-con.e-con-boxed.mc-sec > .e-con-inner { width: 96%; max-width: 1140px; }

@media (max-width: 767px) {
	.e-con.mc-sec { --padding-top: 56px; --padding-bottom: 56px; }
	.e-con.mc-sec.mc-join { --padding-bottom: 64px; }
	.e-con.mc-sec.mc-intro { --padding-top: 128px; --padding-bottom: 72px; }
	.e-con.mc-sec.mc-sub { --padding-top: 24px; --padding-bottom: 28px; }
	.e-con.e-con-boxed.mc-sec > .e-con-inner { width: auto; margin: 0 16px; }
}

/* two columns that wrap: the first child takes the spare width, the second keeps at least 320 px */
.e-con.mc-split { --flex-direction: row; --flex-wrap: wrap; --align-items: flex-start; --gap: 48px; --row-gap: 48px; --column-gap: 48px; }
.e-con.mc-split > .elementor-element:first-child,
.e-con.mc-split > .e-con-inner > .elementor-element:first-child { flex: 999 1 560px; width: auto; min-width: 0; }
.e-con.mc-split > .elementor-element:not(:first-child),
.e-con.mc-split > .e-con-inner > .elementor-element:not(:first-child) { flex: 1 1 320px; width: auto; min-width: 0; }

/* a row of cards of equal height: three across (one per row from tablet width down),
   or two across with mc-cols-2 (one per row on phones) */
.e-con.mc-cards,
.e-con.mc-cards > .e-con-inner { display: grid; grid-template-columns: repeat(var(--mc-cols, 3), minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.e-con.mc-cards.e-con-boxed { display: block; }
.e-con.mc-cards.mc-cols-2 { --mc-cols: 2; }
.e-con.mc-cards > .elementor-element,
.e-con.mc-cards > .e-con-inner > .elementor-element { width: auto; min-width: 0; }
@media (max-width: 1024px) {
	.e-con.mc-cards:not(.mc-cols-2),
	.e-con.mc-cards:not(.mc-cols-2) > .e-con-inner,
	.e-con.mc-cards.mc-tablet-1,
	.e-con.mc-cards.mc-tablet-1 > .e-con-inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
	.e-con.mc-cards,
	.e-con.mc-cards > .e-con-inner { grid-template-columns: minmax(0, 1fr); }
}
