/* ═══════════════════════════════════════════════════
   Agromind Custom Header — Frontend Styles v2.0
   ═══════════════════════════════════════════════════ */

/* ── CSS Custom Properties (defaults; overridden by inline :root from PHP) ── */
:root {
    --ach-header-bg: #ffffff;
    --ach-header-bg-scroll: rgba(255,255,255,0.85);
    --ach-text-primary: #1a1a2e;
    --ach-text-secondary: #555;
    --ach-accent: #2d6a4f;
    --ach-accent-light: #52b788;
    --ach-accent-gradient: linear-gradient(135deg, #2d6a4f 0%, #52b788 50%, #95d5b2 100%);
    --ach-shadow: 0 1px 3px rgba(0,0,0,0.06);
    --ach-shadow-scroll: 0 4px 24px rgba(0,0,0,0.1);
    --ach-header-height: 72px;
    --ach-mobile-header-height: 60px;
    --ach-transition: 0.3s cubic-bezier(0.4,0,0.2,1);
    --ach-nav-gap: 2rem;
    --ach-logo-height: 42px;
    --ach-max-width: 1200px;
    --ach-sidebar-width: 280px;
    --ach-backdrop-blur: 6px;
    --ach-title-font-size: 20px;
    --ach-title-font-weight: 700;
    --ach-nav-font-size: 14px;
    --ach-header-padding: 0px;
}

/* ── Header Container ── */
.ach-header {
    position: relative;
    top: 0; left: 0; right: 0;
    width: 100%;
    z-index: 99999;
    background: var(--ach-header-bg);
    box-shadow: var(--ach-shadow);
    transition: background var(--ach-transition), box-shadow var(--ach-transition), transform var(--ach-transition);
}
.ach-header.ach-no-shadow { box-shadow: none !important; }
.ach-header--hidden { transform: translateY(-100%) !important; }

.ach-header__accent { height: 3px; background: var(--ach-accent-gradient); width: 100%; }

.ach-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    max-width: var(--ach-max-width);
    margin: 0 auto;
    padding: var(--ach-header-padding) clamp(1rem,3vw,2rem);
    min-height: var(--ach-header-height);
    gap: 1rem;
}

