/* =========================================================
   SPIRE DIMENSIONS — MOBILE STABILITY LAYER
   Loaded after all page and shared styles.
   Desktop styles are intentionally untouched.
========================================================= */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

@supports (overflow: clip) {
    html,
    body {
        overflow-x: clip;
    }
}

img,
video,
canvas,
iframe,
svg {
    max-width: 100%;
}

main,
section,
article,
aside,
header,
footer,
nav,
div {
    min-width: 0;
}

/* =========================================================
   SHARED HEADER / FOOTER
========================================================= */
@media (max-width: 1080px) {
    #sharedHeader .spire-navigation {
        max-height: calc(100dvh - 96px);
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 650px) {
    #sharedHeader {
        top: 7px;
        width: calc(100% - 12px);
        height: 64px;
        border-radius: 24px;
    }

    #sharedHeader.header-scrolled {
        top: 4px;
        width: calc(100% - 8px);
        height: 60px;
    }

    #sharedHeader .spire-pill-inner {
        width: calc(100% - 14px);
        gap: 6px;
    }

    #sharedHeader .spire-brand {
        flex: 1 1 auto;
        min-width: 0;
        max-width: calc(100% - 48px);
    }

    #sharedHeader .spire-brand-logo {
        flex: 0 0 auto;
        width: auto;
        height: 38px;
        max-width: 46px;
    }

    #sharedHeader .spire-brand-name {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 12px;
        letter-spacing: .065em;
    }

    #sharedHeader .spire-menu-button {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
    }

    #sharedHeader .spire-navigation {
        top: calc(100% + 7px);
        max-height: calc(100dvh - 84px);
        padding: 20px 18px 22px;
        border-radius: 18px;
    }

    #sharedHeader .spire-navigation > a:not(.spire-mobile-call) {
        padding: 14px 0;
        font-size: 20px;
    }

    #sharedFooter {
        padding: 54px 20px 22px;
    }

    #sharedFooter .footer-grid {
        gap: 30px 16px;
        padding-bottom: 46px;
    }

    #sharedFooter .footer-bottom {
        gap: 8px;
        line-height: 1.7;
    }
}

@media (max-width: 520px) {
    #sharedFooter .footer-grid {
        grid-template-columns: 1fr;
    }

    #sharedFooter .footer-brand {
        grid-column: auto;
    }
}

@media (max-width: 390px) {
    #sharedHeader .spire-brand-logo {
        height: 34px;
        max-width: 42px;
    }

    #sharedHeader .spire-brand-name {
        font-size: 10.5px;
        letter-spacing: .045em;
    }
}

/* =========================================================
   INTERIOR DESIGN PAGE
========================================================= */
@media (max-width: 820px) {
    .interior-page .in-hero-grid {
        min-height: 100svh;
        padding-top: 128px;
        padding-bottom: 92px;
    }

    .interior-page .in-hero h1 {
        font-size: clamp(52px, 13vw, 76px);
        line-height: .9;
        letter-spacing: -.045em;
    }

    .interior-page .in-intro-section,
    .interior-page .in-scope,
    .interior-page .in-feature,
    .interior-page .in-room-section,
    .interior-page .in-materials,
    .interior-page .in-process,
    .interior-page .in-turnkey {
        padding-top: 78px;
        padding-bottom: 82px;
    }

    .interior-page .in-heading {
        gap: 22px;
        margin-bottom: 38px;
    }

    .interior-page .in-feature-grid,
    .interior-page .in-turnkey-grid,
    .interior-page .in-intro-grid {
        gap: 30px;
    }

    .interior-page .in-feature-image img {
        aspect-ratio: 4 / 3;
    }

    .interior-page .in-gallery-card,
    .interior-page .in-gallery-wide,
    .interior-page .in-gallery-tall {
        min-height: 360px;
    }
}

