/**
 * PDI Navigation Styles
 * - Default height: 108px (logo: 100x89px)
 * - Scrolled height: 82px (logo: 75x66px)
 */

:root {
    --pdi-red: #E31E24;
    --pdi-dark: #333333;
    --pdi-gray: #666666; /* Improved contrast: 5.7:1 vs 4.1:1 */
    --pdi-light-gray: #f8f8f8;
    --pdi-border: #e5e5e5;
    --pdi-focus: #E31E24;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

.pdi-header {
    background: #fff;
    border-bottom: 1px solid var(--pdi-border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* Spacer to prevent content from hiding behind fixed header */
.pdi-header-spacer {
    height: 108px;
    transition: height 0.3s ease;
}

.pdi-header.scrolled + .pdi-header-spacer,
body.scrolled .pdi-header-spacer {
    height: 82px;
}

.pdi-nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px 0 153px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 108px; /* Default height */
    transition: all 0.3s ease;
}

/* SCROLLED STATE */
.pdi-header.scrolled .pdi-nav-container {
    height: 82px; /* Scrolled height */
}

/* Logo */
.pdi-logo {
    flex-shrink: 0;
    margin-right: 60px;
}

.pdi-logo a {
    display: block;
    text-decoration: none;
}

.pdi-logo img {
    height: 89px; /* Default: 100x89px */
    width: 100px;
    display: block;
    transition: all 0.3s ease;
    border-radius: 4px;
}

/* SCROLLED LOGO */
.pdi-header.scrolled .pdi-logo img {
    height: 66px; /* Scrolled: 75x66px */
    width: 75px;
}

/* Desktop Navigation */
.pdi-desktop-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.pdi-main-menu,
.pdi-main-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pdi-main-menu {
    display: flex;
    align-items: center;
    gap: 45px;
}

.pdi-main-menu > li {
    position: relative;
}

.pdi-main-menu > li > a {
    color: var(--pdi-dark);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 42px 0; /* Adjusted for 108px height */
    display: inline-block;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    position: relative;
}

.pdi-main-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 39px; /* Adjusted for 108px height */
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: all 0.3s ease;
}

/* SCROLLED MENU ITEMS */
.pdi-header.scrolled .pdi-main-menu > li > a {
    padding: 29px 0; /* Adjusted for 82px height */
}

.pdi-header.scrolled .pdi-main-menu > li > a::after {
    bottom: 26px; /* Adjusted for 82px height */
}

/* SCROLLED QUOTE BUTTON */
.pdi-header.scrolled .pdi-quote-btn {
    height: 46px;
    padding: 7px 26px;
}

.pdi-main-menu > li > a:hover,
.pdi-main-menu > li.current-menu-item > a,
.pdi-main-menu > li.current_page_item > a {
    color: var(--pdi-red);
}

.pdi-main-menu > li > a:hover::after,
.pdi-main-menu > li.current-menu-item > a::after,
.pdi-main-menu > li.current_page_item > a::after {
    background: var(--pdi-red);
}

/* Dropdown */
.pdi-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 280px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-top: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 0;
}

.pdi-main-menu > li.has-dropdown {
    position: relative;
}

.has-dropdown:hover > .pdi-dropdown,
.pdi-main-menu > li.has-dropdown:hover > .pdi-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pdi-dropdown li {
    border-bottom: 1px solid var(--pdi-border);
    position: relative;
}

.pdi-dropdown li:last-child {
    border-bottom: none;
}

.pdi-dropdown a {
    display: block;
    padding: 13px 22px;
    color: var(--pdi-dark);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    position: relative;
}

.pdi-dropdown a:hover {
    background: var(--pdi-light-gray);
    color: var(--pdi-red);
    padding-left: 28px;
}

/* Nested Dropdown - appears to the right */
.pdi-dropdown .has-dropdown > .pdi-dropdown {
    top: 0;
    left: 100%;
    margin-top: 0;
    margin-left: 0;
    border-top: none;
    transform: translateX(-10px);
}

.pdi-dropdown .has-dropdown:hover > .pdi-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Arrow indicator for items with sub-dropdowns */
.pdi-dropdown .has-dropdown > a::after {
    content: '›';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--pdi-gray);
    transition: all 0.3s ease;
}

