/*
 * XE - Extrusion ERP  |  Project components
 * Built on top of css/style.css (reference theme). Uses the same palette variables.
 */

/*** Section headings ***/
.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--bs-primary);
}

.section-title {
    font-size: clamp(2rem, 3.6vw, 3.1rem);
    font-weight: 700;
    line-height: 1.2;
}

.section-lead { font-size: 1.05rem; }

/*** Footer logo (logo artwork is teal, so it sits on a white plate on the navy footer) ***/
.logo-plate {
    display: inline-block;
    background: var(--bs-white);
    border-radius: 10px;
    padding: 12px 18px;
}

.logo-plate img { height: 30px; width: auto; display: block; }

.footer .footer-item .brand-line {
    font-family: "Poppins", sans-serif;
    font-style: italic;
    color: var(--bs-primary);
}

.footer .footer-item a.contact-link { display: block; line-height: 1.6; margin-bottom: 10px; }
.footer .footer-item a.contact-link i { width: 22px; color: var(--bs-primary); }

/* Buttons inside the footer must keep their own text colour */
.footer .footer-item a.btn { color: var(--bs-white); line-height: 1.5; }
.footer .footer-item a.btn:hover { letter-spacing: 0; color: var(--bs-white); }
.footer .footer-item a.btn.btn-outline-light:hover { color: var(--bs-dark); background: var(--bs-white); }

/*** Coverage chips (product intro) ***/
.coverage-chip {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bs-light);
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 14px;
}

.coverage-chip .chip-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--bs-primary);
    color: var(--bs-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.coverage-chip h5 { margin: 0; font-family: "Poppins", sans-serif; font-weight: 700; color: var(--bs-dark); }

/*** Value cards eyebrow ***/
.value-label {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 1.05rem;
    color: var(--bs-dark);
}

/*** Module filter (modules page) ***/

.module-item { transition: opacity .35s, transform .35s; }

/*** Device integration ***/
.device-tile {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bs-light);
    border-radius: 10px;
    padding: 16px 18px;
    height: 100%;
    transition: .5s;
}

.device-tile:hover { background: var(--bs-white); box-shadow: 0 0 35px rgba(0, 0, 0, .1); }

.device-tile .device-icon {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--bs-primary);
    color: var(--bs-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.device-tile h5 { margin: 0; font-family: "Poppins", sans-serif; font-size: 1rem; font-weight: 700; color: var(--bs-dark); }

/*** Final CTA ***/
.cta-band {
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(16, 45, 70, .9), rgba(0, 31, 67, .92)), url(../img/cta-bg.jpg);
    background-size: cover;
    background-position: center;
}

.cta-band .section-title { color: var(--bs-white); }
.cta-band p { color: rgba(255, 255, 255, .85); }

/*** Brand strip ***/
.brand-strip {
    background: var(--bs-secondary);
    color: var(--bs-white);
    text-align: center;
    padding: 22px 0;
    font-family: "Poppins", sans-serif;
    font-style: italic;
    font-size: clamp(1.1rem, 2.2vw, 1.6rem);
    letter-spacing: .5px;
}

/*** Forms ***/

    display: block;
    padding: 14px 18px;
    border-radius: 10px;
    background: var(--bs-white);
    color: var(--bs-dark);
    margin-bottom: 10px;
    box-shadow: 0 0 25px rgba(0, 0, 0, .06);
    transition: .3s;


/*** Misc ***/
.sample-badge {
    background: var(--bs-secondary) !important;
}

.error-404 { font-size: clamp(6rem, 18vw, 12rem); line-height: 1; font-family: "Poppins", sans-serif; font-weight: 700; color: var(--bs-primary); }

.legal-page h2 { font-size: 1.6rem; margin-top: 2rem; }

@media (max-width: 575.98px) {
    .btn-stack-sm .btn { width: 100%; }
}

/*** Eyebrow with side lines + accent words in headings ***/
.eyebrow-lines { display: flex; align-items: center; justify-content: center; gap: 16px; }
.eyebrow-lines::before, .eyebrow-lines::after { content: ""; width: 56px; height: 1px; background: currentColor; opacity: .55; }
.section-title .accent { color: var(--xe-teal); }

/*** Logo loader (first visit of a session) - page spinner stays for every other load ***/
#logoLoader { display: none; position: fixed; inset: 0; z-index: 100000; background: #fff; align-items: center; justify-content: center; }
.show-intro #logoLoader { display: flex; animation: loader-out .6s ease 2.7s forwards; }
.show-intro #spinner { display: none !important; }
#logoLoader.hide { opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.logo-loader-inner { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.logo-loader-img { width: min(340px, 72vw); height: auto; animation: loader-logo 1.3s cubic-bezier(.65, 0, .35, 1) both; }
.logo-loader-bar { position: relative; display: block; width: min(180px, 46vw); height: 3px; border-radius: 3px; background: var(--xe-silver-light); overflow: hidden; }
.logo-loader-bar i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--xe-teal), var(--xe-accent)); transform: scaleX(0); transform-origin: left; animation: loader-bar 2.3s cubic-bezier(.4, 0, .2, 1) .2s forwards; }
@keyframes loader-logo { from { clip-path: inset(0 100% 0 0); opacity: .2; transform: translateY(6px); } to { clip-path: inset(0 0 0 0); opacity: 1; transform: none; } }
@keyframes loader-bar { to { transform: scaleX(1); } }
@keyframes loader-out { to { opacity: 0; visibility: hidden; } }

