:root {
    /* Core backgrounds */
    --z-bg-dark:       #07161E;
    --z-bg-navy:       #153C50;
    --z-surface:       #102A36;

    /* Brand / accent colors */
    --z-blue:          #3B89A3;
    --z-cyan:          #44B0D7;
    --z-orange:        #FBA120;

    /* Typography */
    --z-text:          #FFFFFF;
    --z-text-half-muted: #d6e0e7;
    --z-text-muted:    #AAB8C2;

    /* Borders / subtle UI */
    --z-border:        rgba(68, 176, 215, 0.22);
}

/* ----- General ----- */
html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

body {
    background-color: var(--z-bg-dark); /* #07161E */
    color: var(--z-text);
}

/* ----- Navbar ----- */
.navbar {
    min-height: 80px;
    background: var(--z-bg-dark);
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(
        90deg,
        transparent,
        var(--z-blue),
        var(--z-cyan),
        transparent
    ) 1;
}

.navbar-logo {
    width: 190px;
    height: auto;
}

.navbar .nav-link {
    color: var(--z-text);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.6rem 0.8rem;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--z-cyan);
}

.navbar .nav-cta {
    background: var(--z-orange);
    color: var(--z-text);
    border-radius: 6px;
    padding-left: 1.15rem;
    padding-right: 1.15rem;
    font-weight: 600;
}

.navbar .nav-cta:hover {
    color: var(--z-text);
    filter: brightness(1.08);
}

.z-dropdown {
    min-width: 320px;
    padding: 0.6rem;

    background-color: var(--z-surface);
    border: 1px solid var(--z-border);
    border-radius: 8px;

    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.28);
}

.z-dropdown .dropdown-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;

    padding: 0.85rem 1rem;

    color: var(--z-text);
    border-radius: 6px;

    white-space: normal;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.z-dropdown .dropdown-item:hover,
.z-dropdown .dropdown-item:focus {
    background-color: rgba(68, 176, 215, 0.08);
    color: var(--z-text);
}

.dropdown-item-title {
    color: var(--z-text);
    font-size: 0.95rem;
    font-weight: 600;
}

.dropdown-item-copy {
    color: var(--z-text-muted);
    font-size: 0.8rem;
    line-height: 1.45;
}

.navbar .dropdown-toggle::after {
    margin-left: 0.4rem;
    vertical-align: 0.15em;
    opacity: 0.6;
}

/* ----- Buttons ----- */
.z-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0.8rem 1.4rem;

    border: 1px solid transparent;
    border-radius: 6px;

    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.z-btn:hover {
    transform: translateY(-1px);
}

.z-btn-primary {
    background-color: var(--z-orange);
    color: var(--z-text);
}

.z-btn-primary:hover {
    background-color: #FFB13D;
    color: var(--z-text);
}

.z-btn-secondary {
    background-color: transparent;
    border-color: var(--z-cyan);
    color: var(--z-cyan);
}

.z-btn-secondary:hover {
    background-color: rgba(68, 176, 215, 0.10);
    border-color: var(--z-cyan);
    color: var(--z-text);
}