.pdi-dropdown .has-dropdown > a:hover::after {
    color: var(--pdi-red);
    right: 12px;
}

/* Mega Menu */
.pdi-mega-menu {
    position: fixed;
    top: 108px; /* Default header height */
    left: 0;
    right: 0;
    background: #fff;
    border-top: none;
    box-shadow: 0 12px 20px -5px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    width: 100%;
    padding: 60px 0 80px 0;
    z-index: 9998;
    margin-top: 0;
    pointer-events: none;
}

.has-mega-menu:hover > .pdi-mega-menu,
.has-mega-menu.mega-menu-active > .pdi-mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.pdi-mega-menu-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px 0 153px;
}

.pdi-mega-menu-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--pdi-dark);
    margin: 0 0 40px 0;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--pdi-border);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.pdi-mega-menu-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    grid-auto-flow: column;
}

/* SCROLLED MEGA MENU */
.pdi-header.scrolled ~ * .pdi-mega-menu,
.pdi-header.scrolled .pdi-mega-menu {
    top: 82px; /* Scrolled height */
}

.pdi-mega-column {
    min-width: 0;
    min-height: 60px;
    display: flex;
    flex-direction: column;
}

.pdi-mega-column-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    min-height: 40px;
}

.pdi-mega-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdi-mega-icon svg {
    width: 100%;
    height: 100%;
}

.pdi-mega-title-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pdi-mega-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--pdi-dark);
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.3;
}

.pdi-mega-subtitle {
    font-size: 18px;
    font-weight: 700;
    color: var(--pdi-dark);
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.3;
}

.pdi-mega-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0 55px !important; /* Align to the right under the mega title, 40px icon + 15px gap */
    width: 270px !important;
}

.pdi-mega-list li {
    margin-bottom: 12px;
}

.pdi-mega-list a {
    color: var(--pdi-dark);
    text-decoration: none;
    font-size: 16px;
    display: block;
    padding: 0;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.5;
}

.pdi-mega-list a:hover {
    color: var(--pdi-red);
}

/* Right Actions */
.pdi-nav-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.pdi-quote-btn {
    background: var(--pdi-red);
    color: #fff !important;
    padding: 13px 26px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    flex-shrink: 0;
}

.pdi-quote-btn:hover {
    background: #c41a1f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(227, 30, 36, 0.3);
    color: #fff !important;
}

/* Group Selector */
.pdi-group-selector {
    position: relative;
}

.pdi-group-toggle {
    background: transparent;
    border: 1px solid #ddd;
    padding: 9px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--pdi-dark);
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.pdi-group-toggle:hover {
    border-color: var(--pdi-red);
    color: var(--pdi-red);
}

.pdi-chevron {
    transition: transform 0.3s ease;
}

.pdi-group-toggle[aria-expanded="true"] .pdi-chevron {
    transform: rotate(180deg);
}

.pdi-group-dropdown {
    position: fixed;
    top: 108px;
    right: 20px;
    background: #fff;
    min-width: 230px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-top: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

/* SCROLLED GROUP DROPDOWN */
.pdi-header.scrolled .pdi-group-dropdown {
    top: 82px;
}

.pdi-group-selector:hover .pdi-group-dropdown,
.pdi-group-toggle[aria-expanded="true"] ~ .pdi-group-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pdi-group-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    color: var(--pdi-dark);
    text-decoration: none;
    border-bottom: 1px solid var(--pdi-border);
    transition: all 0.3s ease;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.pdi-group-item:last-child {
    border-bottom: none;
}

.pdi-group-item:hover {
    background: var(--pdi-light-gray);
    color: var(--pdi-red);
}

.pdi-group-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    flex-shrink: 0;
    overflow: hidden;
}

.pdi-group-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pdi-group-icon i {
    font-size: 16px;
    color: #fff;
}

.pdi-group-icon svg {
    width: 20px;
    height: 20px;
}