@media (max-width: 620px) {
    .interior-page .in-shell {
        width: calc(100% - 28px);
    }

    .interior-page .in-hero-grid {
        min-height: 100svh;
        padding-top: 108px;
        padding-bottom: 82px;
        gap: 26px;
    }

    .interior-page .in-eyebrow {
        gap: 9px;
        margin-bottom: 20px;
        font-size: 8.5px;
        line-height: 1.5;
        letter-spacing: .13em;
    }

    .interior-page .in-eyebrow span {
        width: 26px;
    }

    .interior-page .in-hero h1 {
        font-size: clamp(45px, 14.5vw, 64px);
        line-height: .9;
        letter-spacing: -.04em;
    }

    .interior-page .in-intro {
        margin-top: 22px;
        font-size: 13.5px;
        line-height: 1.65;
    }

    .interior-page .in-hero-actions {
        margin-top: 28px;
        gap: 17px;
    }

    .interior-page .in-btn {
        min-height: 50px;
        padding: 0 18px;
        gap: 16px;
        font-size: 9.5px;
        letter-spacing: .105em;
    }

    .interior-page .in-text-link {
        font-size: 9px;
    }

    .interior-page .in-hero-bottom {
        width: calc(100% - 28px);
        bottom: 18px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 3px;
        font-size: 7px;
        letter-spacing: .12em;
        line-height: 1.4;
    }

    .interior-page .in-intro-section,
    .interior-page .in-scope,
    .interior-page .in-feature,
    .interior-page .in-room-section,
    .interior-page .in-materials,
    .interior-page .in-process,
    .interior-page .in-turnkey {
        padding-top: 64px;
        padding-bottom: 68px;
    }

    .interior-page .in-intro-copy h2,
    .interior-page .in-heading h2,
    .interior-page .in-feature-copy h2,
    .interior-page .in-material-top h2,
    .interior-page .in-turnkey-copy h2 {
        font-size: clamp(37px, 11.5vw, 46px);
        line-height: 1;
        letter-spacing: -.035em;
    }

    .interior-page .in-intro-copy > p,
    .interior-page .in-feature-copy > p,
    .interior-page .in-turnkey-copy p,
    .interior-page .in-heading-copy {
        font-size: 13.5px;
        line-height: 1.72;
    }

    .interior-page .in-intro-copy > p {
        margin-top: 22px;
    }

    .interior-page .in-intro-note p {
        margin-top: 10px;
        font-size: 17px;
        line-height: 1.45;
    }

    .interior-page .in-heading {
        gap: 18px;
        margin-bottom: 32px;
    }

    .interior-page .in-heading h2 {
        margin-top: 10px;
    }

    .interior-page .in-scope-grid,
    .interior-page .in-material-grid,
    .interior-page .in-gallery {
        grid-template-columns: minmax(0, 1fr);
    }

    .interior-page .in-scope-card {
        min-height: 0;
        padding: 25px 22px 68px;
    }

    .interior-page .in-scope-card h3 {
        margin: 38px 0 11px;
        font-size: 27px;
    }

    .interior-page .in-scope-card p {
        font-size: 13px;
        line-height: 1.7;
    }

    .interior-page .in-mini {
        left: 22px;
        bottom: 20px;
    }

    .interior-page .in-feature-copy h2 {
        margin: 12px 0 22px;
    }

    .interior-page .in-feature-points {
        margin-top: 28px;
    }

    .interior-page .in-feature-points > div {
        min-height: 52px;
        grid-template-columns: 40px 1fr;
    }

    .interior-page .in-feature-points strong {
        font-size: 12px;
        line-height: 1.45;
    }

    .interior-page .in-gallery {
        gap: 12px;
    }

    .interior-page .in-gallery-card,
    .interior-page .in-gallery-wide,
    .interior-page .in-gallery-tall {
        min-height: 315px;
    }

    .interior-page .in-gallery-caption {
        left: 18px;
        right: 18px;
        bottom: 18px;
        grid-template-columns: 30px 1fr;
        gap: 5px;
    }

    .interior-page .in-gallery-caption h3 {
        font-size: 27px;
        line-height: 1.05;
    }

    .interior-page .in-material-top {
        gap: 18px;
        margin-bottom: 30px;
    }

    .interior-page .in-material-card {
        min-height: 210px;
        padding: 20px;
    }

    .interior-page .in-material-card span {
        font-size: 11px;
    }

    .interior-page .in-material-card small {
        font-size: 16px;
    }

    .interior-page .in-process-row {
        min-height: 0;
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 10px 12px;
        padding: 22px 0;
    }

    .interior-page .in-process-row h3 {
        font-size: 21px;
        line-height: 1.15;
    }

    .interior-page .in-process-row p {
        grid-column: 2;
        font-size: 12.5px;
        line-height: 1.65;
    }

    .interior-page .in-process-row:hover {
        padding-inline: 0;
    }

    .interior-page .in-turnkey-copy h2 {
        margin: 12px 0 20px;
    }

    .interior-page .in-turnkey-copy .in-btn {
        margin-top: 22px;
    }

    .interior-page .in-turnkey-stack > div {
        min-height: 54px;
        grid-template-columns: 40px 1fr;
    }

    .interior-page .in-turnkey-stack strong {
        font-size: 12px;
        line-height: 1.4;
    }

    .interior-page .in-final-cta {
        min-height: 540px;
    }

    .interior-page .in-final-content {
        padding: 76px 0;
    }

    .interior-page .in-final-content h2 {
        margin: 14px 0 22px;
        font-size: clamp(43px, 13vw, 56px);
        line-height: .94;
        letter-spacing: -.035em;
    }

    .interior-page .in-final-content > p:not(.in-eyebrow) {
        font-size: 13px;
        line-height: 1.7;
    }
}

