@font-face {
    font-family: 'Poppins';
    src: url('Fonts/Poppins/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('Fonts/Poppins/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-display: swap;
}

:root {
    /* Core palette: change these values to retheme the site. */
    --color-white: #fff;
    --color-white-rgb: 255 255 255;
    --color-black: #000;
    --color-black-rgb: 0 0 0;

    /* Brand palette */
    --color-primary: #ff232e;
    --color-primary-rgb: 252 114 121;
    --color-secondary: #ff5c71;
    --color-secondary-rgb: 248 73 82;
    --color-secondary-bright: #ff5961;
    --color-secondary-bright-rgb: 255 89 97;
    --color-accent: #EC1C24;
    --color-accent-rgb: 236 28 36;
    --color-dark: #BF0811;
    --color-darker: #970008;
    --color-darker-rgb: 151 0 8;
    --color-deep-crimson: #7d0a12;
    --color-danger: #d32f2f;
    --color-danger-dark: #b42318;
    --color-danger-dark-rgb: 180 35 24;
    --color-success: #238636;
    --color-secondary-light: #ff9ea2;
    --color-tertiary: #fcdadc;
    --color-primary-soft: #ff858a;
    --color-primary-pale: #ff9095;
    --color-primary-faint: #ffb9bd;
    --color-hero-line: #de3a3a;

    /* Text and neutral palette */
    --color-text-deep: #292b31;
    --color-text: #333333;
    --color-text-strong: #3f4147;
    --color-text-medium: #4d4f55;
    --color-text-body: #565960;
    --color-text-muted: #61646a;
    --color-text-subtle: #73767c;
    --color-text-faint: #898b91;
    --color-text-placeholder: #9b9da3;
    --color-text-light: #c2c2c2;

    /* Surfaces and borders */
    --color-bg: var(--color-white);
    --color-light-bg: #f8fafc;
    --color-light-bg-rgb: 248 250 252;
    --color-surface-blue: #f0f7ff;
    --color-surface-rose: #fff1f2;
    --color-surface-rose-rgb: 252 246 247;
    --color-surface-rose-muted: #f8f4f5;
    --color-surface-rose-strong: #f9e2e4;
    --color-border: #dcdde2;
    --color-border-blue: #e1e8ed;
    --color-border-light: #e9ecef;
    --color-border-rose: #f1d9db;

    /* Dark and red scale used by feature backgrounds and timelines */
    --color-night: #110e0f;
    --color-night-rgb: 17 10 12;
    --color-night-soft: #211b1d;
    --color-overlay-rgb: 7 4 5;
    --color-maroon-950: #260000;
    --color-maroon-950-rgb: 38 0 0;
    --color-maroon-900: #350000;
    --color-maroon-850: #4b0002;
    --color-maroon-800: #600003;
    --color-maroon-700: #780101;
    --color-maroon-600: #8a0007;
    --color-maroon-500: #a8070e;
    --color-maroon-400: #b50911;
    --color-maroon-300: #c61018;
    --color-maroon-200: #db1720;
    --color-red-glow-rgb: 205 0 0;

    /* Reusable translucent color channels */
    --color-shadow-rgb: 77 13 18;
    --color-shadow-soft-rgb: 65 24 28;

    --nav-bar-height: 76px;
    --nav-border-height: 2px;
    --safe-area-top: env(safe-area-inset-top, 0px);
    --nav-height: calc(
        var(--nav-bar-height) + var(--nav-border-height) + var(--safe-area-top)
    );
    --card-shadow: 0 12px 32px rgb(var(--color-shadow-rgb) / 11%);
    --card-shadow-hover: 0 18px 42px rgb(var(--color-shadow-rgb) / 16%);
    --focus-ring: 0 0 0 3px rgb(var(--color-accent-rgb) / 22%);
    --dark-section-gradient: linear-gradient(135deg, var(--color-maroon-900) 0%, var(--color-maroon-950) 52%, var(--color-maroon-850) 100%);
    --page-hero-title-font: 'Poppins', 'Segoe UI', sans-serif;
    --page-hero-title-size: clamp(2.8rem, 6vw, 5.7rem);
}

.btn-primary {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease;
    font-size: 1.05rem;
    background-color: var(--color-primary);
    border: 2px solid var(--color-secondary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    cursor: pointer;
}

.btn-secondary {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease;
    font-size: 1.05rem;
    background-color: var(--color-tertiary);
    border: 2px solid var(--color-secondary-light);
    color: var(--color-darker);
}

.btn-secondary:hover {
    background-color: var(--color-secondary-light);
    cursor: pointer;
    color: var(--color-white);
}

/* Shared contact CTA used by the About, Products, Services, and Solutions pages. */
.about-cta {
    padding: clamp(20px, 4vw, 110px) 0;
    background: linear-gradient(
        180deg,
        rgb(var(--color-surface-rose-rgb) / 0.74) 0%,
        rgb(var(--color-white-rgb) / 0.58) 48%,
        rgb(var(--color-surface-rose-rgb) / 0.5) 100%
    );
}

.about-cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    padding: clamp(2rem, 5vw, 4rem);
    border: 1px solid rgb(var(--color-darker-rgb) / 0.13);
    border-left: 7px solid var(--color-accent);
    border-radius: 18px;
    background: rgb(var(--color-white-rgb) / 0.9);
    box-shadow: 0 18px 48px rgb(var(--color-shadow-rgb) / 0.1);
}

.about-cta-card > div {
    display: flex;
    max-width: 760px;
    flex-direction: column;
    gap: 20px;
}

.about-cta-card h2 {
    margin: 0;
    color: var(--color-darker);
    font-size: clamp(2rem, 4.2vw, 3.35rem);
    font-weight: 600;
    line-height: 1.13;
    letter-spacing: -0.04em;
    text-align: left;
    text-wrap: balance;
}

.about-cta-card .cta-title {
    font-size: 35pt !important;
}

.about-cta-card > div > p {
    margin: 0;
    color: var(--color-text-body);
    font-size: 14pt;
    line-height: 1.6;
}

.about-cta .btn-primary {
    display: inline-block;
    flex: 0 0 auto;
    padding: 14px 36px;
    border: 2px solid var(--color-secondary);
    border-radius: 30px;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.about-cta .btn-primary:hover,
.about-cta .btn-primary:focus-visible {
    background: var(--color-secondary);
    color: var(--color-white);
}

@media (max-width: 680px) {
    .about-cta-card {
        align-items: flex-start;
        flex-direction: column;
    }
}

.buttons-row {
    display: flex;
    gap: 10px;
}

.hero-section {
    background: linear-gradient(185deg, var(--color-primary), var(--color-accent));
    color: var(--color-white);
}

#home-hero {
    min-height: 93vh !important;
}

.navbar {
    box-shadow: 0 2px 10px rgb(var(--color-darker-rgb) / 0.1);
    /* Bloodstone shadow */
}

.footer {
    background-color: var(--color-bg);
    color: var(--color-text);
}

.seperator {
    width: 300px;
    height: 6px;
    border-radius: 50px;
    background-color: var(--color-primary);
}

.hero-badge {
    font-size: 11px;
    font-weight: 600;
    font-family: 'Poppins';
    background: linear-gradient(135deg, var(--color-surface-rose) 0%, var(--color-surface-rose-strong) 100%);
    color: var(--color-deep-crimson);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgb(var(--color-darker-rgb) / 0.22);
    margin-bottom: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    width: 50%;
    box-shadow: 0 4px 12px rgb(var(--color-shadow-rgb) / 0.08);
}

.column {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

h2 {
    color: var(--color-dark);
}

.section-header>h2 {
    font-size: 30pt !important;
}

h3 {
    color: var(--color-primary);
}



/* Logo inside loader — subtle entrance */
/* Full-screen loader */
.loader {
    position: fixed;
    inset: 0;
    padding: var(--safe-area-top) env(safe-area-inset-right, 0px)
        env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
    background: var(--color-light-bg);
    display: none;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
}

.loader.active {
    display: flex;
    animation: fadeOutLoader 1.8s forwards;
    animation-delay: 1.2s;
}

/* Subtle logo entrance */
.loader-logo {
    width: 40vw;
    max-width: 100vw;
    height: auto;
    border-radius: 0;
    opacity: 0;
    transform: scale(0.92);
    animation: subtleIntro 1s ease-out forwards;
}

@keyframes subtleIntro {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Fade out */
@keyframes fadeOutLoader {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
    padding-top: 70px;
    /* Space for fixed navbar */
}

/* Center all standalone and card images */
img {
    display: block;
    border-radius: 10%;
}

/* === CARD IMAGES === */
.card img,
.feature img,
.solution-card img,
.logos-grid img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    filter: none;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* === NAVIGATION === */
.navbar {
    position: fixed;
    inset: 0 0 auto;
    width: auto;
    padding-top: var(--safe-area-top);
    background: var(--color-black);
    box-shadow: 0 2px 10px rgb(var(--color-black-rgb) / 0.1);
    z-index: 1000;
    border-bottom: var(--color-accent) solid 3px;
}

.navbar .container {
    display: flex;
    min-height: var(--nav-bar-height);
    justify-content: space-between;
    align-items: center;
}

.nav-logo-img {
    height: 64px;
    padding-bottom: 5px;
    width: auto;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--color-text);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.mobile-home-link {
    display: none;
}

.nav-links a {
    font-weight: 500;
    color: var(--color-white);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--color-dark);
}

/* === SECTIONS === */
.section {
    padding: 80px 0;
}

.section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--color-dark);
}

