:root {
    --menu-orange: #f47936;
    --menu-orange-soft: #fff4ee;
    --menu-dark: #101828;
    --menu-body: #344054;
    --menu-muted: #667085;
    --menu-line: #eaecf0;
    --menu-bg: #fff;
    --menu-cta: #ffece1;
    --menu-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
    --header-height: 82px;
    --radius: 0 0 12px 12px;
}

body.menu-open {
    overflow: hidden;
}
a {
    color: inherit;
    text-decoration: none;
}

/* Header */
.site-header {
    position: fixed;
    z-index: 1000;
    background: #fff;
    /* border-bottom: 1px solid #f1f1f1; */
    width: 100%;
    left: 0;
    top: 0;
    box-shadow: 0px 4px 20px rgba(169, 169, 169, 0.25);
}
.header-inner {
    width: min(100% - 48px, 1460px);
    height: var(--header-height);
    margin: auto;
    display: flex;
    align-items: center;
}
.logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    width: 150px;
}
.logo img {
    display: block;
    width: 150px;
    height: auto;
}

/* Main navigation */
.main-nav {
    /* margin-left: auto; */
    height: 100%;
}
.menu-list {
    height: 100%;
    display: flex;
    align-items: stretch;
    gap: clamp(16px, 1.6vw, 32px);
    list-style: none;
    margin: 0;
    padding: 0;
}
.menu-item {
    position: relative;
    display: flex;
    align-items: stretch;
}
.menu-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 0;
    padding: 0;
    background: transparent;
    color: #292929;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.menu-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--menu-orange);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}
.arrow {
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease;
}
.menu-item.is-open > .menu-link,
.menu-link:hover {
    color: var(--menu-orange);
}
.menu-item.is-open > .menu-link::after {
    transform: scaleX(1);
}
.menu-item.is-open > .menu-link .arrow {
    transform: rotate(225deg) translate(-2px, -1px);
}

/* Mega menu - one reusable base */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 1001;
    display: none;
    overflow: hidden;
    transform: translateX(-50%);
    background: var(--menu-bg);
    border-radius: var(--radius);
    box-shadow: var(--menu-shadow);
}
.menu-item.is-open > .mega-menu {
    display: block;
}

/* Width is the only main variation */
.mega-md {
    width: min(680px, calc(100vw - 48px));
}
.mega-lg {
    width: min(970px, calc(100vw - 48px));
}
.mega-xl {
    width: min(1260px, calc(100vw - 48px));
    left: auto;
    right: -130px;
    transform: none;
}
.mega-right {
    left: auto;
    right: 0;
    transform: none;
}

/* Reusable grids */
.mega-content,
.mega-groups {
    padding: 30px;
}
.grid-1,
.grid-2 {
    display: grid;
    gap: 10px 24px;
}
.grid-1 {
    grid-template-columns: 1fr;
}
.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cols-2,
.cols-4 {
    display: grid;
}
.cols-2 {
    grid-template-columns: 2fr 1fr;
}
.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Group headings */
.mega-group {
    min-width: 0;
    padding: 0 28px;
    border-left: 1px solid var(--menu-line);
}
.mega-group:first-child {
    padding-left: 0;
    border-left: 0;
}
.mega-group:last-child {
    padding-right: 0;
}
.mega-group h3 {
    margin: 0 0 17px;
    font-size: 15px;
    color: #333;
}

/* Reusable service item */
.service-link {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 8px;
    border-radius: 8px;
    color: var(--menu-body);
    font-size: 14px;
    font-weight: 700;
    transition:
        background 0.18s ease,
        color 0.18s ease;
}
.service-link:hover {
    background: #fff9f5;
    color: var(--menu-orange);
}
.service-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: var(--menu-orange-soft);
    color: var(--menu-orange);
    font-size: 15px;
    font-weight: 800;
    transition: 0.18s ease;
}
.service-icon.icon-wide {
    font-size: 10px;
}
.service-link:hover .service-icon {
    background: var(--menu-orange);
    color: #fff;
}
.service-link small {
    display: inline-block;
    margin-left: 8px;
    padding: 4px 6px;
    border-radius: 999px;
    background: var(--menu-orange);
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    line-height: 8px;
    text-transform: uppercase;
    vertical-align: middle;
}