@media (max-width: 390px) {
    .interior-page .in-shell {
        width: calc(100% - 24px);
    }

    .interior-page .in-hero-grid {
        padding-top: 100px;
        padding-bottom: 76px;
    }

    .interior-page .in-hero h1 {
        font-size: clamp(42px, 14vw, 54px);
    }

    .interior-page .in-intro-copy h2,
    .interior-page .in-heading h2,
    .interior-page .in-feature-copy h2,
    .interior-page .in-material-top h2,
    .interior-page .in-turnkey-copy h2 {
        font-size: 37px;
    }

    .interior-page .in-gallery-card,
    .interior-page .in-gallery-wide,
    .interior-page .in-gallery-tall {
        min-height: 285px;
    }

    .interior-page .in-final-content h2 {
        font-size: 43px;
    }
}

/* =========================================================
   SERVICES PAGE — KEEP CARDS COMFORTABLE ON PHONES
========================================================= */
@media (max-width: 650px) {
    .services-hero,
    .services-section,
    .services-process,
    .stats-section,
    .consultation-section {
        overflow-x: hidden;
    }

    .services-section .services-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .services-section .service-card,
    .services-section .service-info,
    .services-section .service-image {
        min-width: 0;
        max-width: 100%;
    }

    .services-section .service-info {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* =========================================================
   SAFE TOUCH / TEXT BEHAVIOUR
========================================================= */
@media (max-width: 650px) {
    a,
    button,
    input,
    select,
    textarea {
        -webkit-tap-highlight-color: transparent;
    }

    h1,
    h2,
    h3,
    p,
    a,
    span {
        overflow-wrap: break-word;
    }
}

/* =========================================================
   MOBILE NAVIGATION — STABLE OPEN MENU
   The menu interaction is owned by header.js only.
========================================================= */
@media (max-width: 1080px) {
    #sharedHeader {
        overflow: visible !important;
    }

    #sharedHeader .spire-pill-inner {
        position: relative;
    }

    #sharedHeader .spire-menu-button {
        position: relative;
        z-index: 4;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    #sharedHeader .spire-navigation {
        z-index: 3;
        scrollbar-width: thin;
        scrollbar-color: rgba(214, 174, 96, .58) transparent;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    #sharedHeader .spire-navigation::-webkit-scrollbar {
        width: 4px;
    }

    #sharedHeader .spire-navigation::-webkit-scrollbar-thumb {
        background: rgba(214, 174, 96, .58);
        border-radius: 999px;
    }

    #sharedHeader .spire-navigation.open {
        display: flex;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

