
/* =========================================
   JAIPUR CHAIR & SOFA - HEADER
   Theme: Royal Blue, Silver & White
========================================= */

.jcsr-header,
.jcsr-header * {
    box-sizing: border-box;
}

.jcsr-header {
    width: 100%;
    position: relative;
    z-index: 1000;
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
}

/* CONTAINER
   Desktop logo: left side with 20px spacing
========================================= */

.jcsr-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: 20px;
    padding-right: 20px;
}

/* =========================================
   TOP BAR
========================================= */

.jcsr-topbar {
    width: 100%;
    background: #174A83;
    color: #ffffff;
    font-size: 13px;
}

.jcsr-topbar-inner {
    min-height: 42px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.jcsr-topbar-info,
.jcsr-topbar-contact {
    display: flex;
    align-items: center;
    gap: 22px;
}

.jcsr-topbar-info span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.jcsr-top-icon {
    font-size: 18px;
}

.jcsr-topbar-contact a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.jcsr-topbar-contact a:hover {
    opacity: 0.8;
}

/* Phone number */

.jcsr-topbar-contact .jcsr-phone-number {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.jcsr-phone-icon {
    font-size: 16px;
    line-height: 1;
}

/* WhatsApp button */

.jcsr-top-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 13px;
    border-radius: 4px;
    background: #ffffff;
    color: #174A83 !important;
    white-space: nowrap;
}

/* =========================================
   MAIN HEADER
========================================= */

.jcsr-main-header {
    position: relative;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #dce3eb;
    box-shadow: 0 4px 16px rgba(20, 45, 75, 0.07);
}

.jcsr-header-inner {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

/* Logo at far left */

.jcsr-brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    text-decoration: none;
}

.jcsr-logo {
    display: block;
    width: 300px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* =========================================
   NAVIGATION
========================================= */

.jcsr-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 25px;
    margin-left: auto;
}

.jcsr-navigation > a,
.jcsr-dropdown-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 12px 0;
    border: 0;
    background: transparent;
    color: #23354a;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s ease;
}

.jcsr-navigation > a:hover,
.jcsr-dropdown-toggle:hover,
.jcsr-navigation > a.active {
    color: #174A83;
}

.jcsr-navigation > a.active::after {
    position: absolute;
    right: 0;
    bottom: 3px;
    left: 0;
    height: 3px;
    border-radius: 5px;
    background: #174A83;
    content: "";
}

.jcsr-contact-link {
    padding: 13px 18px !important;
    border-radius: 5px;
    background: #174A83 !important;
    color: #ffffff !important;
}

.jcsr-contact-link:hover {
    background: #10375f !important;
}

/* =========================================
   SERVICES DROPDOWN
========================================= */

.jcsr-nav-dropdown {
    position: relative;
}

.jcsr-chevron {
    color: #174A83;
    font-size: 18px;
    transition: transform 0.2s ease;
}

.jcsr-nav-dropdown.open .jcsr-chevron {
    transform: rotate(180deg);
}

.jcsr-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: -15px;
    z-index: 1100;
    display: none;
    width: 255px;
    padding: 8px;
    border: 1px solid #dce3eb;
    border-top: 3px solid #174A83;
    border-radius: 0 0 7px 7px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 40, 70, 0.14);
}

.jcsr-nav-dropdown.open .jcsr-dropdown-menu {
    display: block;
}

