/* HF10: exact ACE brand lockup sizing and dark-section contrast support. */

.ace-utility__identity {
    display: flex;
    align-items: center;
    gap: 18px;
}

.ace-meta--since {
    padding-inline-end: 18px;
    border-inline-end: 1px solid rgb(255 255 255 / 25%);
    color: #ff7a81;
    font-family: var(--ace-heading);
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/*
 * The generic layout contains `.ace-logo img { height: 54px; }`.
 * Use a more specific selector so the approved combined logo/name lockup
 * is displayed at its intended size rather than being compressed.
 */
.ace-header .ace-nav {
    min-height: 132px;
}

.ace-header .ace-logo {
    width: min(350px, 32vw);
    max-width: 350px;
    flex: 0 0 auto;
}

.ace-brand-lockup {
    width: 100%;
    min-width: 0;
    display: inline-flex;
    align-items: center;
}

.ace-header .ace-logo .ace-brand-lockup__official {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    display: block;
    object-fit: contain;
    object-position: left center;
}

[dir="rtl"] .ace-header .ace-logo .ace-brand-lockup__official {
    object-position: right center;
}

.ace-brand-lockup--mobile,
.ace-brand-lockup--footer {
    padding: 7px 9px;
    border-radius: 6px;
    background: var(--ace-white);
}

.ace-brand-lockup--mobile .ace-brand-lockup__official {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
}

.ace-mobile-menu__brand .ace-brand-lockup {
    width: min(100%, 330px);
}

.ace-mobile-menu__brand .ace-brand-lockup__official {
    max-width: 100%;
    margin: 0;
    filter: none;
}

.ace-footer__brand > a {
    width: min(100%, 380px);
    display: inline-flex;
    margin-block-end: 20px;
}

.ace-footer__brand .ace-brand-lockup__official {
    width: 100%;
    height: auto;
}

.theme-ace-precision-grid .ace-page-hero h1,
.theme-ace-precision-grid .ace-service-hero h1,
.theme-ace-precision-grid .ace-about-hero h1,
.theme-ace-precision-grid .ace-contact-hero h1,
.theme-ace-precision-grid .ace-project-detail-hero h1,
.theme-ace-precision-grid .ace-capabilities h2,
.theme-ace-precision-grid .ace-capabilities__copy h2,
.theme-ace-precision-grid .ace-quality--about h2,
.theme-ace-precision-grid .ace-quality--about h3,
.theme-ace-precision-grid .ace-dark-cta h2,
.theme-ace-precision-grid .ace-footer__cta h2 {
    color: var(--ace-white) !important;
}

.theme-ace-precision-grid .ace-capabilities h2,
.theme-ace-precision-grid .ace-capabilities__copy h2 {
    text-shadow: 0 3px 18px rgb(0 0 0 / 42%);
}

.theme-ace-precision-grid .ace-page-hero h1,
.theme-ace-precision-grid .ace-service-hero h1,
.theme-ace-precision-grid .ace-about-hero h1,
.theme-ace-precision-grid .ace-contact-hero h1,
.theme-ace-precision-grid .ace-project-detail-hero h1 {
    max-width: 820px;
    font-size: clamp(2.85rem, 5vw, 5.3rem);
    line-height: 1;
    letter-spacing: -.015em;
    text-shadow: 0 4px 24px rgb(0 0 0 / 50%);
    text-wrap: balance;
}

.ace-page-hero--services .ace-page-hero__shade,
.ace-page-hero--projects .ace-page-hero__shade,
.ace-about-hero__shade,
.ace-contact-hero__shade {
    background: linear-gradient(
        90deg,
        rgb(4 23 47 / 98%) 0%,
        rgb(4 23 47 / 84%) 43%,
        rgb(4 23 47 / 18%) 76%
    );
}

[dir="rtl"] .ace-page-hero--services .ace-page-hero__shade,
[dir="rtl"] .ace-page-hero--projects .ace-page-hero__shade,
[dir="rtl"] .ace-about-hero__shade,
[dir="rtl"] .ace-contact-hero__shade {
    background: linear-gradient(
        270deg,
        rgb(4 23 47 / 98%) 0%,
        rgb(4 23 47 / 84%) 43%,
        rgb(4 23 47 / 18%) 76%
    );
}

.ace-page-hero--projects > img {
    object-position: center 45%;
}

.ace-company-overview h2,
.ace-company-story h2,
.ace-vision-mission h2,
.ace-facilities h2,
.ace-purpose-card h3,
.ace-values-grid h3,
.ace-overview-card-grid h3 {
    color: var(--ace-blue-deep);
}

.ace-company-story h2,
.ace-mindset-card h3 {
    color: var(--ace-white);
}

@media (max-width: 1180px) {
    .ace-header .ace-nav {
        min-height: 112px;
    }

    .ace-header .ace-logo {
        width: min(310px, 40vw);
        max-width: 310px;
    }
}

@media (max-width: 620px) {
    .ace-header .ace-nav {
        min-height: 92px;
    }

    .ace-header .ace-logo {
        width: min(245px, calc(100vw - 86px));
        max-width: 245px;
    }

    .ace-brand-lockup--mobile {
        padding: 6px 8px;
    }
}