@media (max-width: 650px) {
    #sharedHeader .spire-navigation {
        left: 0;
        right: auto;
        width: 100%;
        max-width: none;
        max-height: calc(100dvh - 82px);
        padding: 18px 17px 18px;
        border-radius: 18px;
        background: rgba(6, 7, 7, .985);
        box-shadow: 0 24px 60px rgba(0, 0, 0, .58);
    }

    #sharedHeader .spire-mobile-label {
        padding: 1px 2px 10px;
        font-size: 8px;
        line-height: 1.3;
        letter-spacing: .20em;
    }

    #sharedHeader .spire-navigation > a:not(.spire-mobile-call) {
        min-height: 46px;
        padding: 12px 2px;
        justify-content: flex-start;
        font-size: 18px;
        line-height: 1.1;
    }

    #sharedHeader .spire-navigation > a:not(.spire-mobile-call):last-of-type {
        border-bottom-color: rgba(255,255,255,.08);
    }

    #sharedHeader .spire-mobile-call {
        min-height: 48px;
        margin-top: 15px;
        padding: 6px;
        grid-template-columns: 32px minmax(0, 1fr) 32px;
        gap: 9px;
        font-size: 12px;
    }

    #sharedHeader .spire-mobile-phone-icon,
    #sharedHeader .spire-mobile-call-arrow {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 390px) {
    #sharedHeader .spire-navigation {
        max-height: calc(100dvh - 76px);
        padding: 15px 14px 16px;
    }

    #sharedHeader .spire-navigation > a:not(.spire-mobile-call) {
        min-height: 42px;
        padding: 10px 2px;
        font-size: 16.5px;
    }

    #sharedHeader .spire-mobile-call {
        min-height: 44px;
        margin-top: 12px;
        font-size: 11.5px;
    }
}

@media (max-height: 560px) and (max-width: 1080px) {
    #sharedHeader .spire-navigation {
        max-height: calc(100dvh - 78px);
        padding-top: 12px;
        padding-bottom: 12px;
    }

    #sharedHeader .spire-navigation > a:not(.spire-mobile-call) {
        min-height: 38px;
        padding-top: 8px;
        padding-bottom: 8px;
        font-size: 16px;
    }

    #sharedHeader .spire-mobile-call {
        margin-top: 10px;
    }
}