/* Shared CTA */
.mega-cta {
    min-height: 108px;
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 20px 30px;
    background: var(--menu-cta);
    border-top: 1px solid #ffe7da;
}
.cta-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    background: transparent;
}
/* Headline + checklist form one content column (icon -> content -> button),
   not independent siblings in the main CTA row. */
.cta-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}
.mega-cta strong {
    font-size: 15px;
    line-height: 1.45;
}
.mega-cta p {
    margin: 0;
    color: var(--menu-body);
    font-size: 11px;
}
.cta-checklist {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.cta-checklist span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.cta-checklist img {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}
.cta-checklist-divider {
    width: 1px;
    height: 25px;
    background: #101828;
    opacity: 0.2;
}
.mega-cta > a {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: auto;
    color: var(--menu-orange);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.cta-arrow {
    display: inline-flex;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
}
.cta-arrow img {
    width: 100%;
    height: 100%;
    display: block;
}

/* Overlay */
.menu-overlay {
    position: fixed;
    inset: var(--header-height) 0 0;
    z-index: 900;
    visibility: hidden;
    opacity: 0;
    background: rgba(28, 28, 28, 0.55);
    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}
body.menu-open .menu-overlay {
    visibility: visible;
    opacity: 1;
}

/* Mobile-only header elements */
.menu-toggle,
.mobile-menu-head {
    display: none;
}

/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 1199.98px) {
    .topright {
        display: none;
    }
    :root {
        --header-height: 72px;
    }

    /* Figma mobile header: flat with a hairline divider, no drop shadow. */
    .site-header {
        box-shadow: inset 0 -1px 0 #f4f4f4;
    }
    .header-inner {
        width: min(100% - 32px, 1460px);
        height: var(--header-height);
    }

    /* Hamburger sits out of flow on the left, so the logo centres on the
       full header width rather than the space beside the button. */
    .logo {
        margin: 0 auto !important;
    }
    .logo,
    .logo img {
        width: 159px important;
    }

    .menu-toggle {
        position: absolute;
        top: calc((var(--header-height) - 44px) / 2);
        right: 6px;
        width: 44px;
        height: 44px;
        display: grid;
        place-content: center;
        gap: 3.75px;
        border: 0;
        border-radius: 6px;
        background: transparent;
        cursor: pointer;
    }
    .menu-toggle span {
        width: 18px;
        height: 2px;
        display: block;
        border-radius: 1px;
        background: #6f7074;
    }
    /* The open drawer draws its own header row (logo/title + close), so the
     hamburger underneath it is hidden rather than left focusable. */
    body.mobile-nav-open .menu-toggle {
        visibility: hidden;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 1100;
        width: 100%;
        max-width: 402px;
        height: 100dvh;
        margin: 0;
        overflow-x: hidden;
        overflow-y: auto;
        /* Opaque all the way up: the drawer draws its own centered logo in
         .mobile-menu-head, so the real header logo must not show through. */
        background: #fff;
        box-shadow: -15px 0 40px rgba(0, 0, 0, 0.15);
        transform: translateX(105%);
        /* Hidden (not just off-screen) while closed so its links leave the
         tab order; visibility waits for the slide-out to finish. */
        visibility: hidden;
        transition:
            transform 0.25s ease,
            visibility 0.25s ease;
    }
    /* Visible instantly on open so the toggle can move focus into the drawer;
       the base transition still keeps it visible while it slides closed. */
    body.mobile-nav-open .main-nav {
        visibility: visible;
        transform: translateX(0);
        transition: transform 0.25s ease, visibility 0s;
    }

    /* Drawer header row: back (submenu only) / centered logo or submenu
     title / close. Back keeps its slot while hidden so close stays right.
     Sticky, not fixed: .main-nav's transform turns a fixed child into one
     that scrolls away with the drawer. */
    .mobile-menu-head {
        position: sticky;
        top: 0;
        z-index: 2;
        height: var(--header-height);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 6px;
        border-bottom: 1px solid #f2f4f7;
        background: #fff;
    }
    .mobile-menu-logo,
    .mobile-menu-title {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    .mobile-menu-logo {
        display: inline-flex;
        align-items: center;
    }
    /* style.css animates every link ("a:hover { transition: all 0.5s }",
       0-1-1); two classes outrank it so the drawer logo never animates. */
    .mobile-menu-head .mobile-menu-logo,
    .mobile-menu-head .mobile-menu-logo img {
        -webkit-transition: none;
        transition: none;
    }
    .mobile-menu-logo img {
        display: block;
        width: 158px;
        height: auto;
    }
    .mobile-menu-title {
        max-width: calc(100% - 128px);
        overflow: hidden;
        color: var(--menu-orange);
        font-size: 18px;
        font-weight: 600;
        line-height: 1.5;
        white-space: nowrap;
        text-overflow: ellipsis;
        visibility: hidden;
    }
    .menu-back,
    .menu-close {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 0;
        margin: 0;
        padding: 0;
        background: transparent;
        font-size: 18px;
        font-weight: 300;
        line-height: 1;
        color: var(--menu-muted);
        cursor: pointer;
    }
    /* Close X drawn in CSS (no icon font): same geometry as the Bootstrap
       Icons x-lg glyph it replaces at 18px — a 13.5px ink box, two 1.125px
       round-capped strokes, sitting 0.375px above the button's centre. */
    .menu-close-icon {
        position: relative;
        display: block;
        width: 13.5px;
        height: 13.5px;
        margin-top: -0.75px;
    }
    .menu-close-icon::before,
    .menu-close-icon::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 18.625px;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
        transform: translate(-50%, -50%) rotate(45deg);
    }
    .menu-close-icon::after {
        transform: translate(-50%, -50%) rotate(-45deg);
    }
    /* Back chevron drawn in CSS (no icon font), measured from the Figma
       mobile submenu header: two 1.5px round-capped arms, 7.5px across and
       7.5px down from the vertex (a 9 x 16.5px ink box), centred at
       (27.9, 36) — 1.9px right of and 0.5px below the button's centre. */
    .menu-back-icon {
        position: relative;
        display: block;
        width: 9px;
        height: 16.5px;
        transform: translate(1.9px, 0.5px);
    }
    .menu-back-icon::before,
    .menu-back-icon::after {
        content: "";
        position: absolute;
        top: 7.5px;
        left: 0;
        width: 12.107px;
        height: 1.5px;
        border-radius: 999px;
        background: currentColor;
        transform-origin: 0.75px 50%;
        transform: rotate(-45deg);
    }
    .menu-back-icon::after {
        transform: rotate(45deg);
    }
    .menu-back {
        visibility: hidden;
    }
    body.mobile-sub-open .menu-back,
    body.mobile-sub-open .mobile-menu-title {
        visibility: visible;
    }
    body.mobile-sub-open .mobile-menu-logo {
        visibility: hidden;
    }

    .menu-list {
        height: auto;
        display: block;
        padding: 0 0 30px;
    }
    /* Static so each submenu panel positions against the drawer itself. */
    .menu-item {
        position: static;
        display: block;
        margin-bottom: 10px;
    }
    /* Drill-down: an open submenu replaces the top-level list. */
    body.mobile-sub-open .menu-list > .menu-item > .menu-link {
        visibility: hidden;
    }
    .menu-link {
        width: 100%;
        min-height: 55px;
        justify-content: space-between;
        padding: 0 16px;
        border-bottom: 0;
        font-size: 18px;
        font-weight: 400;
        color: #000 !important;
        /* Not style.css's "all 0.5s": an animated visibility keeps the link
           unfocusable for a frame, so Back couldn't return focus to it. */
        transition: color 0.18s ease;
    }
    .menu-item.is-open > .menu-link {
        font-weight: 400;
        color: var(--menu-orange) !important;
    }
    .menu-link::after {
        display: none;
    }
    /* Figma's mobile chevron points right (drill-in), drawn with the
     existing CSS arrow rather than a new icon asset. */
    .menu-link .arrow {
        width: 11px;
        height: 11px;
        margin-right: 6px;
        border-width: 1.25px;
        color: var(--menu-muted);
        transform: rotate(-45deg);
    }

    /* Each submenu is a full-drawer panel under the header row that
     slides in over the top-level list. */
    .mega-menu,
    .mega-md,
    .mega-lg,
    .mega-xl,
    .mega-right {
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        width: 100%;
        transform: translateX(100%);
        border-radius: 0;
        box-shadow: none;
    }
    /* Closed panels are capped to the drawer's height so a tall hidden one
     (SEO) can't make the drawer scrollable; only the open panel grows. */
    .mega-menu {
        z-index: 1;
        display: block;
        min-height: calc(100% - var(--header-height));
        max-height: calc(100% - var(--header-height));
        margin: 0;
        padding: 24px 16px 40px;
        visibility: hidden;
        transition:
            transform 0.25s ease,
            visibility 0.25s ease;
    }
    .menu-item.is-open > .mega-menu {
        max-height: none;
        visibility: visible;
        transform: none;
    }

    .mega-content,
    .mega-groups {
        padding: 0;
        background: transparent;
    }
    .grid-2,
    .cols-2,
    .cols-4 {
        grid-template-columns: 1fr;
    }
    .mega-content,
    .mega-group .grid-1 {
        gap: 16px;
    }

    .mega-group {
        margin-top: 40px;
        padding: 0;
        border: 0;
    }
    .mega-group:first-child {
        margin-top: 0;
    }
    .mega-group h3 {
        margin: 0 0 16px;
        padding: 0;
        font-size: 14px;
        line-height: 20px;
        color: var(--menu-muted);
        text-transform: uppercase;
        font-weight: 700;
    }

    .service-link {
        min-height: 40px;
        padding: 0;
        gap: 12px;
        font-size: 16px;
    }
    .service-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        border-radius: 6px;
    }
    /* .service-icon img is also set, unconditionally, later in this file
     (24x24) — bump specificity with the always-present .main-nav ancestor
     so the mobile figure wins regardless of source order. */
    .main-nav .service-icon img {
        width: 24px;
        height: 24px;
    }

    /* Mobile CTA card: icon + headline on one row (icon centred on the
     headline, top-aligned for Digital Marketing's three lines), checklist
     (SEO) on its own full-width row, then an auto-width button. */
    .mega-cta {
        min-height: 0;
        flex-wrap: wrap;
        align-items: center;
        padding: 24px 16px;
        gap: 16px;
        border: 0;
        border-radius: 8px;
        margin: 40px 0 0;
    }
    .mega-web .mega-cta {
        row-gap: 24px;
    }
    .mega-marketing .mega-cta {
        align-items: flex-start;
    }
    .cta-icon {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
        font-size: 18px;
    }
    /* Same source-order issue as .service-icon img above: beat the later
     unconditional .cta-icon img (32x32) rule with an ancestor bump. */
    .main-nav .cta-icon img {
        width: 40px;
        height: 40px;
    }
    .mega-cta strong {
        flex: 1 1 calc(100% - 56px);
        min-width: 0;
        font-size: 16px;
        line-height: 1.5;
        font-weight: 600 !important;
        color: var(--menu-dark);
    }
    .mega-cta br {
        display: none;
    }
    .cta-content {
        display: contents;
    }
    .cta-checklist {
        flex: 1 0 100%;
    }
    .cta-checklist span {
        font-size: 12px;
    }
    /* A later unconditional .mega-cta > a rule sets padding: 12px 20px —
     bump specificity so the mobile 10px/18px figure actually applies. */
    .main-nav .mega-cta > a {
        white-space: normal;
        flex: none;
        width: auto;
        justify-content: center;
        gap: 6px;
        margin-left: 0;
        padding: 10px 18px;
        font-size: 16px;
    }
    .cta-arrow {
        flex-basis: 20px;
        width: 20px;
        height: 20px;
    }

    .menu-overlay {
        /* .main-nav lives inside .site-header in the DOM, so .site-header's
         own stacking context traps it: no z-index on .main-nav can ever
         out-rank a box outside .site-header (like this overlay), because a
         nested context can't escape the paint "slot" its ancestor context
         was given. Fighting that with z-index alone would force a choice
         between dimming the real header (which needs to stay below the
         overlay) and keeping the drawer undimmed (which needs to stay
         above it) — impossible while they share an ancestor. Sidestep it
         geometrically instead: stop the overlay at the drawer's own left
         edge so the two never spatially overlap, which also means the
         overlay can safely cover the real header's full height (top:0)
         to dim its logo, something the old `inset` (starting below the
         header) never did either. */
        top: 0;
        left: 0;
        right: min(402px, 100%);
        bottom: 0;
        /* Still above .site-header's 1000 so it visibly dims it (and the
         rest of the page) wherever it's present. */
        z-index: 1050;
    }
    body.mobile-nav-open .menu-overlay {
        visibility: visible;
        opacity: 1;
    }
}