/*** Module cards: see theme.css ***/
/* Module inner pages */
.module-detail .module-icon-lg { flex: 0 0 84px; align-self: auto; width: 84px; height: 84px; padding: 0; border: 0; border-radius: 16px; background: var(--xe-silver-light); font-size: 2.1rem; }
.module-pager { border-top: 1px solid var(--xe-silver-light); }
.module-pager a { font-weight: 600; color: var(--xe-heading); }
.module-pager a:hover { color: var(--xe-teal); }
.btn.btn-explore {
    border-radius: 999px !important; border: 2px solid var(--xe-accent); background: rgba(6, 183, 175, .1);
    color: #fff; box-shadow: 0 0 18px rgba(6, 183, 175, .3);
}
.btn.btn-explore:hover { background: var(--xe-accent); color: #fff; }

/*** AI roadmap: animated connector ***/
.roadmap-section { position: relative; overflow: hidden; background: var(--xe-navy); }
.soon-badge {
    display: inline-block; padding: 6px 18px; border: 1px solid var(--xe-accent); border-radius: var(--xe-radius-btn);
    background: transparent; color: var(--xe-accent); font-size: .8125rem; font-weight: 600; letter-spacing: 2px;
}

.roadmap { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(6, 1fr); }
.roadmap li { position: relative; text-align: center; padding: 0 9px; counter-increment: rm; }
.roadmap li:nth-child(1) { --i: 0; } .roadmap li:nth-child(2) { --i: 1; } .roadmap li:nth-child(3) { --i: 2; }
.roadmap li:nth-child(4) { --i: 3; } .roadmap li:nth-child(5) { --i: 4; } .roadmap li:nth-child(6) { --i: 5; }

/* connector: faint track, a filling line and a travelling light */
.roadmap::before {
    content: ""; position: absolute; left: 8.3333%; right: 8.3333%; top: 49px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, var(--xe-accent), var(--xe-accent)) no-repeat, rgba(197, 205, 210, .2);
    background-size: 0% 100%, 100% 100%;
    animation: rm-fill 5s linear infinite;
}
.roadmap::after {
    content: ""; position: absolute; top: 44px; left: 8.3333%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%;
    background: #fff; box-shadow: 0 0 0 3px rgba(6, 183, 175, .5), 0 0 16px 4px rgba(6, 183, 175, .65);
    opacity: 0; animation: rm-flow 5s linear infinite;
}

.roadmap .rm-label { display: block; height: 22px; font-size: .75rem; font-weight: 600; letter-spacing: 2px; color: var(--xe-accent); }
.roadmap .rm-node {
    position: relative; z-index: 1; width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
    background: var(--xe-slate); border: 1px solid var(--xe-accent); color: var(--xe-accent);
    animation: rm-node 5s ease-out infinite; animation-delay: calc(0.8s * var(--i) + .1s);
}
.roadmap .rm-card {
    height: calc(100% - 96px); padding: 18px 12px; background: var(--xe-slate);
    border: 1px solid rgba(197, 205, 210, .18); border-radius: var(--xe-radius);
    display: flex; align-items: center; justify-content: center; transition: border-color .3s ease, transform .3s ease;
}
.roadmap li:hover .rm-card { border-color: var(--xe-accent); transform: translateY(-3px); }
.roadmap h5 { margin: 0; font-family: "Poppins", sans-serif; font-size: .9375rem; font-weight: 600; line-height: 1.4; color: #fff; }

@media (max-width: 1199.98px) {
    .roadmap { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
    .roadmap::before, .roadmap::after { display: none; }
    .roadmap .rm-card { height: auto; min-height: 84px; }
}
@media (max-width: 767.98px) {
    .roadmap { grid-template-columns: 1fr; row-gap: 0; padding-left: 4px; }
    .roadmap::before {
        display: block; left: 31px; right: auto; top: 28px; bottom: 56px; width: 2px; height: auto;
        background: linear-gradient(180deg, var(--xe-accent), var(--xe-accent)) no-repeat, rgba(197, 205, 210, .2);
        background-size: 100% 0%, 100% 100%; animation-name: rm-fill-v;
    }
    .roadmap::after { display: block; left: 32px; top: 28px; animation-name: rm-flow-v; }
    .roadmap li { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; padding: 0 0 22px; text-align: left; }
    .roadmap .rm-node { grid-row: 1 / span 2; margin: 0; }
    .roadmap .rm-label { height: auto; margin-bottom: 4px; align-self: end; }
    .roadmap .rm-card { height: auto; min-height: 0; padding: 14px 16px; justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .roadmap::after { display: none; } }
}
