/* ==========================================================================
   MOBILE HEADER & FOOTER STYLES
   ========================================================================== */

/* Utility classes for responsive hiding */
.hidden-desktop { display: none !important; }
.hidden-mobile { display: block; }

@media (max-width: 991px) {
    .hidden-desktop { display: block !important; }
    .hidden-desktop.flex { display: flex !important; }
    .hidden-mobile { display: none !important; }
}

/* --------------------------------------------------------------------------
   Mobile Header
   -------------------------------------------------------------------------- */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #1a1a1a;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.mobile-header__logo img {
    height: 36px;
    width: auto;
    display: block;
}

.mobile-header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-header__phone {
    color: var(--color-primary, #01698d);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #333;
}

.mobile-header__burger {
    width: 24px;
    height: 20px;
    position: relative;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mobile-header__burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s ease;
}

.mobile-header__burger.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.mobile-header__burger.is-active span:nth-child(2) {
    opacity: 0;
}
.mobile-header__burger.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Offset for main content since mobile header is fixed */
@media (max-width: 991px) {
    body {
        padding-top: 60px;
    }
}

/* --------------------------------------------------------------------------
   Mobile Offcanvas Menu
   -------------------------------------------------------------------------- */
.mobile-menu {
    position: fixed;
    top: 60px; /* Below mobile header */
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: #1a1a1a;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
}

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

.mobile-menu__nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu__nav li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu__nav a {
    display: block;
    padding: 16px 0;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
}

.mobile-menu__bottom {
    margin-top: auto;
    padding-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-menu__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
}

.mobile-menu__btn--primary {
    background: var(--color-primary, #01698d);
    color: #fff;
}

.mobile-menu__btn--outline {
    border: 1px solid var(--color-primary, #01698d);
    color: var(--color-primary, #01698d);
}

/* --------------------------------------------------------------------------
   Mobile Footer
   -------------------------------------------------------------------------- */
.mobile-footer {
    background: #1a202c;
    color: #fff;
    padding: 32px 16px 24px;
}

.mobile-footer__logo-wrap {
    margin-bottom: 24px;
}

.mobile-footer__logo img {
    height: 40px;
    width: auto;
    margin-bottom: 12px;
}

.mobile-footer__company {
    font-size: 13px;
    color: #a0aec0;
    line-height: 1.4;
}

/* Accordion */
.mobile-footer__accordion-item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-footer__accordion-header {
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.mobile-footer__accordion-header::after {
    content: '+';
    font-size: 20px;
    color: #a0aec0;
    transition: transform 0.3s ease;
}

.mobile-footer__accordion-item.is-active .mobile-footer__accordion-header::after {
    transform: rotate(45deg);
}

.mobile-footer__accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-footer__accordion-content ul {
    list-style: none;
    margin: 0;
    padding: 0 0 16px 0;
}

.mobile-footer__accordion-content a {
    display: block;
    padding: 8px 0;
    color: #cbd5e0;
    text-decoration: none;
    font-size: 14px;
}

.mobile-footer__contacts {
    margin-top: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-footer__phone {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    margin-bottom: 4px;
}

.mobile-footer__note {
    font-size: 12px;
    color: #a0aec0;
    display: block;
    margin-bottom: 16px;
}

.mobile-footer__email {
    color: var(--color-primary, #4fd1c5);
    text-decoration: none;
    font-size: 16px;
}

.mobile-footer__bottom {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 12px;
    color: #718096;
}

.mobile-footer__bottom a {
    color: #718096;
    text-decoration: underline;
}
