/* Elegant EMC — custom styles */

/* ===== Specialized Facilities : full-width big-image tiles with pyramid overlay ===== */
.emc-fac-band{ width:100%; overflow:hidden; }
.emc-fac-grid{
	display:grid;
	grid-template-columns:repeat(5,1fr);
	gap:18px;
	padding:0 18px;
}

.emc-fac-tile{
	position:relative;
	display:block;
	height:520px;
	overflow:hidden;
	cursor:pointer;
	text-decoration:none;
	border-radius:6px;
}
.emc-fac-tile:hover{ text-decoration:none; }
.emc-fac-tile .bg{
	position:absolute; inset:0;
	width:100%; height:100%;
	object-fit:cover;
	transition:transform .7s ease;
}
.emc-fac-tile:hover .bg{ transform:scale(1.09); }

/* base gradient overlay (always visible) */
.emc-fac-tile .ov{
	position:absolute; inset:0; z-index:1;
	background:linear-gradient(to top, rgba(15,6,6,.88) 0%, rgba(139,26,26,.40) 50%, rgba(0,0,0,.10) 100%);
	transition:background .45s ease;
}
.emc-fac-tile:hover .ov{
	background:linear-gradient(to top, rgba(139,26,26,.92) 0%, rgba(139,26,26,.55) 55%, rgba(0,0,0,.25) 100%);
}

/* pyramid motif — rises and brightens on hover */
.emc-fac-tile .pyr{
	position:absolute; left:50%; bottom:118px; z-index:2;
	width:0; height:0;
	border-left:95px solid transparent;
	border-right:95px solid transparent;
	border-bottom:128px solid rgba(139,26,26,.50);
	transform:translateX(-50%) translateY(50px) scale(.85);
	opacity:0;
	transition:transform .55s ease, opacity .55s ease, border-bottom-color .55s ease;
	pointer-events:none;
}
.emc-fac-tile:hover .pyr{
	transform:translateX(-50%) translateY(0) scale(1);
	opacity:1;
	border-bottom-color:rgba(139,26,26,.70);
}

