@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
    --home-navy: #102b4e;
    --home-blue: #003478;
    --home-bright: #0068b4;
    --home-accent: #2096cd;
    --home-paper: #f8fafc;
    --home-ink: #1e293b;
    --home-line: #d8e3ed;
}

html {
    overflow-y: scroll;
    scroll-behavior: smooth;
    scrollbar-color: #1e293b #e2e8f0;
}

html::-webkit-scrollbar { width: 14px; }
html::-webkit-scrollbar-track { background: #e2e8f0; }
html::-webkit-scrollbar-thumb { background: #1e293b; border: 2px solid #e2e8f0; border-radius: 7px; }

#navbar-main,
.main-content > .header,
#footer-main { display: none !important; }

body.bg-default,
.main-content {
    background: var(--home-paper) !important;
}

.am-home {
    color: var(--home-ink);
    font-family: 'DM Sans', 'Open Sans', sans-serif;
    font-size: 125%;
    overflow: hidden;
}

.am-home *, .am-home *::before, .am-home *::after { box-sizing: border-box; }
.am-home a { text-decoration: none; }
.am-home a:focus-visible { outline: 3px solid var(--home-accent); outline-offset: 4px; }
.am-home h1, .am-home h2, .am-home h3, .am-home p { margin-top: 0; }

.am-home-container {
    width: 90%;
    margin-inline: auto;
}

.am-home-header {
    position: relative;
    z-index: 2;
    background: #fff;
    border-bottom: 1px solid #e6edf3;
}

.am-home-header-inner {
    min-height: 96px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 36px;
}

.am-home-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    width: clamp(250px, 24vw, 340px);
    padding: 9px 14px;
    border-radius: 8px;
    background: var(--home-navy);
}

.am-home-brand img { display: block; width: 100%; height: auto; }

.am-home-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(14px, 2.3vw, 36px);
    font-size: 95%;
    font-weight: 700;
    white-space: nowrap;
}

