/**
 * Mobile Menu (Sidebar) — Pure CSS
 */

/* ── Overlay ── */
.sh-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sh-mobile-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

/* ── Sidebar Container ── */
.sh-mobile {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: 85vw;
    max-width: 24rem;
    background: var(--pi-bg-card, #ffffff);
    z-index: 60;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.sh-mobile.is-open {
    transform: translateX(0);
}

/* Body scroll lock when menu is open */
body.overflow-hidden {
    overflow: hidden;
}

/* ── Header ── */
.sh-mobile__header {
    padding: 0.625rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--pi-border-light, #f1f5f9);
    background: var(--pi-bg-alt, #f3f4f6);
}

.sh-mobile__header-title {
    font-weight: 900;
    font-size: 0.75rem;
    color: var(--pi-primary, #007d3d);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sh-mobile__header-icon {
    width: 0.875rem;
    height: 0.875rem;
}

.sh-mobile__close-btn {
    padding: 0.375rem;
    color: var(--pi-text-3, #94a3b8);
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.sh-mobile__close-btn:hover {
    color: var(--pi-danger, #dc2626);
    background: color-mix(in srgb, var(--pi-danger, #dc2626) 8%, transparent);
}

.sh-mobile__close-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* ── Body ── */
.sh-mobile__body {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.sh-mobile__body::-webkit-scrollbar {
    display: none;
}

/* ── Search ── */
.sh-mobile__search-wrap {
    margin-bottom: 0.75rem;
}

.sh-mobile__search {
    position: relative;
}

.sh-mobile__search-icon-wrap {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pi-text-muted, #64748b);
    pointer-events: none;
}

.sh-mobile__search-svg {
    width: 1rem;
    height: 1rem;
}

.sh-mobile__search-input {
    width: 100%;
    background: var(--pi-bg-card, #ffffff);
    border: 1px solid var(--pi-border, #e2e8f0);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem 0.5rem 2.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--pi-text, #1e293b);
    transition: all 0.2s;
}

.sh-mobile__search-input::placeholder {
    color: var(--pi-text-muted, #64748b);
}

.sh-mobile__search-input:focus {
    outline: none;
    border-color: var(--pi-primary, #007d3d);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--pi-primary, #007d3d) 10%, transparent);
}

/* ── Nav ── */
.sh-mobile__nav {
    display: flex;
    flex-direction: column;
}

.sh-mobile__menu-list {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sh-mobile__no-menu {
    font-size: 0.875rem;
    color: var(--pi-text-3, #94a3b8);
    padding: 1rem;
}

/* ── Accordion (submenu) ── */
.sub-menu-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sub-menu-wrapper.is-open {
    max-height: 1000px;
}

/* ── Footer ── */
.sh-mobile__footer {
    margin-top: 1rem;
    border-top: 1px solid var(--pi-border-light, #f1f5f9);
    padding: 1rem 0 5rem;
}

.sh-mobile__section-title {
    font-weight: 700;
    color: var(--pi-text, #1e293b);
    margin: 0 0 0.75rem;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sh-mobile__accent-bar {
    width: 0.25rem;
    height: 0.75rem;
    background: var(--pi-secondary, #ffb703);
    display: inline-block;
    border-radius: 2px;
}

/* ── Contact Cards ── */
.sh-mobile__contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sh-mobile__contact-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem;
    border-radius: var(--pi-radius, 0.75rem);
    background: var(--pi-bg-alt, #f3f4f6);
    border: 1px solid var(--pi-border-light, #f1f5f9);
    color: var(--pi-text-2, #475569);
    text-decoration: none;
    transition: all 0.2s;
}

.sh-mobile__contact-card--phone {
    background: color-mix(in srgb, var(--pi-success, #16a34a) 8%, var(--pi-bg-card, #fff));
    border-color: color-mix(in srgb, var(--pi-success, #16a34a) 15%, transparent);
}

.sh-mobile__contact-card:hover {
    border-color: var(--pi-primary, #007d3d);
    color: var(--pi-primary, #007d3d);
}

.sh-mobile__contact-icon-wrap {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--pi-bg-card, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    color: var(--pi-success, #16a34a);
    flex-shrink: 0;
    border: 1px solid var(--pi-border-light, #f1f5f9);
    transition: all 0.2s;
}

.sh-mobile__contact-card:hover .sh-mobile__contact-icon-wrap {
    background: var(--pi-primary, #007d3d);
    color: #fff;
}

.sh-mobile__contact-svg {
    width: 0.875rem;
    height: 0.875rem;
}

.sh-mobile__contact-label {
    display: block;
    font-size: 0.5625rem;
    font-weight: 700;
    color: var(--pi-text-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sh-mobile__contact-value {
    font-weight: 900;
    font-size: 0.75rem;
    letter-spacing: -0.025em;
}

.sh-mobile__contact-email {
    font-size: 0.6875rem;
    word-break: break-all;
    font-weight: 500;
}

/* ── Social ── */
.sh-mobile__social-section {
    margin-top: 1.5rem;
    padding: 0 0.5rem;
}

.sh-mobile__social-list {
    display: flex;
    gap: 0.625rem;
}

.sh-mobile__social-btn {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    overflow: hidden;
    display: block;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}

.sh-mobile__social-btn:hover {
    transform: scale(1.1) translateY(-2px);
}

/* Social buttons use image assets — no color change on theme switch */
.sh-mobile__social-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

/* ── Copyright ── */
.sh-mobile__copyright {
    margin-top: 1.5rem;
    padding: 0 0.5rem;
    text-align: center;
    font-size: 0.625rem;
    color: var(--pi-text-muted, #64748b);
    font-family: monospace;
}

/* ── Dark Mode ── */
.dark .sh-mobile {
    background: var(--pi-bg-card, #1e293b);
}

.dark .sh-mobile__header {
    background: var(--pi-bg, #0f172a);
    border-bottom-color: var(--pi-border, #334155);
}

.dark .sh-mobile__search-input {
    background: var(--pi-bg-elevated, #334155);
    border-color: var(--pi-border, #334155);
    color: var(--pi-text, #f1f5f9);
}

.dark .sh-mobile__footer {
    border-top-color: var(--pi-border, #334155);
}

.dark .sh-mobile__section-title {
    color: var(--pi-text, #f1f5f9);
}

.dark .sh-mobile__contact-card {
    background: var(--pi-bg-elevated, #334155);
    border-color: var(--pi-border, #334155);
    color: var(--pi-text-2, #cbd5e1);
}

.dark .sh-mobile__contact-card--phone {
    background: color-mix(in srgb, var(--pi-success, #007d3d) 10%, var(--pi-bg-card, #1e293b));
}

.dark .sh-mobile__contact-icon-wrap {
    background: var(--pi-bg-card, #1e293b);
    border-color: var(--pi-border, #334155);
}

/* ── Header Responsive ── */
@media (max-width: 767px) {
    #main-header .sh-header__bar {
        height: 64px;
    }
}

/* ═══ Mobile Walker BEM Classes ═══ */

.sh-mob-submenu { display: none; flex-direction: column; width: 100%; background: var(--pi-bg-card, #ffffff); border-bottom: 1px solid color-mix(in srgb, var(--pi-primary, #007d3d) 10%, transparent); transition: all 0.3s; list-style: none; margin: 0; padding: 0; }

.sh-mob-item { width: 100%; }
.sh-mob-item__row { display: flex; align-items: center; justify-content: space-between; width: 100%; background: var(--pi-bg-card, #ffffff); border-bottom: 1px solid var(--pi-border-light, #f1f5f9); }

.sh-mob-item__link { flex: 1; font-weight: 600; color: var(--pi-text, #1e293b); text-transform: uppercase; padding: 0.5rem 0.75rem; font-size: 0.6875rem; letter-spacing: 0.05em; text-decoration: none; transition: color 0.2s; }
.sh-mob-item__link:hover { color: var(--pi-primary, #007d3d); }

.sh-mob-item__toggle { padding: 0.5rem; color: var(--pi-text-muted, #64748b); background: transparent; border: none; border-left: 1px solid var(--pi-border-light, #f1f5f9); cursor: pointer; transition: color 0.2s, background 0.2s; }
.sh-mob-item__toggle:hover { color: var(--pi-primary, #007d3d); background: var(--pi-bg-alt, #f3f4f6); }
.sh-mob-item__toggle-icon { width: 0.875rem; height: 0.875rem; transition: transform 0.3s; }

.sh-mob-sub-item { width: 100%; border-left: 2px solid transparent; }
.sh-mob-sub-item:hover { border-left-color: color-mix(in srgb, var(--pi-primary, #007d3d) 20%, transparent); }

.sh-mob-sub-item__link { display: flex; align-items: center; width: 100%; padding: 0.375rem 0.75rem 0.375rem 1.5rem; color: var(--pi-text-3, #94a3b8); text-decoration: none; gap: 0.5rem; transition: color 0.2s, background 0.2s; }
.sh-mob-sub-item__link:hover { color: var(--pi-primary, #007d3d); background: var(--pi-bg-alt, #f3f4f6); }

.sh-mob-sub-item__dot { width: 0.25rem; height: 0.25rem; border-radius: 50%; background: var(--pi-text-muted, #64748b); transition: background 0.2s; flex-shrink: 0; }
.sh-mob-sub-item__link:hover .sh-mob-sub-item__dot { background: var(--pi-primary, #007d3d); }

.sh-mob-sub-item__text { font-size: 0.625rem; font-weight: 500; }

/* Dark Mode */
.dark .sh-mob-item__row { background: var(--pi-bg, #0f172a); border-bottom-color: var(--pi-border, #334155); }
.dark .sh-mob-item__link { color: var(--pi-text, #f1f5f9); }
.dark .sh-mob-item__toggle { color: var(--pi-text-3, #94a3b8); border-left-color: var(--pi-border, #334155); }
.dark .sh-mob-item__toggle:hover { background: var(--pi-bg-elevated, #334155); }
.dark .sh-mob-submenu { background: var(--pi-bg-elevated, #334155); border-bottom-color: var(--pi-border, #334155); }
.dark .sh-mob-sub-item__link { color: var(--pi-text-muted, #64748b); }
.dark .sh-mob-sub-item__link:hover { background: var(--pi-bg-card, #1e293b); }