/* === Header with Images Snug to Heading === */
.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.header-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

#partners-header{
    margin-top: 4vh;
    margin-bottom: 5vh;
}

.section-header h2 {
    margin: 0;
    white-space: nowrap;
    font-size: clamp(2rem, 4.2vw, 3.35rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    text-wrap: balance;
    /* Adjust as needed */
}

.section-header .page-hero-title {
    max-width: 850px;
    margin: 0;
    color: var(--color-dark);
    font-family: var(--page-hero-title-font);
    font-size: clamp(2.1rem, 4.5vw, 4.275rem);
    font-weight: 600;
    line-height: 1.01;
    letter-spacing: -0.055em;
    text-align: center;
    text-wrap: balance;
}

.section-header.page-title-header {
    width: 100%;
    max-width: 100%;
    align-items: center;
    flex-direction: column;
    gap: 0;
    margin-inline: auto;
}

.page-title-header .header-title {
    position: static;
    display: flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: clamp(0.75rem, 1.5vw, 1.25rem);
    margin: 0 auto 10px;
}

.page-title-header .side-image {
    position: static;
    transform: none;
}

.page-title-header .page-hero-title {
    display: grid;
    width: fit-content;
    min-width: 0;
    text-align: center;
}

.page-title-header .page-hero-title span {
    display: block;
}

.subtitle {
    display: flex;
    flex-direction: column;
    max-width: 40vw;
    text-align: center;
    gap: 20px;
    margin-bottom: 60px;
    align-items: center;
}

.subtitle h3 {
    color: var(--color-text-body);
}

.side-image {
    height: 50px;
    /* Or whatever size you want */
    width: auto;
    flex-shrink: 0;
    border-radius: 0 !important;
}

/* Optional: Mobile Stack */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .section-header.page-title-header {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .page-title-header .header-title {
        display: flex;
        width: 100%;
        align-items: center;
        flex-direction: column;
        gap: 10px;
    }

    .page-title-header .side-image {
        position: static;
        transform: none;
    }

    .page-title-header .page-hero-title {
        text-align: center;
    }
}

/* === HERO === */
.hero-section {
    color: var(--color-white);
    text-align: center;
    padding: 100px 0;
}

.hero-section h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;

}

.hero-content {
    display: flex;
    gap: 15px;
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* === PRODUCTS === */
.card {
    background: var(--color-white);
    border-radius: 12px;
    padding: 1.8rem;
    box-shadow: 0 5px 15px rgb(var(--color-black-rgb) / 0.05);
    text-align: center;
    border-top: 4px solid var(--color-accent);
}

.card img {
    height: 200px;
    object-fit: cover;
}

.card h3 {
    padding: 1.2rem 1rem 0.5rem;
    font-size: 1.3rem;
    text-align: center;
    color: var(--color-primary);

}

.card p {
    padding: 0 1rem 1.5rem;
    color: var(--color-text-muted);
    text-align: center;
}

.side-card {
    display: grid;
    min-height: 430px;
    grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.35fr);
    padding: 0;
    border: 1px solid rgb(var(--color-darker-rgb) / 0.14);
    border-top: 4px solid var(--color-accent);
    border-radius: 18px;
    background: var(--color-white);
    box-shadow: var(--card-shadow);
    text-align: left;
    overflow: hidden;
}

.side-card:nth-child(odd) {
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.82fr);
}

.side-card:nth-child(odd) .side-card-media {
    order: -1;
}

.side-card-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    padding: clamp(2.25rem, 5vw, 5rem);
}

.side-card-media {
    position: relative;
    min-height: 430px;
    overflow: hidden;
}

.side-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 55%, rgb(var(--color-night-rgb) / 0.2));
    pointer-events: none;
}