.am-home-nav > a { color: var(--home-navy); transition: color .18s ease; }
.am-home-nav > a:hover { color: var(--home-bright); }
.am-home-nav .am-home-nav-social { display: inline-flex; align-items: center; justify-content: center; min-width: 1.5em; font-size: 110%; }
.am-home-nav .am-home-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    border: 1px solid var(--home-blue);
    border-radius: 7px;
    background: var(--home-blue);
    color: #fff;
    transition: background .18s ease, transform .18s ease;
}
.am-home-nav .am-home-nav-cta:hover { color: #fff; background: var(--home-navy); transform: translateY(-2px); }

.am-home-hero {
    position: relative;
    background:
        radial-gradient(circle at 34% 20%, rgba(32,150,205,.13), transparent 28%),
        linear-gradient(120deg, #071e39 0%, var(--home-navy) 58%, #173e68 100%);
    color: #fff;
}

.am-home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(38px, 6vw, 90px);
    padding-block: clamp(68px, 8vw, 116px);
}

.am-home-hero-copy { position: relative; z-index: 1; }
.am-home-eyebrow, .am-home-section-kicker {
    font-size: 88%;
    font-weight: 800;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.am-home-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; color: #a9dfff; }
.am-home-eyebrow-line { display: inline-block; width: 26px; height: 2px; background: var(--home-accent); }

.am-home-hero h1 {
    color: #fff;
    font-family: 'Manrope', 'Open Sans', sans-serif;
    font-size: clamp(290%, 5.1vw, 440%);
    font-weight: 800;
    letter-spacing: -.065em;
    line-height: 1.04;
    margin-bottom: 28px;
}
.am-home-hero h1 em { color: #8dd3f5; font-style: normal; }

.am-home-lead {
    max-width: 31em;
    color: #d8e6f3;
    font-size: 115%;
    line-height: 1.65;
    margin-bottom: 34px;
}
.am-home-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.am-home-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    min-height: 54px;
    padding: 14px 23px;
    border-radius: 8px;
    font-size: 100%;
    font-weight: 800;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.am-home-button:hover { transform: translateY(-3px); }
.am-home-button-primary { background: #fff; color: var(--home-blue); border: 1px solid #fff; }
.am-home-button-primary:hover { background: #deeffa; border-color: #deeffa; color: var(--home-blue); }
.am-home-button-secondary { border: 1px solid #8da8c2; color: #fff; }
.am-home-button-secondary:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }
.am-home .am-home-help { margin: 26px 0 0; color: #c6d8e9; font-size: 95%; }
.am-home-help a { margin-left: 5px; color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

.am-home-hero-visual {
    position: relative;
    aspect-ratio: 1175 / 500;
    align-self: center;
    isolation: isolate;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 26px 64px rgba(0,0,0,.23);
    background: #17476a;
}
.am-home-hero-visual::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, transparent 56%, rgba(3,22,42,.78));
}
.am-home-hero-visual > img {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: inherit;
}
.am-home-visual-caption {
    position: absolute;
    bottom: 28px;
    left: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
    font-size: 95%;
    line-height: 1.6;
}
.am-home-visual-caption strong { font-size: 110%; font-weight: 700; }
.am-home-caption-mark { width: 4px; height: 42px; flex: 0 0 auto; border-radius: 3px; background: #73c7f2; }
.am-home-hero-rule { height: 5px; background: linear-gradient(90deg, #0068b4, #2096cd 55%, #c2ebff); }

.am-home-services { padding: clamp(72px, 8vw, 112px) 0; background: #fff; }
.am-home-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 36px;
}
.am-home-section-kicker { color: var(--home-bright); margin-bottom: 14px; }
.am-home-section-heading h2, .am-home-app h2, .am-home-contact h2 {
    color: var(--home-navy);
    font-family: 'Manrope', 'Open Sans', sans-serif;
    font-size: clamp(180%, 3vw, 260%);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.2;
    margin-bottom: 0;
}
.am-home-section-heading > p { max-width: 24em; margin-bottom: 3px; color: #465e76; font-size: 105%; line-height: 1.65; }

.am-home-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--home-line); border-radius: 14px; overflow: hidden; }
.am-home-service { min-height: 280px; padding: 31px; background: #fff; border-right: 1px solid var(--home-line); transition: background .2s ease; }
.am-home-service:last-child { border-right: 0; }
.am-home-service:hover { background: #f4f9fc; }
.am-home-service-number { float: right; color: #607a94; font-size: 85%; font-weight: 800; letter-spacing: .12em; }
.am-home-service-icon { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 30px; color: var(--home-blue); font-size: 1.4rem; border: 1px solid #c7ddeb; border-radius: 11px; background: #ecf6fb; }
.am-home-service h3 { color: var(--home-navy); font-family: 'Manrope', 'Open Sans', sans-serif; font-size: 115%; font-weight: 800; margin-bottom: 9px; }
.am-home-service p { max-width: 25em; color: #465e76; line-height: 1.65; margin-bottom: 0; font-size: 100%; }

.am-home-app { padding: clamp(60px, 7vw, 90px) 0; background: #edf4f8; border-block: 1px solid #dfeaf2; }
.am-home-app-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 60px; }
.am-home-app-copy { max-width: 40em; }
.am-home-app h2 { margin-bottom: 18px; }
.am-home-app-copy > p:last-child { color: #465e76; font-size: 105%; line-height: 1.65; margin-bottom: 0; }
.am-home-app-links { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 14px; }
.am-home-app-links a { display: inline-flex; align-items: center; width: 166px; height: 68px; padding: 8px; border: 1px solid #cfdeeb; border-radius: 9px; background: #fff; transition: transform .18s ease, box-shadow .18s ease; }
.am-home-app-links a:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(16,43,78,.12); }
.am-home-app-links img { display: block; width: 100%; height: auto; max-height: 48px; object-fit: contain; }

.am-home-contact { padding: 60px 0; background: #fff; }
.am-home-contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.am-home-contact h2 { max-width: 23em; font-size: clamp(160%, 2.25vw, 220%); }
.am-home-contact-link { display: inline-flex; gap: 20px; align-items: center; flex: 0 0 auto; color: var(--home-blue); font-size: 100%; font-weight: 800; border-bottom: 2px solid var(--home-bright); padding-bottom: 8px; }
.am-home-contact-link:hover { color: var(--home-bright); }
.am-home-contact-link i { transform: rotate(45deg); font-size: 85%; }

.am-home-footer { padding: 27px 0; color: #e4eef6; background: var(--home-navy); }
.am-home-footer .am-home-version { margin: 0 0 13px; color: #fff; font-size: 95%; font-weight: 800; }
.am-home-footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; font-size: 100%; }
.am-home-footer .am-home-footer-credit { margin: 0; color: #c3d8e9; }
.am-home-footer-credit a { color: #fff; font-weight: 700; }
.am-home-footer-credit a:hover { text-decoration: underline; }
.am-home-footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.am-home-footer-links a { color: #e4eef6; }
.am-home-footer-links a:hover { color: #fff; text-decoration: underline; }
.am-home-footer-socials { display: flex; flex-wrap: wrap; gap: 18px; }
.am-home-footer-socials a { display: inline-flex; align-items: center; gap: 7px; color: #e4eef6; }
.am-home-footer-socials a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 65.625em) {
    .am-home-nav { gap: 16px; }
    .am-home-nav > a:nth-child(3) { display: none; }
    .am-home-hero-grid { gap: 35px; }
    .am-home-app-grid { gap: 30px; }
}

@media (max-width: 47.5em) {
    .am-home-header-inner { min-height: 77px; gap: 14px; }
    .am-home-brand { width: min(48vw, 230px); }
    .am-home-nav > a:not(.am-home-nav-cta) { display: none; }
    .am-home-nav .am-home-nav-cta { padding: 10px 11px; font-size: 90%; gap: 6px; }
    .am-home-hero-grid { grid-template-columns: minmax(0, 1fr); padding-block: 65px; }
    .am-home-hero h1 { font-size: clamp(220%, 10vw, 330%); }
    .am-home-section-heading, .am-home-contact-inner { display: block; }
    .am-home-section-heading > p { max-width: 520px; margin: 15px 0 0; }
    .am-home-service-grid { grid-template-columns: minmax(0, 1fr); }
    .am-home-service { min-height: 0; border-right: 0; border-bottom: 1px solid var(--home-line); }
    .am-home-service:last-child { border-bottom: 0; }
    .am-home-service-icon { margin-bottom: 18px; }
    .am-home-app-grid { grid-template-columns: minmax(0, 1fr); }
    .am-home-app-links { justify-content: flex-start; }
    .am-home-contact-link { margin-top: 23px; }
}

@media (max-width: 24.375em) {
    .am-home-brand { width: 42%; }
    .am-home-nav .am-home-nav-cta { font-size: 90%; }
    .am-home-button { width: 100%; }
    .am-home-visual-caption { left: 18px; bottom: 18px; }
    .am-home-app-links a { width: 145px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .am-home *, .am-home *::before, .am-home *::after { transition-duration: .01ms !important; }
}
