/* ==========================================================================
   Site — shared design language (all pages)
   Tokens, type, header glass, page hero and the contact footer.
   Page-specific styles: home.css (home), pages.css (inner pages)
   ========================================================================== */

:root {
    --hm-navy: #000b2e;
    --hm-navy-2: #071647;
    --hm-ink: #000b2e;
    --hm-muted: #5d666f;
    --hm-soft: #f3f5f9;
    --hm-line: rgba(0, 11, 46, 0.12);
    --hm-line-light: rgba(255, 255, 255, 0.14);
    --hm-accent: #4129a8;
    --hm-accent-light: #a497ff;
    --hm-red: #e40c1c;
    --hm-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
    --hm-sans: "Inter", sans-serif;
    --hm-ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Shared ---------- */
.hm-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-family: var(--hm-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--hm-ink);
}

.hm-label--light {
    color: rgba(255, 255, 255, .72);
}

.hm-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--hm-red);
    box-shadow: 0 0 0 4px rgba(228, 12, 28, .18);
}

.hm-title {
    margin: 0;
    font-family: var(--hm-sans);
    font-size: clamp(40px, 5.4vw, 84px);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -.045em;
    color: var(--hm-ink);
}

.hm-title--light {
    color: #fff;
}

.hm-head {
    display: grid;
    grid-template-columns: 1fr minmax(0, 380px);
    align-items: end;
    gap: 40px;
    margin-bottom: 80px;
}

.hm-head__aside {
    margin: 0;
    font-size: 16px;
    line-height: 1.75;
    color: rgba(255, 255, 255, .68);
}

/* Sectors: same columns as the body below, so the intro lines up with the sector texts */
@media (min-width: 992px) {
    .hm-sectors .hm-head {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        gap: 90px;
    }
}

.hm-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 6px;
    font-size: 15px;
    font-weight: 500;
    color: var(--hm-ink);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    transition: gap .3s var(--hm-ease), color .3s;
}

.hm-link::after {
    content: "→";
    transition: transform .3s var(--hm-ease);
}

.hm-link:hover {
    gap: 16px;
    color: var(--hm-accent);
}

.hm-link--light {
    color: #fff;
}

.hm-link--light:hover {
    color: var(--hm-accent-light);
}

/* ---------- Header: iOS-style frosted glass after scrolling ----------
   The blur lives on a pseudo-element: backdrop-filter on the header itself would
   become the containing block of the fixed mobile drawer and clip it. */
.header-1.header-sticky.scrolled-past-header {
    background: transparent;
    border-bottom-color: rgba(255, 255, 255, .08);
}

.header-1.header-sticky.scrolled-past-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(0, 11, 46, .38);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    backdrop-filter: saturate(180%) blur(24px);
    pointer-events: none;
    transition: background-color .4s var(--hm-ease);
}

/* Over light sections the glass turns light and the header content dark (set by home.js) */
.header-1.header-sticky.scrolled-past-header.hm-header-light {
    border-bottom-color: rgba(0, 11, 46, .08);
}

.header-1.header-sticky.scrolled-past-header.hm-header-light::before {
    background: rgba(255, 255, 255, .62);
}

@media (min-width: 992px) {
    .header-1.header-sticky.scrolled-past-header.hm-header-light {
        --color-foreground: #000b2e;
        --color-primary-hover: rgba(0, 11, 46, .6);
        --color-border: rgba(0, 11, 46, .12);
    }
}

.header-1 .header-grid > .menu-link,
.header-1 .header-menu > .nav-item > .menu-link {
    transition: color .4s var(--hm-ease);
}

.header-1.header-sticky.scrolled-past-header .header-grid {
    background: transparent;
}


/* ---------- Footer: contact ---------- */
.hm-footer {
    position: relative;
    overflow: hidden;
    padding: 150px 0 36px;
    color: #fff;
    background:
        radial-gradient(900px 600px at 85% 20%, rgba(65, 41, 168, .25), transparent 70%),
        var(--hm-navy);
}

.hm-contact {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 90px;
    align-items: start;
}

.hm-contact__text {
    max-width: 460px;
    margin: 32px 0 0;
    font-size: 17px;
    line-height: 1.75;
    color: rgba(255, 255, 255, .68);
}

