/* PaintSuper Modern Menu */

:root {
    --psm-ink: #14161f;
    --psm-muted: #687082;
    --psm-line: #e7e9ee;
    --psm-surface: #ffffff;
    --psm-accent: var(--ast-global-color-0, #d7472f);
    --psm-accent-dark: var(--ast-global-color-1, var(--psm-accent));
    --psm-blue: var(--ast-global-color-2, #164b63);
}

.psm-site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--psm-line);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, sans-serif;
    -webkit-font-smoothing: antialiased;
    backdrop-filter: blur(18px);
}

.psm-header-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
}

.psm-header-inner {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
    align-items: center;
    min-height: 72px;
    gap: 20px;
}

.psm-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    color: var(--psm-ink);
    text-decoration: none;
}

.psm-brand-logo {
    display: block;
    max-width: 176px;
    max-height: 46px;
    width: auto;
    height: auto;
}

.psm-brand-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--psm-ink);
}

.psm-desktop-nav {
    justify-self: center;
}

.psm-nav-list,
.psm-mega-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.psm-nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.psm-nav-item {
    position: static;
}

.psm-nav-item-simple {
    position: relative;
}

.psm-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 8px;
    color: var(--psm-ink);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.psm-nav-link:hover,
.psm-nav-link:focus-visible {
    color: var(--psm-accent-dark);
    background: #faf2ef;
    outline: none;
}

.psm-chevron {
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}

.psm-mega-panel {
    position: absolute;
    left: 50%;
    top: 100%;
    width: min(1180px, calc(100vw - 48px));
    transform: translateX(-50%) translateY(10px);
    padding-top: 10px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.psm-simple-panel {
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 260px;
    transform: translateY(10px);
    padding-top: 10px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.psm-nav-item:hover .psm-mega-panel,
.psm-nav-item:focus-within .psm-mega-panel,
.psm-nav-item:hover .psm-simple-panel,
.psm-nav-item:focus-within .psm-simple-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.psm-nav-item:hover .psm-mega-panel,
.psm-nav-item:focus-within .psm-mega-panel {
    transform: translateX(-50%) translateY(0);
}

.psm-nav-item:hover .psm-simple-panel,
.psm-nav-item:focus-within .psm-simple-panel {
    transform: translateY(0);
}

.psm-mega-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr)) minmax(240px, .9fr);
    gap: 26px;
    padding: 28px;
    background: var(--psm-surface);
    border: 1px solid var(--psm-line);
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(18, 24, 38, .14);
}

.psm-simple-grid {
    display: grid;
    gap: 18px;
    padding: 18px;
    background: var(--psm-surface);
    border: 1px solid var(--psm-line);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(18, 24, 38, .13);
}

.psm-mega-group h2,
.psm-mobile-subgroup h2 {
    margin: 0 0 12px;
    color: var(--psm-blue);
    font-size: 13px;
    line-height: 1.25;
    font-weight: 800;
}

.psm-mega-group li + li {
    margin-top: 8px;
}

.psm-mega-group a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    color: var(--psm-ink);
    font-size: 15px;
    line-height: 1.3;
    text-decoration: none;
}

.psm-mega-group a:hover,
.psm-mega-group a:focus-visible {
    color: var(--psm-accent-dark);
    outline: none;
}

.psm-mega-feature {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 220px;
    padding: 22px;
    border-radius: 8px;
    color: #fff;
    background:
        linear-gradient(145deg, rgba(20, 22, 31, .18), rgba(20, 22, 31, .72)),
        radial-gradient(circle at 25% 10%, #f2cf68 0 10%, transparent 12%),
        radial-gradient(circle at 68% 24%, #79a7c8 0 12%, transparent 14%),
        linear-gradient(135deg, #12374c, #244d73 45%, #d58f39);
}

.psm-mega-feature span {
    align-self: flex-start;
    margin-bottom: auto;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.psm-mega-feature h2 {
    margin: 42px 0 8px;
    color: #fff;
    font-size: 22px;
    line-height: 1.15;
}

.psm-mega-feature p {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, .84);
    font-size: 14px;
    line-height: 1.45;
}

.psm-mega-feature a,
.psm-header-cta,
.psm-mobile-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 8px;
    background: var(--psm-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.psm-mega-feature a {
    align-self: flex-start;
    background: #fff;
    color: var(--psm-ink);
}

.psm-header-actions {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.psm-header-icon {
    position: relative;
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--psm-line);
    background: #fff;
}

.psm-header-icon::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 11px;
    width: 12px;
    height: 12px;
    border: 2px solid var(--psm-ink);
    border-radius: 999px;
}

.psm-header-icon::after {
    content: "";
    position: absolute;
    left: 24px;
    top: 25px;
    width: 9px;
    height: 2px;
    border-radius: 999px;
    background: var(--psm-ink);
    transform: rotate(45deg);
}

.psm-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--psm-line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.psm-menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--psm-ink);
}

.psm-mobile-menu {
    border-top: 1px solid var(--psm-line);
    background: #fff;
}

.psm-mobile-panel {
    max-height: calc(100vh - 73px);
    overflow: auto;
    padding: 12px 20px 22px;
}

.psm-mobile-group {
    border-bottom: 1px solid var(--psm-line);
}

.psm-mobile-group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    cursor: pointer;
    list-style: none;
}

.psm-mobile-group summary::-webkit-details-marker {
    display: none;
}

.psm-mobile-group summary a {
    color: var(--psm-ink);
    font-size: 17px;
    font-weight: 800;
    text-decoration: none;
}

.psm-mobile-group summary span {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--psm-muted);
    border-bottom: 2px solid var(--psm-muted);
    transform: rotate(45deg);
}

.psm-mobile-group[open] summary span {
    transform: rotate(225deg);
}

.psm-mobile-subgroup {
    padding: 4px 0 16px 14px;
}

.psm-mobile-subgroup a {
    display: block;
    padding: 8px 0;
    color: var(--psm-ink);
    font-size: 15px;
    line-height: 1.35;
    text-decoration: none;
}

.psm-mobile-cta {
    width: 100%;
    margin-top: 18px;
    min-height: 48px;
}

@media (max-width: 1080px) {
    .psm-header-inner {
        grid-template-columns: 1fr auto;
    }

    .psm-desktop-nav,
    .psm-header-cta {
        display: none;
    }

    .psm-menu-toggle {
        display: inline-flex;
    }
}

@media (max-width: 640px) {
    .psm-header-shell {
        padding: 0 16px;
    }

    .psm-header-inner {
        min-height: 64px;
    }

    .psm-brand-logo {
        max-width: 148px;
        max-height: 40px;
    }

    .psm-brand-text {
        font-size: 21px;
    }

    .psm-header-icon {
        display: none;
    }

    .psm-mobile-panel {
        max-height: calc(100vh - 65px);
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .psm-mega-panel,
    .psm-simple-panel {
        transition: none;
    }
}
