:root {
    --dh-white: #ffffff;
    --dh-orange: #ff7f50;
    --dh-orange-bg: rgba(255, 127, 80, .10);
    --dh-text: #374151;
    --dh-text2: #374151;
    --dh-muted: #0000007a;
    --dh-shadow: 0 10px 30px rgba(0, 0, 0, .05);
    --dh-radius-full: 999px;
    --dh-ease: cubic-bezier(.4, 0, .2, 1);
    --dh-ease-sp: cubic-bezier(.34, 1.56, .64, 1);
}

.digno-header,
.digno-header *,
.digno-header *::before,
.digno-header *::after {
    box-sizing: border-box;
}

.digno-header a {
    text-decoration: none;
    color: inherit;
}

.digno-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 68px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 0 40px;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(22px) saturate(180%);
    border-bottom: 1px solid transparent;
    transition: all .3s var(--dh-ease);
    font-family: 'DM Sans', system-ui, sans-serif;
}

.digno-header.scrolled {
    border-color: rgba(0, 0, 0, .08);
    box-shadow: var(--dh-shadow);
}

.digno-header-spacer {
    height: 68px;
}

.dh-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.dh-logo-mark {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 14px;
    padding: 8px;
    background: rgba(255, 255, 255, .76);
    border: 1px solid rgba(17, 17, 17, .06);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--dh-shadow);
    transition: transform .22s var(--dh-ease-sp);
}

.dh-logo-mark:hover {
    transform: scale(1.08) rotate(-3deg);
}

.dh-logo-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.dh-logo-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.15;
}

.dh-logo-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--dh-text);
    letter-spacing: .1px;
    white-space: nowrap;
}

.dh-logo-tag {
    font-size: 11px;
    color: var(--dh-muted);
    font-weight: 400;
    margin-top: 2px;
}

.dh-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dh-nav>a,
.dh-services-trigger {
    padding: 8px 13px;
    border-radius: var(--dh-radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--dh-text2);
    transition: color .2s var(--dh-ease), background .2s var(--dh-ease);
}

.dh-nav>a:hover,
.dh-nav>a.is-active,
.dh-services-dropdown:hover .dh-services-trigger,
.dh-services-dropdown:focus-within .dh-services-trigger,
.dh-services-trigger.is-active {
    color: var(--dh-orange);
    background: var(--dh-orange-bg);
}

.dh-services-dropdown {
    position: relative;
}

.dh-services-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dh-services-trigger .arrow {
    font-size: 10px;
    transition: transform .2s var(--dh-ease);
}

.dh-services-dropdown:hover .arrow,
.dh-services-dropdown:focus-within .arrow,
.dh-services-dropdown.services-open .arrow {
    transform: rotate(180deg);
}

.dh-mega-menu {
    position: fixed;
    top: 82px;
    left: 50vw;
    width: min(760px, calc(100vw - 32px));
    max-height: calc(100vh - 104px);
    overflow-y: auto;
    padding: 22px;
    border: 1px solid rgba(17, 17, 17, .08);
    border-radius: 8px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 24px 70px rgba(17, 24, 39, .12);
    backdrop-filter: blur(18px) saturate(180%);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(10px);
    transition: opacity .2s var(--dh-ease), transform .2s var(--dh-ease), visibility .2s;
}

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

.dh-mega-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.dh-mega-all-link {
    display: none;
}

.dh-mega-header {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 800;
    color: var(--dh-text);
    text-transform: uppercase;
    letter-spacing: .4px;
}

.dh-mega-list {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dh-mega-list a {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 9px 10px;
    border-radius: 8px;
    color: var(--dh-text2);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.35;
    transition: color .2s var(--dh-ease), background .2s var(--dh-ease);
}

.dh-mega-list a:hover {
    color: var(--dh-orange);
    background: var(--dh-orange-bg);
}

.dh-mega-list i {
    width: 15px;
    color: var(--dh-orange);
    text-align: center;
}

.dh-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(17, 17, 17, .08);
    border-radius: 8px;
    background: rgba(255, 255, 255, .86);
    color: var(--dh-text);
    cursor: pointer;
}

.dh-toggle span {
    position: relative;
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: background .2s var(--dh-ease);
}

.dh-toggle span::before,
.dh-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform .2s var(--dh-ease), top .2s var(--dh-ease);
}