/* content */
.emc-fac-tile .cont{
	position:absolute; left:0; right:0; bottom:0; z-index:3;
	padding:34px 20px;
	text-align:center;
	transition:transform .45s ease;
}
.emc-fac-tile:hover .cont{ transform:translateY(-8px); }
.emc-fac-tile .cont .ico{
	width:46px; height:46px; object-fit:contain;
	margin:0 auto 14px;
	display:block;
	filter:brightness(0) invert(1);
	image-rendering:auto;
}
.emc-fac-tile .cont h5{
	color:#fff; font-size:21px; font-weight:700; line-height:1.25; margin:0 0 6px;
}
.emc-fac-tile .cont span{
	display:inline-block;
	color:rgba(255,255,255,.82);
	font-size:12px; letter-spacing:1.5px; text-transform:uppercase;
}
.emc-fac-tile .cont span:before{ content:""; display:inline-block; width:22px; height:2px; background:#fff; opacity:.6; vertical-align:middle; margin-right:8px; }

@media (max-width:1199px){ .emc-fac-grid{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:767px){ .emc-fac-grid{ grid-template-columns:repeat(2,1fr); } .emc-fac-tile{ height:420px; } }
@media (max-width:479px){ .emc-fac-grid{ grid-template-columns:1fr; } .emc-fac-tile{ height:380px; } }

/* ===== Hero : fit one screen (full viewport height) ===== */
.banner-style-37{
	min-height:78vh;
	display:flex;
	align-items:center;
	padding:175px 0 110px;
}
.banner-style-37 .outer-container{ width:100%; }

/* Hero CTAs : primary "Our Services" + secondary "Talk to an Expert" call button */
.banner-style-37 .btn-box{ display:flex; flex-wrap:wrap; align-items:center; gap:18px; margin-top:34px; }
.banner-style-37 .yt-btn-title-v1{
	display:inline-flex; align-items:center; justify-content:center;
	background:#8b1a1a; color:#fff; font-weight:700; font-size:16px; letter-spacing:.4px;
	text-transform:uppercase; padding:17px 36px; border-radius:6px;
	transition:background .3s ease, transform .3s ease;
}
.banner-style-37 .yt-btn-title-v1:hover{ background:#000; color:#fff; transform:translateY(-2px); }
.banner-style-37 .yt-btn-call{
	display:inline-flex; align-items:center; gap:14px;
	background:transparent; color:#1a1a1a; font-weight:600;
	padding:11px 28px; border:2px solid rgba(0,0,0,.18); border-radius:6px;
	line-height:1; transition:all .3s ease;
}
.banner-style-37 .yt-btn-call:hover{ background:#8b1a1a; color:#fff; border-color:#8b1a1a; transform:translateY(-2px); }
.banner-style-37 .yt-btn-call .ic{ display:flex; align-items:center; justify-content:center; flex:0 0 auto; }
.banner-style-37 .yt-btn-call svg{ width:28px; height:28px; fill:currentColor; display:block; }
.banner-style-37 .yt-btn-call .lbl{ display:flex; flex-direction:column; justify-content:center; gap:3px; text-align:left; }
.banner-style-37 .yt-btn-call .lbl .t{ font-size:12px; font-weight:600; letter-spacing:.6px; text-transform:uppercase; opacity:.8; line-height:1; }
.banner-style-37 .yt-btn-call .lbl .num{ font-size:18px; font-weight:800; letter-spacing:.3px; line-height:1; }
@media (max-width:991px){ .banner-style-37{ min-height:auto; padding:170px 0 90px; } }
@media (max-width:575px){
	.banner-style-37 .btn-box{ gap:14px; }
	.banner-style-37 .yt-btn-title-v1, .banner-style-37 .yt-btn-call{ width:100%; }
	.banner-style-37 .yt-btn-call{ justify-content:center; }
}

/* ===== Footer (logo, services, sectors) ===== */
.footer-emc{ background:#f4f5f7; color:#5a5f66; padding:80px 0 0; }
.footer-emc .footer-logo{ margin-bottom:26px; }
.footer-emc .footer-logo img{ max-height:108px; width:auto; max-width:100%; }
.footer-emc .footer-about{ font-size:15px; line-height:1.85; margin:0; }
.footer-emc .footer-contact{ list-style:none; padding:0; margin:0; font-size:15px; line-height:1.6; }
.footer-emc .footer-contact li{ margin-bottom:10px; }
.footer-emc .footer-contact a{ color:#5a5f66; }
.footer-emc .footer-contact a:hover{ color:#8b1a1a; }
.footer-emc .footer-title{ color:#1a1a1a; font-size:20px; font-weight:700; margin-bottom:24px; }
.footer-emc .footer-links{ list-style:none; padding:0; margin:0; }
.footer-emc .footer-links li{ margin-bottom:12px; }
.footer-emc .footer-links a{ color:#5a5f66; font-size:15px; transition:color .3s ease, padding .3s ease; }
.footer-emc .footer-links a:hover{ color:#8b1a1a; padding-left:6px; }
.footer-emc .footer-bottom{ border-top:1px solid #e1e3e6; margin-top:36px; padding:24px 0; text-align:center; font-size:14px; }
.footer-emc .footer-bottom p{ margin:0; }
.footer-emc .footer-bottom a{ color:#8b1a1a; font-weight:600; }
/* Footer social icons */
.footer-emc .footer-social{ display:flex; gap:12px; margin:24px 0 0; padding:0; list-style:none; }
.footer-emc .footer-social li{ margin:0; padding:0; }
.footer-emc .footer-social li:before{ display:none; }
.footer-emc .footer-social a{
	display:flex; align-items:center; justify-content:center;
	width:40px; height:40px; border-radius:50%;
	background:#ffffff; border:1px solid #e1e3e6; color:#8b1a1a;
	font-size:16px; line-height:1; transition:all .3s ease;
}
.footer-emc .footer-social a:hover{ background:#8b1a1a; border-color:#8b1a1a; color:#ffffff; transform:translateY(-3px); }

/* ===== Sticky header : clean white & professional ===== */
.header-style-37 .sticky-header{
	background:#ffffff;
	box-shadow:0 4px 20px rgba(0,0,0,.08);
}
.header-style-37 .sticky-header .main-menu .navigation>li>a{ color:#1a1a1a; }
.header-style-37 .sticky-header .main-menu .navigation>li>a:hover,
.header-style-37 .sticky-header .main-menu .navigation>li.current>a,
.header-style-37 .sticky-header .main-menu .navigation>li.current-menu-item>a{ color:#8b1a1a; }
.header-style-37 .sticky-header .logo img{ max-height:50px; width:auto; }

/* ===== Inner pages (no hero banner) : solid white header ===== */
body.emc-inner .header-style-37{ position:relative; background:#ffffff; box-shadow:0 2px 18px rgba(0,0,0,.07); }
body.emc-inner .header-style-37 .main-menu .navigation>li>a,
body.emc-inner .header-style-37 .sticky-header .main-menu .navigation>li>a{ color:#000 !important; }
body.emc-inner .header-style-37 .main-menu .navigation>li>a:hover{ color:#8b1a1a !important; }
body.emc-inner .page-wrapper .elementor{ padding-top:30px; }

/* ===== Contact page ===== */
.emc-contact-info{ padding:90px 0 40px; }
.emc-contact-info .info-card{ background:#f6f7f9; border-radius:8px; padding:40px 32px; height:100%; transition:box-shadow .3s ease, transform .3s ease; }
.emc-contact-info .info-card:hover{ box-shadow:0 18px 40px rgba(0,0,0,.08); transform:translateY(-5px); }
.emc-contact-info .info-card .ic{ width:64px; height:64px; border-radius:50%; background:#8b1a1a; display:flex; align-items:center; justify-content:center; margin-bottom:22px; }
.emc-contact-info .info-card .ic img{ width:30px; height:30px; object-fit:contain; filter:brightness(0) invert(1); }
.emc-contact-info .info-card h5{ font-size:21px; font-weight:700; color:#1a1a1a; margin:0 0 10px; }
.emc-contact-info .info-card p{ font-size:16px; line-height:1.7; color:#5a5f66; margin:0; }
.emc-contact-info .info-card a{ color:#5a5f66; }
.emc-contact-info .info-card a:hover{ color:#8b1a1a; }
.emc-map iframe{ display:block; width:100%; height:480px; border:0; }

/* ===== Core service tiles (home) : 3-up, same look as facilities ===== */
.emc-serv-band{ padding:20px 0 40px; }
.emc-fac-grid.emc-serv-grid{ grid-template-columns:repeat(3,1fr); }
@media (max-width:767px){ .emc-fac-grid.emc-serv-grid{ grid-template-columns:1fr; } }

/* ===== Approved contractor band : heading left, logos right ===== */
.emc-approved .bn-title{ font-size:30px; line-height:1.3; font-weight:700; color:#1a1a1a; }
.emc-approved-sub{ font-size:15px; line-height:1.7; color:#5a5f66; margin:14px 0 0; max-width:440px; }
.emc-approved-logos{ display:flex; justify-content:flex-end; align-items:center; flex-wrap:wrap; gap:34px; margin:0; padding:0; list-style:none; }
.emc-approved-logos li{ margin:0; padding:0; flex:0 1 auto; }
.emc-approved-logos li:before{ display:none; }
.emc-approved-logos img{ max-height:62px; max-width:150px; width:auto; height:auto; object-fit:contain; }
@media (max-width:991px){
	.emc-approved-logos{ justify-content:flex-start; gap:30px; margin-top:24px; }
}
@media (max-width:479px){
	.emc-approved-logos{ gap:24px; }
	.emc-approved-logos img{ max-width:120px; }
}

/* ===== Modern font (Poppins) — text only, never icon fonts ===== */
body, p, a, span, li, ul, ol, label, blockquote, input, textarea, select, button,
h1, h2, h3, h4, h5, h6,
.te-bn-title, .bn-title, .te-bn-text, .te-bn-subtitle, .main____title, .bn-feature-title, .bn-feature-content,
.main-menu .navigation>li>a, .footer-title, .footer-links a, .footer-about, .footer-contact,
.banner-style-37 .content-box h2, .banner-style-37 .content-box p,
.emc-fac-tile .cont h5, .emc-fac-tile .cont span,
.emc-contact-info .info-card h5, .emc-contact-info .info-card p,
.acc-btn, .acc-content, .te-bn-flist{
	font-family:'Montserrat', -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}
/* (icon <i> elements are never targeted above, so flaticon/Font Awesome fonts stay intact) */

/* ===== Pyramid list markers (replace flaticon-comment bullets) ===== */
.te-bn-flist.list-1 li > i.flaticon-comment{ display:none !important; }
.te-bn-flist.list-1 li{ position:relative; padding-left:30px; }
.te-bn-flist.list-1 li:before{
	content:""; position:absolute; left:0; top:.55em;
	width:0; height:0;
	border-left:8px solid transparent;
	border-right:8px solid transparent;
	border-bottom:13px solid #8b1a1a;
}

/* ===== Compact typography — tone down oversized text/headings ===== */
.banner-style-37 .content-box h2, .te-banner-title{ font-size:66px !important; line-height:1.08 !important; }
h2.elementor-heading-title{ font-size:32px !important; line-height:1.3 !important; }
.te-bn-title, .fs_45{ font-size:36px !important; line-height:1.3 !important; }
.bn-title, .emc-approved .bn-title{ font-size:27px !important; line-height:1.35 !important; }
.fs_50{ font-size:40px !important; }
.funfact-1-number{ font-size:42px !important; }
.acc-btn, .fs_28{ font-size:22px !important; line-height:1.45 !important; }
.fs_22{ font-size:19px !important; }
.fs_20{ font-size:18px !important; }
.te-bn-text, .fs_18{ font-size:16px !important; line-height:1.7 !important; }
.fs_17{ font-size:15px !important; }
.emc-fac-tile .cont h5, .emc-contact-info .info-card h5{ font-size:19px !important; }
.footer-emc .footer-title{ font-size:18px !important; }
.banner-style-37 .content-box p{ font-size:17px !important; line-height:1.7 !important; }
@media (max-width:767px){
	.banner-style-37 .content-box h2, .te-banner-title{ font-size:38px !important; }
	.te-bn-title, .fs_45, h2.elementor-heading-title{ font-size:27px !important; }
	.bn-title, .emc-approved .bn-title{ font-size:23px !important; }
}

/* ===== Hero readability : light overlay so dark text reads over the image ===== */
.banner-style-37{ position:relative; }
.banner-style-37 .bg-layer{ z-index:0; }
.banner-style-37:before{
	content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
	background:linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.90) 40%, rgba(255,255,255,.55) 62%, rgba(255,255,255,0) 80%);
}
.banner-style-37 .outer-container{ position:relative; z-index:2; }
@media (max-width:767px){
	.banner-style-37:before{ background:rgba(255,255,255,.90); }
}

/* ===== Banner accent + centering ===== */
.banner-style-37 .te-banner-title .te-accent{ color:#8b1a1a !important; }
.banner-style-37 .content-box{ margin-top:0; margin-bottom:0; }

/* ===== Intro band : full-width brand-colour section ===== */
.emc-intro-band{ background:#8b1a1a !important; padding:80px 0 !important; }
.emc-intro-band .elementor-heading-title{ color:#ffffff !important; }
.emc-intro-band .elementor-element-eea10d2 .elementor-heading-title{ color:rgba(255,255,255,.75) !important; }
.emc-intro-band .te-bn-text{ color:rgba(255,255,255,.92) !important; }
.emc-intro-band > .elementor-container{ max-width:1200px; padding-left:20px; padding-right:20px; }
@media (max-width:991px){ .emc-intro-band{ padding:60px 0 !important; } }

/* ===== Header logos : big standalone footer_logo at top, logo.png on sticky scroll ===== */
/* top header bar tall enough for a prominent logo; nav pushed to the right */
.header-style-37 > .header-upper .inner-container{ position:relative; min-height:104px; }
.header-style-37 > .header-upper .right-column{ margin-left:auto; }
/* logo lifted out of the nav flow, absolutely positioned & enlarged */
.header-style-37 > .header-upper .logo-box{ position:absolute; left:0; top:50%; transform:translateY(-50%); margin:0; z-index:40; }
.header-style-37 > .header-upper .logo-box .logo img{ max-height:96px; width:auto; }
@media (max-width:767px){
	.header-style-37 > .header-upper .inner-container{ min-height:80px; }
	.header-style-37 > .header-upper .logo-box .logo img{ max-height:64px; }
}

/* ===== Mobile nav toggler : always visible on every phone & browser (Safari etc.) ===== */
@media (max-width:1200px){
	.nav-outer .mobile-nav-toggler{
		display:flex !important;
		align-items:center;
		justify-content:center;
		width:46px; height:46px;
		margin:13px 0 13px 15px;
		background:#8b1a1a;            /* theme colour circle so the icon always contrasts */
		border:1px solid #8b1a1a;
		border-radius:50%;
		opacity:1 !important;
		visibility:visible !important;
		-webkit-appearance:none;
		appearance:none;
	}
	.nav-outer .mobile-nav-toggler img{
		width:20px; height:20px;
		filter:brightness(0) invert(1);   /* force the icon white over the maroon circle */
		-webkit-filter:brightness(0) invert(1);
	}
}

/* ===== Mobile slide-in menu : white background, brand-colour text ===== */
.mobile-menu .menu-box{ background:#ffffff; }
.mobile-menu .nav-logo{ margin-bottom:40px; }
.mobile-menu .nav-logo img{ max-height:80px; width:auto; }
.mobile-menu .navigation li{ border-top:1px solid rgba(0,0,0,.08); }
.mobile-menu .navigation li>ul>li:first-child{ border-top:1px solid rgba(0,0,0,.08); }
.mobile-menu .navigation li>a{ color:#1a1a1a; }
.mobile-menu .navigation li>a:hover,
.mobile-menu .navigation li.current>a,
.mobile-menu .navigation li.current-menu-item>a{ color:#8b1a1a; }
.mobile-menu .navigation li.dropdown .dropdown-btn{ color:#8b1a1a; }
/* close (X) button visible on the white panel */
.mobile-menu .close-btn{ color:#8b1a1a; }
/* social row tuned for the light panel */
.mobile-menu .social-links li a{ color:#8b1a1a; border-color:rgba(0,0,0,.12); }
.mobile-menu .social-links li a:hover{ color:#ffffff; background:#8b1a1a; border-color:#8b1a1a; }