.side-card .side-card-media img {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
    transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.side-card h3 {
    margin-bottom: 1rem;
    padding: 0;
    color: var(--color-night);
    font-size: clamp(2.25rem, 4vw, 3.7rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.045em;
    text-align: left;
}

.side-card p {
    max-width: 31rem;
    margin-bottom: 1.6rem;
    padding: 0;
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.7;
    text-align: left;
}

.side-card-number {
    position: absolute;
    z-index: 1;
    right: 1.5rem;
    bottom: 1rem;
    color: rgb(var(--color-white-rgb) / 0.92);
    font-size: clamp(3.75rem, 7vw, 6rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.08em;
}

.cards-column {
    display: flex;
    width: min(1180px, calc(100% - 40px));
    flex-direction: column;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.solutions-section{
    background-color: var(--color-night);
}

.solutions-section h2{
    color: var(--color-white);
}

.solutions-section h3{
    color: var(--color-text-light);
}

/* === SERVICES === */
.feature {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgb(var(--color-black-rgb) / 0.05);
    border-top: 4px solid var(--color-accent);
}

.feature img {
    height: 120px;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* === SOLUTIONS === */
.solution-card {
    background: var(--color-white);
    border-radius: 12px;
    padding: 1.8rem;
    box-shadow: 0 5px 15px rgb(var(--color-black-rgb) / 0.05);
    text-align: center;
    border-top: 4px solid var(--color-accent);
}

.solution-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 3px 8px rgb(var(--color-black-rgb) / 0.08);

}

.solutions-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

/* === PROCESS === */
.process-section {
    background-color: var(--color-surface-blue);
}

@media (min-width: 769px) {
    .process-section {
        height: 80vh;
        padding-block: clamp(3.25rem, 6vh, 4.5rem);
        overflow: clip;
    }

    .process-section>.container {
        display: flex;
        height: 100%;
        flex-direction: column;
        justify-content: center;
    }
}

.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;

}

.step {
    background: var(--color-white);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    width: 140px;
    box-shadow: 0 4px 10px rgb(var(--color-black-rgb) / 0.08);
    position: relative;
    border-top: 4px solid var(--color-accent);
}

.step img {
    height: 60px;
    margin-bottom: 1rem;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.step-number {
    display: inline-block;
    width: 36px;
    height: 36px;
    background: var(--color-darker);
    color: var(--color-white);
    border-radius: 50%;
    line-height: 36px;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* === PARTNERS SECTION === */
.partners {
    padding: 60px 0;
    background-color: var(--color-light-bg);
}

.logos-grid {
    display: flex;
    justify-content: center;
    /* Centers logos horizontally */
    align-items: center;
    /* Aligns logos vertically */
    gap: 10px;
    /* Space between logos */
    flex-wrap: wrap;
    /* Wraps on small screens */
    margin-top: 30px;
}

.logos-grid img {
    max-width: 100%;
    height: auto;
    display: block;
    filter: none;
}

/* === Adjust size of Cursor logo only === */
.logos-grid img[alt="Cursor Solutions"] {
    width: auto;
    height: 35px;
}

/* === Adjust size of data access logo only === */
.logos-grid img[alt="Data Access"] {
    width: auto;
    height: 100px;
}

.logos-grid img[alt="Zebra Technologies"] {
    width: auto;
    height: 72px;
}

/* === FOOTER === */
.footer {
    padding: 4rem 0 2rem;
    border-top: var(--color-accent) solid 3px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.footer-left,
.footer-center {
    flex: 1;
    min-width: 250px;
}

.footer-logo-img {
    height: 50px;
    align-items: flex-start;
}


.footer h4 {
    color: var(--color-accent);
    margin: 1rem 0 0.5rem;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.footer a {
    color: var(--color-text);
    transition: color 0.3s;
    font-weight: bold;
}

.socialMedia img {
    height: 24px;
    transition: transform 0.2s ease;
}

.footer a:hover {
    color: var(--color-accent);
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-white);
        box-shadow: 0 5px 10px rgb(var(--color-black-rgb) / 0.1);
        padding: 1rem 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        text-align: center;
        padding: 0.8rem 0;
        border-bottom: 1px solid var(--color-border-light);
    }

    .hero-section h1 {
        font-size: 2.2rem;
    }

    .steps {
        gap: 1rem;
    }

    .step {
        width: 120px;
        padding: 1.5rem 1rem;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .hamburger {
        display: block;
        font-size: 24px;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--color-text);
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        /* Adjust based on your navbar height */
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        padding: 20px;
        box-shadow: 0 4px 8px rgb(var(--color-black-rgb) / 0.1);
        z-index: 1000;
    }

    .nav-links.mobile-active {
        display: flex;
    }

    .nav-links a {
        padding: 10px 0;
        text-decoration: none;
        color: var(--color-text);
    }

    /* === FOOTER ON MOBILE === */
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
        padding: 20px;
    }

    .footer-left,
    .footer-center {
        flex: 1;
        min-width: auto;
        text-align: center;
    }

    .footer-logo img {
        height: 60px;
        margin-bottom: 1rem;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-text {
        margin-bottom: 1.5rem;
        font-size: 1rem;
        color: var(--color-text-body);
    }

    .footer h4 {
        color: var(--color-accent);
        margin: 1rem 0 0.5rem;
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }

    .footer a {
        color: var(--color-text);
        transition: color 0.3s;
        font-weight: bold;
    }

    .socialMedia {
        margin-top: 20px;
        justify-content: center;
    }

    .socialMedia img {
        height: 24px;
        transition: transform 0.2s ease;
    }

    .footer a:hover {
        color: var(--color-accent);
    }
}

/* Site-wide refinements. */

/* Give every site-wide interactive control the same responsive movement. */
:is(a, button, summary, input[type="button"], input[type="submit"], input[type="reset"]) {
    transform: scale(1);
    transition: transform 180ms ease, color 180ms ease,
        background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease,
        opacity 180ms ease;
}

:is(a, button, summary, input[type="button"], input[type="submit"], input[type="reset"]):is(:hover, :focus-visible) {
    transform: scale(1.05);
}

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    padding-top: var(--nav-height);
    background:
        linear-gradient(90deg,
            rgb(var(--color-darker-rgb) / 0.08) 0%,
            rgb(var(--color-darker-rgb) / 0.025) 6%,
            transparent 14%,
            transparent 86%,
            rgb(var(--color-darker-rgb) / 0.025) 94%,
            rgb(var(--color-darker-rgb) / 0.08) 100%),
        var(--color-white);
    background-attachment: fixed;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

/* Homepage hero: Vanta paints behind this accessible, readable content layer. */
.hero-section.home-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: clamp(500px, 68vh, 690px);
    align-items: center;
    overflow: hidden;
    padding: clamp(76px, 10vw, 128px) 0;
    background: var(--color-maroon-600);
}

.hero-section.home-hero::after {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 0;
    background:
        radial-gradient(circle at 50% 42%, rgb(var(--color-shadow-rgb) / 0.14), rgb(var(--color-maroon-950-rgb) / 0.48) 70%),
        linear-gradient(180deg, rgb(var(--color-maroon-950-rgb) / 0.08), rgb(var(--color-night-rgb) / 0.28));
    pointer-events: none;
}

.home-hero .vanta-canvas {
    z-index: 0 !important;
}

.home-hero .hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    max-width: 960px;
    align-items: center;
    flex-direction: column;
}

.home-hero .hero-logo-img {
    display: block;
    height: auto;
    border-radius: 0;
    filter: drop-shadow(0 0 12px rgb(var(--color-black-rgb) / 0.623));

}

.home-hero h1 {
    max-width: 850px;
    margin: clamp(1.75rem, 4vw, 2.5rem) auto 1rem;
    color: var(--color-white);
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.035em;
    text-wrap: balance;
    text-shadow: 0 4px 22px rgb(var(--color-black-rgb) / 0.48);
}

.home-hero h1 span {
    color: var(--color-primary);
}

.home-hero .hero-description {
    max-width: 790px;
    margin: 0 auto;
    color: rgb(var(--color-white-rgb) / 0.88);
    font-size: clamp(1rem, 1.7vw, 1.18rem);
    line-height: 1.75;
    text-shadow: 0 2px 12px rgb(var(--color-black-rgb) / 0.5);
}

/* Navigation: MallSystems look with CPAS-style mobile behaviour. */
.navbar {
    min-height: var(--nav-height);
    border-bottom-width: 2px;
}

.navbar .container {
    min-height: var(--nav-bar-height);
    padding-inline: clamp(18px, 4vw, 44px);
}

.nav-logo,
.nav-logo-img {
    display: block;
}

.nav-logo-img {
    height: 48px;
    padding: 0;
    border-radius: 0;
}

.nav-links {
    align-items: center;
    gap: clamp(1rem, 2.4vw, 2rem);
}

.nav-links a {
    position: relative;
    display: block;
    padding: 0.65rem 0;
    font-weight: 600;
}

.nav-links a::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0.3rem;
    left: 0;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.hamburger {
    width: 44px;
    height: 44px;
    padding: 9px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border-radius: 50%;
    color: var(--color-white);
}

.hamburger:hover,
.hamburger:focus-visible {
    background: rgb(var(--color-white-rgb) / 0.12);
    outline: none;
}

.hamburger-line {
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--color-white);
    transition: transform 220ms ease, opacity 160ms ease;
}

.hamburger.is-active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Static cards get separation, without suggesting click behaviour. */
.card,
.feature,
.solution-card,
.value-card,
.product-card,
.service-card,
.solution-category,
.step {
    box-shadow: var(--card-shadow);
}

.card img,
.feature img,
.solution-card img,
.service-icon,
.logos-grid img {
    filter: none;
}

/* Linked cards are the only cards with movement. */
.interactive-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.side-interactive-card {
    width: 100%;
    cursor: pointer;
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.interactive-card:hover,
.interactive-card:focus-visible,
.side-interactive-card:hover,
.side-interactive-card:focus-visible {
    transform: translateY(-6px) scale(1.05);
    border-color: rgb(var(--color-accent-rgb) / 0.38);
    box-shadow: var(--card-shadow-hover);
    outline: none;
}

.interactive-card:focus-visible,
.side-interactive-card:focus-visible {
    box-shadow: var(--focus-ring), var(--card-shadow-hover);
}

.side-interactive-card:hover .side-card-media img,
.side-interactive-card:focus-visible .side-card-media img {
    transform: scale(1.035);
}

/* Homepage services: horizontal cards stacked as a clear, scannable list. */
.services-section .service-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2.75rem;
}

.services-section .service-row-card {
    display: grid;
    width: 100%;
    height: auto;
    min-height: 168px;
    grid-template-columns: 180px minmax(0, 1fr) 48px;
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: center;
    padding: 1.35rem 1.5rem;
    border-top: 4px solid var(--color-accent);
    border-radius: 12px;
    background: var(--color-white);
    color: var(--color-text);
    text-align: left;
    transform: none;
}

.services-section .service-row-card:hover,
.services-section .service-row-card:focus-visible {
    border-color: var(--color-accent);
    box-shadow: var(--card-shadow-hover);
    outline: none;
    transform: translateY(-4px) scale(1.05);
}

.services-section .service-row-card:focus-visible {
    box-shadow: var(--focus-ring), var(--card-shadow-hover);
}

.services-section .service-row-card>img {
    width: 180px;
    height: 116px;
    margin: 0;
    border-radius: 9px;
    object-fit: cover;
}

.services-section .service-card-copy h3 {
    margin-bottom: 0.45rem;
    padding: 0;
    color: var(--color-darker);
    font-size: clamp(1.35rem, 2.3vw, 2rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.025em;
    text-align: left;
}

.services-section .service-card-copy p {
    max-width: 720px;
    margin: 0;
    padding: 0;
    color: var(--color-text-muted);
    line-height: 1.65;
    text-align: left;
}

.services-section .service-card-arrow {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgb(var(--color-darker-rgb) / 0.2);
    border-radius: 50%;
    transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.services-section .service-card-arrow img {
    width: 18px;
    height: 18px;
    margin: 0;
    border-radius: 0;
    object-fit: contain;
    transition: filter 180ms ease;
}

.services-section .service-row-card:hover .service-card-arrow,
.services-section .service-row-card:focus-visible .service-card-arrow {
    background: var(--color-accent);
    transform: translateX(3px);
}

.services-section .service-row-card:hover .service-card-arrow img,
.services-section .service-row-card:focus-visible .service-card-arrow img {
    filter: brightness(0) invert(1);
}

/* Homepage solutions: immersive image cards on a softly illuminated dark field. */
.solutions-section {
    position: relative;
    isolation: isolate;
    padding: clamp(88px, 9vw, 132px) 0;
    background:
        radial-gradient(circle at 96% 3%, rgb(var(--color-accent-rgb) / 0.22) 0, rgb(var(--color-darker-rgb) / 0.11) 20rem, transparent 42rem),
        var(--color-night);
    overflow: hidden;
}

.solutions-section>.container {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    padding-inline: clamp(20px, 4vw, 52px);
}

.solutions-section .section-header {
    margin-bottom: clamp(2.75rem, 6vw, 5rem);
}

.solutions-section .subtitle {
    max-width: 680px;
    margin-bottom: 0;
}

.solutions-section .subtitle h3 {
    color: rgb(var(--color-white-rgb) / 0.7);
    line-height: 1.65;
}

.solutions-section .solutions-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin-top: 0;
}

.solutions-section .solution-card {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: clamp(540px, 52vw, 680px);
    height: auto;
    justify-content: flex-end;
    flex-direction: column;
    padding: 0;
    border: 1px solid rgb(var(--color-white-rgb) / 0.13);
    border-radius: 18px;
    background: var(--color-night-soft);
    box-shadow: 0 24px 60px rgb(var(--color-black-rgb) / 0.28);
    text-align: left;
    overflow: hidden;
    transform: none;
}

.solutions-section .solution-card::after {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 0;
    background:
        linear-gradient(180deg, rgb(var(--color-overlay-rgb) / 0.02) 12%, rgb(var(--color-overlay-rgb) / 0.2) 42%, rgb(var(--color-overlay-rgb) / 0.96) 100%),
        linear-gradient(90deg, rgb(var(--color-overlay-rgb) / 0.28), transparent 62%);
    pointer-events: none;
}

.solutions-section .solution-card .solution-card-image {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    object-fit: cover;
    transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.solutions-section .solution-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    padding: clamp(2rem, 4.5vw, 3.75rem);
}

.solutions-section .solution-card h3 {
    max-width: 520px;
    margin-bottom: 1rem;
    padding: 0;
    color: var(--color-white);
    font-size: clamp(2.25rem, 4.2vw, 3.75rem);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.045em;
    text-align: left;
    text-wrap: balance;
}

.solutions-section .solution-card p {
    max-width: 540px;
    margin-bottom: 1.75rem;
    padding: 0;
    color: rgb(var(--color-white-rgb) / 0.76);
    font-size: clamp(0.95rem, 1.25vw, 1.05rem);
    line-height: 1.72;
    text-align: left;
}

.solutions-section .solution-card .card-cta {
    justify-content: flex-start;
    margin-top: 0;
    color: var(--color-white);
}

.solutions-section .solution-card:hover,
.solutions-section .solution-card:focus-visible {
    border-color: rgb(var(--color-secondary-bright-rgb) / 0.55);
    box-shadow: 0 30px 75px rgb(var(--color-black-rgb) / 0.38);
    outline: none;
    transform: translateY(-6px) scale(1.05);
}

.solutions-section .solution-card:focus-visible {
    box-shadow: var(--focus-ring), 0 30px 75px rgb(var(--color-black-rgb) / 0.38);
}

.solutions-section .solution-card:hover .solution-card-image,
.solutions-section .solution-card:focus-visible .solution-card-image {
    transform: scale(1.045);
}

/* Homepage process: a connected timeline that progresses from black to red. */
.process-section>.container {
    max-width: 1400px;
    padding-inline: clamp(18px, 2.5vw, 32px);
}

.process-section .section-header {
    gap: clamp(0.65rem, 1.4vw, 1rem);
}

.process-section .header-title {
    margin-bottom: 0;
}

.process-section .subtitle {
    max-width: 680px;
    margin: 0 auto;
}

.process-section .subtitle h3 {
    line-height: 1.5;
}

.process-section .steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: start;
    gap: clamp(0.65rem, 1.2vw, 1.25rem);
    max-width: 1320px;
    margin: clamp(1.75rem, 3vw, 2.5rem) auto 0;
}

@media (min-width: 769px) {
    .process-section .steps {
        width: 100%;
        height: clamp(19rem, 34vh, 22rem);
        flex: 0 0 clamp(19rem, 34vh, 22rem);
    }
}

.process-section .steps::before {
    content: '';
    position: absolute;
    z-index: 0;
    top: 22px;
    right: calc(100% / 12);
    left: calc(100% / 12);
    height: 4px;
    background: linear-gradient(90deg, var(--color-night) 0%, var(--color-maroon-850) 24%, var(--color-darker) 58%, var(--color-accent) 100%);
    filter: drop-shadow(0 2px 3px rgb(var(--color-darker-rgb) / 0.2));
}

.process-section .step {
    position: relative;
    z-index: 1;
    display: flex;
    width: auto;
    min-width: 0;
    align-items: center;
    flex-direction: column;
    padding: 0 0.3rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
}

.process-section .step:hover,
.process-section .step:focus-within {
    z-index: 3;
}

.process-section .step-number {
    position: relative;
    z-index: 2;
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    margin: 0 0 1.25rem;
    border: 4px solid var(--color-white);
    border-radius: 50%;
    color: var(--color-white);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 5px 16px rgb(var(--color-maroon-950-rgb) / 0.22);
}

.process-section .step:nth-child(1) .step-number {
    background: linear-gradient(135deg, var(--color-black), var(--color-maroon-900));
}

.process-section .step:nth-child(2) .step-number {
    background: linear-gradient(135deg, var(--color-maroon-950), var(--color-maroon-800));
}

.process-section .step:nth-child(3) .step-number {
    background: linear-gradient(135deg, var(--color-maroon-850), var(--color-maroon-600));
}

.process-section .step:nth-child(4) .step-number {
    background: linear-gradient(135deg, var(--color-maroon-700), var(--color-maroon-400));
}

.process-section .step:nth-child(5) .step-number {
    background: linear-gradient(135deg, var(--color-maroon-500), var(--color-maroon-200));
}

.process-section .step:nth-child(6) .step-number {
    background: linear-gradient(135deg, var(--color-maroon-300), var(--color-secondary));
}

.process-section .step-card {
    display: flex;
    width: 100%;
    min-height: 154px;
    align-items: center;
    flex-direction: column;
    padding: 1.25rem 1rem;
    border: 1px solid rgb(var(--color-darker-rgb) / 0.1);
    border-top: 4px solid var(--color-accent);
    border-radius: 14px;
    background: var(--color-white);
    box-shadow: var(--card-shadow);
    outline: none;
    overflow: hidden;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.process-section .step-card:hover,
.process-section .step-card:focus-visible {
    transform: translateY(-6px) scale(1.05);
    box-shadow: var(--card-shadow-hover);
}

.process-section .step-card:focus-visible {
    box-shadow: var(--focus-ring), var(--card-shadow-hover);
}

.process-section .step-card img {
    width: 78px;
    height: 78px;
    margin: 0 auto 0.75rem;
    object-fit: contain;
}

.process-section .step-card h3 {
    margin: 0;
    color: var(--color-darker);
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
}

.process-section .step-card p {
    max-height: 0;
    margin: 0;
    color: var(--color-text-body);
    font-size: 0.84rem;
    line-height: 1.55;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-0.5rem);
    transition: max-height 280ms ease, margin-top 280ms ease,
        opacity 180ms ease, transform 280ms ease;
}

.process-section .step-card:hover p,
.process-section .step-card:focus-visible p {
    max-height: 16rem;
    margin-top: 0.9rem;
    opacity: 1;
    transform: translateY(0);
}

.card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    color: var(--color-dark);
    font-weight: 600;
}

.card-cta::after {
    content: '';
    width: 1.05em;
    height: 1.05em;
    margin-left: 0.45rem;
    background-color: currentColor;
    -webkit-mask: url('Vector/arrow.svg') center / contain no-repeat;
    mask: url('Vector/arrow.svg') center / contain no-repeat;
    transition: transform 180ms ease;
}

.interactive-card:hover .card-cta::after,
.interactive-card:focus-visible .card-cta::after {
    transform: translateX(4px);
}

/* Homepage partner links use the same restrained shift treatment. */
.logos-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: clamp(1.25rem, 2.8vw, 2.25rem);
    max-width: 1180px;
    margin: 3rem auto 0;
}

