:root {
    --main-color: #d51f2a;
    --main-text-color: #ffffff;
    --second-color: #17191d;
    --second-text-color: #ffffff;
    --third-color: #f5f5f2;
    --third-text-color: #191b1f;
    --muted-text-color: #555e6b;
}

@font-face {
    font-family: "Inter Display";
    src: url("/assets/fonts/Inter-Display-Variable.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

body { margin: 0; font-family: "Inter Display", Arial, sans-serif; color: var(--third-text-color); background: var(--third-color); }
h1, h2, h3, h4, h5, h6 { margin-top: 0; font-family: "Inter Display", Arial, sans-serif; letter-spacing: -.045em; line-height: .98; }
.heading { margin-top: 0; font-family: "Inter Display", Arial, sans-serif; font-size: 45px; font-weight: 500; letter-spacing: -.045em; line-height: .98; }
.spec-font { font-family: "Inter Display", Arial, sans-serif; font-weight: 600; }
.container { padding-right: 25px; padding-left: 25px; }

/***** GLOBAL *****/

.t-btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 7px 7px 7px 22px; border: 1px solid transparent; border-radius: 999px; font-size: 14px; font-weight: 400; letter-spacing: 0; text-decoration: none; cursor: pointer; transition: background-color .3s ease, box-shadow .3s ease, color .3s ease; }
.t-btn.theme { background: var(--main-color); color: var(--main-text-color); }
.t-btn.theme2 { border-color: var(--third-text-color); background: var(--main-text-color); color: var(--third-text-color); }
.t-btn.theme3 { background: var(--third-color); color: var(--third-text-color); }
.t-btn.dark { background: var(--second-color); color: var(--second-text-color); }
.t-btn svg { width: 34px; height: 34px; padding: 9px; border-radius: 50%; background: var(--main-text-color); color: var(--main-color); transition: background-color .3s ease, color .3s ease; }
.t-btn.theme2 svg { background: var(--main-color); color: var(--main-text-color); }
.t-btn.theme3 svg { color: var(--third-text-color); }
.t-btn.dark svg { background: var(--main-text-color); color: var(--second-color); }
.t-btn.theme:hover { background: var(--second-color); box-shadow: 0 10px 24px rgba(23,25,29,.25); }
.t-btn.theme:hover svg { background: var(--main-color); color: var(--main-text-color); }
.t-btn.theme2:hover { background: var(--third-color); box-shadow: 0 10px 24px rgba(23,25,29,.25); }
.t-btn.theme2:hover svg { background: var(--second-color); color: var(--main-text-color); }
.t-btn.theme3:hover { background: var(--second-color); color: var(--second-text-color); box-shadow: 0 10px 24px rgba(23,25,29,.18); }
.t-btn.theme3:hover svg { background: var(--main-color); color: var(--main-text-color); }
.t-btn.dark:hover { background: var(--main-color); box-shadow: 0 10px 24px rgba(23,25,29,.25); }
.t-btn.dark:hover svg { background: var(--second-color); color: var(--main-text-color); }

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .65s ease, transform .65s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/***** HEADER *****/

/* header */

.header { position: fixed; z-index: 10; top: 0; right: 0; left: 0; padding: 14px 0; background: transparent; transition: background-color .3s ease, box-shadow .3s ease; }
.header.is-scrolled { background: var(--main-text-color); box-shadow: 0 8px 26px rgba(23,25,29,.08); }

/* logo */

.header .logo, .footer .logo { display: inline-flex; align-items: center; text-decoration: none; }
.header .logo img, .footer .logo img { display: block; width: 132px; height: auto; }
.header .logo img { filter: none; }
.footer .logo img { filter: brightness(0) invert(1); }

/* navigation */

.header .navigation, .header .mobile-navigation { display: flex; gap: 38px; }
.header .navigation { justify-content: center; }
.header .navigation .link { color: var(--third-text-color); font-size: 14px; font-weight: 400; letter-spacing: 0; text-decoration: none; text-transform: uppercase; }
.header .mobile-navigation .link { color: var(--main-text-color); font-size: 14px; font-weight: 400; letter-spacing: 0; text-decoration: none; text-transform: uppercase; }

/* actions */

.header .actions .t-btn { gap: 10px; padding: 4px 4px 4px 14px; font-size: 12px; }
.header .actions .t-btn svg { width: 28px; height: 28px; padding: 7px; }
.header .actions { display: flex; justify-content: flex-end; }
.header .actions .menu-button { display: inline-flex; padding: 6px; border: 0; background: transparent; color: var(--third-text-color); }

/* offcanvas */

.header .offcanvas { background: var(--second-color); color: var(--main-text-color); }
.header .offcanvas .mobile-navigation { flex-direction: column; }

/***** HOME *****/

/* hero */

.home-page .hero-section { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; color: var(--third-text-color); background: var(--main-text-color); }
.home-page .hero-section > .image { position: absolute; inset: 0; }
.home-page .hero-section > .image { z-index: 1; right: 0; left: auto; width: 54%; background: url("/assets/images/midis-hero-building.png") right bottom / contain no-repeat; }
.home-page .hero-section .grid-lines { position: absolute; z-index: 0; inset: 0; pointer-events: none; }
.home-page .hero-section .grid-lines .container { position: static; z-index: auto; display: flex; height: 100%; align-items: stretch; justify-content: space-between; }
.home-page .hero-section .grid-lines span { display: block; width: 1px; background: rgba(25,27,31,.1); }

@media (min-width: 576px) {
    .home-page .hero-section .grid-lines .container { max-width: 590px; }
}

@media (min-width: 768px) {
    .home-page .hero-section .grid-lines .container { max-width: 770px; }
}

@media (min-width: 992px) {
    .home-page .hero-section .grid-lines .container { max-width: 1010px; }
}

@media (min-width: 1200px) {
    .home-page .hero-section .grid-lines .container { max-width: 1190px; }
}

@media (min-width: 1400px) {
    .home-page .hero-section .grid-lines .container { max-width: 1370px; }
}
.home-page .hero-section .container { position: relative; z-index: 3; height: 100vh; display: flex; align-items: center; }
.home-page .hero-section .content { max-width: 800px; padding-top: 70px; }
.home-page .eyebrow { margin-bottom: 15px; color: var(--main-color); font-size: 10px; font-weight: 700; letter-spacing: .13em; }
.home-page .hero-section .eyebrow { color: var(--third-text-color); }
.home-page .hero-section .heading { margin-bottom: 23px; font-size: 65px; font-weight: 700; }
.home-page .hero-section .text { max-width: 650px; margin-bottom: 30px; color: var(--muted-text-color); font-size: 19px; font-weight: 300; line-height: 1.55; }
.home-page .hero-section .actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* intro */

.home-page .intro-section { padding: 140px 0; background: var(--third-color); }
.home-page .intro-section .content { max-width: 1120px; margin: 0 auto; text-align: center; }
.home-page .intro-section .icon { display: grid; width: 64px; height: 64px; margin: 0 auto 38px; place-items: center; color: var(--second-color); }
.home-page .intro-section .icon svg { width: 54px; height: 54px; stroke-width: 1.8; }
.home-page .intro-section .heading { max-width: 820px; margin: 0 auto 22px; }
.home-page .intro-section .text { max-width: 1040px; margin: 0 auto 32px; color: #62666f; font-size: 20px; font-weight: 400; line-height: 1.55; }
.home-page .intro-section .link { padding-bottom: 7px; border-bottom: 1px solid var(--third-text-color); }
.home-page .link { display: inline-flex; align-items: center; gap: 7px; color: var(--third-text-color); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-decoration: none; }
.home-page .link svg, .home-page .more svg { width: 14px; height: 14px; }

/* work */

.home-page .work-section { padding: 100px 0; background: var(--third-color); }
.home-page .work-section .top { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 38px; }
.home-page .work-section .card { position: relative; display: block; overflow: hidden; color: var(--main-text-color); text-decoration: none; }
.home-page .work-section .card.large { height: 390px; background: var(--second-color); }
.home-page .work-section .card.small { min-height: 190px; padding: 28px; background: var(--second-color); transition: background .3s ease; }
.home-page .work-section .card.small:hover { background: var(--main-color); }
.home-page .work-section .card .image { position: absolute; inset: 0; background: center / cover no-repeat; transition: transform .5s ease; }
.home-page .work-section .card:hover .image { transform: scale(1.05); }
.home-page .work-section .card .first { background-image: url("/assets/images/midis-industrial-site.png"); }
.home-page .work-section .card .second { background-image: url("/assets/images/midis-hero-safety.png"); }
.home-page .work-section .card.large::after { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(23,25,29,.94), rgba(23,25,29,.05) 70%); content: ""; }
.home-page .work-section .card .body { position: absolute; z-index: 1; right: 20px; bottom: 20px; left: 20px; padding: 16px 18px; background: var(--third-color); color: var(--third-text-color); }
.home-page .work-section .number { display: block; color: var(--main-color); font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.home-page .work-section .title { display: block; margin: 9px 0 10px; font-family: "Inter Display", Arial, sans-serif; font-size: 25px; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.home-page .work-section .more { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 700; letter-spacing: .07em; }
.home-page .work-section .card.small .number { color: var(--main-color); }
.home-page .work-section .card.small .title { color: var(--main-text-color); }
.home-page .work-section .card.small .more { color: rgba(255,255,255,.67); }

/* numbers */

.home-page .numbers-section { position: relative; overflow: hidden; padding: 125px 0 0; color: var(--main-text-color); background: var(--second-color); }
.home-page .numbers-section .container { position: relative; }
.home-page .numbers-section .image { position: absolute; right: 0; bottom: 0; width: 53%; height: 100%; background: linear-gradient(90deg, var(--second-color), transparent 45%), url("/assets/images/midis-industrial-site.png") center / cover; opacity: .38; }
.home-page .numbers-section .content { position: relative; z-index: 1; max-width: 650px; padding-bottom: 100px; }
.home-page .numbers-section .text { max-width: 480px; color: rgba(255,255,255,.68); line-height: 1.65; }
.home-page .numbers-section .numbers { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.33); }
.home-page .numbers-section .item { display: flex; align-items: center; gap: 16px; padding: 25px 20px 30px 0; }
.home-page .numbers-section .item + .item { padding-left: 25px; border-left: 1px solid rgba(255,255,255,.25); }
.home-page .numbers-section strong { font-family: "Inter Display", Arial, sans-serif; font-size: clamp(39px, 4.8vw, 65px); font-weight: 800; letter-spacing: -.06em; line-height: 1; }
.home-page .numbers-section span { color: rgba(255,255,255,.65); font-size: 10px; line-height: 1.45; }

/* services */

.home-page .services-section { padding: 110px 0; background: var(--third-color); }
.home-page .services-section .heading { max-width: 620px; margin-bottom: 42px; }
.home-page .services-section .card { height: 100%; padding: 30px; background: var(--second-color); color: var(--second-text-color); }
.home-page .services-section .card > svg { width: 26px; height: 26px; color: var(--main-color); }
.home-page .services-section .title { margin: 45px 0 12px; color: var(--main-text-color); font-size: 28px; }
.home-page .services-section .text { min-height: 66px; color: rgba(255,255,255,.68); font-size: 14px; line-height: 1.55; }
.home-page .services-section .link { color: var(--main-text-color); }

/* cta */

.home-page .cta-section { padding: 90px 0; background: var(--main-color); }
.home-page .cta-section .container { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; }
.home-page .cta-section .content { position: relative; z-index: 1; max-width: 680px; padding: 45px 20px 45px 0; }
.home-page .cta-section .eyebrow, .home-page .cta-section .heading { color: var(--main-text-color); }
.home-page .cta-section .heading { margin-bottom: 28px; }
.home-page .cta-section .image { min-height: 310px; background: url("/assets/images/midis-industrial-site.png") center / cover; }

@media (max-width: 991px) { .header .navigation { display: none; } .home-page .numbers-section .image { width: 100%; opacity: .18; } }
@media (max-width: 767px) { .home-page .hero-section { min-height: 680px; } .home-page .hero-section > .image { width: 75%; } .home-page .hero-section .heading { font-size: 48px; } .home-page .hero-section .text { font-size: 18px; } .home-page .intro-section, .home-page .work-section, .home-page .services-section { padding: 70px 0; } .home-page .work-section .top { display: block; } .home-page .work-section .top .link { margin-top: 15px; } .home-page .work-section .card.large { height: 330px; } .home-page .numbers-section { padding-top: 75px; } .home-page .numbers-section .content { padding-bottom: 65px; } .home-page .numbers-section .numbers { grid-template-columns: 1fr; } .home-page .numbers-section .item, .home-page .numbers-section .item + .item { padding: 18px 0; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.25); } .home-page .cta-section .container { grid-template-columns: 1fr; } .home-page .cta-section .image { min-height: 210px; } }

/***** ABOUT *****/
.about-page .intro-section, .about-page .beliefs-section, .about-page .work-section, .about-page .numbers-section, .about-page .team-section, .about-page .cta-section { padding: 30px 0; }
/***** SERVICES *****/
.services-page .intro-section, .services-page .care-section, .services-page .projects-section, .services-page .cta-section { padding: 30px 0; }
.services-page .card { display: block; margin-bottom: 12px; padding: 18px; border: 1px solid var(--third-color); color: var(--third-text-color); text-decoration: none; }
/***** FIRE PROTECTION *****/
.fire-protection-page .intro-section, .fire-protection-page .service-section, .fire-protection-page .process-section, .fire-protection-page .cta-section { padding: 30px 0; }
/***** BOZP *****/
.bozp-page .intro-section, .bozp-page .service-section, .bozp-page .process-section, .bozp-page .cta-section { padding: 30px 0; }
/***** PZS *****/
.pzs-page .intro-section, .pzs-page .service-section, .pzs-page .process-section, .pzs-page .cta-section { padding: 30px 0; }
/***** TRAININGS *****/
.trainings-page .intro-section, .trainings-page .training-section, .trainings-page .cta-section { padding: 30px 0; }
/***** EXTINGUISHERS *****/
.extinguishers-page .intro-section, .extinguishers-page .equipment-section, .extinguishers-page .process-section, .extinguishers-page .cta-section { padding: 30px 0; }
/***** FIRE CLOSURES *****/
.fire-closures-page .intro-section, .fire-closures-page .service-section, .fire-closures-page .cta-section { padding: 30px 0; }
/***** ELECTRICAL *****/
.electrical-page .intro-section, .electrical-page .service-section, .electrical-page .cta-section { padding: 30px 0; }
/***** PBS *****/
.pbs-page .intro-section, .pbs-page .project-section, .pbs-page .cta-section { padding: 30px 0; }
/***** EPS *****/
.eps-page .intro-section, .eps-page .project-section, .eps-page .cta-section { padding: 30px 0; }
/***** REFERENCES *****/
.references-page .intro-section, .references-page .industries-section, .references-page .clients-section, .references-page .cta-section { padding: 30px 0; }
/***** AUTHORIZATIONS *****/
.authorizations-page .intro-section, .authorizations-page .credentials-section, .authorizations-page .cta-section { padding: 30px 0; }
/***** PRICING *****/
.pricing-page .intro-section, .pricing-page .pricing-section, .pricing-page .cta-section { padding: 30px 0; }
/***** BLOG *****/
.blog-page .intro-section, .blog-page .articles-section { padding: 30px 0; }
/***** FAQ *****/
.faq-page .intro-section, .faq-page .questions-section { padding: 30px 0; }
/***** CONTACT *****/
.contact-page .intro-section, .contact-page .contact-section, .contact-page .form-section, .contact-page .map-section { padding: 30px 0; }
.contact-page .form-section form { display: grid; gap: 10px; max-width: 620px; }
.contact-page .form-section input:not([type="checkbox"]), .contact-page .form-section textarea { width: 100%; padding: 10px; border: 1px solid var(--third-color); }
/***** PRIVACY *****/
.privacy-page .intro-section, .privacy-page .privacy-section { padding: 30px 0; }
/***** FOOTER *****/
.footer .main { padding: 50px 0; background: var(--second-color); color: var(--main-text-color); }
.footer .links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer .links .link { color: var(--main-text-color); text-decoration: none; }
.footer .bottom { padding: 15px 0; background: #111317; color: var(--main-text-color); }
.footer .bottom .text { margin: 0; }
