/* /software — software & RFID offerings landing page */

.software-page {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: 16px;
    color: #1e2022;
    /* Avoid overflow-x:hidden here — it can clip the fixed language dropdown on mobile. */
    background: #f4f6f8;
}

.software-page :root,
:root {
    --site-header-height: 72px;
    --emhk-navy: #112337;
    --emhk-navy-mid: #1e3a5f;
    --emhk-accent: #1d9e75;
    --emhk-ink: #1e2022;
    --emhk-muted: #5c6b7a;
}

.software-hero {
    position: relative;
    width: 100%;
    /* Sit fully below the fixed nav so the banner top bar is visible */
    padding-top: calc(var(--site-header-height, 72px) + env(safe-area-inset-top, 0px));
    margin: 0;
    background: #e8eef5;
    overflow: hidden;
}

.software-hero__stage {
    position: relative;
    width: 100%;
    line-height: 0;
}

.software-hero__media {
    display: block;
    width: 100%;
    margin: 0;
    animation: software-hero-fade-in 1.1s ease both;
}

.software-hero__banner {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    vertical-align: top;
}

.software-hero__overlay {
    position: absolute;
    inset: 0;
    /* Soft veil for readable text; keep banner edges visible */
    background: linear-gradient(
        180deg,
        rgba(17, 35, 55, 0.22) 0%,
        rgba(17, 35, 55, 0.48) 38%,
        rgba(17, 35, 55, 0.52) 62%,
        rgba(17, 35, 55, 0.28) 100%
    );
    z-index: 1;
    pointer-events: none;
}

@keyframes software-hero-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .software-hero__media {
        animation: none;
    }
}

.software-hero__content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    max-width: none;
    padding: 1.25rem 1.25rem 1.5rem;
    pointer-events: none;
}

.software-hero__content > * {
    pointer-events: auto;
    max-width: 820px;
}

.software-hero__eyebrow {
    margin: 0 0 0.65rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.92;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.software-hero h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.45rem, 3.6vw, 2.45rem);
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.software-hero__lead {
    margin: 0 auto 1.25rem;
    max-width: 640px;
    font-size: clamp(0.92rem, 1.7vw, 1.05rem);
    line-height: 1.55;
    opacity: 0.95;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.software-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
    margin-top: 0.25rem;
}

.software-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 48px;
    padding: 0.8rem 1.45rem;
    border-radius: 10px;
    font-weight: 650;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    border: 1px solid transparent;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    transition:
        transform 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        color 0.18s ease;
}

.software-btn__icon {
    flex: 0 0 auto;
    font-size: 1.05rem;
    opacity: 0.95;
}

.software-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.software-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.software-btn--primary {
    background: linear-gradient(180deg, #24b887 0%, #1d9e75 55%, #178a66 100%);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.18);
}

.software-btn--primary:hover {
    background: linear-gradient(180deg, #2bc794 0%, #1fa87d 55%, #1a9470 100%);
    color: #fff;
}

.software-btn--ghost {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.software-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.8);
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    .software-btn {
        transition: none;
    }

    .software-btn:hover,
    .software-btn:active {
        transform: none;
    }
}

.software-section {
    padding: 4.25rem 1.25rem;
}

.software-section--answer {
    background: #fff;
}

.software-section--grey {
    background: #f4f6f8;
}

.software-section--platforms {
    background: #fff;
}

.software-section--cta {
    position: relative;
    overflow: hidden;
    min-height: clamp(220px, 38vh, 320px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #112337;
    color: #fff;
}

.software-page .site-footer {
    position: relative;
    z-index: 2;
}

.software-cta__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    z-index: 0;
}

.software-section--cta .software-container,
.software-section--cta .software-cta {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 1.5rem 1.25rem;
    max-width: 40rem;
}

@media (min-width: 768px) {
    .software-section--cta .software-cta {
        padding: 2rem 2.5rem;
    }
}

.software-container {
    max-width: 1100px;
    margin: 0 auto;
}

.software-section--answer h2,
.software-section__title {
    margin: 0 0 1rem;
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--emhk-ink);
}