.partner-link {
    display: flex;
    width: 100%;
    min-height: 270px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: clamp(2rem, 3.5vw, 3rem);
    border: 1px solid rgb(var(--color-darker-rgb) / 0.1);
    border-top: 4px solid var(--color-accent);
    border-radius: 18px;
    background: var(--color-white);
    box-shadow: var(--card-shadow);
    text-align: center;
    overflow: hidden;
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.partner-link:hover,
.partner-link:focus-visible {
    border-color: rgb(var(--color-accent-rgb) / 0.4);
    transform: translateY(-6px) scale(1.05);
    box-shadow: var(--card-shadow-hover);
    outline: none;
}

.partner-link:focus-visible {
    box-shadow: var(--focus-ring), var(--card-shadow-hover);
}

.partner-logo-wrap {
    display: flex;
    width: 100%;
    min-height: 150px;
    align-items: center;
    justify-content: center;
}

.partner-link .partner-logo-wrap img,
.logos-grid .partner-logo-wrap img[alt='Cursor Solutions'],
.logos-grid .partner-logo-wrap img[alt='Data Access'],
.logos-grid .partner-logo-wrap img[alt='Zebra Technologies'] {
    width: auto;
    max-width: min(100%, 260px);
    height: auto;
    max-height: 125px;
    margin: 0;
    object-fit: contain;
    border-radius: 0;
    transition: transform 260ms ease;
}

.partner-link:hover .partner-logo-wrap img,
.partner-link:focus-visible .partner-logo-wrap img {
    transform: scale(1.04);
}

.partner-reveal {
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition: max-height 320ms ease, margin-top 320ms ease, opacity 200ms ease, transform 320ms ease;
}

.partner-link:hover .partner-reveal,
.partner-link:focus-visible .partner-reveal {
    max-height: 20rem;
    margin-top: 1.35rem;
    opacity: 1;
    transform: translateY(0);
}

.partner-reveal p {
    margin: 0 0 1.15rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

.partner-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-dark);
    font-size: 0.9rem;
    font-weight: 600;
}

