/**
 * Homepage Styles - Matching Archived Elementor Design
 * Shawarland Theme
 */

/* ============================================
   1. HERO SECTION - Full Width Video
   ============================================ */
.sw-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
}

.sw-hero__video-container {
    position: relative;
    width: 100%;
    padding-top: 42.85%; /* 21:9 aspect ratio */
}

.sw-hero__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   2. ABOUT SECTION - Maroon Background
   ============================================ */
.sw-about {
    background-color: #4D1633;
    padding: 30px 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.sw-about__container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

.sw-about__content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.sw-about__heading-col,
.sw-about__text-col {
    flex: 1;
    min-width: 300px;
}

.sw-about__heading {
    color: #FBC100;
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

.sw-about__divider {
    width: 15%;
    margin: 15px auto 0;
}

.sw-about__divider-line {
    display: block;
    height: 3px;
    background-color: #39AEE6;
}

.sw-about__text {
    color: #FFFFFF;
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
    text-align: center;
}

/* ============================================
   3. FACILITIES SECTION - Sky Background
   ============================================ */
.sw-facilities {
    position: relative;
    background-color: #FFFFFF;
    background-image: url('https://shawarland.com/wp-content/uploads/2022/09/Group-540.png');
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: contain;
    padding: 40px 0 60px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.sw-facilities__container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

.sw-facilities__nav {
    margin-bottom: 30px;
}

.sw-facilities__menu {
    display: flex;
    justify-content: center;
    gap: 50px;
    list-style: none;
    margin: 0;
    padding: 20px 0;
    border-bottom: 1px solid #DADADA;
}

.sw-facilities__menu li a {
    color: #272727;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.sw-facilities__menu li a:hover {
    color: #FBC100;
}

.sw-facilities__heading {
    text-align: center;
    font-size: 2rem;
    color: #272727;
    margin-bottom: 30px;
}

.sw-facilities__row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.sw-facilities__row--2 .sw-facility {
    flex: 0 0 calc(50% - 10px);
    max-width: 400px;
}

.sw-facilities__row--3 .sw-facility {
    flex: 0 0 calc(33.333% - 14px);
    max-width: 300px;
}

.sw-facility {
    position: relative;
    border-radius: 15px;
    padding: 100px 0;
    text-align: center;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.3s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.sw-facility:hover {
    transform: scale(1.02);
}

.sw-facility::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
    z-index: 0;
}

.sw-facility:hover::before {
    transform: scale(1.1);
}

.sw-facility__inner {
    position: relative;
    z-index: 1;
}

.sw-facility__icon {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
}

.sw-facility__title {
    color: #FFFFFF;
    font-size: 1.25rem;
    margin: 0;
}

/* Facility Background Colors */
.sw-facility--games::before {
    background-image: url('https://shawarland.com/wp-content/uploads/2022/09/Group-541.png');
}

.sw-facility--shops::before {
    background-image: url('https://shawarland.com/wp-content/uploads/2022/09/Group-542.png');
}

.sw-facility--mosque::before {
    background-image: url('https://shawarland.com/wp-content/uploads/2022/09/Group-544.png');
}

.sw-facility--uvas::before {
    background-image: url('https://shawarland.com/wp-content/uploads/2022/09/Group-545.png');
}

.sw-facility--parking::before {
    background-image: url('https://shawarland.com/wp-content/uploads/2022/09/Group-543.png');
}

/* ============================================
   4. OFFERS SECTION - Flip Cards & Social
   ============================================ */
.sw-offers {
    background-image: url('https://shawarland.com/wp-content/uploads/2022/09/Group-548.png');
    background-size: cover;
    background-repeat: no-repeat;
    padding: 40px 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.sw-offers__container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

.sw-offers__headers {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.sw-offers__header--main {
    flex: 2;
}

.sw-offers__header--social {
    flex: 1;
    text-align: center;
}

.sw-offers__title {
    font-size: 2rem;
    color: #272727;
    text-align: center;
}

.sw-offers__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

/* Flip Cards */
.sw-flip-card {
    perspective: 1000px;
    height: 500px;
}

.sw-flip-card__inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    border-radius: 14px;
    border: 1px solid #FFFFFF;
}

.sw-flip-card:hover .sw-flip-card__inner {
    transform: rotateY(180deg);
}

[dir="rtl"] .sw-flip-card:hover .sw-flip-card__inner {
    transform: rotateY(-180px);
}

.sw-flip-card__front,
.sw-flip-card__back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    background-size: cover;
    background-position: center;
    text-align: right;
}

.sw-flip-card__back {
    transform: rotateY(180deg);
}

[dir="rtl"] .sw-flip-card__back {
    transform: rotateY(-180deg);
}

.sw-flip-card__title {
    color: #FFFFFF;
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.sw-flip-card__text {
    color: #FFFFFF;
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Social Tabs */
.sw-social-tabs {
    border: 1px solid #C0C0C0;
    border-radius: 5px;
    padding: 10px;
    background: #FFFFFF;
}

.sw-social-tabs__nav {
    display: flex;
    border-bottom: none;
    margin-bottom: 10px;
}

.sw-social-tabs__btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    color: #7C7C7C;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.sw-social-tabs__btn--active,
.sw-social-tabs__btn:hover {
    color: #000000;
}

.sw-social-tabs__panel {
    display: none;
    min-height: 400px;
}

.sw-social-tabs__panel--active {
    display: block;
}

/* ============================================
   5. FRIENDS SECTION - Light Blue Carousel
   ============================================ */
.sw-friends {
    background-color: #E8F7FF;
    padding: 70px 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.sw-friends__container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

.sw-friends__heading {
    text-align: center;
    font-size: 2rem;
    color: #272727;
    margin-bottom: 30px;
}

.sw-friends__carousel {
    position: relative;
}

.sw-friends__item {
    border-radius: 10px;
    overflow: hidden;
}

.sw-friends__item img {
    width: 100%;
    height: auto;
    display: block;
}

.sw-friends__nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.sw-friends__nav-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #4D1633;
    color: #FFFFFF;
    cursor: pointer;
    transition: background 0.3s ease;
}

.sw-friends__nav-btn:hover {
    background: #FBC100;
}

/* ============================================
   6. MAP SECTION - Tabs
   ============================================ */
.sw-map {
    padding: 70px 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.sw-map__container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

.sw-map__heading {
    text-align: center;
    font-size: 2rem;
    color: #272727;
    margin-bottom: 30px;
}

.sw-map__banner {
    text-align: center;
    margin-bottom: 30px;
}

.sw-map__banner img {
    max-width: 100%;
    height: auto;
}

.sw-map__tabs-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: stretch;
    margin-bottom: 0;
}

.sw-map__tab {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: #FFFFFF;
    color: #7E7E7E;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.sw-map__tab--active,
.sw-map__tab:hover {
    color: #000000;
    border-bottom-color: #4D1633;
}

.sw-map__tabs-content {
    border: 1px solid #E0E0E0;
    border-top: none;
}

.sw-map__panel {
    display: none;
    padding: 20px;
    min-height: 450px;
}

.sw-map__panel--active {
    display: block;
}

.sw-map__panel iframe {
    width: 100%;
    height: 450px;
    border: 0;
}

/* ============================================
   7. RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1024px) {
    .sw-offers__grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .sw-social-tabs {
        grid-column: span 2;
    }
    
    .sw-facilities__menu {
        gap: 20px;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .sw-about__content {
        flex-direction: column;
    }
    
    .sw-about__heading,
    .sw-about__text {
        text-align: center;
    }
    
    .sw-facilities__row--2 .sw-facility,
    .sw-facilities__row--3 .sw-facility {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .sw-facilities__nav {
        display: none;
    }
    
    .sw-offers__headers {
        flex-direction: column;
    }
    
    .sw-offers__grid {
        grid-template-columns: 1fr;
    }
    
    .sw-social-tabs {
        grid-column: span 1;
    }
    
    .sw-flip-card {
        height: 400px;
    }
    
    .sw-map__banner {
        display: none;
    }
    
    .sw-map__tabs-nav {
        flex-direction: column;
    }
    
    .sw-map__tab {
        border-bottom: 1px solid #E0E0E0;
    }
}
