:root {
    --ink: #11263f;
    --muted: #5d6c7d;
    --blue: #7ea3cc;
    --blue-deep: #255c99;
    --gold: #c8a613;
    --footer-top: #84a8d8;
    --footer-bottom: #4f6484;
    --shadow: 0 22px 60px rgba(17, 38, 63, 0.12);
    --radius-lg: 34px;
    --max: 1160px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(126, 163, 204, 0.18), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, #f7fbff 56%, #ffffff 100%);
}

img {
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.shell {
    overflow: hidden;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(17, 38, 63, 0.08);
}

.header-main,
.section,
.footer-inner {
    width: min(var(--max), calc(100% - 2rem));
    margin: 0 auto;
}

.header-main {
    display: grid;
    grid-template-columns: 210px 1fr auto;
    align-items: center;
    gap: 1.5rem;
    min-height: 132px;
    padding: 0.35rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    align-self: stretch;
}

.brand img {
    width: auto;
    height: 100%;
    max-height: 122px;
}

.main-nav {
    display: flex;
    justify-content: right;
    align-items: center;
    gap: clamp(0.9rem, 2.2vw, 2rem);
    font-size: 1.33rem;
    font-weight: 600;
}

.main-nav a:nth-child(3),
.contact-link {
    color: #8f5264;
}

.main-nav a:hover,
.contact-link:hover,
.services-menu:hover > a,
.services-menu a:hover {
    color: var(--blue-deep);
}

.contact-link {
    font-size: 1.33rem;
    font-weight: 600;
    white-space: nowrap;
}

.services-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.services-dropdown {
    position: absolute;
    top: calc(100% + 0.85rem);
    left: 50%;
    transform: translateX(-50%);
    min-width: 240px;
    padding: 0.7rem 0;
    border: 1px solid rgba(17, 38, 63, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 40px rgba(17, 38, 63, 0.16);
    opacity: 0;
    visibility: hidden;
    transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
}

.services-dropdown a {
    display: block;
    padding: 0.8rem 1rem;
    font-size: 0.94rem;
    color: var(--ink);
    white-space: nowrap;
}

.services-dropdown a:hover {
    background: rgba(126, 163, 204, 0.12);
}

.services-menu:hover .services-dropdown,
.services-menu:focus-within .services-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.hero {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    background: #102338;
    border-bottom: 4px solid var(--ink);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 23, 38, 0.78) 0%, rgba(10, 23, 38, 0.42) 40%, rgba(10, 23, 38, 0.15) 100%),
        url("./images/hero-image.png") center center / cover no-repeat;
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(1280px, calc(100% - 2rem));
    margin: 0 auto;
    min-height: 640px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 2rem;
    align-items: center;
    padding: 3.5rem 0 3rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
    color: #d2e4f8;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 52px;
    height: 2px;
    background: #d2e4f8;
}

h1,
h2,
h3,
p {
    margin: 0;
}

.hero-copy h1 {
    max-width: 14ch;
    font-size: clamp(3rem, 6vw, 5.8rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: #fff;
}

.hero-copy p {
    max-width: 44rem;
    margin-top: 1.35rem;
    font-size: 1.08rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.86);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    padding: 0.95rem 1.45rem;
    border-radius: 999px;
    border: 0;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--blue-deep);
    color: #fff;
    box-shadow: 0 16px 30px rgba(37, 92, 153, 0.2);
}

.button-secondary {
    background: #eef4fb;
    color: var(--ink);
}

/* .hero-visual {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
} */

/* .hero-badge {
    width: 180px;
    aspect-ratio: 1;
    padding: 1rem;
} */

#hero-badge{
    position: relative;
    width: 12em;
    height: 12em;
    border-radius: 50%;
}

.section {
    padding: 1.2rem 0 5rem;
}

.hero.section {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.partner-carousel {
    overflow: hidden;
    width: 100%;
    padding: 0.6rem 0;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0,
        black 80px,
        black calc(100% - 80px),
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0,
        black 80px,
        black calc(100% - 80px),
        transparent 100%
    );
}

.partner-track {
    display: flex;
    width: max-content;
    gap: 1.6rem;
    will-change: transform;
}

.partner-card {
    width: min(280px, 72vw);
    min-height: 172px;
    padding: 1.8rem;
    border: 3px solid var(--ink);
    border-radius: 28px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    box-shadow: var(--shadow);
}

.partner-card img {
    max-width: 180px;
    max-height: 84px;
    object-fit: contain;
}

.section-title {
    margin-bottom: 2rem;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.8rem;
    align-items: stretch;
}

.stat-card {
    position: relative;
    padding: 2rem 1.6rem 1.4rem;
    text-align: center;
}

.stat-card:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 22px;
    right: -0.9rem;
    width: 3px;
    height: calc(100% - 44px);
    background: var(--ink);
    border-radius: 999px;
}

.stat-icon {
    width: 5em;
    height: 5em;
    margin: 0 auto 1.2rem;
    border-radius: 12px;
}

.stat-card h3 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.stat-card p {
    color: var(--muted);
    line-height: 1.65;
}

.services-stack {
    display: grid;
    gap: 1rem;
}

.service-card {
    display: grid;
    grid-template-columns: 240px 1fr;
    align-items: center;
    gap: 1.5rem;
    max-width: 760px;
    min-height: 170px;
    padding: 1rem;
    border-radius: var(--radius-lg);
    background: rgba(126, 163, 204, 0.12);
    box-shadow: var(--shadow);
}

.service-card:nth-child(even) {
    margin-left: auto;
}

.service-media {
    height: 100%;
    min-height: 138px;
    border-radius: 24px;
    overflow: hidden;
    background: var(--blue);
}

.service-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-copy h3 {
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
}

.service-copy p {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.service-copy a {
    color: var(--blue-deep);
    font-weight: 700;
}

.cta {
    text-align: center;
    padding-top: 2rem;
    padding-bottom: 6rem;
}

.cta h2 {
    max-width: 12ch;
    margin: 0 auto;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.cta p {
    max-width: 40rem;
    margin: 1rem auto 2rem;
    color: var(--muted);
    line-height: 1.75;
}

.footer-top {
    height: 88px;
    background: var(--footer-top);
}

.site-footer {
    background: var(--footer-bottom);
    color: rgba(255, 255, 255, 0.92);
}

.footer-inner {
    padding: 1.35rem 0;
    text-align: center;
    font-size: 0.95rem;
}

@media (max-width: 980px) {
    .header-main {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 0.85rem;
    }

    .main-nav {
        flex-wrap: wrap;
    }

    .services-dropdown {
        left: 0;
        transform: none;
    }

    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        max-width: none;
    }

    .hero-visual {
        justify-content: flex-start;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }

    .stat-card:not(:last-child)::after {
        display: none;
    }

    .service-card {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 720px) {
    .section,
    .hero {
        padding-top: 0;
        padding-bottom: 0;
    }

    .header-main,
    .section,
    .footer-inner {
        width: min(var(--max), calc(100% - 1.25rem));
    }

    .header-main {
        min-height: auto;
        padding: 0.75rem 0;
    }

    .brand img {
        max-height: 92px;
    }

    .hero-inner {
        width: min(1280px, calc(100% - 1.25rem));
        min-height: 520px;
        padding: 2.5rem 0;
    }

    .hero-badge {
        width: 132px;
    }

    .partner-card {
        width: 220px;
        min-height: 150px;
    }

}
