/* ============================================
   Nofal SEO — Header & Mobile Menu (Responsive)
   Brand: #1C1C35 · #25aae1 · #71b4e8
   ============================================ */

:root {
    --nofal-navy: #1c1c35;
    --nofal-navy-soft: #232340;
    --nofal-accent: #25aae1;
    --nofal-accent-soft: #71b4e8;
    --nofal-header-shadow: 0 4px 24px rgba(28, 28, 53, 0.08);
}

/* ── Sticky header bar ── */
.tornado-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 9990 !important;
    background: #fff !important;
    box-shadow: var(--nofal-header-shadow) !important;
    border-bottom: 1px solid rgba(28, 28, 53, 0.06) !important;
}

/* ── Desktop navigation (≥1200px) ── */
@media (min-width: 1200px) {
    .tornado-header .navigation-menu {
        display: block !important;
    }

    .tornado-header .navigation-menu > ul {
        gap: 2px !important;
    }

    .tornado-header .navigation-menu > ul > li > a {
        display: inline-flex !important;
        align-items: center !important;
        padding: 8px 10px !important;
        font-size: 0.875rem !important;
        font-weight: 600 !important;
        color: var(--nofal-navy) !important;
        border-radius: 8px !important;
        line-height: 1.35 !important;
        transition: color 0.2s ease, background 0.2s ease !important;
    }

    .tornado-header .navigation-menu > ul > li > a:hover,
    .tornado-header .navigation-menu > ul > li > a:focus-visible {
        color: var(--nofal-accent) !important;
        background: rgba(37, 170, 225, 0.08) !important;
    }

    .tornado-header .navigation-menu > ul > li.current-menu-item > a,
    .tornado-header .navigation-menu > ul > li.current_page_item > a {
        color: var(--nofal-accent) !important;
        background: rgba(37, 170, 225, 0.1) !important;
    }
}

@media (min-width: 1200px) and (max-width: 1366px) {
    .tornado-header .navigation-menu > ul > li > a {
        padding: 8px 7px !important;
        font-size: 0.8125rem !important;
    }
}

@media (min-width: 1367px) and (max-width: 1439px) {
    .tornado-header .navigation-menu > ul > li > a {
        padding: 8px 9px !important;
        font-size: 0.84375rem !important;
    }
}

/* ── Tablet / mobile: hide inline nav ── */
@media (max-width: 1199px) {
    .tornado-header .navigation-menu {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .tornado-header .menu-btn[data-id="main-menu"] {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        border-radius: 10px !important;
        background: rgba(37, 170, 225, 0.1) !important;
        color: var(--nofal-navy) !important;
        border: 1px solid rgba(37, 170, 225, 0.25) !important;
        transition: background 0.2s ease, transform 0.2s ease !important;
        font-size: 0 !important;
        line-height: 0 !important;
        padding: 0 !important;
    }

    .tornado-header .menu-btn[data-id="main-menu"] .nofal-menu-toggle__icon {
        width: 20px;
        height: 20px;
        display: block;
        flex-shrink: 0;
        pointer-events: none;
    }

    .tornado-header .action-btns .btn.square[class*="ti-"] {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0 !important;
        line-height: 0 !important;
        padding: 0 !important;
        -webkit-text-size-adjust: 100%;
    }

    .tornado-header .action-btns .btn.square[class*="ti-"]::before {
        font-size: 1.125rem !important;
        line-height: 1 !important;
        width: 100% !important;
        height: 100% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        speak: never;
    }

    .tornado-header .menu-btn[data-id="main-menu"]:hover,
    .tornado-header .menu-btn[data-id="main-menu"].active {
        background: var(--nofal-accent) !important;
        color: #fff !important;
        border-color: var(--nofal-accent) !important;
    }
}

.tornado-header .action-btns .btn {
    border-radius: 10px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.tornado-header .action-btns button.btn {
    appearance: none;
    cursor: pointer;
    font: inherit;
    line-height: inherit;
}

.tornado-header .action-btns .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 170, 225, 0.25);
}

/* ── Desktop: text-only nav (icons for mobile drawer only) ── */
@media (min-width: 1200px) {
    .tornado-header .navigation-menu .nofal-drawer-icon,
    .tornado-header .navigation-menu .nofal-drawer-arrow {
        display: none !important;
    }

    .tornado-header .navigation-menu .nofal-drawer-label {
        flex: none;
    }

    .tornado-header .navigation-menu > ul > li > a {
        display: inline-flex !important;
        gap: 0 !important;
    }
}

