/* ==========================================================================
   Footer Section — Layout & Structure
   ========================================================================== */

.rw-footer-section {
    position: relative;
    padding: 60px 0 0 0;
    color: #ffffff;
}

/* Grid Container */
.rw-footer-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 100px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 5;
    max-width: var(--rw-grid);
}

/* ==========================================================================
   First Column — Logo + Search
   ========================================================================== */

.rw-footer-logo-search {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.rw-footer-logo {
    max-width: 280px;
    height: auto;
    display: block;
}

/* Search Form */
.rw-footer-search {
    display: flex;
    align-items: center;
    border: 2px solid #E1E1E1;
    border-radius: 50px;
    background: transparent;
    overflow: hidden;
    transition: border-color 0.3s ease;
    box-shadow: inset 0 1px 30px 0 rgba(0, 0, 0, .05);
}

.rw-footer-search:focus-within {
    border-color: rgba(255, 255, 255, 0.8);
}

.rw-footer-search__input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    outline: none;
    color: #ffffff !important;
    padding: 13px 20px !important;
    font-size: 16px;
    font-family: inherit;
    min-width: 0;
}

.rw-footer-search__input::placeholder {
    color: white;
}

/* Modern browsers (Chrome, Firefox, Edge, Safari) */
.rw-footer-search input::placeholder {
    color: #fff !important;
    opacity: 1;
}

/* Internet Explorer 10-11 */
.rw-footer-search input:-ms-input-placeholder {
    color: #fff !important;
}

/* Microsoft Edge legacy (EdgeHTML) */
.rw-footer-search input::-ms-input-placeholder {
    color: #fff !important;
}

/* Hide the native clear button in WebKit */
.rw-footer-search__input::-webkit-search-cancel-button {
    display: none;
}

.rw-footer-search__btn,
.rw-footer-search__btn:focus {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
    flex-shrink: 0;
    height: 38px;
    width: 38px;
    justify-content: center;
    border-radius: 50%;
    margin: 5px;
}

.rw-footer-search__btn:hover {
    color: black;
    background: white;
    border: none;
}

/* ==========================================================================
   Second Column — Menus + Locations
   ========================================================================== */

.rw-footer-menu-loc {
    display: grid;
    grid-template-columns: repeat(3, 1fr) 284px;
    gap: 40px;
}

/* Navigation Columns */
.rw-footer-nav-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rw-footer-nav-title {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    color: white;
    font-size: 18px;
}

.rw-footer-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rw-footer-nav-list li {
    margin: 0;
}

.rw-footer-nav-list a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.rw-footer-nav-list a:hover {
    color: rgba(255, 255, 255, 0.75);
}

.rw-footer-nav-list a:focus {
    color: white;
}

/* ==========================================================================
   Locations Column
   ========================================================================== */

.rw-footer-locations {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ==========================================================================
   Footer Locations Accordion — scoped styles
   (Lighter weight than .rw-acc-section — no circles, compact padding)
   ========================================================================== */

.rw-footer-locations .rw-accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.rw-footer-locations .rw-accordion-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.4);
}

.rw-footer-locations .rw-accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 16px 0;
    margin: 0;
    cursor: pointer;
    text-align: left;
    color: #ffffff;
    font-family: inherit;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.rw-footer-locations .rw-accordion-trigger:hover,
.rw-footer-locations .rw-accordion-trigger:focus,
.rw-footer-locations .rw-accordion-trigger:active {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #ffffff;
}

.rw-footer-locations .rw-accordion-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.rw-footer-locations .rw-accordion-icon {
    color: #ffffff;
    font-size: 14px;
    flex-shrink: 0;
}

/* Icon state switching — plain chevron, no circle */
.rw-footer-locations .rw-acc-icon-open {
    display: none;
}

.rw-footer-locations .rw-acc-icon-closed {
    display: inline-flex;
}

.rw-footer-locations .rw-accordion-trigger[aria-expanded="true"] .rw-acc-icon-open {
    display: inline-flex;
}

.rw-footer-locations .rw-accordion-trigger[aria-expanded="true"] .rw-acc-icon-closed {
    display: none;
}

/* Panel */
.rw-footer-locations .rw-accordion-panel {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
}

.rw-footer-locations .rw-accordion-panel.rw-acc-open {
    max-height: 500px;
}

/* Panel content */
.rw-footer-locations .rw-accordion-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px 0 20px 20px;
}

.rw-footer-locations .rw-accordion-content p {
    color: white;
    margin: 0;
    line-height: 1.5;
    letter-spacing: .44px;
}

.rw-footer-locations .rw-accordion-content a {
    color: white;
    text-decoration: none;
}

.rw-footer-locations .rw-accordion-content a:hover {
    color: #ffffff;
}

.rw-footer-loc-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffffff !important;
    font-weight: 700;
    text-decoration: none;
    margin-top: 6px;
}

.rw-footer-loc-link:hover {
    opacity: 0.75;
}

/* ==========================================================================
   Bottom Bar — Copyright & Social
   ========================================================================== */

.rw-footer-bottom-bar {
    border-top: 2px solid rgba(255, 255, 255, 0.4);
    margin-top: 100px;
    padding: 15px;
    position: relative;
    z-index: 6;
}

.rw-footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--rw-grid);
    margin: 0 auto;
    padding: 0 20px;
}

.rw-footer-copyright,
.rw-footer-copyright a {
    color: white;
}

.rw-footer-copyright a:hover,
.rw-footer-copyright a:focus {
    opacity: 0.7;
    color: white;
}

.rw-footer-social {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.rw-footer-social a {
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.rw-footer-social svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.rw-footer-social a:hover {
    opacity: 0.7;
    transform: translateY(-2px);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1379px) {
    .rw-footer-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .rw-footer-logo-search {
        display: flex;
        flex-direction: row;
        gap: 150px;
    }

    .rw-footer-logo {
        flex: 1;
    }

    .rw-footer-search {
        flex: 2;
    }
}

@media (max-width: 1024px) {
    .rw-footer-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .rw-footer-menu-loc {
        grid-template-columns: repeat(3, 1fr);
    }

    .rw-footer-locations {
        grid-column: span 3;
    }
}

@media (max-width: 768px) {

    .rw-footer-logo-search {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .rw-footer-section {
        padding: 40px 0 0;
    }

    .rw-footer-menu-loc {
        grid-template-columns: 1fr;
        gap: 0px;
    }

    .rw-footer-nav-col {
        display: none;
    }

    .rw-footer-bottom-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .rw-footer-grid {
        padding: 0 15px;
    }

}