.brand-reveal {
    position: relative;
    display: inline-flex;
    min-height: 48px;
    width: 56px;
    flex-shrink: 0;
    align-items: center;
    gap: 0.55rem;
    overflow: hidden;
    border-radius: 16px;
    text-decoration: none;
    transition: width 260ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.brand-reveal-light {
    background: transparent;
}

.brand-reveal-dark {
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.brand-reveal:hover,
.brand-reveal:focus-visible {
    width: 162px;
    outline: none;
}

.brand-reveal-light:hover,
.brand-reveal-light:focus-visible {
    background: #f0fdfa;
    box-shadow: inset 0 0 0 1px rgba(20, 184, 166, 0.18);
}

.brand-reveal-dark:hover,
.brand-reveal-dark:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.35);
}

.brand-mark {
    position: relative;
    z-index: 2;
    display: inline-flex;
    height: 46px;
    width: 46px;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 118, 110, 0.12);
}

.brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.55);
}

.brand-mark::after {
    content: none;
}

.brand-full {
    display: inline-flex;
    min-width: 96px;
    align-items: center;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 220ms ease, transform 220ms ease;
}

.brand-reveal:hover .brand-full,
.brand-reveal:focus-visible .brand-full {
    opacity: 1;
    transform: translateX(0);
}

.brand-full img {
    display: block;
    height: 40px;
    width: auto;
}

.brand-reveal-dark .brand-full {
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.2rem 0.35rem;
}

.brand-reveal-dark .brand-mark::after {
    box-shadow: 0 0 0 2px #020617;
}

.nav-link {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    border-radius: 8px;
    padding: 0 16px;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 180ms ease, color 180ms ease;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown::after {
    content: "";
    position: absolute;
    left: -0.5rem;
    right: -0.5rem;
    top: 100%;
    height: 16px;
}

.nav-dropdown-trigger {
    gap: 0.4rem;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.nav-dropdown-panel {
    position: absolute;
    left: 50%;
    top: calc(100% + 8px);
    z-index: 60;
    display: grid;
    min-width: 260px;
    transform: translateX(-50%) translateY(8px);
    gap: 0.25rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    padding: 0.7rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel,
.nav-dropdown.is-open .nav-dropdown-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-panel a {
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
    color: #334155;
    font-size: 0.86rem;
    font-weight: 700;
    transition: background-color 160ms ease, color 160ms ease;
}

.nav-dropdown .nav-dropdown-panel.nav-services-panel {
    position: fixed;
    left: 0;
    top: 72px;
    width: 100vw !important;
    max-width: none;
    min-width: 0;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: clamp(3rem, 10vw, 10rem);
    row-gap: 2rem;
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    padding: 2.25rem clamp(3rem, 5vw, 6.5rem) 4rem;
    box-shadow: 0 26px 48px rgba(15, 23, 42, 0.16);
    transform: translateY(8px);
}

.nav-services-panel h2 {
    grid-column: 1 / -1;
    margin: 0 0 0.25rem;
    color: #020617;
    font-size: clamp(2.35rem, 3.25vw, 4rem);
    font-weight: 900;
    line-height: 1;
}

.nav-dropdown:hover .nav-dropdown-panel.nav-services-panel,
.nav-dropdown:focus-within .nav-dropdown-panel.nav-services-panel,
.nav-dropdown.is-open .nav-dropdown-panel.nav-services-panel {
    transform: translateY(0);
}

.nav-service-column {
    min-width: 0;
    border-right: 0;
    padding: 0.25rem 0;
}

.nav-service-stack {
    display: grid;
    align-content: start;
    gap: 2rem;
    min-width: 0;
}

.nav-service-column:last-child {
    border-right: 0;
}

.nav-services-panel .nav-service-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.25rem 0;
    color: #020617;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.nav-services-panel ul {
    margin: 0.25rem 0 0;
    padding: 0;
    list-style: none;
}

.nav-services-panel li + li {
    margin-top: 0.1rem;
}

.nav-services-panel li a {
    display: block;
    padding: 0.32rem 0;
    font-size: 0.95rem;
    line-height: 1.35;
}

.nav-services-panel li a:hover,
.nav-services-panel li a:focus-visible {
    background: transparent;
    color: #0f766e;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.nav-dropdown-panel a:hover,
.nav-dropdown-panel a:focus-visible {
    background: #f0fdfa;
    color: #0f766e;
    outline: none;
}

.nav-link:hover,
.nav-link:focus-visible {
    background: #f0fdfa;
    color: #0f766e;
    outline: none;
}

.nav-link.active {
    background: transparent;
    color: #0f766e;
    box-shadow: inset 0 -2px 0 #0f766e;
}

.mobile-nav-link {
    border-radius: 12px;
    padding: 12px 14px;
    transition: background-color 180ms ease, color 180ms ease;
}

.mobile-services-menu {
    border-radius: 12px;
}

.mobile-services-menu summary {
    display: flex;
    min-height: 48px;
    cursor: pointer;
    list-style: none;
    align-items: center;
    justify-content: space-between;
    border-radius: 12px;
    padding: 12px 14px;
}

.mobile-services-menu summary::-webkit-details-marker {
    display: none;
}

.mobile-services-menu[open] summary {
    background: #f0fdfa;
    color: #0f766e;
}

.mobile-services-menu[open] summary svg {
    transform: rotate(180deg);
}

.mobile-services-groups {
    display: grid;
    gap: 0.85rem;
    padding: 0.85rem 0.4rem 0.25rem;
}

.mobile-service-group {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
}

.mobile-service-group summary {
    min-height: 46px;
    padding: 0.7rem 0.85rem;
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 800;
}

.mobile-service-group[open] summary {
    border-bottom: 1px solid #ccfbf1;
    border-radius: 12px 12px 0 0;
}

.mobile-service-group[open] summary svg {
    transform: rotate(180deg);
}

.mobile-service-category,
.mobile-service-link {
    display: block;
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
}

.mobile-service-category {
    color: #0f766e;
    font-weight: 800;
}

.mobile-service-link {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    color: #475569;
    font-size: 0.84rem;
    font-weight: 600;
}

.mobile-service-link:focus-visible,
.mobile-service-link:hover,
.mobile-service-category:focus-visible,
.mobile-service-category:hover {
    background: #f0fdfa;
    outline: none;
}

@media (max-width: 1279px) {
    .nav-dropdown .nav-dropdown-panel.nav-services-panel {
        display: none;
    }
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
    background: #f0fdfa;
    color: #0f766e;
    outline: none;
}