/* ----- All sections ----- */
.section-eyebrow {
    margin-bottom: 1rem;

    color: var(--z-cyan);

    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-title {
    margin-bottom: 1rem;

    color: var(--z-text);

    font-size: clamp(2rem, 2.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.section-copy {
    margin-bottom: 1.5rem;

    color: var(--z-text);

    font-size: 1.15rem;
    line-height: 1.7;
}

.section-copy-muted {
    margin-bottom: 1.5rem;

    color: var(--z-text-muted);

    font-size: 1.05rem;
    line-height: 1.7;
}

.section-header {
    max-width: 760px;
    margin-bottom: 3.5rem;
}


/* ----- Services Overview ----- */
.services-overview {
    padding: 7rem 0;
    background-color: var(--z-surface);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.service-card {
    position: relative;
    overflow: hidden;

    min-height: 360px;
    padding: 2rem;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    text-decoration: none;

    background:
        linear-gradient(
            135deg,
            #07161EFA 0%,
            #07161EEB 55%,
            #153C50CC 100%
        );

    border: 1px solid var(--z-border);
    border-radius: 10px;

    transition:
        transform .2s ease,
        border-color .2s ease,
        filter .2s ease;
}

.service-card.interactive:hover {
    transform: translateY(-4px);
    border-color: rgba(68, 176, 215, 0.55);
    filter: brightness(1.10);
}

.service-card::before {
    content: "";

    position: absolute;

    width: 100px;
    height: 100px;

    right: 0;
    bottom: 0;

    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;

    opacity: 0.5;

    pointer-events: none;
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-number {
    margin-bottom: 2.5rem;

    color: var(--z-cyan);

    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.service-card h3 {
    margin-bottom: 1rem;

    color: var(--z-text);
    text-decoration: none;

    font-size: 1.65rem;
    font-weight: 700;
}

.service-card p:not(.service-number) {
    color: var(--z-text-muted);
}

.service-link {
    margin-top: 2rem;

    color: var(--z-cyan);

    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
}

.service-link:hover {
    color: var(--z-text);
}

/* ----- Footer ----- */
.site-footer {
    background: var(--z-bg-dark);
    border-top: 1px solid var(--z-border);
    padding: 2.25rem 0 1.25rem;
}

.site-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2.5rem;
}

.site-footer-brand {
    max-width: 360px;
}

.site-footer-logo {
    width: 160px;
    height: auto;
    margin-bottom: 0.75rem;
}

.site-footer-brand p {
    margin: 0;
    color: var(--z-text-muted);
    font-size: .9rem;
    line-height: 1.6;
}

.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .75rem 1.75rem;
}

.site-footer-links a {
    color: var(--z-text-muted);
    font-size: .9rem;
    font-weight: 500;
    text-decoration: none;

    transition: color .2s ease;
}

.site-footer-links a:hover,
.site-footer-links a:focus {
    color: var(--z-cyan);
}

.site-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 2rem;

    margin-top: 1.5rem;
    padding-top: 1rem;

    border-top: 1px solid rgba(68, 176, 215, .12);

    color: var(--z-text-muted);
    font-size: .8rem;
}

/* ----- Service Hero ----- */
.service-hero {
    position: relative;
    min-height: 460px;
    display: flex;
    align-items: center;
    overflow: hidden;

    background:
        linear-gradient(
            110deg,
            var(--z-bg-dark) 0%,
            var(--z-bg-dark) 45%,
            var(--z-bg-navy) 100%
        );

    border-bottom: 1px solid var(--z-border);
}

.service-hero .container {
    position: relative;
    z-index: 2;
}

.service-hero-content {
    max-width: 960px;
    padding: 6rem 0;
}

.service-hero h1 {
    margin-bottom: 1.5rem;

    color: var(--z-text);

    font-size: clamp(3rem, 5vw, 4.75rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.service-hero-lead {
    max-width: 600px;
    margin-bottom: 2rem;

    color: var(--z-text-muted);

    font-size: 1.2rem;
    line-height: 1.7;
}

.service-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ----- Hero Shield ----- */
.service-hero-shield {
    position: absolute;
    z-index: 1;

    top: 50%;
    right: -8%;

    width: 48%;
    max-width: 800px;

    transform: translateY(-50%);

    pointer-events: none;
}

.service-hero-shield img {
    display: block;
    width: 112%;
    height: auto;

    opacity: 0.15;
}

.service-hero-shield::before {
    content: "";
    position: absolute;
    inset: 15%;

    background: rgba(68, 176, 215, 0.10);
    filter: blur(80px);
    border-radius: 50%;
}

/* ----- Desktop Navbar Hover ----- */
@media (min-width: 992px) and (hover: hover) {
    .navbar .dropdown > .dropdown-menu {
        display: none;
    }

    .navbar .dropdown:hover > .dropdown-menu {
        display: block;
    }

    .navbar .dropdown:hover > .nav-link {
        color: var(--z-cyan);
    }
}

/* ----- Mobile / Collapsed Navbar ----- */
@media (max-width: 991.98px) {
    .navbar {
        min-height: 72px;
    }

    .navbar-logo {
        width: 170px;
    }

    .navbar-nav {
        padding-top: 1rem;
        padding-bottom: .75rem;
    }

    .navbar .nav-link {
        padding: .7rem 0;
    }

    .navbar .nav-cta {
        display: inline-flex;
        justify-content: center;
        margin-top: .5rem;
        padding: .75rem 1.15rem;
    }

    .z-dropdown {
        position: static !important;
        transform: none !important;

        width: 100%;
        min-width: 0;

        margin: 0;
        padding: .25rem 0 .75rem 1rem;

        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .z-dropdown .dropdown-item {
        padding: .65rem 0;
        background: transparent;
    }

    .dropdown-item-copy {
        display: none;
    }

    .service-hero {
        min-height: 420px;
    }

    .service-hero-content {
        max-width: 760px;
        padding: 5rem 0;
    }

    .service-hero h1 {
        font-size: clamp(2.75rem, 7vw, 4rem);
    }

    .service-hero-shield {
        display: none;
    }

    .services-overview {
        padding: 5.5rem 0;
    }

    .service-card {
        min-height: 320px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: clamp(1.9rem, 7vw, 2.5rem);
    }

    .section-copy {
        font-size: 1.08rem;
    }

    .section-copy-muted {
        font-size: 1rem;
    }

    .section-header {
        margin-bottom: 2.75rem;
    }

    .services-overview {
        padding: 4.5rem 0;
    }

    .service-grid {
        gap: 1.25rem;
    }

    .service-card {
        min-height: 300px;
        padding: 1.75rem;
    }

    .service-number {
        margin-bottom: 2rem;
    }

    .service-hero {
        min-height: 380px;
    }

    .service-hero-content {
        max-width: 100%;
        padding: 4.5rem 0;
    }

    .service-hero h1 {
        margin-bottom: 1.25rem;
        font-size: clamp(2.5rem, 9vw, 3.5rem);
    }

    .service-hero-lead {
        max-width: 100%;
        font-size: 1.1rem;
    }

    .site-footer-inner {
        flex-direction: column;
        gap: 2rem;
    }

    .site-footer-brand {
        max-width: 480px;
    }

    .site-footer-links {
        justify-content: flex-start;
    }

    .site-footer-bottom {
        flex-direction: column;
        gap: .5rem;
    }
}

@media (max-width: 576px) {
    .navbar {
        min-height: 68px;
    }

    .navbar-logo {
        width: 150px;
    }

    .section-eyebrow {
        margin-bottom: .8rem;
        font-size: .78rem;
        letter-spacing: .12em;
    }

    .section-title {
        font-size: 1.9rem;
        line-height: 1.15;
    }

    .section-copy {
        margin-bottom: 1.25rem;
        font-size: 1rem;
        line-height: 1.65;
    }

    .section-copy-muted {
        margin-bottom: 1.25rem;
        font-size: .95rem;
        line-height: 1.65;
    }

    .section-header {
        margin-bottom: 2.25rem;
    }

    .z-btn {
        width: 100%;
        padding: .9rem 1.25rem;
        text-align: center;
    }

    .service-hero-actions {
        flex-direction: column;
        gap: .75rem;
        width: 100%;
    }

    .service-hero-actions .z-btn {
        width: 100%;
    }

    .service-hero {
        min-height: auto;
    }

    .service-hero-content {
        padding: 3.75rem 0;
    }

    .service-hero h1 {
        margin-bottom: 1rem;
        font-size: clamp(2.2rem, 10vw, 3rem);
        line-height: 1.05;
    }

    .service-hero-lead {
        margin-bottom: 1.75rem;
        font-size: 1rem;
        line-height: 1.6;
    }

    .services-overview {
        padding: 3.75rem 0;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-card {
        min-height: 0;
        padding: 1.5rem;
    }

    .service-card::before {
        width: 85px;
        height: 85px;
    }

    .service-number {
        margin-bottom: 1.25rem;
    }

    .service-card h3 {
        margin-bottom: .75rem;
        font-size: 1.4rem;
    }

    .service-link {
        margin-top: 1.5rem;
    }

    .site-footer {
        padding: 2rem 0 1.25rem;
    }

    .site-footer-inner {
        gap: 1.5rem;
    }

    .site-footer-logo {
        width: 145px;
    }

    .site-footer-links {
        gap: .65rem 1.25rem;
    }

    .site-footer-bottom {
        margin-top: 1.25rem;
    }
}

@media (max-width: 400px) {
    .navbar-logo {
        width: 140px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .service-hero-content {
        padding: 3.25rem 0;
    }

    .service-hero h1 {
        font-size: 2.1rem;
    }

    .services-overview {
        padding: 3.25rem 0;
    }

    .service-card {
        padding: 1.25rem;
    }

    .site-footer-links {
        flex-direction: column;
        align-items: flex-start;
        gap: .65rem;
    }
}