/* =========================================================
   FINAL MOBILE HEADER — BRAND + PHONE + HAMBURGER
   Keeps the complete Spire identity visible while restoring
   the navigation trigger on phones. Desktop remains unchanged.
========================================================= */
@media (max-width: 768px) {
    #sharedHeader {
        overflow: visible !important;
    }

    #sharedHeader .spire-pill-inner {
        position: relative;
        width: calc(100% - 14px);
        padding: 0 1px;
        gap: 6px;
    }

    /* Brand stays complete: logo + SPIRE / DIMENSIONS / tagline */
    #sharedHeader .spire-brand {
        display: inline-flex !important;
        flex: 1 1 auto;
        min-width: 0;
        max-width: none;
        gap: 5px;
        overflow: visible;
    }

    #sharedHeader .spire-brand-logo,
    #sharedHeader.header-scrolled .spire-brand-logo {
        height: 39px;
        max-width: 44px;
        flex: 0 0 auto;
    }

    #sharedHeader .spire-brand::after {
        display: block;
        height: 28px;
        margin-left: 0;
        flex: 0 0 1px;
    }

    #sharedHeader .spire-brand-copy {
        display: flex !important;
        min-width: 0;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 2px;
    }

    #sharedHeader .spire-brand-name,
    #sharedHeader.header-scrolled .spire-brand-name {
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        gap: 1px;
        max-width: none;
        line-height: 1.02;
        white-space: nowrap;
    }

    #sharedHeader .spire-brand-spire {
        display: block;
        font-size: 12.6px;
        line-height: 1;
        letter-spacing: .10em;
    }

    #sharedHeader .spire-brand-dimensions {
        display: block;
        font-size: 9.1px;
        line-height: 1;
        letter-spacing: .065em;
    }

    #sharedHeader .spire-brand-tagline {
        display: block !important;
        margin-top: 1px;
        font-size: 6.1px;
        line-height: 1.1;
        font-weight: 500;
        letter-spacing: .025em;
        white-space: nowrap;
    }

    /* Compact tap-to-call control */
    #sharedHeader .spire-phone-button {
        display: inline-flex !important;
        flex: 0 0 auto;
        min-width: 0;
        width: auto;
        min-height: 36px;
        height: 36px;
        margin: 0;
        padding: 0 7px 0 5px;
        gap: 4px;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
    }

    #sharedHeader .spire-phone-icon {
        width: 21px;
        height: 21px;
        flex: 0 0 21px;
    }

    #sharedHeader .spire-phone-icon svg {
        width: 11px;
        height: 11px;
    }

    #sharedHeader .spire-phone-number {
        font-size: 9.4px;
        line-height: 1;
        font-weight: 700;
        letter-spacing: 0;
        white-space: nowrap;
    }

    #sharedHeader .spire-phone-arrow {
        display: none !important;
    }

    /* Restore hamburger beside the phone number. */
    #sharedHeader .spire-menu-button {
        display: flex !important;
        flex: 0 0 36px;
        width: 36px;
        height: 36px;
        margin: 0;
        gap: 4px;
        position: relative;
        z-index: 8;
    }

    #sharedHeader .spire-menu-button span {
        width: 16px;
    }

    /* Desktop consultation button remains hidden on phones. */
    #sharedHeader .spire-consultation-button {
        display: none !important;
    }

    /* Navigation remains hidden until hamburger is opened. */
    #sharedHeader .spire-navigation {
        display: flex !important;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: auto;
        width: 100%;
        max-width: none;
        max-height: calc(100dvh - 90px);
        padding: 18px 17px 18px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        border-radius: 18px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px);
        z-index: 7;
    }

    #sharedHeader .spire-navigation.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    /* Phone is already visible in the header, so don't duplicate it in the menu. */
    #sharedHeader .spire-mobile-call {
        display: none !important;
    }

    /* Keep consultation available inside the menu without crowding the header. */
    #sharedHeader .spire-mobile-consultation {
        display: grid !important;
        grid-template-columns: 30px minmax(0, 1fr) 28px;
        gap: 8px;
        min-height: 44px;
        margin-top: 14px;
        padding: 6px;
        font-size: 10.5px;
        line-height: 1.15;
    }

    #sharedHeader .spire-mobile-consultation-icon,
    #sharedHeader .spire-mobile-consultation-arrow {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 370px) {
    #sharedHeader .spire-pill-inner {
        width: calc(100% - 10px);
        gap: 4px;
    }

    #sharedHeader .spire-brand {
        gap: 4px;
    }

    #sharedHeader .spire-brand-logo,
    #sharedHeader.header-scrolled .spire-brand-logo {
        height: 35px;
        max-width: 39px;
    }

    #sharedHeader .spire-brand::after {
        height: 25px;
    }

    #sharedHeader .spire-brand-spire {
        font-size: 11.6px;
        letter-spacing: .075em;
    }

    #sharedHeader .spire-brand-dimensions {
        font-size: 8.3px;
        letter-spacing: .045em;
    }

    #sharedHeader .spire-brand-tagline {
        font-size: 5.7px;
        letter-spacing: 0;
    }

    #sharedHeader .spire-phone-button {
        height: 34px;
        min-height: 34px;
        padding: 0 5px 0 4px;
        gap: 3px;
    }

    #sharedHeader .spire-phone-icon {
        width: 19px;
        height: 19px;
        flex-basis: 19px;
    }

    #sharedHeader .spire-phone-number {
        font-size: 8.6px;
    }

    #sharedHeader .spire-menu-button {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
    }
}