.software-section--cta .software-section__title,
.software-section--cta h2 {
    color: #fff;
}

.software-answer {
    margin: 0 0 1rem;
    font-size: 1.08rem;
    line-height: 1.75;
    color: #2a3440;
    max-width: 52rem;
}

.software-answer-more {
    margin: 0;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--emhk-muted);
    max-width: 48rem;
}

.software-label {
    display: inline-block;
    margin: 0 0 0.85rem;
    padding: 0.28rem 0.85rem;
    border-radius: 999px;
    background: var(--emhk-navy);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.software-section__lead {
    margin: 0 0 2.25rem;
    max-width: 40rem;
    color: var(--emhk-muted);
    line-height: 1.65;
}

.software-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.15rem;
}

.software-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem 1.2rem 1.15rem;
    scroll-margin-top: calc(var(--site-header-height, 72px) + 1rem);
}

.software-card__title {
    margin: 0 0 0.55rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--emhk-navy);
    line-height: 1.3;
}

.software-card__summary {
    margin: 0 0 0.85rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #3d4a57;
}

.software-card__keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0;
}

.software-card__keywords span {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--emhk-muted);
    background: #eef2f6;
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
}

.software-platforms {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.software-platforms li {
    padding: 0.55rem 1rem;
    border-radius: 8px;
    background: #eef2f6;
    color: var(--emhk-navy);
    font-weight: 600;
    font-size: 0.95rem;
}

.software-cta {
    text-align: center;
}

.software-cta p {
    margin: 0 auto 1.5rem;
    max-width: 36rem;
    line-height: 1.65;
    opacity: 0.92;
}

.software-cta__contact {
    margin: 0 auto 1.5rem !important;
    font-size: 0.98rem;
}

.software-cta__contact a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.software-section--cta .software-btn--ghost {
    border-color: rgba(255, 255, 255, 0.5);
}

/* Mobile: banner is ~2.7:1 — too short for overlay copy. Stack image + content. */
@media (max-width: 768px) {
    .software-hero__stage {
        display: flex;
        flex-direction: column;
        line-height: normal;
    }

    .software-hero__media {
        position: relative;
        z-index: 0;
        flex: 0 0 auto;
        min-height: clamp(132px, 36vw, 200px);
        overflow: hidden;
        background: #1e3a5f;
    }

    .software-hero__media::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(
            180deg,
            rgba(17, 35, 55, 0.12) 0%,
            rgba(17, 35, 55, 0.62) 100%
        );
        pointer-events: none;
    }

    .software-hero__banner {
        width: 100%;
        height: 100%;
        min-height: inherit;
        object-fit: cover;
        object-position: center 35%;
    }

    .software-hero__overlay {
        display: none;
    }

    .software-hero__content {
        position: relative;
        inset: auto;
        z-index: 2;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        text-align: left;
        padding: 1.35rem 1.15rem 1.65rem;
        background: linear-gradient(165deg, #1e3a5f 0%, #152a42 48%, #112337 100%);
        color: #fff;
    }

    .software-hero__content > * {
        max-width: none;
        width: 100%;
    }

    .software-hero__eyebrow {
        margin-bottom: 0.5rem;
        font-size: 0.65rem;
        letter-spacing: 0.12em;
        text-shadow: none;
        opacity: 0.85;
    }

    .software-hero h1 {
        margin-bottom: 0.65rem;
        font-size: clamp(1.28rem, 6.2vw, 1.65rem);
        line-height: 1.22;
        text-shadow: none;
    }

    .software-hero__lead {
        margin: 0 0 1.15rem;
        max-width: none;
        font-size: 0.92rem;
        line-height: 1.5;
        opacity: 0.92;
        text-shadow: none;
    }

    .software-hero__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.7rem;
        margin-top: 0;
    }

    .software-btn {
        width: 100%;
        min-height: 48px;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    }

    .software-section {
        padding: 3rem 1rem;
    }
}

@media (max-width: 380px) {
    .software-hero__content {
        padding: 1.15rem 0.95rem 1.4rem;
    }

    .software-hero__lead {
        font-size: 0.88rem;
    }
}