/* Search */
.pdi-search-toggle {
    background: transparent;
    border: none;
    min-width: 44px;
    min-height: 44px;
    padding: 12px;
    cursor: pointer;
    color: var(--pdi-red);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdi-search-toggle:hover {
    opacity: 0.7;
}

.pdi-search-overlay {
    position: fixed;
    top: 108px; /* Default header height */
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: none;
    box-shadow: none;
    z-index: 9998;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease, border-bottom 0.3s ease, box-shadow 0.3s ease;
    padding: 0;
    opacity: 0;
    pointer-events: none;
}

/* SCROLLED STATE */
.pdi-header.scrolled ~ .pdi-search-overlay,
.pdi-header.scrolled .pdi-search-overlay {
    top: 82px; /* Scrolled header height */
}

.pdi-search-overlay.active {
    max-height: 200px;
    padding: 30px 0;
    border-bottom: 2px solid var(--pdi-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    opacity: 1;
    pointer-events: auto;
}

.pdi-search-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 153px;
    position: relative;
}

.pdi-search-form {
    position: relative;
    width: 100%;
}

.pdi-search-input {
    width: 100%;
    padding: 16px 55px 16px 20px;
    margin-bottom: 0 !important;
    font-size: 16px;
    border: 1px solid var(--pdi-border);
    background: #f8f8f8;
    color: var(--pdi-dark);
    outline: none;
    border-radius: 4px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    transition: all 0.3s ease;
}

.pdi-search-input:focus {
    border-color: var(--pdi-red);
    background: #fff;
}

.pdi-search-input::placeholder {
    color: #999;
}

.pdi-search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pdi-red);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Search Backdrop */
.pdi-search-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9997;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.pdi-search-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Hamburger - RED 3 LINES */
.pdi-hamburger-toggle {
    display: flex;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    align-items: center;
    position: relative;
    min-width: 44px;
    min-height: 44px;
}

.pdi-hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--pdi-red);
    display: block;
    transition: all 0.3s ease;
    position: absolute;
}

.pdi-hamburger-line:nth-child(1) {
    top: 12px;
}

.pdi-hamburger-line:nth-child(2) {
    top: 21px;
}

.pdi-hamburger-line:nth-child(3) {
    top: 30px;
}

/* Hamburger Active State (X) */
.pdi-hamburger-toggle.active .pdi-hamburger-line:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
}

.pdi-hamburger-toggle.active .pdi-hamburger-line:nth-child(2) {
    opacity: 0;
}

.pdi-hamburger-toggle.active .pdi-hamburger-line:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
}

/* Slide Menu - Desktop Only */
.pdi-slide-menu {
    position: fixed;
    top: 108px; /* Default height */
    right: -320px;
    width: 300px;
    height: calc(100vh - 108px);
    background: #fff;
    overflow: visible;
    transition: all 0.4s ease;
    z-index: 9998;
    box-shadow: none;
    border-left: 1px solid var(--pdi-border);
}

/* SCROLLED SLIDE MENU */
.pdi-header.scrolled ~ .pdi-slide-menu {
    top: 82px; /* Scrolled height */
    height: calc(100vh - 82px);
}

.pdi-slide-menu.active {
    right: 0;
}

.pdi-slide-menu-content {
    padding: 15px;
    height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pdi-slide-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pdi-slide-menu-item {
    /* No divider between items */
}

.pdi-slide-menu-item > a {
    display: flex;
    align-items: center;
    padding: 2px 10px 2px 24px;
    color: var(--pdi-dark);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.pdi-slide-menu-item > a:hover,
.pdi-slide-menu-item.current-menu-item > a {
    color: var(--pdi-red);
}

/* Slide Menu Item with Children */
.pdi-slide-menu-item.has-children {
    position: relative;
}

.pdi-slide-menu-item.has-children > a {
    padding-left: 24px;
}

/* Slide Submenu - Opens to the Left */
.pdi-slide-submenu {
    position: fixed;
    right: 300px;
    width: 250px;
    max-height: 500px;
    overflow: visible;
    background: #fff;
    border: 1px solid var(--pdi-border);
    border-top: none;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    list-style: none;
    padding: 0;
    margin: 0;
    pointer-events: none;
}

.pdi-slide-submenu.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

/* Nested submenu items with children */
.pdi-slide-submenu li.has-nested {
    position: relative;
}

.pdi-slide-submenu li.has-nested:hover > a {
    color: var(--pdi-red);
    background: var(--pdi-light-gray);
}

/* 3rd level nested submenu - Opens to the LEFT of 2nd level */
.pdi-slide-nested-submenu {
    position: absolute;
    top: -3px;
    left: -250px;
    width: 250px;
    max-height: 400px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--pdi-border);
    border-top: none;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    list-style: none;
    padding: 0;
    margin: 0;
    pointer-events: none;
}

/* Show nested submenu on hover - CSS approach */
.pdi-slide-submenu li.has-nested:hover > .pdi-slide-nested-submenu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
    pointer-events: auto !important;
}