.partner-cta::after {
    content: '';
    width: 1.05em;
    height: 1.05em;
    flex: 0 0 1.05em;
    background-color: currentColor;
    -webkit-mask: url('Vector/arrow.svg') center / contain no-repeat;
    mask: url('Vector/arrow.svg') center / contain no-repeat;
    transition: transform 180ms ease;
}

.partner-link:hover .partner-cta::after,
.partner-link:focus-visible .partner-cta::after {
    transform: translateX(4px);
}

@media (min-width: 1051px) {
    .partners-section {
        padding-block: clamp(4rem, 8vh, 6rem);
        overflow: clip;
    }

    .partners-section>.container {
        display: flex;
        height: 100%;
        flex-direction: column;
        justify-content: center;
    }

    .partners-section .header-title {
        margin-bottom: 0;
    }

    .partners-section .logos-grid {
        width: 100%;
        min-height: clamp(31rem, 54vh, 35rem);
        align-items: start;
        margin-top: clamp(1.75rem, 3.5vh, 2.5rem);
    }
}

/* Products: containers and non-linked entries no longer resemble buttons. */
.product-category {
    background: transparent;
    border: 0;
    padding: clamp(1rem, 3vw, 2rem);
    box-shadow: none;
}

.product-card:not(.interactive-card) {
    background: transparent;
    border: 1px solid var(--color-border-light);
    border-top: 4px solid var(--color-accent);
    box-shadow: none;
}