/* ════════════════════════════════════════════
   Mobile drawer — brand palette & surfaces
   Navy #1C1C35 · Accent #25aae1 · Soft #71b4e8
   ════════════════════════════════════════════ */

.mobile-menu .menu-content {
    --drawer-bg: #1c1c35;
    --drawer-bg-deep: #161628;
    --drawer-surface: rgba(255, 255, 255, 0.045);
    --drawer-surface-raised: rgba(255, 255, 255, 0.07);
    --drawer-border: rgba(255, 255, 255, 0.09);
    --drawer-border-strong: rgba(113, 180, 232, 0.22);
    --drawer-text: #ffffff;
    --drawer-text-muted: rgba(255, 255, 255, 0.88);
    --drawer-text-subtle: rgba(255, 255, 255, 0.62);
    --drawer-accent: #25aae1;
    --drawer-accent-deep: #1a94c8;
    --drawer-accent-soft: #71b4e8;
    --drawer-accent-tint: rgba(37, 170, 225, 0.12);
    --drawer-accent-tint-strong: rgba(37, 170, 225, 0.2);
    --drawer-wa: #25d366;
    --drawer-wa-tint: rgba(37, 211, 102, 0.12);
}

.mobile-menu,
.mobile-menu .overlay-close,
.mobile-menu .menu-content,
.mobile-menu .menu-content ul li,
.mobile-menu .menu-content ul li a {
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s ease !important;
}

.mobile-menu .overlay-close {
    background: rgba(28, 28, 53, 0.72) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.mobile-menu .menu-content {
    width: min(300px, 88vw) !important;
    margin-right: calc(-1 * min(300px, 88vw)) !important;
    background:
        radial-gradient(ellipse 120% 80% at 100% 0%, rgba(37, 170, 225, 0.14) 0%, transparent 55%),
        linear-gradient(180deg, var(--drawer-bg-deep) 0%, var(--drawer-bg) 100%) !important;
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.45) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.mobile-menu.active .menu-content {
    margin-right: 0 !important;
}

.mobile-menu .menu-content::before {
    display: none !important;
    content: none !important;
}

.mobile-menu .menu-content .logo {
    display: none !important;
}

/* ── Drawer header (logo + close) ── */
.nofal-drawer-head {
    flex-shrink: 0;
    padding: 10px 12px;
    border-bottom: 1px solid var(--drawer-border);
}

.nofal-drawer-head__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.nofal-drawer-head__brand {
    display: block;
    flex: 1;
    min-width: 0;
    text-decoration: none;
}

.nofal-drawer-head__brand-text {
    font-family: 'Alexandria', var(--primary-font, 'DIN NEXT'), sans-serif;
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #fff;
    line-height: 1.2;
}

.nofal-drawer-head__brand-accent {
    color: var(--drawer-accent-soft);
}

.nofal-drawer-head__close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: 1px solid var(--drawer-border);
    border-radius: 9px;
    background: var(--drawer-surface);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.nofal-drawer-head__close svg {
    width: 16px;
    height: 16px;
}

.nofal-drawer-head__close:hover {
    background: var(--drawer-surface-raised);
    border-color: var(--drawer-border-strong);
}

/* ── Nav list ── */
.mobile-menu .menu-content > ul,
.mobile-menu .menu-content .menu,
.mobile-menu .menu-content #menu-primary {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 6px 10px 8px !important;
    margin: 0 !important;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu .menu-content ul li,
.mobile-menu .menu-content #menu-primary > li {
    border-bottom: none !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: normal !important;
    border-radius: 0 !important;
    overflow: visible;
}

.mobile-menu .menu-content ul li a,
.mobile-menu .menu-content #menu-primary > li > a {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 11px 8px !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    line-height: 1.35 !important;
    border-radius: 0 !important;
    border: none !important;
    border-bottom: 1px solid var(--drawer-border) !important;
    background: transparent !important;
    text-decoration: none !important;
    transition: background 0.2s ease, color 0.2s ease !important;
}

.mobile-menu .menu-content ul li:last-child > a,
.mobile-menu .menu-content #menu-primary > li:last-child > a {
    border-bottom: none !important;
}

.mobile-menu .menu-content ul li a::before {
    display: none !important;
    content: none !important;
}