.pdi-slide-nested-submenu.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.pdi-slide-nested-submenu li {
    /* No divider between items */
}

.pdi-slide-nested-submenu li:last-child {
    /* No divider */
}

.pdi-slide-nested-submenu a {
    display: block;
    padding: 10px 15px;
    color: var(--pdi-dark);
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.pdi-slide-nested-submenu a:hover {
    color: var(--pdi-red);
    background: var(--pdi-light-gray);
}

.pdi-slide-submenu li {
    /* No divider between items */
}

.pdi-slide-submenu li:last-child {
    /* No divider */
}

.pdi-slide-submenu a {
    display: block;
    padding: 10px 15px;
    color: var(--pdi-dark);
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    white-space: nowrap;
}

.pdi-slide-submenu li:not(.has-nested) > a:hover {
    color: var(--pdi-red);
    background: var(--pdi-light-gray);
    padding-left: 18px;
}

/* Mobile/Tablet Header - Hidden on Desktop */
.pdi-mobile-header {
    display: none;
    background: #fff;
    border-bottom: 1px solid var(--pdi-border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    width: 100%;
    box-sizing: border-box;
}

/* Mobile header spacer */
.pdi-mobile-header-spacer {
    display: none;
    height: 70px;
}

.pdi-mobile-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    height: 70px;
    box-sizing: border-box;
}

.pdi-mobile-logo {
    display: flex;
    align-items: center;
}

.pdi-mobile-logo a {
    display: flex;
    align-items: center;
}

.pdi-mobile-logo img {
    height: 46px;
    width: auto;
    display: block;
}

.pdi-mobile-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pdi-mobile-group-selector {
    position: relative;
}

.pdi-mobile-group-toggle {
    background: transparent;
    border: 1px solid #ddd;
    padding: 9px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--pdi-dark);
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    white-space: nowrap;
}

.pdi-mobile-group-toggle:hover {
    border-color: var(--pdi-red);
    color: var(--pdi-red);
}

.pdi-mobile-group-toggle .pdi-chevron {
    transition: transform 0.3s ease;
}

.pdi-mobile-group-toggle.active .pdi-chevron {
    transform: rotate(180deg);
}

.pdi-mobile-search-toggle,
.pdi-mobile-hamburger {
    background: transparent;
    border: none;
    min-width: 44px;
    min-height: 44px;
    padding: 12px;
    cursor: pointer;
    color: var(--pdi-red);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdi-mobile-group-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    min-width: 230px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-top: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 6px;
    z-index: 10000;
}

.pdi-mobile-group-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pdi-mobile-hamburger {
    min-width: 44px;
    min-height: 44px;
    position: relative;
}

.pdi-mobile-hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--pdi-red);
    display: block;
    transition: all 0.3s ease;
    position: absolute;
}

.pdi-mobile-hamburger-line:nth-child(1) {
    top: 12px;
}

.pdi-mobile-hamburger-line:nth-child(2) {
    top: 21px;
}

.pdi-mobile-hamburger-line:nth-child(3) {
    top: 30px;
}

.pdi-mobile-hamburger.active .pdi-mobile-hamburger-line:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
}

.pdi-mobile-hamburger.active .pdi-mobile-hamburger-line:nth-child(2) {
    opacity: 0;
}

.pdi-mobile-hamburger.active .pdi-mobile-hamburger-line:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
}

/* Mobile Slide Menu */
.pdi-mobile-slide-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: calc(100vh - 70px);
    background: #fff;
    overflow-y: auto;
    transition: all 0.4s ease;
    z-index: 9998;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
}

.pdi-mobile-slide-menu.active {
    right: 0;
}

.pdi-mobile-menu-content {
    padding: 0;
}

.pdi-mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pdi-mobile-menu-item {
    border-bottom: 1px solid var(--pdi-border);
}