/* Service cards are fully linked; imagery stays in colour on all devices. */
.service-card.interactive-card {
    color: inherit;
}

.service-card .service-icon,
.service-card .btn-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: auto auto 0;
}

/* Consultancy steps: connected vertical timeline matching the homepage process. */
#main>.container {
    max-width: 980px;
}

#main>.container>p {
    max-width: 850px;
    margin: 0 auto 3rem;
    text-align: center;
    line-height: 1.8;
}

#main .consultancy-timeline {
    position: relative;
    display: grid;
    width: min(820px, 100%);
    gap: 0;
    margin: 0 auto 3rem;
}

#main .consultancy-timeline::before {
    content: '';
    position: absolute;
    z-index: 0;
    top: 24px;
    bottom: 24px;
    left: 21px;
    width: 6px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--color-night) 0%, var(--color-maroon-850) 24%, var(--color-darker) 58%, var(--color-accent) 100%);
    filter: drop-shadow(0 2px 3px rgb(var(--color-darker-rgb) / 0.2));
}

#main .consultancy-timeline .step {
    position: relative;
    z-index: 1;
    display: grid;
    width: 100%;
    min-height: 0;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: clamp(0.9rem, 2.5vw, 1.5rem);
    margin: 0;
    padding: 0 0 1.5rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: left;
}

#main .consultancy-timeline .step:last-child {
    padding-bottom: 0;
}

#main .consultancy-timeline .step:not(:last-child) {
    margin-bottom: 0;
    border-bottom: 0;
}

#main .consultancy-timeline .step-number {
    position: relative;
    z-index: 2;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 4px solid var(--color-white);
    border-radius: 50%;
    color: var(--color-white);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 5px 16px rgb(var(--color-maroon-950-rgb) / 0.22);
}

#main .consultancy-timeline .step:nth-child(1) .step-number {
    background: linear-gradient(135deg, var(--color-black), var(--color-maroon-900));
}

#main .consultancy-timeline .step:nth-child(2) .step-number {
    background: linear-gradient(135deg, var(--color-maroon-950), var(--color-maroon-800));
}

#main .consultancy-timeline .step:nth-child(3) .step-number {
    background: linear-gradient(135deg, var(--color-maroon-850), var(--color-maroon-600));
}

