/* ==========================================================================
   Emergency Logs - brand layer over Bootstrap 5
   assets/css/site.css
   ========================================================================== */

:root {
    --el-red: #dd1313;
    --el-red-dark: #b40f0f;
    --el-red-soft: #fdecec;
    --el-ink: #14171c;
    --el-ink-2: #2b313a;
    --el-slate: #5b6572;
    --el-line: #e3e7ec;
    --el-bg: #ffffff;
    --el-bg-alt: #f6f8fa;
    --el-bg-dark: #14171c;
    --el-radius: 14px;
    --el-radius-sm: 9px;
    --el-shadow: 0 1px 2px rgba(20,23,28,.05), 0 10px 30px rgba(20,23,28,.07);
    --el-shadow-lg: 0 2px 4px rgba(20,23,28,.06), 0 22px 55px rgba(20,23,28,.12);
    --el-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --el-font-head: "Barlow Condensed", "Inter", "Segoe UI", Arial, sans-serif;
}

/* ---------- base ---------- */
html { scroll-behavior: smooth; }

body {
    font-family: var(--el-font);
    color: var(--el-ink-2);
    background: var(--el-bg);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .el-display {
    font-family: var(--el-font-head);
    color: var(--el-ink);
    font-weight: 700;
    letter-spacing: -.005em;
    line-height: 1.1;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); text-transform: uppercase; }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.12rem; }

p { color: var(--el-slate); }

a { color: var(--el-red); text-decoration: none; }
a:hover { color: var(--el-red-dark); text-decoration: underline; }

.el-eyebrow {
    font-family: var(--el-font);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .78rem;
    font-weight: 700;
    color: var(--el-red);
    margin-bottom: .65rem;
    display: block;
}

.el-lead { font-size: 1.12rem; color: var(--el-slate); max-width: 62ch; }

/* ---------- buttons ---------- */
.btn {
    font-weight: 600;
    border-radius: var(--el-radius-sm);
    padding: .72rem 1.5rem;
    transition: all .16s ease;
    border-width: 2px;
}