.jcsr-dropdown-menu a {
    display: block;
    padding: 12px 11px;
    border-radius: 4px;
    color: #23354a;
    font-size: 13px;
    line-height: 1.5;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.jcsr-dropdown-menu a:hover {
    background: #edf3fa;
    color: #174A83;
}

/* =========================================
   MOBILE MENU BUTTON
========================================= */

.jcsr-menu-toggle {
    display: none;
    width: 44px;
    height: 42px;
    padding: 9px;
    border: 1px solid #dce3eb;
    border-radius: 5px;
    background: #ffffff;
    cursor: pointer;
    flex-shrink: 0;
}

.jcsr-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    margin: 4px 0;
    border-radius: 3px;
    background: #174A83;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* =========================================
   TABLET & MOBILE NAVIGATION
========================================= */

@media (max-width: 1050px) {

    .jcsr-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .jcsr-header-inner {
        min-height: 85px;
        gap: 15px;
    }

    .jcsr-logo {
        width: 250px;
    }

    .jcsr-menu-toggle {
        display: block;
    }

    .jcsr-navigation {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        margin-left: 0;
        padding: 12px 20px 20px;
        border-top: 1px solid #dce3eb;
        background: #ffffff;
        box-shadow: 0 12px 20px rgba(15, 40, 70, 0.12);
    }

    .jcsr-navigation.is-open {
        display: flex;
    }

    .jcsr-navigation > a,
    .jcsr-dropdown-toggle {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        padding: 14px 8px;
        border-bottom: 1px solid #edf0f4;
        white-space: normal;
    }

    .jcsr-navigation > a.active::after {
        display: none;
    }

    .jcsr-contact-link {
        justify-content: center !important;
        margin-top: 12px;
    }

    .jcsr-dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        padding: 5px 10px;
        border: 0;
        border-left: 3px solid #b8c4d0;
        border-radius: 0;
        box-shadow: none;
    }

    .jcsr-nav-dropdown.open .jcsr-dropdown-menu {
        display: block;
    }

    .jcsr-dropdown-menu a {
        padding: 12px;
    }
}

/* =========================================
   MOBILE TOP BAR
   Hide location and service description
========================================= */

@media (max-width: 600px) {

    .jcsr-container {
        width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Hide:
       ⌖ Doorstep Furniture Repair in Jaipur
       Chair, Sofa & Office Chair Repair
    */

    .jcsr-topbar-info {
        display: none !important;
    }

    .jcsr-topbar-inner {
        min-height: 40px;
        justify-content: flex-end;
        gap: 0;
    }

    /* Show phone number and WhatsApp only */

    .jcsr-topbar-contact {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 12px;
        font-size: 12px;
    }

    .jcsr-topbar-contact .jcsr-phone-number {
        font-size: 12px;
        gap: 6px;
    }

    .jcsr-phone-icon {
        font-size: 15px;
    }

    .jcsr-top-whatsapp {
        padding: 6px 9px;
        font-size: 11px;
    }

    /* Mobile main header */

    .jcsr-header-inner {
        min-height: 74px;
        justify-content: space-between;
        gap: 10px;
    }

    .jcsr-brand {
        margin-left: 0;
    }

    .jcsr-logo {
        width: 215px;
        max-width: 100%;
    }

    .jcsr-menu-toggle {
        width: 40px;
        height: 39px;
    }

    .jcsr-navigation {
        padding-right: 14px;
        padding-left: 14px;
    }
}

/* =========================================
   SMALL MOBILE DEVICES
========================================= */

@media (max-width: 360px) {

    .jcsr-container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .jcsr-logo {
        width: 185px;
    }

    .jcsr-topbar-contact {
        gap: 8px;
    }

    .jcsr-topbar-contact .jcsr-phone-number {
        font-size: 11px;
    }

    .jcsr-top-whatsapp {
        padding: 6px 7px;
        font-size: 10px;
    }
}


/* MOBILE TOP BAR: PHONE LEFT, WHATSAPP RIGHT */

@media (max-width: 600px) {

    .jcsr-topbar-inner {
        justify-content: space-between !important;
        width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }

    .jcsr-topbar-contact {
        display: flex;
        width: 100%;
        justify-content: space-between !important;
        align-items: center;
        gap: 10px;
    }

    .jcsr-topbar-contact .jcsr-phone-number {
        order: 1;
        margin-right: auto;
        text-align: left;
    }

    .jcsr-topbar-contact .jcsr-top-whatsapp {
        order: 2;
        margin-left: auto;
        text-align: right;
    }

}
