/* Premium polish layer — loaded after style.css. Same layout/content,
   refined visual details: shadows, hover motion, spacing, and the
   language toggle switch. Uses the site's own --theme-color etc. */

:root {
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-elevated: 0 18px 45px rgba(0, 0, 0, 0.14);
    --radius-md: 10px;
    --radius-lg: 16px;
}

body {
    -webkit-font-smoothing: antialiased;
}

/* ---------- Header top info bar ---------- */
.header-top-area {
    background: linear-gradient(90deg, var(--theme-color) 0%, #5a9e38 100%);
}

.header-top-area .header-links ul li a,
.header-top-area .header-links ul li i {
    transition: color 0.15s ease, opacity 0.15s ease;
}

.header-top-area .header-links ul li a:hover {
    opacity: 0.85;
}

.header-social a {
    transition: transform 0.15s ease, background 0.15s ease;
}

.header-social a:hover {
    transform: translateY(-2px);
}

/* ---------- Language toggle switch ---------- */
.lang-toggle {
    margin-inline-end: 10px;
    display: inline-flex;
    align-items: center;
}

.lang-toggle-track {
    /* This is an <a> inside .header-social, so the theme's own
       `.header-social a { display: block }` icon-link rule was winning
       and silently breaking the flex layout (options fell back to
       normal inline-block flow and wrapped). !important guarantees this
       stays a flex row regardless of that. */
    display: inline-flex !important;
    position: relative;
    align-items: center;
    width: 60px;
    height: 24px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    padding: 2px;
    text-decoration: none;
    overflow: hidden;
}

.lang-toggle-option {
    /* flex:1 was not reliably expanding these spans to fill their half of
       the track (some competing rule kept them content-sized), so both
       labels ended up packed together under the thumb, hiding most of
       the second one. Fixed width forces correct, predictable spacing. */
    flex: 1 1 auto;
    width: 26px;
    display: inline-block;
    box-sizing: border-box;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #1c1c1c;
    position: relative;
    z-index: 1;
    line-height: 18px;
}

.lang-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 26px;
    height: 18px;
    background: var(--theme-color);
    border-radius: 999px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.lang-toggle-track.is-en .lang-toggle-thumb {
    transform: translateX(0);
}

.lang-toggle-track.is-ar .lang-toggle-thumb {
    transform: translateX(26px);
}

.lang-toggle-track.is-en .lang-toggle-option:nth-child(1),
.lang-toggle-track.is-ar .lang-toggle-option:nth-child(2) {
    color: #fff;
}

.lang-switch-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 0;
}

.lang-switch-mobile a {
    font-weight: 600;
}

.lang-switch-mobile a.is-active {
    color: var(--theme-color);
}

/* ---------- Mobile hamburger toggle ----------
   Base theme styles .vs-menu-toggle as a pill button with 20px horizontal
   padding (meant for icon+text buttons) — for a bare icon this makes it
   a bulky oversized pill and, combined with the header row's flex-wrap,
   was pushing the row to wrap onto two lines on narrow screens. */
.header-menu-area .vs-menu-toggle {
    width: 42px;
    height: 42px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.header-menu-area .row.gx-20 {
    flex-wrap: nowrap;
}

/* ---------- Carousel prev/next arrow pairs ----------
   These buttons rely on the theme's default inline-block flow with no
   explicit flex wrapper, which can make them stack vertically instead of
   sitting side by side (seen on mobile). Force a row regardless. */
.facility-rental-slide-aerro .vs-icon-box,
.vs-icon-box.d-lg-block {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.facility-rental-slide-aerro .vs-icon-box.d-lg-block {
    display: flex !important;
}

/* ---------- Main nav ---------- */
.header-menu-area {
    box-shadow: var(--shadow-soft);
}

.header-menu-area .main-menu.menu-style1 > ul > li:last-child > a {
    padding-right: 0;
}

[dir="rtl"] .header-menu-area .main-menu.menu-style1 > ul > li:first-child > a {
    padding-right: 0;
}

.main-menu.menu-style1 > ul > li > a {
    transition: color 0.15s ease;
}

.main-menu .sub-menu {
    box-shadow: var(--shadow-elevated) !important;
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* ---------- Cards / boxes: subtle lift on hover ---------- */
.vs-btn,
.wave-btn {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.vs-btn:hover,
.wave-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.team-card,
.event-item,
.class-item,
.vs-blog,
.gallery-item,
[class*="-box"],
[class*="-card"],
[class*="-item"] {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* ---------- Footer ---------- */
.footer-wrapper.footer-layout3 {
    position: relative;
}

.footer-wrapper.footer-layout3:before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 12, 0.55);
    pointer-events: none;
}

.footer-wrapper .widget-area,
.footer-wrapper .footer-copyright {
    position: relative;
    z-index: 1;
}

.widget_title {
    position: relative;
    padding-bottom: 10px;
}

.widget_title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--theme-color);
}

[dir="rtl"] .widget_title:after {
    left: auto;
    right: 0;
}

/* ---------- Responsive tightening ---------- */
@media (max-width: 575.98px) {
    .lang-toggle-track {
        width: 68px;
        height: 27px;
    }

    .lang-toggle-thumb {
        width: 31px;
        height: 21px;
    }

    .lang-toggle-option {
        width: 31px;
    }

    .lang-toggle-track.is-ar .lang-toggle-thumb {
        transform: translateX(31px);
    }
}
