/* =========================================================
   COMPASS / LOVABLE MEGA MENU
   ========================================================= */

:root {
    --wr-background: #faf9f5;
    --wr-foreground: #26272d;

    --wr-card: #ffffff;
    --wr-secondary: #ececed;
    --wr-secondary-dark: #e3e3e5;

    --wr-primary: #ffc800;
    --wr-primary-dark: #f5bd00;

    --wr-border: #dedee1;
    --wr-muted: #6d6e74;

    --wr-shadow:
        0 10px 30px rgba(0, 0, 0, .18);

    --wr-shadow-heavy:
        0 18px 50px rgba(0, 0, 0, .22);

    --wr-radius: 18px;
    --wr-transition:
        cubic-bezier(.16, 1, .3, 1);
}


/* =========================================================
   HEADER
   ========================================================= */

.wr-mega-header {
    position: relative;
    z-index: 9999;

    width: 100%;
    padding: 16px 16px;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: var(--wr-foreground);
}


/* =========================================================
   NAV
   ========================================================= */

.wr-mega-nav {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    max-width: 1280px;

    height: 64px;

    margin: 0 auto;

    padding: 0 8px 0 8px;

    border: 1px solid rgba(0, 0, 0, .08);

    border-radius: 999px;

    background: rgba(255, 255, 255, .92);

    box-shadow: var(--wr-shadow);

    backdrop-filter: blur(15px);

    -webkit-backdrop-filter: blur(15px);
}


/* =========================================================
   LOGO
   ========================================================= */

.wr-mega-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 15px 0 15px;
    border-radius: 999px;
    background: #000000;
    color: #111;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    transition: transform .3s ease;
}

.wr-logo-icon {
    display: grid;

    width: 32px;
    height: 32px;

    place-items: center;

    border-radius: 50%;

    background:
        var(--wr-primary);

    color: #111;
}

.wr-logo-icon svg {
    width: 16px;
    height: 16px;
}


/* =========================================================
   MAIN NAVIGATION
   ========================================================= */