.pdi-mobile-menu-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 25px;
    color: var(--pdi-dark);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    transition: all 0.3s ease;
}

.pdi-mobile-menu-item > a:hover,
.pdi-mobile-menu-item.current-menu-item > a {
    color: var(--pdi-red);
    background: var(--pdi-light-gray);
}

.pdi-mobile-menu-item.has-children > a::after {
    content: '+';
    font-size: 24px;
    font-weight: 300;
    color: var(--pdi-gray);
    transition: all 0.3s ease;
}

.pdi-mobile-menu-item.has-children.open > a::after {
    content: '−';
}

/* Mobile Submenu */
.pdi-mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--pdi-light-gray);
    list-style: none;
    padding: 0;
    margin: 0;
}

.pdi-mobile-submenu.open {
    max-height: 2000px;
}

.pdi-mobile-submenu > li {
    border-bottom: 1px solid var(--pdi-border);
}

.pdi-mobile-submenu > li:last-child {
    border-bottom: none;
}

.pdi-mobile-submenu > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 25px 15px 45px;
    color: var(--pdi-dark);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pdi-mobile-submenu > li > a:hover {
    color: var(--pdi-red);
}

.pdi-mobile-submenu > li.has-nested-children > a::after {
    content: '+';
    font-size: 20px;
    font-weight: 300;
    color: var(--pdi-gray);
    transition: all 0.3s ease;
}

.pdi-mobile-submenu > li.has-nested-children.open > a::after {
    content: '−';
}

/* Mobile Nested Submenu (3rd level) */
.pdi-mobile-nested-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fff;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pdi-mobile-nested-submenu.open {
    max-height: 1000px;
}

.pdi-mobile-nested-submenu li {
    border-bottom: 1px solid var(--pdi-border);
}

.pdi-mobile-nested-submenu li:last-child {
    border-bottom: none;
}

.pdi-mobile-nested-submenu a {
    display: block;
    padding: 12px 25px 12px 65px;
    color: var(--pdi-dark);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pdi-mobile-nested-submenu a:hover {
    color: var(--pdi-red);
    padding-left: 70px;
}

/* Mobile Backdrop */
.pdi-mobile-backdrop {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9997;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.pdi-mobile-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Focus States - Keyboard Accessibility */
.pdi-main-menu > li > a:focus-visible,
.pdi-dropdown a:focus-visible,
.pdi-mega-list a:focus-visible {
    outline: 2px solid var(--pdi-focus);
    outline-offset: 2px;
}

.pdi-quote-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--pdi-red);
}

.pdi-search-toggle:focus-visible,
.pdi-hamburger-toggle:focus-visible,
.pdi-group-toggle:focus-visible,
.pdi-mobile-search-toggle:focus-visible,
.pdi-mobile-hamburger:focus-visible,
.pdi-mobile-group-toggle:focus-visible {
    outline: 2px solid var(--pdi-focus);
    outline-offset: 2px;
}

.pdi-group-item:focus-visible,
.pdi-slide-menu-item > a:focus-visible,
.pdi-slide-submenu a:focus-visible,
.pdi-slide-nested-submenu a:focus-visible {
    outline: 2px solid var(--pdi-focus);
    outline-offset: -2px;
    background: var(--pdi-light-gray);
}

.pdi-search-input:focus-visible {
    outline: none;
    border-color: var(--pdi-red);
    box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.15);
}

.pdi-mobile-menu-item > a:focus-visible,
.pdi-mobile-submenu a:focus-visible,
.pdi-mobile-nested-submenu a:focus-visible {
    outline: 2px solid var(--pdi-focus);
    outline-offset: -2px;
}

/* Skip to content link for keyboard users */
.pdi-skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--pdi-red);
    color: #fff;
    padding: 12px 24px;
    font-weight: 600;
    z-index: 99999;
    text-decoration: none;
    transition: top 0.2s ease;
}

.pdi-skip-link:focus {
    top: 10px;
}