/* =========================================================
   SERVICES MOBILE ACCORDION — FINAL OVERRIDE
   The desktop Services dropdown stays unchanged. On tablets
   and phones it becomes a reliable in-menu accordion.
========================================================= */
@media (max-width: 1080px) {
    #sharedHeader .spire-services-menu,
    #sharedHeader.header-scrolled .spire-services-menu {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        flex: 0 0 auto !important;
        position: relative !important;
    }

    #sharedHeader .spire-services-trigger {
        display: flex !important;
        width: 100% !important;
        min-height: 46px !important;
        height: auto !important;
        margin: 0 !important;
        padding: 12px 2px !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 14px !important;
        border: 0 !important;
        border-bottom: 1px solid rgba(255,255,255,.08) !important;
        border-radius: 0 !important;
        background: transparent !important;
        color: rgba(255,255,255,.90) !important;
        font-family: "Playfair Display", Georgia, serif !important;
        font-size: 18px !important;
        font-weight: 400 !important;
        line-height: 1.1 !important;
        letter-spacing: .02em !important;
        text-align: left !important;
        text-transform: none !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: transparent !important;
        touch-action: manipulation !important;
    }

    #sharedHeader .spire-services-trigger::after {
        display: none !important;
    }

    #sharedHeader .spire-services-trigger:hover,
    #sharedHeader .spire-services-trigger.active,
    #sharedHeader .spire-services-trigger[aria-current="page"],
    #sharedHeader .spire-services-menu.is-open .spire-services-trigger {
        color: #e4ba62 !important;
        transform: none !important;
    }

    #sharedHeader .spire-services-chevron {
        display: block !important;
        width: 14px !important;
        height: 14px !important;
        flex: 0 0 14px !important;
        color: #d9ad52 !important;
        transition: transform .24s ease !important;
    }

    #sharedHeader .spire-services-menu.is-open .spire-services-chevron {
        transform: rotate(180deg) !important;
    }

    /* Closed: remove the submenu from layout completely. */
    #sharedHeader .spire-services-dropdown {
        display: none !important;
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        max-width: none !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 7px 0 9px 13px !important;
        overflow: visible !important;
        border: 0 !important;
        border-left: 1px solid rgba(213,171,85,.32) !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
        transition: none !important;
        z-index: auto !important;
    }

    /* Open: services are part of normal nav flow, pushing Projects down. */
    #sharedHeader .spire-services-menu.is-open .spire-services-dropdown {
        display: block !important;
    }

    #sharedHeader .spire-services-dropdown-head {
        display: none !important;
    }

    #sharedHeader .spire-services-dropdown > a:not(.spire-services-all) {
        display: grid !important;
        grid-template-columns: 22px minmax(0,1fr) 24px !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        min-height: 42px !important;
        margin: 0 !important;
        padding: 7px 2px 7px 4px !important;
        border: 0 !important;
        border-bottom: 1px solid rgba(255,255,255,.055) !important;
        border-radius: 0 !important;
        background: transparent !important;
        color: rgba(255,255,255,.76) !important;
        text-decoration: none !important;
        transform: none !important;
    }

    #sharedHeader .spire-services-dropdown > a:not(.spire-services-all):active,
    #sharedHeader .spire-services-dropdown > a:not(.spire-services-all):hover,
    #sharedHeader .spire-services-dropdown > a:not(.spire-services-all).active,
    #sharedHeader .spire-services-dropdown > a:not(.spire-services-all)[aria-current="page"] {
        color: #edca80 !important;
        background: rgba(211,170,82,.055) !important;
        transform: none !important;
    }

    #sharedHeader .spire-service-no {
        color: rgba(220,181,103,.62) !important;
        font-family: "DM Sans", Arial, sans-serif !important;
        font-size: 7.5px !important;
        font-weight: 700 !important;
        letter-spacing: .10em !important;
    }

    #sharedHeader .spire-service-copy {
        display: block !important;
        min-width: 0 !important;
    }

    #sharedHeader .spire-service-copy strong {
        display: block !important;
        overflow: visible !important;
        color: inherit !important;
        font-family: "DM Sans", Arial, sans-serif !important;
        font-size: 11.5px !important;
        font-weight: 500 !important;
        line-height: 1.22 !important;
        letter-spacing: .01em !important;
        text-overflow: clip !important;
        white-space: normal !important;
    }

    #sharedHeader .spire-service-copy small {
        display: none !important;
    }

    #sharedHeader .spire-service-arrow {
        display: grid !important;
        place-items: center !important;
        width: 22px !important;
        height: 22px !important;
        border: 1px solid rgba(216,177,98,.28) !important;
        border-radius: 50% !important;
        color: #d8b266 !important;
        font-size: 9px !important;
    }

    #sharedHeader .spire-services-all {
        display: flex !important;
        width: 100% !important;
        min-height: 38px !important;
        margin: 7px 0 0 !important;
        padding: 0 7px !important;
        align-items: center !important;
        justify-content: space-between !important;
        border: 1px solid rgba(213,173,94,.20) !important;
        border-radius: 8px !important;
        background: rgba(216,176,96,.035) !important;
        color: #d9b568 !important;
        font-family: "DM Sans", Arial, sans-serif !important;
        font-size: 7.5px !important;
        font-weight: 700 !important;
        letter-spacing: .11em !important;
        text-transform: uppercase !important;
    }

    /* Let the full expanded accordion be reached on short screens. */
    #sharedHeader .spire-navigation {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain !important;
        -webkit-overflow-scrolling: touch !important;
    }
}

