/* ayimi-pro-free – apf.css
   Styles for: nav-menu mobile toggle, off-canvas panel, search fullscreen */

/* ── Scroll lock when off-canvas is open ──────────────────── */
body.apf-oc-is-open {
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════
   NAV-MENU hamburger toggle
════════════════════════════════════════════════════════════ */
.apf-menu-toggle {
    display: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    transition: background 0.2s;
}
.apf-menu-toggle:hover { background: rgba(0,0,0,.06); }
.apf-menu-toggle i { font-size: 22px; line-height: 1; }

/* Nav hidden on mobile (toggled by JS) */
nav.elementor-nav-menu--main.apf-menu-hidden {
    display: none !important;
}

@media (max-width: 767px) {
    .apf-menu-toggle { display: flex; }

    /* When open: show as full-width block below toggle */
    nav.elementor-nav-menu--main:not(.apf-menu-hidden) {
        display: block !important;
        width: 100%;
    }
    nav.elementor-nav-menu--main:not(.apf-menu-hidden) .elementor-nav-menu {
        flex-direction: column !important;
    }
    nav.elementor-nav-menu--main:not(.apf-menu-hidden) .elementor-nav-menu > li {
        width: 100%;
    }
    nav.elementor-nav-menu--main:not(.apf-menu-hidden) .elementor-nav-menu > li > a {
        display: block;
        padding: 10px 16px;
    }
}

/* ═══════════════════════════════════════════════════════════
   OFF-CANVAS panel
════════════════════════════════════════════════════════════ */

/* The panel wraps overlay + drawer — covers viewport when open */
.apf-off-canvas {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    visibility: hidden;
}
.apf-off-canvas.apf-oc-open {
    pointer-events: all;
    visibility: visible;
}

/* Semi-transparent overlay */
.e-off-canvas__overlay.apf-oc-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}
.apf-off-canvas.apf-oc-open .e-off-canvas__overlay {
    opacity: 1;
}

/* Side drawer */
.e-off-canvas__main {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: #2a2929;
    color: #fff;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* RTL: slide from right by default for RTL sites */
[dir="rtl"] .e-off-canvas__main {
    left: auto;
    right: 0;
    transform: translateX(100%);
}

/* Slide-from-left (LTR) */
.apf-off-canvas[data-entrance="fadeInLeft"] .e-off-canvas__main {
    left: 0;
    right: auto;
    transform: translateX(-100%);
}
/* Slide-from-right */
.apf-off-canvas[data-entrance="fadeInRight"] .e-off-canvas__main {
    left: auto;
    right: 0;
    transform: translateX(100%);
}

.apf-off-canvas.apf-oc-open .e-off-canvas__main {
    transform: translateX(0) !important;
}

/* Close button */
.e-off-canvas__close-button.apf-oc-close {
    position: absolute;
    top: 12px;
    right: 12px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    z-index: 1;
    transition: background 0.2s;
}
[dir="rtl"] .e-off-canvas__close-button.apf-oc-close {
    right: auto;
    left: 12px;
}
.e-off-canvas__close-button.apf-oc-close:hover { background: rgba(255,255,255,.12); }
.e-off-canvas__close-button.apf-oc-close i { font-size: 18px; color: #fff; }

/* Content area inside drawer */
.e-off-canvas__content {
    padding: 60px 24px 24px;
    flex: 1;
}

/* Logo in off-canvas */
.apf-oc-logo {
    margin-bottom: 24px;
    text-align: center;
}
.apf-oc-logo img {
    max-width: 140px;
    height: auto;
}

/* Vertical menu inside off-canvas */
.apf-oc-menu {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
}
.apf-oc-menu li { border-bottom: 1px solid rgba(255,255,255,.08); }
.apf-oc-menu li:first-child { border-top: 1px solid rgba(255,255,255,.08); }
.apf-oc-menu a {
    display: block;
    padding: 12px 0;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}
.apf-oc-menu a:hover,
.apf-oc-menu a.elementor-item-active { color: #ccc; }

/* Sub-menus inside off-canvas */
.apf-oc-menu .sub-menu {
    list-style: none;
    padding: 0 0 0 16px;
    margin: 0;
}

/* Search form inside off-canvas */
.apf-oc-search { margin-top: auto; }
.apf-oc-search form {
    display: flex;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 4px;
    overflow: hidden;
}
.apf-oc-search input[type="search"] {
    flex: 1;
    background: transparent;
    border: none;
    padding: 8px 12px;
    color: #fff;
    font-size: 14px;
    outline: none;
}
.apf-oc-search input[type="search"]::placeholder { color: rgba(255,255,255,.5); }
.apf-oc-search button {
    background: transparent;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    color: rgba(255,255,255,.7);
    transition: color 0.2s;
}
.apf-oc-search button:hover { color: #fff; }

/* ═══════════════════════════════════════════════════════════
   SEARCH FULLSCREEN overlay
════════════════════════════════════════════════════════════ */
.elementor-widget-search-form .elementor-search-form__container {
    display: none;
}

/* Full-screen skin: fixed overlay */
.elementor-search-form .elementor-search-form__container {
    transition: opacity 0.2s ease;
}

.elementor-search-form .elementor-search-form__container.apf-sf-open {
    display: flex !important;
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    animation: apf-fadein 0.2s ease;
}

@keyframes apf-fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.elementor-search-form .elementor-search-form__container.apf-sf-open input[type="search"] {
    font-size: 24px;
    padding: 16px 24px;
    width: 60%;
    max-width: 600px;
    background: rgba(255,255,255,.1);
    border: 2px solid rgba(255,255,255,.4);
    border-radius: 6px;
    color: #fff;
    outline: none;
}
.elementor-search-form .elementor-search-form__container.apf-sf-open input[type="search"]::placeholder {
    color: rgba(255,255,255,.5);
}

.elementor-search-form .elementor-search-form__container.apf-sf-open button[type="submit"] {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #fff;
    opacity: .7;
}
.elementor-search-form .elementor-search-form__container.apf-sf-open button[type="submit"]:hover {
    opacity: 1;
}

/* Classic + minimal skins: keep inline */
.elementor-search-form--skin-classic .elementor-search-form__container,
.elementor-search-form--skin-minimal .elementor-search-form__container {
    display: flex !important;
    position: static !important;
    background: transparent !important;
    inset: auto !important;
}

/* Close button (fullscreen) */
.elementor-search-form__close {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    color: #fff;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    transition: background 0.2s;
}
.elementor-search-form__close:hover { background: rgba(255,255,255,.2); }

/* ═══════════════════════════════════════════════════════════
   FORM messages
════════════════════════════════════════════════════════════ */
.apf-form-message {
    margin-top: 12px;
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 14px;
}
.apf-form-message.elementor-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.apf-form-message.elementor-message-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