/* Screen reader only text */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .pdi-header,
    .pdi-nav-container,
    .pdi-logo img,
    .pdi-main-menu > li > a,
    .pdi-main-menu > li > a::after,
    .pdi-dropdown,
    .pdi-dropdown a,
    .pdi-mega-menu,
    .pdi-mega-list a,
    .pdi-quote-btn,
    .pdi-group-toggle,
    .pdi-group-dropdown,
    .pdi-group-item,
    .pdi-chevron,
    .pdi-search-toggle,
    .pdi-search-overlay,
    .pdi-search-input,
    .pdi-search-backdrop,
    .pdi-hamburger-line,
    .pdi-slide-menu,
    .pdi-slide-submenu,
    .pdi-slide-nested-submenu,
    .pdi-mobile-header,
    .pdi-mobile-group-toggle,
    .pdi-mobile-group-dropdown,
    .pdi-mobile-hamburger-line,
    .pdi-mobile-slide-menu,
    .pdi-mobile-submenu,
    .pdi-mobile-nested-submenu,
    .pdi-mobile-backdrop,
    .pdi-header-spacer {
        transition: none !important;
        animation: none !important;
    }
}

/* Responsive */
@media screen and (max-width: 1400px) {
    .pdi-nav-container {
        padding: 0 20px 0 100px;
    }
    
    .pdi-main-menu {
        gap: 35px;
    }
    
    /* Mega menu adjustments */
    .pdi-mega-menu-container {
        padding: 0 30px 0 100px;
    }
    
    .pdi-mega-menu-inner {
        gap: 40px;
    }
    
    .pdi-mega-title {
        font-size: 16px;
    }
    
    .pdi-mega-list a {
        font-size: 14px;
    }
    
    .pdi-mega-list {
        width: 220px !important;
    }
    
    /* Header action items */
    .pdi-group-toggle {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .pdi-quote-btn {
        padding: 11px 20px;
        font-size: 14px;
    }
}

@media screen and (max-width: 1200px) {
    .pdi-nav-container {
        padding: 0 20px 0 60px;
    }
    
    .pdi-main-menu {
        gap: 28px;
    }
    
    /* Mega menu - switch to 2x2 grid */
    .pdi-mega-menu-container {
        padding: 0 20px 0 60px;
    }
    
    .pdi-mega-menu-inner {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-flow: row;
        gap: 30px 50px;
    }
    
    .pdi-mega-menu {
        padding: 40px 0 60px 0;
    }
    
    .pdi-mega-menu-title {
        font-size: 26px;
        margin-bottom: 30px;
    }
    
    .pdi-mega-list {
        width: auto !important;
        margin-left: 0 !important;
    }
    
    .pdi-mega-column-header {
        margin-bottom: 15px;
    }
    
    .pdi-mega-icon {
        width: 32px;
        height: 32px;
    }
    
    /* Header action items */
    .pdi-nav-actions {
        gap: 12px;
    }
    
    .pdi-group-toggle {
        padding: 7px 10px;
        font-size: 12px;
    }
    
    .pdi-quote-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .pdi-logo {
        margin-right: 40px;
    }
}

@media screen and (max-width: 1024px) {
    .pdi-nav-container {
        padding: 0 20px 0 40px;
    }
    
    .pdi-main-menu {
        gap: 22px;
    }
    
    .pdi-main-menu > li > a {
        font-size: 15px;
    }
}

@media screen and (max-width: 1024px) {
    /* Hide desktop header and spacer */
    .pdi-header {
        display: none !important;
    }
    
    .pdi-header-spacer {
        display: none !important;
    }
    
    .pdi-slide-menu {
        display: none !important;
    }
    
    /* Show mobile header and spacer */
    .pdi-mobile-header {
        display: block;
    }
    
    .pdi-mobile-header-spacer {
        display: block;
    }
    
    /* Adjust search overlay for mobile */
    .pdi-search-overlay {
        position: fixed;
        top: 70px;
        border-top: none;
    }
    
    .pdi-search-overlay.active {
        border-top: 2px solid var(--pdi-border);
    }
    
    .pdi-search-container {
        padding: 0 20px;
    }
    
    /* Hide search when scrolling on mobile */
    body.mobile-scrolling .pdi-search-overlay {
        display: none !important;
    }
}

@media screen and (max-width: 768px) {
    .pdi-mobile-slide-menu {
        max-width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .pdi-quote-btn {
        padding: 11px 18px;
        font-size: 13px;
    }
}