@media (max-width: 390px) {
    #sharedHeader .spire-services-trigger {
        min-height: 42px !important;
        padding: 10px 2px !important;
        font-size: 16.5px !important;
    }

    #sharedHeader .spire-services-dropdown {
        padding-left: 10px !important;
    }

    #sharedHeader .spire-services-dropdown > a:not(.spire-services-all) {
        min-height: 39px !important;
        grid-template-columns: 20px minmax(0,1fr) 22px !important;
        gap: 6px !important;
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }

    #sharedHeader .spire-service-copy strong {
        font-size: 10.7px !important;
    }
}


/* =========================================================
   MOBILE SERVICES TRIGGER — CENTERED LABEL + ADJACENT ARROW
   Final correction: keep Services and its chevron together
   as one centered clickable control on mobile/tablet.
========================================================= */
@media (max-width: 1080px) {
    #sharedHeader .spire-services-menu,
    #sharedHeader.header-scrolled .spire-services-menu {
        overflow: visible !important;
    }

    #sharedHeader .spire-services-trigger {
        display: flex !important;
        width: 100% !important;
        min-height: 50px !important;
        padding: 12px 8px !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        text-align: center !important;
        position: relative !important;
        z-index: 3 !important;
        cursor: pointer !important;
        pointer-events: auto !important;
    }

    #sharedHeader .spire-services-trigger > span {
        display: inline-block !important;
        flex: 0 0 auto !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: center !important;
        pointer-events: none !important;
    }

    #sharedHeader .spire-services-chevron {
        display: block !important;
        flex: 0 0 13px !important;
        width: 13px !important;
        height: 13px !important;
        margin: 1px 0 0 0 !important;
        position: static !important;
        inset: auto !important;
        pointer-events: none !important;
        transform-origin: 50% 50% !important;
    }

    #sharedHeader .spire-services-menu.is-open .spire-services-chevron {
        transform: rotate(180deg) !important;
    }

    /* The accordion itself must remain reachable and clickable. */
    #sharedHeader .spire-services-dropdown,
    #sharedHeader .spire-services-dropdown a {
        pointer-events: auto !important;
    }
}

@media (max-width: 390px) {
    #sharedHeader .spire-services-trigger {
        min-height: 46px !important;
        padding: 10px 6px !important;
        gap: 7px !important;
    }

    #sharedHeader .spire-services-chevron {
        flex-basis: 12px !important;
        width: 12px !important;
        height: 12px !important;
    }
}