.wr-main-navigation {
    display: flex;
    align-items: center;

    gap: 4px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.wr-main-nav-item {
    position: relative;
    list-style: none;
}

a.wr-mega-logo img {
    height: 45px;
    border-radius: 10px;
}

.wr-main-nav-trigger {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    height: 42px;

    padding:
        0 14px;

    border: 0;
    border-radius: 999px;

    background: transparent;

    color: var(--wr-foreground);

    font-family: inherit;
    font-size: 15px;
    font-weight: 400;

    cursor: pointer;

    transition:
        background .3s ease,
        color .3s ease,
        transform .3s ease;
}

.wr-main-nav-trigger:hover {
    background:
        var(--wr-secondary);
}

.wr-main-nav-item.is-active
.wr-main-nav-trigger, .wr-main-nav-trigger:hover {
    background:
        #24252a;
    color: #fff;
}

.wr-nav-icon {
    display: inline-flex;
    width: 20px;
}

.wr-nav-icon svg {
    width: 16px;
    height: 16px;

    transition:
        transform .3s ease;
}

.wr-main-nav-trigger:hover
.wr-nav-icon svg {
    transform:
        rotate(-12deg)
        scale(1.1);
}


/* Custom uploaded menu icons */
.wr-custom-menu-icon {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Sidebar category icons */
.wr-category-icon img {
    width: 22px;
    height: 22px;
}

/* Service icons */
.wr-service-icon img {
    width: 20px;
    height: 20px;
}

/* Feature panel custom icon */
.wr-feature-custom-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* Keep Lucide icons aligned */
.wr-category-icon,
.wr-service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wr-nav-chevron {
    display: inline-flex;

    transition:
        transform .3s ease;
}

.wr-main-nav-item.is-active
.wr-nav-chevron {
    transform:
        rotate(180deg);
}

.wr-nav-chevron svg {
    width: 14px;
    height: 14px;
}


/* =========================================================
   QUOTE BUTTON
   ========================================================= */

.wr-mega-quote {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    height: 48px;

    padding:
        0 8px 0 20px;

    border-radius: 999px;

    background:
        var(--wr-primary);

    color: #111;

    text-decoration: none;

    font-size: 15px;
    font-weight: 700;

    white-space: nowrap;

    transition:
        transform .3s ease;
}

.wr-mega-quote:hover {
    transform:
        translateY(-1px);
}

.wr-quote-arrow {
    display: grid;

    width: 32px;
    height: 32px;

    place-items: center;

    border-radius: 50%;

    background:
        #fff;

    transition:
        transform .3s ease;
}

.wr-mega-quote:hover
.wr-quote-arrow {
    transform:
        rotate(45deg);
}

.wr-quote-arrow svg {
    width: 15px;
    height: 15px;
}


/* =========================================================
   MEGA PANEL
   ========================================================= */

.wr-mega-panel-wrapper {
    position: absolute;

    top: 100%;
    left: 16px;
    right: 16px;

    padding-top: 12px;

    visibility: hidden;
    opacity: 0;

    pointer-events: none;

    transform:
        translateY(-10px)
        scale(.985);

    transition:
        opacity .3s ease,
        transform .45s var(--wr-transition),
        visibility .3s ease;
}

.wr-mega-panel-wrapper.is-open {
    visibility: visible;
    opacity: 1;

    pointer-events: auto;

    transform:
        translateY(0)
        scale(1);
}

.wr-mega-panel {
    width: 100%;
    max-width: 1280px;

    margin: 0 auto;

    padding: 12px;

    border:
        1px solid var(--wr-border);

    border-radius:
        28px;

    background:
        #fff;

    box-shadow:
        var(--wr-shadow-heavy);
}

.wr-mega-panel-inner {
    display: grid;

    grid-template-columns:
        minmax(220px, 3fr)
        minmax(400px, 6fr)
        minmax(220px, 3fr);

    gap: 12px;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.wr-mega-sidebar {
    min-width: 0;
}

.wr-sidebar-inner {
    display: flex;
    flex-direction: column;

    gap: 4px;

    height: 100%;

    padding: 8px;

    border-radius:
        18px;

    background:
        var(--wr-secondary);
}

.wr-mega-category {
    display: flex;
    align-items: center;

    gap: 12px;

    width: 100%;

    padding: 12px;

    border: 0;
    border-radius: 12px;

    background: transparent;

    text-align: left;

    color: var(--wr-foreground);

    cursor: pointer;

    transition:
        background .3s ease,
        box-shadow .3s ease,
        transform .3s ease;
}

.wr-mega-category:hover {
    transform:
        translateX(2px);
}

.wr-mega-category.is-selected {
    background:
        #fff;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, .10);
}

.wr-category-icon {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 11px;
    background: #fff;
    transition: background .3s ease, transform .3s ease;
    padding: 5px;
}

.wr-feature-icon img {
    width: 60px !important;
    height: 60px;
}

.wr-main-nav-trigger:hover .wr-nav-icon,
.wr-main-nav-trigger:focus-visible .wr-nav-icon, .wr-main-nav-item.is-active .wr-main-nav-trigger .wr-nav-icon {
  filter: brightness(0) invert(1) !important;
}

.wr-mega-category.is-selected
.wr-category-icon {
    background:
        var(--wr-primary);
}

.wr-mega-category:hover
.wr-category-icon {
    transform:
        scale(1.03);
}

.wr-category-icon svg {
    width: 19px;
    height: 19px;
}

.wr-category-copy {
    display: block;

    min-width: 0;
}

.wr-category-copy strong {
    display: block;

    font-size: 15px;
    line-height: 1.25;
}

.wr-category-copy small {
    display: block;

    margin-top: 3px;

    color: var(--wr-muted);

    font-size: 12px;
}


/* =========================================================
   CONTENT
   ========================================================= */

.wr-mega-content {
    min-width: 0;
}

.wr-mega-content-inner {
    padding: 16px;
}

.wr-content-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 16px;
}

.wr-content-tag {
    margin: 0 0 4px;

    color: var(--wr-muted);

    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing:
        .14em;
}

.wr-content-heading h3 {
    margin: 0;

    color: var(--wr-foreground);

    font-size: 26px;
    line-height: 1.1;

    font-weight: 700;
}

.wr-view-all {
    display: inline-flex;
    align-items: center;

    padding:
        7px 13px;

    border:
        1px solid var(--wr-border);

    border-radius:
        999px;

    color: var(--wr-foreground);

    text-decoration: none;

    font-size: 12px;
    font-weight: 700;

    transition:
        background .25s ease,
        transform .25s ease;
}

.wr-view-all:hover {
    background:
        var(--wr-primary);

    transform:
        translateY(-1px);
}


/* =========================================================
   SERVICES
   ========================================================= */

.wr-services-grid {
    display: grid;

    grid-template-columns: 1fr;

    gap: 4px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.wr-services-grid-2 {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
}

.wr-service-item {
    opacity: 0;
    list-style: none;
    animation:
        wr-service-rise
        .45s var(--wr-transition)
        var(--item-delay)
        forwards;
}

@keyframes wr-service-rise {

    0% {
        opacity: 0;

        transform:
            translateY(8px);
    }

    100% {
        opacity: 1;

        transform:
            translateY(0);
    }

}

.wr-service-link {
    position: relative;

    display: flex;
    align-items: center;

    gap: 12px;

    min-height: 48px;

    padding: 8px;

    border:
        1px solid transparent;

    border-radius: 12px;

    color: var(--wr-foreground);

    text-decoration: none;

    font-size: 15px;

    transition:
        background .3s ease,
        border-color .3s ease,
        transform .3s ease;
}

.wr-service-link:hover {
    border-color:
        var(--wr-border);

    background:
        #fff9dc;

    transform:
        translateY(-2px);
}

.wr-service-icon {
    display: grid;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 8px;
    background: var(--wr-secondary) !important;
    transition: background .3s ease, transform .3s ease;
    padding: 5px;
}

.wr-service-link:hover
.wr-service-icon {
    background:
        var(--wr-primary);

    transform:
        rotate(6deg);
}

.wr-service-icon svg {
    width: 16px;
    height: 16px;
}

.wr-service-name {
    flex: 1;
}

.wr-service-arrow {
    width: 16px;
    height: 16px;

    opacity: 0;

    transform:
        translateX(-4px);

    transition:
        opacity .3s ease,
        transform .3s ease;
}

.wr-service-link:hover
.wr-service-arrow {
    opacity: 1;

    transform:
        translateX(0);
}


/* =========================================================
   FEATURE
   ========================================================= */

.wr-mega-feature {
    min-width: 0;
}

.wr-feature-stack {
    display: flex;
    flex-direction: column;

    gap: 12px;

    height: 100%;
}

.wr-feature-visual {
    position: relative;

    display: grid;

    min-height: 280px;

    flex: 1;

    place-items: center;

    overflow: hidden;

    border-radius:
        16px;

    background:
        var(--wr-primary);
}

.wr-feature-dots {
    position: absolute;
    inset: 0;

    opacity: .65;

    background-image:
        radial-gradient(
            rgba(0, 0, 0, .14) 1px,
            transparent 1px
        );

    background-size:
        14px 14px;
}

.wr-feature-ring {
    position: absolute;

    border:
        2px dashed rgba(0, 0, 0, .20);

    border-radius: 50%;

    animation:
        wr-spin 18s linear infinite;
}

.wr-feature-ring-large {
    width: 230px;
    height: 230px;
}

.wr-feature-ring-small {
    width: 150px;
    height: 150px;

    border-style: solid;

    animation-direction:
        reverse;
}

@keyframes wr-spin {

    to {
        transform:
            rotate(360deg);
    }

}

.wr-feature-icon {
    position: relative;
    z-index: 2;

    display: grid;

    width: 80px;
    height: 80px;

    place-items: center;

    border-radius:
        24px;

    background:
        #fff;

    box-shadow:
        0 15px 30px rgba(0, 0, 0, .15);

    animation:
        wr-rise .45s var(--wr-transition);
}

.wr-feature-icon svg {
    width: 36px;
    height: 36px;

    stroke-width: 1.6;
}

.wr-feature-dot {
    position: absolute;

    animation:
        wr-float 6s ease-in-out infinite;
}

.wr-feature-dot-one {
    top: 18px;
    left: 28px;

    width: 16px;
    height: 16px;

    border-radius: 50%;

    background:
        #fff;
}

.wr-feature-dot-two {
    right: 38px;
    top: 38px;

    width: 12px;
    height: 12px;

    border-radius: 50%;

    background:
        #111;

    animation-delay:
        -4s;
}

.wr-feature-dot-three {
    right: 32px;
    bottom: 32px;

    width: 24px;
    height: 24px;

    border-radius: 4px;

    background:
        rgba(255, 255, 255, .75);

    animation-delay:
        -2s;
}

@keyframes wr-float {

    0%,
    100% {
        transform:
            translate(0, 0)
            rotate(0);
    }

    50% {
        transform:
            translate(10px, -14px)
            rotate(8deg);
    }

}

.wr-strategy-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 56px;

    padding:
        0 16px;

    border-radius:
        14px;

    background:
        var(--wr-secondary);

    color:
        var(--wr-foreground);

    text-decoration:
        none;

    font-size:
        15px;

    font-weight:
        700;
}

.wr-strategy-cta svg {
    width: 20px;
    height: 20px;

    transition:
        transform .3s ease;
}

.wr-strategy-cta:hover
svg {
    transform:
        rotate(45deg);
}


/* =========================================================
   MARQUEE
   ========================================================= */

.wr-mega-marquee {
    grid-column:
        1 / -1;

    overflow:
        hidden;

    border-radius:
        14px;

    padding:
        8px 0;

    background:
        var(--wr-secondary);
}

.wr-marquee-track {
    display:
        flex;

    width:
        max-content;

    animation:
        wr-marquee
        22s linear infinite;
}

.wr-marquee-copy {
    display:
        flex;

    gap:
        32px;

    padding-right:
        32px;

    white-space:
        nowrap;
}

.wr-marquee-item {
    display:
        inline-flex;

    align-items:
        center;

    gap:
        32px;

    color:
        var(--wr-foreground);

    font-size:
        12px;

    font-weight:
        700;

    text-transform:
        uppercase;

    letter-spacing:
        .12em;
}

.wr-marquee-item svg {
    width:
        12px;

    height:
        12px;
}

@keyframes wr-marquee {

    to {
        transform:
            translateX(-50%);
    }

}


/* =========================================================
   MOBILE BUTTON
   ========================================================= */

.wr-mobile-trigger {
    display:
        none;

    width:
        48px;

    height:
        48px;

    place-items:
        center;

    border:
        0;

    border-radius:
        50%;

    background:
        var(--wr-secondary);

    color:
        var(--wr-foreground);

    cursor:
        pointer;
}

.wr-mobile-trigger svg {
    width:
        22px;

    height:
        22px;
}

.wr-mobile-close {
    display:
        none;
}

.wr-mobile-trigger.is-open
.wr-mobile-open {
    display:
        none;
}

.wr-mobile-trigger.is-open
.wr-mobile-close {
    display:
        inline-flex;
}


/* =========================================================
   MOBILE MENU
   ========================================================= */

.wr-mobile-menu {
    display:
        none;
}

.wr-mobile-menu-inner {
    padding:
        4px;
}

.wr-mobile-section {
    overflow:
        hidden;

    border-radius:
        16px;
}

.wr-mobile-section[open] {
    background:
        var(--wr-secondary);
}

.wr-mobile-section summary {
    display:
        flex;

    align-items:
        center;

    gap:
        12px;

    padding:
        12px;

    cursor:
        pointer;

    list-style:
        none;

    font-weight:
        700;
}

.wr-mobile-section summary::-webkit-details-marker {
    display:
        none;
}

.wr-mobile-section-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 10px;
    background: var(--wr-primary);
    padding:5px;
}

.wr-mobile-section-icon svg {
    width:
        17px;

    height:
        17px;
}

.wr-mobile-section-title {
    flex:
        1;
}

.wr-mobile-section-chevron {
    transition:
        transform .3s ease;
}

.wr-mobile-section[open]
.wr-mobile-section-chevron {
    transform:
        rotate(180deg);
}

.wr-mobile-section-content {
    padding:
        0 12px 12px;
}

.wr-mobile-group-title {
    margin: 14px 0 6px;
    color: var(--wr-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing:.13em;
    display:none;
}

.wr-mobile-section a{
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    color: #000;
}

.wr-mobile-service {
    display:
        flex;

    align-items:
        center;

    gap:
        10px;

    padding:
        9px;

    border-radius:
        9px;

    color:
        var(--wr-foreground);

    text-decoration:
        none;

    font-size:
        14px;
}

.wr-mobile-service:hover {
    background:
        #fff;
}

.wr-mobile-service svg {
    width:
        16px;

    height:
        16px;
}

.wr-mobile-quote {
    display:
        block;

    margin-top:
        12px;

    padding:
        13px;

    border-radius:
        999px;

    background:
        var(--wr-primary);

    color:
        #111;

    text-align:
        center;

    text-decoration:
        none;

    font-weight:
        700;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.wr-main-nav-trigger:focus-visible,
.wr-mega-category:focus-visible,
.wr-service-link:focus-visible,
.wr-view-all:focus-visible,
.wr-mega-quote:focus-visible,
.wr-mobile-trigger:focus-visible,
.wr-mobile-service:focus-visible,
.wr-mobile-quote:focus-visible {
    outline:
        2px solid #4d67ff;

    outline-offset:
        2px;
}


/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes wr-rise {

    0% {
        opacity:
            0;

        transform:
            translateY(10px)
            scale(.97);
    }

    100% {
        opacity:
            1;

        transform:
            none;
    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .wr-main-nav-trigger {
        padding:
            0 9px;

        font-size:
            14px;
    }

    .wr-mega-quote {
        padding-left:
            15px;
    }

    .wr-mega-panel-inner {
        grid-template-columns:
            minmax(190px, 3fr)
            minmax(350px, 6fr)
            minmax(190px, 3fr);
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 1023px) {

    .wr-mega-header {
        padding:
            12px 12px 0;
    }

    .wr-mega-nav {
        height:
            60px;

        padding-left:
            5px;
    }

    .wr-main-navigation,
    .wr-mega-quote,
    .wr-mega-panel-wrapper {
        display:
            none;
    }

    .wr-mobile-trigger {
        display:
            grid;
    }

    .wr-mobile-menu {
        position:
            absolute;

        top:
            72px;

        left:
            12px;

        right:
            12px;

        display:
            block;

        max-height:
            calc(100vh - 100px);

        overflow-y:
            auto;

        padding:
            8px;

        border:
            1px solid var(--wr-border);

        border-radius:
            24px;

        background:
            #fff;

        box-shadow:
            var(--wr-shadow-heavy);

        visibility:
            hidden;

        opacity:
            0;

        pointer-events:
            none;

        transform:
            translateY(-10px)
            scale(.985);

        transition:
            opacity .3s ease,
            transform .4s var(--wr-transition),
            visibility .3s ease;
    }

    .wr-mobile-menu.is-open {
        visibility:
            visible;

        opacity:
            1;

        pointer-events:
            auto;

        transform:
            translateY(0)
            scale(1);
    }

    body.wr-mobile-menu-open {
        overflow:
            hidden;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .wr-mega-header {
        padding:
            8px 8px 0;
    }

    .wr-mega-nav {
        height:
            58px;
    }

    .wr-logo-text {
        font-size:
            16px;
    }

    .wr-logo-icon {
        width:
            30px;

        height:
            30px;
    }

    .wr-mobile-menu {
        top:
            68px;

        left:
            8px;

        right:
            8px;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .wr-mega-panel-wrapper,
    .wr-service-item,
    .wr-feature-ring,
    .wr-feature-dot,
    .wr-feature-icon,
    .wr-marquee-track,
    .wr-service-link,
    .wr-main-nav-trigger,
    .wr-mega-category {
        animation:
            none !important;

        transition:
            none !important;
    }

}