@media (max-width: 359.98px) {
    /* The approved 360px mock keeps both checklist items + divider on one
     line; only narrower than that does it run out of room, and flex-wrap
     would strand the divider next to the first item. Stack instead, drop
     the now-meaningless vertical divider. */
    .cta-checklist {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .cta-checklist .cta-checklist-divider {
        display: none;
    }
}

/* ===== Refined reference matching ===== */
.service-icon,
.cta-icon {
    overflow: hidden;
}
.service-icon img {
    width: 24px;
    height: 24px;
    display: block;
    object-fit: contain;
}
.cta-icon img {
    width: 32px;
    height: 32px;
    display: block;
    object-fit: contain;
}
.service-link:hover .service-icon img {
    filter: brightness(0) invert(1);
}
.menu-link-static {
    text-decoration: none;
}
.contact-button {
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--menu-dark);
    color: #fff !important;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}
.contact-button:hover {
    background: var(--primarydark);
}
.contact-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: grid;
    place-items: center;
}
.contact-icon img {
    width: 20px;
    height: 20px;
    display: block;
}
.mega-cta > a {
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--menu-orange);
    color: #fff;
}
.mega-cta > a:hover {
    background: var(--primarydark);
}
.mega-menu {
    /* border-top: 1px solid #f5f5f5; */
}
@media (max-width: 1199.98px) {
    .menu-contact {
        padding: 18px 20px 0;
    }
    .contact-button {
        justify-content: center;
        width: 100%;
    }
    .menu-link-static {
        padding: 0 16px;
    }
    /* About Us links have no icon tile; give them the same 40px row as
     the other drill-down panels instead of the desktop dropdown padding. */
    .main-nav .mega-about .service-link {
        min-height: 40px;
        padding: 0;
    }
}