.dh-toggle span::before {
    top: -6px;
}

.dh-toggle span::after {
    top: 6px;
}

.digno-header.menu-open .dh-toggle span {
    background: transparent;
}

.digno-header.menu-open .dh-toggle span::before {
    top: 0;
    transform: rotate(45deg);
}

.digno-header.menu-open .dh-toggle span::after {
    top: 0;
    transform: rotate(-45deg);
}

.dh-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
}

.dh-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(17, 17, 17, .06);
    border-radius: var(--dh-radius-full);
    font-size: 11.5px;
    color: var(--dh-text2);
    font-weight: 600;
    white-space: nowrap;
}

.dh-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--dh-orange);
    animation: dhLivePulse 2.5s ease infinite;
}

@keyframes dhLivePulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(26, 138, 74, .4);
    }

    50% {
        box-shadow: 0 0 0 5px transparent;
    }
}

@media (max-width: 1120px) {
    .digno-header {
        gap: 16px;
        padding: 0 24px;
    }

    .dh-pill {
        display: none;
    }
}

@media (max-width: 900px) {
    .digno-header {
        grid-template-columns: 1fr auto;
        height: auto;
        min-height: 68px;
        max-height: 100vh;
        padding: 8px 16px;
        gap: 10px;
        overflow: hidden;
    }

    .dh-logo {
        gap: 10px;
    }

    .dh-logo-mark {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        padding: 6px;
    }

    .dh-logo-name {
        font-size: 12px;
    }

    .dh-logo-tag {
        font-size: 10.5px;
    }

    .dh-toggle {
        display: inline-flex;
    }

    .dh-actions {
        grid-column: 1 / -1;
        display: flex;
        justify-content: center;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        padding: 0;
        pointer-events: none;
        transition: max-height .25s var(--dh-ease), opacity .2s var(--dh-ease), padding .25s var(--dh-ease);
    }

    .digno-header.menu-open .dh-actions {
        max-height: 72px;
        opacity: 1;
        padding-top: 10px;
        pointer-events: auto;
    }

    .dh-pill {
        display: flex;
        width: 100%;
        justify-content: center;
        padding: 12px;
        border-radius: 8px;
        background: rgba(255, 127, 80, .10);
        border-color: rgba(255, 127, 80, .18);
        color: var(--dh-orange);
        font-size: 13px;
    }

    .dh-nav {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        padding: 0;
        pointer-events: none;
        transition: max-height .25s var(--dh-ease), opacity .2s var(--dh-ease), padding .25s var(--dh-ease);
    }

    .digno-header.menu-open .dh-nav {
        max-height: calc(100vh - 168px);
        opacity: 1;
        padding-top: 8px;
        pointer-events: auto;
        overflow-y: auto;
    }

    .dh-nav>a,
    .dh-services-trigger {
        width: 100%;
        justify-content: center;
        text-align: center;
        font-size: 13px;
        padding: 11px 12px;
        white-space: nowrap;
        border: 1px solid rgba(17, 17, 17, .06);
        background: rgba(255, 255, 255, .72);
        border-radius: 8px;
    }

    .dh-services-dropdown {
        display: grid;
        gap: 6px;
    }

    .dh-services-dropdown:not(.services-open) .dh-mega-menu {
        display: none;
    }

    .dh-mega-menu {
        position: static;
        width: 100%;
        max-height: none;
        padding: 12px;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 8px;
        background: rgba(255, 255, 255, .72);
    }

    .dh-mega-all-link {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 12px;
        margin-bottom: 12px;
        border-radius: 8px;
        background: var(--dh-orange);
        color: #ffffff;
        font-size: 13px;
        font-weight: 700;
        text-align: center;
    }

    .dh-mega-all-link:hover {
        color: #ffffff;
        background: #f06f41;
    }

    .dh-services-dropdown:hover .dh-mega-menu,
    .dh-services-dropdown:focus-within .dh-mega-menu {
        transform: none;
    }

    .dh-mega-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .dh-mega-header {
        text-align: center;
    }

    .dh-mega-list a {
        justify-content: flex-start;
        text-align: left;
        white-space: normal;
        background: rgba(255, 255, 255, .65);
    }
}

@media (max-width: 991px) {
    body[data-service] .hero-section {
        padding-top: 32px;
    }
}