.nofal-drawer-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.nofal-drawer-icon svg {
    width: 15px;
    height: 15px;
    min-width: 15px;
    min-height: 15px;
    display: block;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    vector-effect: non-scaling-stroke;
}

.nofal-drawer-label {
    flex: 1;
    min-width: 0;
    text-align: start;
}

.nofal-drawer-arrow {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nofal-drawer-arrow svg {
    width: 14px;
    height: 14px;
    min-width: 14px;
    min-height: 14px;
    display: block;
    stroke: currentColor;
    fill: none;
}

html[dir="rtl"] .nofal-drawer-arrow svg {
    transform: scaleX(-1);
}

.mobile-menu .menu-content ul li a:hover,
.mobile-menu .menu-content ul li a:focus-visible {
    background: var(--drawer-surface) !important;
    border-bottom-color: var(--drawer-border) !important;
}

.mobile-menu .menu-content ul li a:hover .nofal-drawer-icon,
.mobile-menu .menu-content ul li a:focus-visible .nofal-drawer-icon {
    background: var(--drawer-accent-tint-strong);
    border-color: rgba(37, 170, 225, 0.4);
    color: #fff;
}

.mobile-menu .menu-content ul li a:hover .nofal-drawer-arrow,
.mobile-menu .menu-content ul li a:focus-visible .nofal-drawer-arrow {
    color: #fff;
}

.mobile-menu .menu-content ul li.current-menu-item > a,
.mobile-menu .menu-content ul li.current_page_item > a,
.mobile-menu .menu-content #menu-primary > li.current-menu-item > a {
    background: var(--drawer-accent-tint) !important;
    border-bottom-color: transparent !important;
    box-shadow: inset 3px 0 0 var(--drawer-accent);
    color: #fff !important;
}

html[dir="ltr"] .mobile-menu .menu-content ul li.current-menu-item > a,
html[dir="ltr"] .mobile-menu .menu-content #menu-primary > li.current-menu-item > a {
    box-shadow: inset -3px 0 0 var(--drawer-accent);
}

.mobile-menu .menu-content ul li.current-menu-item .nofal-drawer-icon,
.mobile-menu .menu-content #menu-primary > li.current-menu-item .nofal-drawer-icon {
    background: linear-gradient(135deg, var(--drawer-accent) 0%, var(--drawer-accent-deep) 100%);
    border-color: transparent;
    color: #fff;
}

/* ── Drawer footer ── */
.nofal-drawer-foot {
    flex-shrink: 0;
    padding: 10px 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid var(--drawer-border);
    background: var(--drawer-bg-deep);
}

.nofal-drawer-foot__phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 10px;
    background: var(--drawer-surface);
    border: 1px solid var(--drawer-border);
    color: #fff !important;
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.nofal-drawer-foot__phone svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    color: var(--drawer-accent-soft);
}

.nofal-drawer-foot__phone:hover {
    background: var(--drawer-surface-raised);
    border-color: var(--drawer-border-strong);
}

.nofal-drawer-foot__wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--drawer-wa-tint);
    border: 1px solid rgba(37, 211, 102, 0.28);
    color: #fff !important;
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.nofal-drawer-foot__wa svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--drawer-wa);
}

.nofal-drawer-foot__wa:hover {
    background: rgba(37, 211, 102, 0.18);
    border-color: rgba(37, 211, 102, 0.4);
    transform: translateY(-1px);
}

.nofal-drawer-foot__cta {
    display: block;
    padding: 11px 14px;
    text-align: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--drawer-accent) 0%, var(--drawer-accent-deep) 100%);
    color: #fff !important;
    font-size: 0.8125rem;
    font-weight: 800;
    text-decoration: none !important;
    box-shadow: 0 8px 22px rgba(37, 170, 225, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nofal-drawer-foot__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 170, 225, 0.4);
}

body.nofal-menu-open {
    overflow: hidden !important;
    touch-action: none;
}

@media (max-width: 480px) {
    .nofal-drawer-head {
        padding: 8px 10px;
    }

    .nofal-drawer-head__brand-text {
        font-size: 0.9375rem;
    }

    .mobile-menu .menu-content ul li a,
    .mobile-menu .menu-content #menu-primary > li > a {
        padding: 10px 6px !important;
        font-size: 0.78rem !important;
    }

    .nofal-drawer-icon {
        width: 28px;
        height: 28px;
    }

    .nofal-drawer-icon svg {
        width: 14px;
        height: 14px;
    }
}