button,
input,
select,
textarea {
    font-family: inherit;
}

/* =========================================================
   V4 — APPROVED WEB DESIGN HOVER LOCK
========================================================= */

/* Top-level items are real page anchors. */
a.menu-link {
    text-decoration: none;
}

/* Approved design:
   hover affects icon + text only.
   Do NOT create a full-row pale background. */
.service-link:hover {
    background: transparent;
    color: var(--menu-orange);
}

/* The approved active/hover icon becomes solid orange. */
.service-link:hover .service-icon {
    background: var(--menu-orange);
}

/* PNGs are expected to be orange artwork on transparent/light bg.
   Convert artwork to white inside solid-orange hover box. */
.service-link:hover .service-icon img {
    filter: brightness(0) invert(1);
}

/* Explicitly prevent inherited full-item hover fills. */
.mega-menu .service-link {
    transition: color 0.18s ease;
    color: var(--menu-body);
}
.mega-menu .service-link:hover,
.mega-menu .service-link:focus-visible {
    background-color: transparent;
}

/* Match approved link treatment. */
.mega-menu .service-link:hover > span:last-child,
.mega-menu .service-link:focus-visible > span:last-child {
    color: var(--menu-orange);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Keep keyboard focus visible without changing approved mouse hover geometry.
   style.css strips every outline (`*:focus { outline: none !important }`),
   so header focus is drawn as a box-shadow ring instead. */
.site-header a:focus-visible,
.site-header button:focus-visible {
    box-shadow: 0 0 0 2px var(--menu-orange);
}

/* =========================================================
   V5 — APPROVED TOP-LEVEL HOVER + MEGA POSITION
========================================================= */
@media (min-width: 1200px) {
    /* Approved design has NO bottom orange bar on the main item.
     The active/hover state is orange text only. */
    .menu-link::after {
        display: none;
    }

    .menu-item:hover > .menu-link,
    .menu-item.is-open > .menu-link,
    .menu-link:hover {
        color: var(--menu-orange) !important;
    }

    /* Keyboard focus on the full-height nav links: a bottom bar instead of
     a ring around the whole 92px-tall item. */
    .site-header .menu-link:focus-visible {
        box-shadow: inset 0 -3px 0 var(--menu-orange);
    }

    /* Keep arrow the same orange as the active parent. */
    .menu-item:hover > .menu-link .arrow,
    .menu-item.is-open > .menu-link .arrow {
        border-color: currentColor;
    }

    /* Web Design geometry (width/inset/gap) is fully owned by the
     V7/V8 .mega-web rules now — this block previously duplicated
     and, via higher specificity, silently overrode those values. */
}
.menu-contact {
    display: none;
}
/* =========================================================
   V6 — DESKTOP PARENT ARROWS REMOVED
========================================================= */
@media (min-width: 1200px) {
    .menu-link .arrow {
        display: none;
    }
}

/* =========================================================
   V7 — FULL APPROVED DESKTOP STUDY / GEOMETRY PASS
   All five supplied approved states use a viewport-centered panel.
========================================================= */
@media (min-width: 1200px) {
    :root {
        --header-height: 92px;
        --approved-panel-radius: 0 0 16px 16px;
    }

    /* Header/menu proportions measured from the Figma header instance. */
    .header-inner {
        width: min(calc(100% - 96px), 1720px);
        justify-content: space-between;
    }

    .logo img,
    .logo {
        width: 200px;
    }

    /* Fluid-scale from the 1200px floor (the narrowest desktop width —
     anchoring lower left the nav too wide there and pushed Contact Us
     off-screen) up to the exact Figma 1920px values, instead of a flat
     vw unit that can't hit both endpoints at once. */
    .menu-list {
        gap: clamp(14px, calc(14px + (100vw - 1200px) * 0.030556), 36px);
    }

    .menu-link {
        color: #000 !important;
        font-size: clamp(14px, calc(14px + (100vw - 1200px) * 0.005556), 18px);
        font-weight: 400;
    }

    .menu-item:hover > .menu-link,
    .menu-item.is-open > .menu-link,
    .menu-item.active > .menu-link {
        font-weight: 400;
        color: var(--menu-orange) !important;
    }

    .contact-button {
        gap: 9px;
        padding: 10px 18px;
        font-size: 16px;
        font-weight: 600;
        box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
    }

    /* Every approved dropdown is centered on the viewport, not on its parent. */
    .mega-menu,
    .menu-item:first-child > .mega-md,
    .mega-xl,
    .mega-right {
        position: fixed;
        top: var(--header-height);
        left: 50vw;
        right: auto;
        transform: translateX(-50%);
        border-radius: var(--approved-panel-radius);
        box-shadow: var(--menu-shadow);
    }

    /* Approved widths at 1920, with safe viewport fallback.
     eCommerce has no approved desktop panel state, so it reuses Web Design's. */
    .mega-web,
    .mega-ecommerce {
        width: min(792px, calc(100vw - 48px));
    }
    .mega-seo {
        width: min(841px, calc(100vw - 48px));
    }
    .mega-marketing {
        width: min(787px, calc(100vw - 48px));
    }
    .mega-enterprise {
        width: min(852px, calc(100vw - 48px));
    }

    /* Web Design only: open from the left edge of its own menu item,
     directly under it, so the pointer can move straight down into it.
     1400px and up only; below that it stays viewport-centered. */
    @media (min-width: 1400px) {
        .menu-item.has-mega > .mega-web {
            position: absolute;
            top: 100%;
            left: 0;
            right: auto;
            transform: none;
        }
    }

    /* Base approved service sizing — 55px icon tile, Gray/700 label. */
    .service-link {
        min-height: 55px;
        padding: 0;
        gap: 12px;
        border-radius: 0;
        font-size: 16px;
        font-weight: 600;
    }

    .service-icon {
        width: 55px;
        height: 55px;
        flex-basis: 55px;
        border-radius: 8px;
    }

    .service-icon img {
        width: 30px;
        height: 30px;
    }

    /* Every dropdown pads 40px, with a 42px gap before its CTA band. */
    .mega-content,
    .mega-groups {
        padding: 40px 40px 0;
    }
    .mega-cta {
        margin: 42px 40px 40px;
        padding: 20px 40px;
    }

    /* SPLIT PANELS (Web Design, eCommerce, Digital Marketing): one service
     column beside a stacked CTA card instead of the full-width CTA band.
     The card sits on the panel's bottom edge; the icon + headline share a
     row (the headline takes the rest of it) and the button wraps below. */
    .menu-item.is-open > .mega-split {
        display: grid;
    }
    .mega-split {
        grid-template-columns: minmax(0, 1fr) var(--split-cta-width);
        padding: 40px;
        --split-cta-width: 407px;
    }
    .mega-split .mega-content {
        align-content: start;
        padding: 0;
    }
    .mega-split .mega-cta {
        align-self: end;
        flex-wrap: wrap;
        margin: 0;
        padding: 30px 40px;
        gap: 20px 30px;
    }
    .mega-split .mega-cta strong {
        flex: 1 1 calc(100% - 100px);
        min-width: 0;
    }
    .mega-split .mega-cta > a {
        margin-left: 0;
        padding-inline: 28px;
    }

    /* DIGITAL MARKETING: wider card, smaller top-aligned icon, roomier
     rows, full-width button. */
    .mega-marketing {
        --split-cta-width: 415px;
    }
    .mega-marketing .mega-content {
        row-gap: 16px;
    }
    .mega-marketing .mega-cta {
        align-items: flex-start;
        padding: 30px 32px;
    }
    .mega-marketing .mega-cta strong {
        flex-basis: calc(100% - 82px);
    }
    .mega-marketing .mega-cta > a {
        flex: 1 0 100%;
        justify-content: center;
    }
    .mega-marketing .cta-icon,
    .mega-marketing .cta-icon img {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
    }

    /* ENTERPRISE: three rows filled column by column, so DOM/tab order
     reads down each column exactly as the approved layout does. */
    .mega-enterprise .mega-content.grid-2 {
        grid-auto-flow: column;
        grid-template-rows: repeat(3, auto);
        gap: 10px 0;
    }

    .mega-enterprise .mega-cta {
        min-height: 139px;
    }

    /* Shared CTA card — identical treatment across all five states. */
    .mega-web .mega-cta,
    .mega-ecommerce .mega-cta,
    .mega-enterprise .mega-cta,
    .mega-seo .mega-cta,
    .mega-marketing .mega-cta {
        border: 0;
        border-radius: 8px;
        background: var(--menu-cta);
    }

    .cta-icon {
        width: 70px;
        height: 70px;
        flex-basis: 70px;
        background: transparent;
        border-radius: 0;
    }
    .cta-icon img {
        width: 70px;
        height: 70px;
    }
    .mega-cta strong {
        color: var(--menu-dark);
        font-size: 20px;
        line-height: 1.5;
        font-weight: 600 !important;
        letter-spacing: -0.28px;
    }
    .mega-cta > a {
        gap: 6px;
        padding: 10px 20px;
        border-radius: 999px;
        background: var(--menu-orange);
        color: #fff;
        font-size: 16px;
        font-weight: 600;
        box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
    }
    .mega-cta > a:hover {
        background: var(--primarydark);
    }
    .cta-arrow {
        flex-basis: 20px;
        width: 20px;
        height: 20px;
    }

    /* SEO: AI SEO + SEO groups side by side, no vertical divider, each
     heading underlined; CTA headline wraps after "isn't" as approved. */
    .mega-seo .cols-2 {
        grid-template-columns: minmax(0, 339fr) minmax(0, 320fr);
        column-gap: 102px;
    }
    .mega-seo .mega-group {
        padding: 0;
        border-left: 0;
    }
    .mega-seo .mega-group h3 {
        padding-bottom: 16px;
        margin-bottom: 16px;
        border-bottom: 1px solid var(--menu-line);
        color: var(--menu-muted);
        font-size: 14px;
        font-weight: 700;
        text-transform: uppercase;
    }
    .mega-seo .grid-1 {
        row-gap: 16px;
    }
    .mega-seo .mega-cta {
        margin-top: 36px;
        padding: 30px 40px;
    }
    .mega-seo .cta-content strong {
        max-width: 270px;
    }
    .mega-seo .mega-cta p {
        font-size: 12px;
    }

    /* Keep approved hover: icon orange, PNG white, text orange underline only. */
    .service-link:hover {
        background: transparent;
    }
}

/* =========================================================
   ABOUT US — compact dropdown (not a mega-menu)
   Reuses .has-mega / .mega-menu's existing open-close toggle
   (menu.js, and the shared `.menu-item.is-open > .mega-menu`
   display rule) and the existing mobile full-width stacking
   for `.mega-menu` — only the desktop panel itself is
   overridden here to be a small, right-aligned dropdown
   instead of the large centered mega-panel.
========================================================= */
.mega-about .service-link {
    min-height: 0;
    padding: 5px 20px;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}
.mega-about .service-link:hover {
    color: var(--menu-orange);
    text-decoration: underline;
}
@media (min-width: 1200px) {
    .menu-item.has-mega > .mega-about {
        position: absolute;
        top: 100%;
        left: auto;
        right: 0;
        transform: none;
        width: max-content;
        min-width: 200px;
    }
    .mega-about > .mega-content {
        padding: 10px;
    }
    .mega-about .service-link {
        min-height: 0;
        padding: 10px 12px;
        font-size: 16px;
        font-weight: 600;
        border-radius: 6px;
        white-space: nowrap;
    }
    .mega-about .service-link:hover {
        color: var(--menu-orange);
        text-decoration: underline;
    }
}