#main .consultancy-timeline .step:nth-child(4) .step-number {
    background: linear-gradient(135deg, var(--color-maroon-700), var(--color-maroon-400));
}

#main .consultancy-timeline .step:nth-child(5) .step-number {
    background: linear-gradient(135deg, var(--color-maroon-500), var(--color-maroon-200));
}

#main .consultancy-timeline .step:nth-child(6) .step-number {
    background: linear-gradient(135deg, var(--color-maroon-300), var(--color-secondary));
}

#main .consultancy-timeline .timeline-card {
    display: grid;
    min-height: 150px;
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: center;
    gap: 1.25rem;
    padding: 1.6rem 1.75rem;
    border: 1px solid rgb(var(--color-darker-rgb) / 0.1);
    border-top: 4px solid var(--color-accent);
    border-radius: 14px;
    background: var(--color-white);
    box-shadow: var(--card-shadow);
}

#main .consultancy-timeline .icon {
    flex: 0 0 74px;
    align-items: center;
    justify-content: center;
}

#main .consultancy-timeline .icon img {
    width: 64px;
    max-height: 64px;
    margin: 0;
    object-fit: contain;
}

#main .consultancy-timeline .step-content {
    min-width: 0;
    text-align: left;
}

#main .consultancy-timeline .step-title {
    font-size: 1.15rem;
}

.btn-container .btn-read-more {
    display: inline-flex;
    min-width: 170px;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 14px 34px;
    font-size: 1.05rem;
}

/* Footer */
.footer {
    padding: 0;
    background: transparent;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas: "contact brand location";
    grid-template-rows: auto;
    align-items: center;
    column-gap: 0;
    row-gap: 0;
    max-width: 1400px;
    min-height: 300px;
    padding: 38px 28px;
}

.footer-left,
.footer-center,
.footer-location {
    align-self: center;
    justify-self: center;
    min-width: 0;
    width: 100%;
    padding: 0;
}

.footer-left {
    grid-area: brand;
    max-width: 360px;
    text-align: center;
}

.footer-center {
    grid-area: contact;
    display: flex;
    max-width: 300px;
    justify-content: center;
}

.footer-contact {
    width: min(100%, 260px);
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.footer-logo-link:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.footer-location {
    grid-area: location;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 18px;
    width: 100%;
    max-width: 430px;
    padding: 16px;
    border: 1px solid rgb(var(--color-accent-rgb) / 0.16);
    border-radius: 16px;
    background: var(--color-white);
    box-shadow: 0 10px 28px rgb(var(--color-shadow-rgb) / 0.1);
}

.footer-logo-img {
    display: block;
    margin: 0 auto;
    border-radius: 0;
}

.footer-text {
    margin: 0.8rem 0 0;
}

.footer h4 {
    margin: 0 0 0.4rem;
}

.footer h4:not(:first-child) {
    margin-top: 1rem;
}

.footer p,
.footer a {
    padding: 0;
}

.socialMedia {
    justify-content: center;
    margin-top: 1rem;
}

.footer-office-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
}

.footer-office-row p,
.footer-office-row .socialMedia {
    margin: 0;
}

.footer-office-row .socialMedia {
    flex: 0 0 auto;
}

.socialMedia a {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transform: translateY(0) scale(1);
    transform-origin: center;
    transition: transform 340ms cubic-bezier(0.22, 1, 0.36, 1),
        background-color 260ms ease, box-shadow 260ms ease;
}

.socialMedia a:hover,
.socialMedia a:focus-visible {
    transform: translateY(-3px) scale(1.04);
    background-color: var(--color-surface-rose);
    outline: none;
}

.socialMedia a:focus-visible {
    box-shadow: var(--focus-ring);
}

.socialMedia img {
    border-radius: 0;
}

.footer-address {
    display: flex;
    flex: 1 1 210px;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    padding: 2px 4px 0;
}

.footer-address h4 {
    text-transform: none;
}

.footer-address address {
    margin: 0.55rem 0 0.75rem;
    color: var(--color-text-medium);
    font-size: 0.94rem;
    font-style: normal;
    line-height: 1.65;
}

.footer-directions {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-dark);
    font-size: 0.9rem;
    font-weight: 600;
}

.footer-location iframe {
    position: relative;
    z-index: 1;
    display: block;
    flex: 1.55 1 190px;
    width: auto;
    min-width: 0;
    min-height: 190px;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgb(var(--color-shadow-rgb) / 0.12);
    pointer-events: auto;
    touch-action: auto;
}

.footer-location iframe:focus-visible {
    outline: 3px solid rgb(var(--color-accent-rgb) / 0.55);
    outline-offset: 3px;
}

/* Contact form receives more room and persistent accessible labels. */
.contact-hero {
    padding: clamp(56px, 8vw, 90px) 0;
}

.contact-wrapper {
    display: block;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    margin-bottom: 2.25rem;
    text-align: center;
}

.contact-info h2 {
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    margin-bottom: 0;
    color: var(--color-primary);
}

.contact-form {
    padding: clamp(1.25rem, 4vw, 2.75rem);
    border-radius: 18px;
    background: var(--color-white);
    box-shadow: var(--card-shadow);
}

.form-group label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--color-text);
    font-size: 0.92rem;
    font-weight: 600;
}

.form-right textarea {
    min-height: 250px;
    resize: vertical;
}

.form-left input:focus,
.form-left select:focus,
.form-right textarea:focus {
    border-color: var(--color-accent);
    box-shadow: var(--focus-ring);
}