.btn-el {
    background: var(--el-red);
    border-color: var(--el-red);
    color: #fff;
}
.btn-el:hover, .btn-el:focus {
    background: var(--el-red-dark);
    border-color: var(--el-red-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(221,19,19,.28);
}

.btn-el-outline {
    background: transparent;
    border-color: var(--el-ink);
    color: var(--el-ink);
}
.btn-el-outline:hover {
    background: var(--el-ink);
    border-color: var(--el-ink);
    color: #fff;
}

.btn-el-ghost {
    background: transparent;
    border-color: rgba(255,255,255,.55);
    color: #fff;
}
.btn-el-ghost:hover { background: #fff; border-color: #fff; color: var(--el-ink); }

.btn-lg { padding: .95rem 2rem; font-size: 1.02rem; }

/* ---------- header ---------- */
.el-topbar {
    background: var(--el-ink);
    color: rgba(255,255,255,.8);
    font-size: .84rem;
    padding: .45rem 0;
}
.el-topbar a { color: rgba(255,255,255,.85); }
.el-topbar a:hover { color: #fff; text-decoration: none; }
.el-topbar .el-social a { margin-left: .85rem; font-size: .95rem; }

.el-nav {
    background: #fff;
    border-bottom: 1px solid var(--el-line);
    padding: .55rem 0;
}
.el-nav.is-stuck { box-shadow: 0 4px 20px rgba(20,23,28,.09); }

.el-logo img { height: 52px; width: auto; }

.el-nav .navbar-nav .nav-link {
    font-weight: 600;
    color: var(--el-ink);
    padding: .6rem 1rem;
    font-size: .97rem;
}
.el-nav .navbar-nav .nav-link:hover,
.el-nav .navbar-nav .nav-link.active { color: var(--el-red); }

/* mega menu */
.el-mega {
    padding: 1.5rem;
    border: 1px solid var(--el-line);
    border-radius: var(--el-radius);
    box-shadow: var(--el-shadow-lg);
}
.el-mega .dropdown-item {
    border-radius: var(--el-radius-sm);
    padding: .6rem .75rem;
    white-space: normal;
}
.el-mega .dropdown-item:hover { background: var(--el-red-soft); color: var(--el-red); }
.el-mega .el-mega-title { font-weight: 700; color: var(--el-ink); display: block; font-size: .95rem; }
.el-mega .el-mega-sub { font-size: .82rem; color: var(--el-slate); display: block; line-height: 1.35; }
.el-mega-head {
    font-size: .74rem; text-transform: uppercase; letter-spacing: .12em;
    color: var(--el-slate); font-weight: 700; margin: 0 0 .5rem .75rem;
}
.el-mega-foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap;
    margin-top: 1.15rem; padding-top: 1.15rem;
    border-top: 1px solid var(--el-line);
}
.el-mega-foot-note { font-size: .85rem; color: var(--el-slate); }
/* The mega panel is anchored to the navbar CONTAINER, not to the Modules nav
   item. Making the .dropdown static hands the positioning context to
   .el-nav .container, so right:0 lines the panel up with the container's right
   edge, which always sits inside the viewport. Anchoring it to the nav item
   instead is what pushed it off screen and produced a horizontal scrollbar.

   These selectors carry three classes so they outrank Bootstrap's
   .dropdown-menu[data-bs-popper] and .dropdown-menu-end[data-bs-popper]
   (two each), which means hover and click land identically. */
@media (min-width: 992px) {

    .el-nav .container { position: relative; }

    .el-nav .navbar-nav > .nav-item.dropdown { position: static; }

    .el-nav .dropdown-menu.el-mega {
        position: absolute;
        top: 100%;
        right: 0;
        left: auto;
        margin-top: 0;
        width: 720px;
        max-width: 100%;
    }

    .el-nav .dropdown:hover > .dropdown-menu.el-mega { display: block; }
}

/* ---------- hero ---------- */
.el-hero {
    position: relative;
    background: var(--el-bg-dark);
    color: #fff;
    overflow: hidden;
}
.el-hero::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(20,23,28,.96) 0%, rgba(20,23,28,.82) 45%, rgba(20,23,28,.35) 100%);
}
.el-hero .el-hero-media {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
}
.el-hero .container { position: relative; z-index: 2; }
.el-hero h1 { color: #fff; }
.el-hero p { color: rgba(255,255,255,.82); }
.el-hero .el-eyebrow { color: #ff6b6b; }
.el-hero-pad { padding: 6.5rem 0 6rem; }

.el-hero-rule {
    width: 74px; height: 5px; background: var(--el-red);
    border-radius: 3px; margin: 0 0 1.4rem;
}

/* Split hero. The product image sits beside the headline rather than behind
   it, which is what lets an 800x800 source work: no upscale, no crop. The
   full-bleed version had to blow the same file up 3.2x and cut the phone off. */
.el-hero-split { background: var(--el-bg-dark); }
.el-hero-split::after {
    background:
        radial-gradient(900px 520px at 88% 8%, rgba(221,19,19,.32), transparent 70%),
        linear-gradient(180deg, rgba(255,255,255,.04), transparent 45%);
}
.el-hero-shot {
    display: block;
    width: 100%;
    max-width: 540px;
    height: auto;
    margin-left: auto;
    border-radius: var(--el-radius);
    box-shadow: var(--el-shadow-lg);
}
@media (max-width: 991.98px) {
    .el-hero-shot { margin: .5rem auto 0; max-width: 420px; }
}

/* page hero (interior) */
.el-pagehero {
    background: var(--el-ink);
    color: #fff;
    padding: 4.5rem 0 4rem;
    position: relative;
}
.el-pagehero h1 { color: #fff; }
.el-pagehero p { color: rgba(255,255,255,.8); }

/* ---------- sections ---------- */
.el-section { padding: 5rem 0; }
.el-section-sm { padding: 3.25rem 0; }
.el-section-alt { background: var(--el-bg-alt); }
.el-section-dark { background: var(--el-bg-dark); color: #fff; }
.el-section-dark h2, .el-section-dark h3 { color: #fff; }
.el-section-dark p { color: rgba(255,255,255,.78); }

.el-section-head { max-width: 760px; margin-bottom: 2.75rem; }
.el-section-head.text-center { margin-left: auto; margin-right: auto; }

/* ---------- cards ---------- */
.el-card {
    background: #fff;
    border: 1px solid var(--el-line);
    border-radius: var(--el-radius);
    padding: 1.65rem;
    height: 100%;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.el-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--el-shadow);
    border-color: #d3d9e0;
}
.el-card h3 { font-size: 1.24rem; margin-bottom: .5rem; }
.el-card p { margin-bottom: 0; font-size: .95rem; }

.el-card-link { display: block; color: inherit; text-decoration: none; }
.el-card-link:hover { color: inherit; text-decoration: none; }

.el-icon {
    width: 50px; height: 50px;
    border-radius: 12px;
    background: var(--el-red-soft);
    color: var(--el-red);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.el-module-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.el-module-card .el-module-img {
    height: 178px; background-size: cover; background-position: center; background-color: #dfe4ea;
}
.el-module-card .el-module-body { padding: 1.5rem; flex: 1 1 auto; display: flex; flex-direction: column; }
.el-module-card .el-module-body p { flex: 1 1 auto; }
.el-module-more { font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; margin-top: 1rem; display: inline-block; }

/* feature list */
.el-checklist { list-style: none; padding: 0; margin: 0; }
.el-checklist li {
    position: relative; padding-left: 1.9rem; margin-bottom: .7rem; color: var(--el-slate);
}
.el-checklist li::before {
    content: ""; position: absolute; left: 0; top: .42em;
    width: 1.15rem; height: 1.15rem; border-radius: 4px;
    background: var(--el-red);
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M6.2 11.8 2.6 8.2l1.1-1.1 2.5 2.5 6-6 1.1 1.1z'/></svg>") center/contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M6.2 11.8 2.6 8.2l1.1-1.1 2.5 2.5 6-6 1.1 1.1z'/></svg>") center/contain no-repeat;
}
.el-section-dark .el-checklist li { color: rgba(255,255,255,.8); }

/* ---------- stats ---------- */
.el-stat { text-align: center; padding: 1.25rem .5rem; }
.el-stat .el-stat-num {
    font-family: var(--el-font-head);
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    font-weight: 700; color: var(--el-red); line-height: 1;
}
.el-stat .el-stat-label {
    text-transform: uppercase; letter-spacing: .1em; font-size: .78rem;
    font-weight: 700; color: var(--el-slate); margin-top: .55rem;
}
.el-section-dark .el-stat .el-stat-label { color: rgba(255,255,255,.65); }

/* ---------- process steps ---------- */
.el-step { text-align: center; padding: 1rem; }
.el-step .el-step-num {
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--el-red); color: #fff;
    font-family: var(--el-font-head); font-weight: 700; font-size: 1.25rem;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: .9rem;
}
.el-step h4 { font-size: 1.02rem; margin-bottom: .35rem; }
.el-step p { font-size: .9rem; margin-bottom: 0; }

/* ---------- testimonials ---------- */
.el-quote {
    background: #fff; border: 1px solid var(--el-line);
    border-radius: var(--el-radius); padding: 1.75rem; height: 100%;
    display: flex; flex-direction: column;
}
.el-quote .el-quote-mark { color: var(--el-red); font-size: 2.2rem; line-height: 1; font-family: Georgia, serif; }
.el-quote blockquote { font-size: .97rem; color: var(--el-ink-2); flex: 1 1 auto; margin: .5rem 0 1.1rem; }
.el-quote .el-quote-name { font-weight: 700; color: var(--el-ink); font-size: .95rem; }
.el-quote .el-quote-role { font-size: .84rem; color: var(--el-slate); }

/* ---------- awards ---------- */
.el-awards img { max-height: 78px; width: auto; opacity: .85; filter: grayscale(15%); transition: opacity .2s ease; }
.el-awards img:hover { opacity: 1; }

/* ---------- CTA band ---------- */
.el-cta {
    background: var(--el-red);
    color: #fff;
    border-radius: var(--el-radius);
    padding: 3rem 2.5rem;
}
.el-cta h2, .el-cta h3 { color: #fff; }
.el-cta p { color: rgba(255,255,255,.9); }

/* ---------- forms ---------- */
.el-form-card {
    background: #fff; border: 1px solid var(--el-line);
    border-radius: var(--el-radius); padding: 2rem; box-shadow: var(--el-shadow);
}
.el-form-card .form-label { font-weight: 600; color: var(--el-ink); font-size: .9rem; margin-bottom: .35rem; }
.el-form-card .form-control,
.el-form-card .form-select {
    border-radius: var(--el-radius-sm);
    border: 1px solid var(--el-line);
    padding: .68rem .85rem;
    font-size: .96rem;
}
.el-form-card .form-control:focus,
.el-form-card .form-select:focus {
    border-color: var(--el-red);
    box-shadow: 0 0 0 .2rem rgba(221,19,19,.14);
}
.el-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.el-required { color: var(--el-red); }
.el-form-note { font-size: .84rem; color: var(--el-slate); }
.el-msg { border-radius: var(--el-radius-sm); padding: .9rem 1.1rem; font-size: .94rem; margin-bottom: 1.25rem; }
.el-msg-ok { background: #eaf7ee; border: 1px solid #b9e3c6; color: #1c6b34; }
.el-msg-err { background: var(--el-red-soft); border: 1px solid #f3bcbc; color: #a01010; }

/* ---------- accordion (FAQ) ---------- */
.accordion-item { border: 1px solid var(--el-line); border-radius: var(--el-radius) !important; margin-bottom: .85rem; overflow: hidden; }
.accordion-button {
    font-family: var(--el-font-head); font-size: 1.2rem; font-weight: 700;
    color: var(--el-ink); padding: 1.15rem 1.35rem; background: #fff;
}
.accordion-button:not(.collapsed) { background: var(--el-red-soft); color: var(--el-red); box-shadow: none; }
.accordion-button:focus { box-shadow: none; border-color: var(--el-line); }
.accordion-body { padding: 0 1.35rem 1.35rem; color: var(--el-slate); }

/* ---------- footer ---------- */
.el-footer { background: var(--el-bg-dark); color: rgba(255,255,255,.72); padding: 4rem 0 0; }
.el-footer h5 {
    color: #fff; font-family: var(--el-font); font-size: .8rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .13em; margin-bottom: 1.1rem;
}
.el-footer a { color: rgba(255,255,255,.72); font-size: .94rem; }
.el-footer a:hover { color: #fff; text-decoration: none; }
.el-footer ul { list-style: none; padding: 0; margin: 0; }
.el-footer ul li { margin-bottom: .5rem; }
.el-footer .el-footer-logo { height: 58px; margin-bottom: 1.1rem; }
.el-footer .el-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    margin-top: 3rem; padding: 1.4rem 0; font-size: .87rem;
}
.el-footer .el-social a {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,.09);
    display: inline-flex; align-items: center; justify-content: center;
    margin-right: .45rem;
}
.el-footer .el-social a:hover { background: var(--el-red); color: #fff; }

/* ---------- utilities ---------- */
.el-shadow { box-shadow: var(--el-shadow); }
.el-rounded { border-radius: var(--el-radius); }
.el-img-frame { border-radius: var(--el-radius); box-shadow: var(--el-shadow-lg); width: 100%; height: auto; }
.el-divider { height: 4px; width: 60px; background: var(--el-red); border-radius: 2px; }
.text-el { color: var(--el-red) !important; }
.bg-el-alt { background: var(--el-bg-alt) !important; }

/* Bootstrap's .row pulls negative side margins of half the gutter. With g-5
   that is -24px a side, but .container only has 12px of padding, so a g-5 row
   sits 12px outside the container and puts a horizontal scrollbar on phones.
   Columns stack below lg, so the horizontal gutter buys nothing there. Drop it
   back to the container's 12px and keep the vertical gutter for the stacking. */
@media (max-width: 991.98px) {
    .row.g-5, .row.gx-5 { --bs-gutter-x: 1.5rem; }
}

@media (max-width: 991.98px) {
    /* Collapsed navbar: the panel flows inline, no absolute positioning. */
    .el-nav .dropdown-menu.el-mega {
        position: static;
        width: auto;
        min-width: 100%;
        max-width: 100%;
        box-shadow: none;
        border: 0;
        padding: .5rem 0;
    }
    .el-mega .border-start { border-left: 0 !important; }
    /* Descriptions are useful on a wide hover panel, but on a phone they turn
       the nav into six paragraphs before you reach FAQs. Names only. */
    .el-mega .el-mega-sub { display: none; }
    .el-mega-foot { margin-top: .5rem; padding-top: .85rem; }
    .el-hero-pad { padding: 4rem 0 3.5rem; }
    .el-section { padding: 3.5rem 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .el-card:hover, .btn-el:hover { transform: none; }
}

/* ---------- module checkbox list on the lead forms ---------- */
.el-modulelist {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: .35rem .85rem;
    margin-top: .35rem;
}
.el-modulelist label {
    font-size: .92rem;
    color: var(--el-ink-2);
    cursor: pointer;
    margin-left: .4rem;
}
.el-modulelist input[type="checkbox"] {
    accent-color: var(--el-red);
    width: 1rem; height: 1rem;
    vertical-align: -2px;
}

/* ---------- pricing table ---------- */
.el-price-card {
    background: #fff; border: 1px solid var(--el-line);
    border-radius: var(--el-radius); padding: 2rem; height: 100%;
}
.el-price-card.is-highlight { border-color: var(--el-red); box-shadow: var(--el-shadow); }
.el-price-card .el-price-tier {
    text-transform: uppercase; letter-spacing: .12em; font-size: .76rem;
    font-weight: 700; color: var(--el-red); margin-bottom: .5rem;
}
.el-price-card .el-price-amount {
    font-family: var(--el-font-head); font-size: 2.6rem; color: var(--el-ink); line-height: 1;
}
.el-price-card .el-price-per { font-size: .88rem; color: var(--el-slate); }

/* ---------- breadcrumbs ---------- */
.el-crumbs { font-size: .85rem; margin-bottom: 1.6rem; }
.el-crumbs a { color: rgba(255,255,255,.7); }
.el-crumbs a:hover { color: #fff; text-decoration: none; }
.el-crumbs .sep { color: rgba(255,255,255,.35); margin: 0 .45rem; }
.el-crumbs .current { color: rgba(255,255,255,.55); }

/* ---------- legal / long-form copy ---------- */
.el-prose h2 { font-size: 1.6rem; margin-top: 2.5rem; margin-bottom: .85rem; }
.el-prose h3 { font-size: 1.2rem; margin-top: 1.75rem; margin-bottom: .6rem; }
.el-prose p, .el-prose li { color: var(--el-slate); }
.el-prose ul { margin-bottom: 1.25rem; }
.el-prose li { margin-bottom: .4rem; }