.hm-form {
    display: flex;
    flex-direction: column;
    gap: 34px;
    padding-top: 12px;
}

.hm-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.hm-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}

.hm-field__label {
    font-family: var(--hm-sans);
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, .75);
    transition: color .3s var(--hm-ease);
}

.hm-form input,
.hm-form textarea,
.hm-form input:hover,
.hm-form textarea:hover,
.hm-form input:focus,
.hm-form textarea:focus {
    width: 100%;
    padding: 8px 0 12px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .22);
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-family: var(--hm-sans);
    font-size: 17px;
    transition: border-color .3s var(--hm-ease);
}

.hm-form textarea {
    min-height: 96px;
    resize: none;
}

.hm-form input:focus,
.hm-form textarea:focus {
    border-bottom-color: var(--hm-accent-light);
}

.hm-field:focus-within .hm-field__label {
    color: var(--hm-accent-light);
}

.hm-form__submit {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 30px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 0;
    border-radius: 40px;
    background: #fff;
    color: var(--hm-navy);
    font-family: var(--hm-sans);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: gap .3s var(--hm-ease), color .3s;
}

/* Gradients can't be transitioned: fade a gradient layer instead, so the
   page behind never shows through while the hover state changes */
.hm-form__submit::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, #ff5b6e, #a497ff);
    opacity: 0;
    transition: opacity .3s;
}

.hm-form__submit:hover::before {
    opacity: 1;
}

.hm-form__submit::after {
    content: "→";
}

.hm-form__submit:hover {
    gap: 18px;
    color: #fff;
}

.hm-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 130px;
    padding-top: 28px;
    border-top: 1px solid var(--hm-line-light);
}

.hm-footer__logo img {
    display: block;
    width: 120px;
    height: auto;
}

.hm-footer__copy {
    margin: 0;
    font-family: var(--hm-sans);
    font-size: 14px;
    color: rgba(255, 255, 255, .55);
}

/* ---------- Inner page hero ---------- */
.pg-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    min-height: 360px; /* header ~112px + compact title block */
    padding: 168px 0 56px;
    color: #fff;
    background:
        radial-gradient(900px 600px at 85% 10%, rgba(65, 41, 168, .28), transparent 70%),
        var(--hm-navy);
}

.pg-hero__media {
    position: absolute;
    inset: 0;
    margin: 0;
}

.pg-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .55;
}

/* keep the title readable over any photo */
.pg-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 11, 46, .92) 0%, rgba(0, 11, 46, .6) 55%, rgba(0, 11, 46, .25) 100%),
        linear-gradient(0deg, rgba(0, 11, 46, .7) 0%, transparent 50%);
}

.pg-hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
}

.pg-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
    font-family: var(--hm-sans);
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, .6);
}

.pg-crumbs li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pg-crumbs li + li::before {
    content: "/";
    color: rgba(255, 255, 255, .3);
}

.pg-crumbs a {
    color: rgba(255, 255, 255, .6);
    text-decoration: none;
    transition: color .3s var(--hm-ease);
}

.pg-crumbs a:hover {
    color: #fff;
}

.pg-crumbs [aria-current] {
    color: #fff;
}

.pg-hero .hm-title {
    max-width: 1000px;
    font-size: clamp(40px, 5vw, 76px);
    overflow-wrap: anywhere;
}

.pg-hero__lead {
    max-width: 560px;
    margin: 28px 0 0;
    font-size: 17px;
    line-height: 1.75;
    color: rgba(255, 255, 255, .7);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .hm-head {
        grid-template-columns: 1fr;
        margin-bottom: 50px;
    }

    .hm-footer {
        padding-top: 100px;
    }

    .hm-contact {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hm-footer__bottom {
        margin-top: 90px;
    }

    .pg-hero {
        min-height: 300px;
        padding: 140px 0 44px;
    }
}

@media (max-width: 575px) {
    .hm-form__row {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .hm-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .pg-hero {
        min-height: 0;
        padding: 128px 0 36px;
    }

    .pg-crumbs {
        margin-bottom: 20px;
    }
}

/* ---------- Contact form: reCAPTCHA ---------- */
.hm-recaptcha {
    min-height: 78px;
}

.hm-recaptcha__error {
    margin: -18px 0 0;
    font-size: 14px;
    color: #ff8a96;
}