/* ── Dark Mode ── */
.ach-dark-mode { --ach-header-bg: #1a1a2e; --ach-text-primary: #f0f0f0; --ach-text-secondary: #aaa; --ach-shadow: 0 1px 3px rgba(0,0,0,0.3); --ach-shadow-scroll: 0 4px 24px rgba(0,0,0,0.4); --ach-header-bg-scroll: rgba(26,26,46,0.92); }

/* ── Brand ── */
.ach-header__brand {
    display: flex; align-items: center; gap: 0.75rem;
    text-decoration: none !important; color: var(--ach-text-primary) !important;
    flex-shrink: 0; transition: opacity var(--ach-transition);
}
.ach-header__brand:hover { opacity: 0.8; }
.ach-header__logo { display: flex; align-items: center; flex-shrink: 0; }
.ach-header__logo-img {
    height: var(--ach-logo-height); width: auto; max-width: 180px;
    object-fit: contain; border-radius: 6px; transition: transform var(--ach-transition);
}
.ach-header__brand:hover .ach-header__logo-img { transform: scale(1.04); }
.ach-header__title {
    font-size: var(--ach-title-font-size); font-weight: var(--ach-title-font-weight);
    letter-spacing: -0.02em; color: var(--ach-text-primary);
    white-space: nowrap; line-height: 1.3;
}

/* ── Desktop Navigation ── */
.ach-header__nav { display: flex; align-items: center; }
.ach-nav-list {
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
    row-gap: 0.5rem; column-gap: var(--ach-nav-gap);
    list-style: none; margin: 0; padding: 0;
}
.ach-nav-list li { position: relative; }
.ach-nav-list > li > a, .ach-nav-list > li > a:visited {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: var(--ach-nav-font-size); font-weight: 500;
    color: var(--ach-text-primary) !important; text-decoration: none !important;
    padding: 0.4rem 0; position: relative;
    transition: color var(--ach-transition); letter-spacing: 0.01em;
}
/* Parent chevron */
.ach-nav-list > li.menu-item-has-children > a::before {
    content:'' !important; display:inline-block !important; width:5px !important; height:5px !important;
    border-right:1.5px solid currentColor !important; border-bottom:1.5px solid currentColor !important;
    border-top:none !important; border-left:none !important; background:transparent !important;
    transform:rotate(45deg) !important; margin-left:4px !important; margin-bottom:2px !important;
    transition:transform var(--ach-transition); order:1;
}
.ach-nav-list > li.menu-item-has-children:hover > a::before { transform:rotate(-135deg) !important; }

/* Nested chevron */
.ach-nav-list .sub-menu li.menu-item-has-children > a {
    position: relative !important; padding-right: 1.5rem !important;
}
.ach-nav-list .sub-menu li.menu-item-has-children > a::after {
    content:'' !important; display:block !important; width:5px !important; height:5px !important;
    border-right:1.5px solid currentColor !important; border-bottom:1.5px solid currentColor !important;
    border-top:none !important; border-left:none !important; background:transparent !important;
    position:absolute !important; right:0.8rem !important; top:50% !important;
    transform:translateY(-50%) rotate(-45deg) !important;
    transition:transform var(--ach-transition); margin:0 !important;
}
.ach-nav-list .sub-menu li.menu-item-has-children:hover > a::after { transform:translateY(-50%) rotate(45deg) !important; }

/* Force theme resets to prevent rogue bullets (e.g. red dots) */
.ach-nav-list .sub-menu li::before, 
.ach-nav-list .sub-menu a::before { display: none !important; content: none !important; }
.ach-nav-list .sub-menu li, .ach-nav-list .sub-menu a { list-style: none !important; }

/* Underline hover (default) */
.ach-nav-list > li > a::after {
    content:''; position:absolute; bottom:0; left:0; width:0; height:2px;
    background:var(--ach-accent-gradient); border-radius:2px; transition:width var(--ach-transition);
}
.ach-nav-list > li > a:hover::after, .ach-nav-list > li.current-menu-item > a::after,
.ach-nav-list > li.current_page_item > a::after { width:100%; }
.ach-nav-list > li > a:hover, .ach-nav-list > li.current-menu-item > a,
.ach-nav-list > li.current_page_item > a { color: var(--ach-accent) !important; }

/* Nav hover: background */
.ach-hover-background > li > a::after { display:none; }
.ach-hover-background > li > a { padding:0.35rem 0.75rem; border-radius:6px; }
.ach-hover-background > li > a:hover, .ach-hover-background > li.current-menu-item > a {
    background: rgba(45,106,79,0.1);
}
/* Nav hover: fade */
.ach-hover-fade > li > a::after { display:none; }

/* ── Desktop Dropdown ── */
.ach-nav-list .sub-menu, .ach-nav-list .children {
    position:absolute; top:calc(100% + 4px); left:0; min-width:210px;
    background:#fff; border-radius:10px; box-shadow:0 8px 32px rgba(0,0,0,0.12);
    padding:0.4rem 0; list-style:none; opacity:0; visibility:hidden;
    transform:translateY(8px); transition:opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index:100; border:1px solid rgba(0,0,0,0.06);
}
.ach-dark-mode .ach-nav-list .sub-menu, .ach-dark-mode .ach-nav-list .children {
    background:#2a2a3e; border-color:rgba(255,255,255,0.08);
}
.ach-nav-list .sub-menu .sub-menu { top:-0.4rem; left:100%; transform:translateX(8px); }
.ach-nav-list > li:hover > .sub-menu, .ach-nav-list > li:hover > .children {
    opacity:1; visibility:visible; transform:translateY(0);
}
.ach-nav-list .sub-menu li:hover > .sub-menu, .ach-nav-list .children li:hover > .children {
    opacity:1; visibility:visible; transform:translateX(0);
}
.ach-nav-list .sub-menu a, .ach-nav-list .children a {
    display:block; padding:0.5rem 1.2rem; font-size:0.85rem; font-weight:400;
    color:var(--ach-text-primary) !important; text-decoration:none !important;
    transition:background var(--ach-transition), color var(--ach-transition); white-space:nowrap;
}
.ach-nav-list .sub-menu a:hover, .ach-nav-list .children a:hover {
    background:rgba(45,106,79,0.08); color:var(--ach-accent) !important;
}

/* ── Actions area (CTA + Search + Hamburger) ── */
.ach-header__actions {
    display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0;
}

/* ── CTA Button ── */
.ach-cta-btn {
    display: inline-flex; align-items: center;
    padding: 0.45rem 1.2rem; font-size: 0.85rem; font-weight: 600;
    background: var(--ach-cta-bg, var(--ach-accent)); 
    color: var(--ach-cta-text, #fff) !important;
    border-radius: 8px; text-decoration: none !important;
    transition: background var(--ach-transition), transform var(--ach-transition), box-shadow var(--ach-transition);
    white-space: nowrap;
}
.ach-cta-btn:hover {
    background: var(--ach-cta-bg-hover, var(--ach-accent-light));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45,106,79,0.25);
}
.ach-cta-btn--show-mobile { display: none; }

/* ── Search Toggle ── */
.ach-search-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; padding: 0;
    background: none; border: none; cursor: pointer; border-radius: 8px;
    transition: background var(--ach-transition);
}
.ach-search-toggle svg { width: 18px; height: 18px; color: var(--ach-text-primary); }
.ach-search-toggle:hover { background: rgba(45,106,79,0.08); }