@media (max-width: 768px) {
    :root {
        --nav-bar-height: 68px;
    }

    body {
        padding-top: var(--nav-height);
    }

    .navbar .container {
        min-height: var(--nav-bar-height);
        padding: 0 18px;
    }

    .nav-logo-img {
        height: 54px;
    }

    .hamburger {
        display: flex;
    }

    .nav-links,
    .nav-links.active {
        display: flex;
        visibility: hidden;
        position: fixed;
        top: var(--nav-height);
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 1.25rem 1.5rem 2rem;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        background: rgb(var(--color-white-rgb) / 0.98);
        opacity: 0;
        transform: translateY(-12px);
        transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
        pointer-events: none;
        overflow-y: auto;
    }

    .nav-links.mobile-active {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-links li {
        padding: 0;
        border-bottom: 1px solid var(--color-border-rose);
        text-align: left;
    }

    .nav-links a {
        padding: 1rem 0.35rem;
        font-size: 1.05rem;
    }

    .nav-links a::after {
        bottom: 0;
    }

    .section {
        padding: 58px 0;
    }

    .section-header {
        padding-inline: 0.5rem;
    }

    .section-header h2 {
        max-width: 100%;
        font-size: clamp(1.55rem, 7vw, 2rem);
        line-height: 1.25;
        white-space: normal;
    }

    .hero-section h1,
    .hero-container h1 {
        padding-inline: 0.5rem;
        font-size: clamp(1.85rem, 8vw, 2.2rem);
        line-height: 1.2;
    }

    .hero-section p,
    .hero-container p {
        padding-inline: 0.35rem;
        font-size: 1rem;
    }

    .partner-link {
        width: min(280px, 100%);
        min-height: 130px;
    }

    #main {
        padding: 50px 0;
    }

    #main>.container {
        padding: 0 18px;
    }

    #main .consultancy-timeline {
        width: min(100%, 520px);
    }

    #main .consultancy-timeline .step {
        grid-template-columns: 48px minmax(0, 1fr);
        align-items: center;
        gap: 0.75rem;
        padding-bottom: 1.25rem;
    }

    #main .consultancy-timeline .timeline-card {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 0.85rem;
        padding: 1.25rem 1rem;
        text-align: center;
    }

    #main .consultancy-timeline .icon {
        width: 100%;
        justify-content: center;
    }

    #main .consultancy-timeline .icon img {
        margin-inline: auto;
    }

    #main .consultancy-timeline .step-content,
    #main .consultancy-timeline .step-title {
        text-align: center;
    }

    .process-section .steps {
        grid-template-columns: 1fr;
        gap: 0;
        width: min(100%, 520px);
        margin-top: 2.5rem;
    }

    .process-section .steps::before {
        top: 24px;
        right: auto;
        bottom: 80px;
        left: 22px;
        width: 6px;
        height: auto;
        background: linear-gradient(180deg, var(--color-night) 0%, var(--color-maroon-850) 24%, var(--color-darker) 58%, var(--color-accent) 100%);
    }

    .process-section .step {
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr) 48px;
        grid-template-rows: auto;
        min-height: 0;
        padding: 0 0 1.5rem;
        text-align: center;
    }

    .process-section .step-number {
        grid-column: 1;
        grid-row: 1;
        align-self: center;
        margin: 0;
    }

    .process-section .step-card {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
        width: min(100%, 300px);
        min-height: 148px;
        padding: 1.15rem;
    }

    .process-section .step-card img {
        width: 68px;
        height: 68px;
        margin: 0 auto 0.75rem;
    }

    .process-section .step-card p {
        font-size: 0.86rem;
    }

    .solutions-overview>.container {
        padding-inline: 18px;
    }

    .solutions-overview .solution-category {
        padding: 1.5rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "brand"
            "contact"
            "location";
        grid-template-rows: repeat(3, auto);
        gap: 2rem;
        padding: 44px 20px 28px;
        text-align: center;
    }

    .footer-left,
    .footer-center,
    .footer-location {
        justify-self: center;
        align-self: center;
        min-width: 0;
        width: 100%;
        max-width: 480px;
    }

    .footer-left {
        order: -1;
    }

    .footer-location {
        width: 100%;
        max-width: 520px;
        text-align: left;
    }

    .footer-location iframe {
        min-height: 190px;
    }

    .form-grid {
        gap: 1rem;
    }

    .form-right textarea {
        min-height: 220px;
    }
}

@media (max-width: 1050px) {
    .logos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 780px;
    }
}

@media (max-width: 980px) {
    .services-section .service-row-card {
        grid-template-columns: 150px minmax(0, 1fr) 44px;
        gap: 1rem;
    }

    .services-section .service-row-card>img {
        width: 150px;
    }

    .solutions-section .solutions-cards-grid {
        grid-template-columns: 1fr;
        width: min(100%, 720px);
        margin-inline: auto;
    }

    .solutions-section .solution-card {
        min-height: clamp(520px, 82vw, 650px);
    }
}

@media (max-width: 768px) {
    .cards-column {
        width: min(calc(100% - 32px), 560px);
    }

    .side-card,
    .side-card:nth-child(odd) {
        min-height: 0;
        grid-template-columns: 1fr;
        border-radius: 14px;
    }

    .side-card .side-card-media,
    .side-card:nth-child(odd) .side-card-media {
        order: -1;
        min-height: clamp(240px, 62vw, 350px);
    }

    .side-card-content {
        padding: 2rem 1.5rem 2.25rem;
    }

    .side-card h3 {
        font-size: clamp(2rem, 10vw, 2.75rem);
    }

    .side-card-number {
        right: 1rem;
        bottom: 0.75rem;
        font-size: clamp(3.4rem, 17vw, 5rem);
    }

    .services-section .service-list {
        gap: 1rem;
        margin-top: 2.25rem;
    }

    .services-section .service-row-card {
        min-height: 0;
        grid-template-columns: minmax(0, 1fr) 40px;
        gap: 0.85rem;
        padding: 1.15rem;
    }

    .services-section .service-row-card>img {
        grid-column: 1 / 3;
        grid-row: 1;
        width: 100%;
        height: clamp(170px, 48vw, 250px);
    }

    .services-section .service-card-copy {
        grid-column: 1;
        grid-row: 2;
    }

    .services-section .service-card-arrow {
        grid-column: 2;
        grid-row: 2;
        width: 38px;
        height: 38px;
    }

    .footer-office-row{
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .solutions-section {
        padding: 72px 0;
        background:
            radial-gradient(circle at 100% 0, rgb(var(--color-accent-rgb) / 0.2), transparent 22rem),
            var(--color-night);
    }

    .solutions-section .section-header {
        margin-bottom: 2.75rem;
    }

    .solutions-section .subtitle {
        max-width: 100%;
    }

    .solutions-section .solution-card {
        min-height: 520px;
        border-radius: 14px;
    }

    .solutions-section .solution-card-content {
        padding: 1.75rem 1.5rem 2rem;
    }

    .solutions-section .solution-card h3 {
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .logos-grid {
        grid-template-columns: 1fr;
        width: min(100%, 420px);
        gap: 1.25rem;
    }

    .partner-link {
        width: 100%;
        min-height: 0;
        padding: 2rem 1.5rem;
    }

    .partner-logo-wrap {
        min-height: 125px;
    }

    .partner-link .partner-logo-wrap img,
    .logos-grid .partner-logo-wrap img[alt='Cursor Solutions'],
    .logos-grid .partner-logo-wrap img[alt='Data Access'],
    .logos-grid .partner-logo-wrap img[alt='Zebra Technologies'] {
        max-width: min(100%, 240px);
        max-height: 110px;
    }
}

@media (hover: none) {
    .partner-reveal {
        max-height: 190px;
        margin-top: 1.35rem;
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