/* ── Search Box (desktop expandable) ── */
.ach-search-box {
    position: absolute; top: 0; left: 0; right: 0;
    height: 100%; display: flex; align-items: center; justify-content: center;
    background: var(--ach-header-bg); z-index: 10;
    opacity: 0; visibility: hidden; transform: scaleX(0.95);
    transition: opacity 0.25s ease, visibility 0.25s, transform 0.25s ease;
    padding: 0 1rem;
}
.ach-search-box.is-open { opacity: 1; visibility: visible; transform: scaleX(1); }
.ach-search-box form { flex: 1; max-width: 600px; display: flex; align-items: center; gap: 0.5rem; }
.ach-search-input {
    flex: 1; padding: 0.6rem 1rem; font-size: 1rem;
    border: 2px solid var(--ach-accent); border-radius: 10px;
    background: transparent; color: var(--ach-text-primary);
    outline: none; transition: box-shadow var(--ach-transition);
}
.ach-search-input:focus { box-shadow: 0 0 0 3px rgba(45,106,79,0.15); }
.ach-search-submit {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; flex-shrink: 0;
    background: var(--ach-accent); border: none; border-radius: 10px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.ach-search-submit svg { width: 18px; height: 18px; color: #fff; }
.ach-search-submit:hover {
    background: var(--ach-accent-light);
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(45,106,79,0.2);
}
.ach-search-close {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; background: none; border: none;
    cursor: pointer; border-radius: 8px; margin-left: 0.5rem; flex-shrink: 0;
}
.ach-search-close svg { width: 18px; height: 18px; color: var(--ach-text-primary); }
.ach-search-close:hover { background: rgba(45,106,79,0.08); }

/* ── Hamburger Buttons ── */
.ach-header__hamburger {
    display: none; justify-content: center; align-items: center;
    width: 40px; height: 40px; padding: 0;
    background: none; border: none; cursor: pointer; border-radius: 8px;
    transition: background var(--ach-transition); z-index: 100001; flex-shrink: 0;
}
.ach-header__hamburger:hover { background: rgba(45,106,79,0.08); }

/* Lines variant */
.ach-hamburger--lines { flex-direction: column; gap: 5px; }
.ach-hamburger__line {
    display: block; width: 22px; height: 2px;
    background: var(--ach-text-primary); border-radius: 2px;
    transition: transform var(--ach-transition), opacity var(--ach-transition);
}
.ach-hamburger--lines.is-active .ach-hamburger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ach-hamburger--lines.is-active .ach-hamburger__line:nth-child(2) { opacity: 0; }
.ach-hamburger--lines.is-active .ach-hamburger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Dots variant */
.ach-hamburger--dots { flex-direction: column; gap: 4px; }
.ach-hamburger__dot {
    display: block; width: 5px; height: 5px;
    background: var(--ach-text-primary); border-radius: 50%;
    transition: transform var(--ach-transition), opacity var(--ach-transition);
}
.ach-hamburger--dots.is-active .ach-hamburger__dot:nth-child(1) { transform: translateY(9px) scale(1.2); }
.ach-hamburger--dots.is-active .ach-hamburger__dot:nth-child(2) { opacity: 0; }
.ach-hamburger--dots.is-active .ach-hamburger__dot:nth-child(3) { transform: translateY(-9px) scale(1.2); }

/* Grid variant */
.ach-hamburger--grid { flex-wrap: wrap; gap: 4px; width: 40px; padding: 10px; }
.ach-hamburger--grid .ach-hamburger__dot {
    width: 6px; height: 6px; background: var(--ach-text-primary); border-radius: 2px;
    transition: transform var(--ach-transition), border-radius var(--ach-transition);
}
.ach-hamburger--grid.is-active .ach-hamburger__dot { border-radius: 50%; transform: scale(0.8); }

/* ── Mobile Backdrop ── */
.ach-mobile-backdrop {
    position: fixed; top: 0; left: 0; width: 100%; height: 100dvh;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(var(--ach-backdrop-blur, 6px)) saturate(120%);
    -webkit-backdrop-filter: blur(var(--ach-backdrop-blur, 6px)) saturate(120%);
    z-index: 99999; opacity: 0; visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
.ach-mobile-backdrop.is-visible { opacity: 1; visibility: visible; }

/* ── Mobile Sidebar Panel ── */
.ach-mobile-overlay {
    position: fixed; top: 0; left: 0;
    width: var(--ach-sidebar-width); max-width: 85vw;
    height: 100dvh; background: var(--ach-sidebar-gradient, #fff);
    z-index: 100000; transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto; overflow-x: hidden;
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.12), 2px 0 8px rgba(0, 0, 0, 0.06);
    display: flex; flex-direction: column;
}
.ach-mobile-overlay::-webkit-scrollbar { width: 3px; }
.ach-mobile-overlay::-webkit-scrollbar-track { background: transparent; }
.ach-mobile-overlay::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 3px; }
.ach-dark-mode ~ .ach-mobile-overlay { background: linear-gradient(180deg, #1a1a2e 0%, #2a2a3e 100%); }
.ach-mobile-overlay.is-open { transform: translateX(0); }

/* ── Sidebar Brand ── */
.ach-mobile-overlay__brand {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 1.5rem 1.25rem 1.25rem;
    text-decoration: none !important;
    flex-shrink: 0; overflow: hidden;
    position: relative;
}
.ach-mobile-overlay__brand::after {
    content: '';
    position: absolute; bottom: 0; left: 1.25rem; right: 1.25rem;
    height: 2px;
    background: var(--ach-accent-gradient);
    border-radius: 2px;
}
.ach-mobile-overlay__brand-logo {
    flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(45, 106, 79, 0.06);
    border: 1.5px solid rgba(45, 106, 79, 0.12);
    overflow: hidden;
}
.ach-mobile-overlay__brand-logo img {
    height: 30px; width: auto; max-width: 36px;
    object-fit: contain; border-radius: 4px;
}
.ach-mobile-overlay__brand-title {
    font-size: 1.1rem; font-weight: 700;
    color: var(--ach-text-primary);
    letter-spacing: -0.02em; line-height: 1.25;
    overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap; min-width: 0;
}

/* ── Mobile Search ── */
.ach-mobile-search {
    padding: 0.75rem 1rem; flex-shrink: 0;
    overflow: hidden;
}
.ach-mobile-search form {
    display: flex; align-items: center; gap: 0.5rem;
    background: rgba(0, 0, 0, 0.03);
    border: 1.5px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px; padding: 0.45rem 0.55rem 0.45rem 0.75rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    width: 100%; box-sizing: border-box;
    min-width: 0;
}
.ach-mobile-search form:focus-within {
    border-color: var(--ach-accent);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.08);
    background: rgba(255, 255, 255, 0.6);
}
.ach-mobile-search svg {
    width: 15px; height: 15px; color: var(--ach-text-secondary);
    flex-shrink: 0; transition: color 0.25s ease;
}
.ach-mobile-search form:focus-within > svg { color: var(--ach-accent); }
.ach-mobile-search__input {
    flex: 1; min-width: 0; border: none; background: transparent; outline: none;
    font-size: 0.85rem; color: var(--ach-text-primary);
}
.ach-mobile-search__input::placeholder { color: var(--ach-text-secondary); opacity: 0.6; }
.ach-mobile-search__btn {
    display: flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; flex-shrink: 0;
    background: var(--ach-accent); border: none; border-radius: 7px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease;
}
.ach-mobile-search__btn svg { width: 14px; height: 14px; color: #fff; }
.ach-mobile-search__btn:hover {
    background: var(--ach-accent-light); transform: scale(1.05);
}

/* ── Section label ── */
.ach-mobile-overlay__inner {
    width: 100%; padding: 0.5rem 0 0.75rem; flex: 1;
}

/* ── Mobile Nav List ── */
.ach-mobile-nav-list {
    display: flex; flex-direction: column;
    list-style: none; margin: 0;
    padding: 0 0.65rem; width: 100%;
}
.ach-mobile-nav-list > li {
    display: block; width: 100%; position: relative;
    opacity: 0; transform: translateX(-16px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    margin-bottom: var(--ach-mobile-nav-gap, 2px);
}
.ach-mobile-overlay.is-open .ach-mobile-nav-list > li { opacity: 1; transform: translateX(0); }
.ach-mobile-overlay.is-open .ach-mobile-nav-list > li:nth-child(1) { transition-delay: 0.08s; }
.ach-mobile-overlay.is-open .ach-mobile-nav-list > li:nth-child(2) { transition-delay: 0.13s; }
.ach-mobile-overlay.is-open .ach-mobile-nav-list > li:nth-child(3) { transition-delay: 0.18s; }
.ach-mobile-overlay.is-open .ach-mobile-nav-list > li:nth-child(4) { transition-delay: 0.23s; }
.ach-mobile-overlay.is-open .ach-mobile-nav-list > li:nth-child(5) { transition-delay: 0.28s; }
.ach-mobile-overlay.is-open .ach-mobile-nav-list > li:nth-child(6) { transition-delay: 0.33s; }
.ach-mobile-overlay.is-open .ach-mobile-nav-list > li:nth-child(7) { transition-delay: 0.38s; }
.ach-mobile-overlay.is-open .ach-mobile-nav-list > li:nth-child(8) { transition-delay: 0.43s; }
.ach-mobile-overlay.is-open .ach-mobile-nav-list > li:nth-child(9) { transition-delay: 0.48s; }
.ach-mobile-overlay.is-open .ach-mobile-nav-list > li:nth-child(10) { transition-delay: 0.53s; }
.ach-mobile-overlay.is-open .ach-mobile-nav-list > li:nth-child(11) { transition-delay: 0.58s; }
.ach-mobile-overlay.is-open .ach-mobile-nav-list > li:nth-child(12) { transition-delay: 0.63s; }
.ach-mobile-overlay.is-open .ach-mobile-nav-list > li:nth-child(13) { transition-delay: 0.68s; }
.ach-mobile-overlay.is-open .ach-mobile-nav-list > li:nth-child(14) { transition-delay: 0.73s; }
.ach-mobile-overlay.is-open .ach-mobile-nav-list > li:nth-child(15) { transition-delay: 0.78s; }
.ach-mobile-overlay.is-open .ach-mobile-nav-list > li:nth-child(n+16) { transition-delay: 0.83s; }

/* Nav item link */
.ach-mobile-nav-list > li > a {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.78rem 0.9rem; font-size: 0.92rem; font-weight: 600;
    color: var(--ach-text-primary) !important; text-decoration: none !important;
    border-radius: 10px;
    border-left: 3px solid transparent;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}
.ach-mobile-nav-list > li.menu-item-has-children > a { padding-right: 3rem; }
.ach-mobile-nav-list > li > a:hover {
    background: rgba(45, 106, 79, 0.06);
    border-left-color: var(--ach-accent-light);
    transform: translateX(2px);
}
.ach-mobile-nav-list > li.current-menu-item > a,
.ach-mobile-nav-list > li.current_page_item > a {
    color: var(--ach-accent) !important;
    background: rgba(45, 106, 79, 0.08);
    border-left-color: var(--ach-accent);
    font-weight: 700;
}

/* ── Submenu Toggle ── */
.ach-submenu-toggle {
    position: absolute; top: 0.5rem; right: 0.65rem;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0, 0, 0, 0.03); border: none;
    border-radius: 8px;
    cursor: pointer; padding: 0;
    transition: background 0.25s ease;
}
.ach-submenu-toggle:hover { background: rgba(45, 106, 79, 0.08); }
.ach-submenu-toggle::after {
    content: ''; width: 6px; height: 6px;
    border-right: 1.5px solid var(--ach-text-secondary);
    border-bottom: 1.5px solid var(--ach-text-secondary);
    transform: rotate(45deg); margin-top: -2px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.ach-submenu-toggle.is-toggled {
    background: rgba(45, 106, 79, 0.1);
}
.ach-submenu-toggle.is-toggled::after {
    transform: rotate(-135deg); margin-top: 2px;
    border-color: var(--ach-accent);
}

/* ── Mobile Sub-menus ── */
.ach-mobile-nav-list .sub-menu, .ach-mobile-nav-list .children {
    display: flex; flex-direction: column; list-style: none;
    margin: 0 0 0 1rem; padding: 0;
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1.5px dashed rgba(45, 106, 79, 0.2);
}
.ach-mobile-nav-list .sub-menu.is-expanded { max-height: 2000px; }
.ach-mobile-nav-list .sub-menu > li { display: block; width: 100%; position: relative; }
.ach-mobile-nav-list .sub-menu > li.menu-item-has-children > a,
.ach-mobile-nav-list .sub-menu > li.page_item_has_children > a { padding-right: 3rem; }
.ach-mobile-nav-list .sub-menu a {
    display: block; padding: 0.55rem 0.9rem 0.55rem 1rem;
    font-size: 0.84rem; font-weight: 400;
    color: var(--ach-text-secondary) !important; text-decoration: none !important;
    border-radius: 8px; margin: 1px 0;
    transition: color 0.25s ease, background 0.25s ease, transform 0.2s ease;
}
.ach-mobile-nav-list .sub-menu a:hover {
    color: var(--ach-accent) !important;
    background: rgba(45, 106, 79, 0.05);
    transform: translateX(3px);
}
.ach-mobile-nav-list .sub-menu li.current-menu-item > a {
    color: var(--ach-accent) !important;
    font-weight: 600;
    background: rgba(45, 106, 79, 0.06);
}
/* Nested sub-menus (3rd level+) */
.ach-mobile-nav-list .sub-menu .sub-menu { margin-left: 0.75rem; }
.ach-mobile-nav-list .sub-menu .sub-menu a { font-size: 0.82rem; }
.ach-mobile-nav-list .sub-menu .sub-menu .sub-menu a { font-size: 0.8rem; }

/* ── Social Icons ── */
.ach-sidebar-social {
    display: flex; align-items: center; justify-content: center; gap: 0.6rem; flex-wrap: wrap;
    padding: 1.15rem 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    flex-shrink: 0; margin-top: auto;
}
.ach-sidebar-social--sticky {
    position: sticky; bottom: 0; z-index: 10;
    background: var(--ach-sidebar-bg-bottom, #f0fdf4);
}
.ach-social-icon {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 10px;
    background: rgba(45, 106, 79, 0.06);
    color: var(--ach-text-secondary) !important;
    text-decoration: none !important;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.ach-social-icon svg { width: 15px; height: 15px; }
.ach-social-icon:hover {
    background: var(--ach-accent); color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 106, 79, 0.25);
}

/* ── Scroll State ── */
.ach-header.is-scrolled {
    background: var(--ach-header-bg-scroll);
    box-shadow: var(--ach-shadow-scroll);
    backdrop-filter: blur(var(--ach-header-blur, 16px)); -webkit-backdrop-filter: blur(var(--ach-header-blur, 16px));
}

.ach-header-spacer { display: none; }

/* ── Fixed Desktop ── */
@media (min-width:768px) {
    .ach-header.ach-fixed-desktop { position: fixed; }
    .ach-header.ach-fixed-desktop + .ach-header-spacer {
        display: block;
        height: calc(var(--ach-header-height) + (var(--ach-header-padding) * 2) + 3px);
    }
}
/* ── Fixed Mobile ── */
@media (max-width:767.98px) {
    .ach-header.ach-fixed-mobile { position: fixed; }
    .ach-header.ach-fixed-mobile + .ach-header-spacer {
        display: block;
        height: calc(var(--ach-mobile-header-height) + (var(--ach-header-padding) * 2) + 3px);
    }
}
/* ── WP Admin Bar Support ── */
body.admin-bar .ach-header.ach-fixed-desktop,
body.admin-bar .ach-header.ach-fixed-mobile { top: 32px; }
@media screen and (max-width: 782px) {
    body.admin-bar .ach-header.ach-fixed-desktop,
    body.admin-bar .ach-header.ach-fixed-mobile { top: 46px; }
}

/* ── Responsive Mobile ── */
@media (max-width:767.98px) {
    .ach-header__inner { height:var(--ach-mobile-header-height); }
    .ach-header__nav { display:none; }
    .ach-header__hamburger { display:flex; }
    .ach-header__actions .ach-cta-btn:not(.ach-cta-btn--show-mobile) { display:none; }
    .ach-search-toggle { display:none; }
    .ach-header__logo-img { height:calc(var(--ach-logo-height) - 8px); }
    .ach-header__title { font-size:calc(var(--ach-title-font-size) - 4px); }
    
    .ach-cta-btn--show-mobile { display: inline-flex; padding: 0.35rem 0.8rem; font-size: 0.8rem; }
}

.ach-mobile-cta-wrapper {
    padding: 1.5rem 1.25rem 0.5rem;
    display: flex;
}
.ach-mobile-cta-wrapper--top {
    padding: 0.5rem 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.ach-mobile-cta-wrapper .ach-cta-btn {
    width: 100%;
    justify-content: center;
}

body.ach-menu-open { overflow:hidden; }

/* ── Accessibility ── */
.ach-header__brand:focus-visible, .ach-nav-list a:focus-visible,
.ach-header__hamburger:focus-visible, .ach-search-toggle:focus-visible {
    outline:2px solid var(--ach-accent); outline-offset:3px; border-radius:4px;
}
