﻿/* =========================================================
   Al Salam Header + Home Slider
   Clean final version
   ========================================================= */

/* =========================
   Top Bar
   ========================= */

.as-topbar {
    height: 40px;
    background: var(--as-green-dark);
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px !important;
    border-bottom: 1px solid rgba(214, 181, 109, 0.25);
}

.as-topbar-inner {
    height: 100%;
    max-width: 90%;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.as-topbar-left,
.as-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.as-topbar-item,
.as-lang-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.90) !important;
    text-decoration: none !important;
    white-space: nowrap;
    font-weight: 700;
}

    .as-topbar-item i,
    .as-lang-link i {
        color: var(--as-gold);
    }

.as-topbar-separator {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.25);
}

.as-hotline strong {
    color: var(--as-gold);
    font-size: 20px;
    letter-spacing: 1px;
}

/* =========================
   Main Navbar
   ========================= */

.as-mainnav {
    height: 5rem;
    min-height: 62px !important;
    background: linear-gradient(180deg, #07563F 0%, var(--as-green) 100%);
    box-shadow: 0 8px 24px rgba(1, 56, 43, 0.18);
    padding: 0;
}

.as-mainnav-inner {
    max-width: 90%;
    min-height: 62px !important;
    height: 100%;
    display: flex;
    align-items: center;
}

.as-brand {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.as-logo {
    max-height: 80px;
    width: auto;
    display: block;
    object-fit: contain;
}

.as-navbar-nav {
    gap: 0 !important;
}

    .as-navbar-nav .nav-link {
        color: var(--as-white) !important;
        font-size: 16px !important;
        font-weight: 700;
        letter-spacing: 0.2px;
        padding: 10px 10px !important;
        white-space: nowrap;
        transition: all 0.22s ease;
    }

        .as-navbar-nav .nav-link:hover,
        .as-navbar-nav .nav-link:focus {
            color: var(--as-gold-light) !important;
        }

.as-reservation-item {
    margin-inline-start: 10px !important;
}

.as-reservation-btn {
    min-width: 150px !important;
    height: 40px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 16px !important;
    border-radius: 8px !important;
    background: var(--as-gold) !important;
    color: var(--as-green-dark) !important;
    font-size: 12px !important;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

    .as-reservation-btn:hover {
        background: var(--as-gold-light) !important;
        color: var(--as-green-dark) !important;
        transform: translateY(-1px);
    }

.as-toggler {
    width: 42px;
    height: 42px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(214, 181, 109, 0.55) !important;
    border-radius: 8px;
    color: white !important;
}

    .as-toggler i {
        color: white;
        font-size: 22px;
    }

    .as-toggler .navbar-toggler-icon {
        width: auto;
        height: auto;
        background-image: none !important;
    }

/* =========================
   Optional Legacy Hero
   Keep only if a page still uses .as-hero
   ========================= */

.as-hero {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    background: var(--as-green-dark);
}

.as-hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../../pict/home/alsalam_home.png');
    background-size: cover;
    background-position: center right;
    transform: scale(1.01);
}

.as-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 8% 10%, rgba(214, 181, 109, 0.13), transparent 24%), linear-gradient(90deg, rgba(1, 56, 43, 0.96) 0%, rgba(1, 56, 43, 0.91) 24%, rgba(4, 84, 61, 0.63) 45%, rgba(4, 84, 61, 0.20) 66%, rgba(4, 84, 61, 0.03) 100%);
}

.as-hero-content-wrap {
    position: relative;
    z-index: 2;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.as-hero-content {
    max-width: 520px;
    color: white;
    padding-bottom: 28px;
}

    .as-hero-content h1 {
        margin: 0;
        font-family: Georgia, 'Times New Roman', serif;
        font-size: clamp(42px, 4vw, 66px);
        line-height: 1.06;
        font-weight: 700;
        letter-spacing: 0.5px;
    }

        .as-hero-content h1 span {
            display: block;
            color: var(--as-gold);
        }

    .as-hero-content p {
        margin: 22px 0 0;
        max-width: 430px;
        color: rgba(255, 255, 255, 0.88);
        font-size: 18px;
        line-height: 1.8;
    }

.as-hero-btn {
    margin-top: 28px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 24px;
    border: 1px solid rgba(214, 181, 109, 0.65);
    border-radius: 10px;
    color: white !important;
    background: rgba(1, 56, 43, 0.70);
    text-decoration: none !important;
    font-weight: 800;
    transition: all 0.25s ease;
}

    .as-hero-btn:hover {
        background: var(--as-gold);
        color: var(--as-green-dark) !important;
    }

/* =========================
   Home Bootstrap Carousel
   ========================= */

.home-slide,
.home-slide .carousel-inner,
.home-slide .carousel-item,
.home-slide .slide-bg {
    height: 700px;
}

    .home-slide .slide-bg {
        position: relative;
        height: 100%;
        overflow: hidden;
        background: var(--as-green-dark);
    }

        .home-slide .slide-bg > img {
            position: absolute;
            inset: 0;
            top: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center center !important;
            z-index: 0;
        }

.as-slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: transparent !important;
}

.as-slide-content {
    position: relative;
    z-index: 2;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

    .as-slide-content h1 {
        margin: 0;
        max-width: 560px;
        font-family: Georgia, 'Times New Roman', serif;
        font-size: 64px;
        line-height: 1.05;
        font-weight: 700;
        color: white;
    }

        .as-slide-content h1 span {
            display: block;
            color: var(--as-gold);
        }

    .as-slide-content p {
        margin-top: 24px;
        max-width: 470px;
        color: rgba(255, 255, 255, 0.9);
        font-size: 18px;
        line-height: 1.8;
    }

.as-slide-btn {
    margin-top: 28px;
    width: fit-content;
    min-width: 190px;
    height: 50px;
    padding: 0 24px;
    border-radius: 10px;
    border: 1px solid rgba(214, 181, 109, 0.70);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(1, 56, 43, 0.75);
    color: white !important;
    text-decoration: none !important;
    font-weight: 800;
}

    .as-slide-btn:hover {
        background: var(--as-gold);
        color: var(--as-green-dark) !important;
    }

.home-slide .carousel-indicators {
    z-index: 4;
    bottom: 34px;
}

    .home-slide .carousel-indicators [data-bs-target] {
        width: 12px;
        height: 12px;
        border: 0;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.75);
        opacity: 1;
    }

    .home-slide .carousel-indicators .active {
        width: 28px;
        border-radius: 20px;
        background-color: var(--as-gold);
    }

.home-slide .carousel-control-prev,
.home-slide .carousel-control-next {
    z-index: 4;
    width: 8%;
}

.home-slide .carousel-control-prev-icon,
.home-slide .carousel-control-next-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-size: 45%;
    background-color: rgba(1, 56, 43, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

/* =========================
   Tablet
   ========================= */

@media (max-width: 1200px) {
    .as-navbar-nav .nav-link {
        font-size: 13px !important;
        padding: 16px 8px !important;
    }

    .as-reservation-btn {
        min-width: 150px !important;
        padding-inline: 14px !important;
    }
}

/* =========================
   Mobile Header + Slider
   ========================= */

@media (max-width: 990px) {
    .as-topbar {
        height: 40px;
    }

    .as-topbar-inner {
        max-width: 100%;
        min-height: 40px;
        padding-inline: 12px;
        gap: 8px;
    }

    .as-topbar-left {
        gap: 8px;
        flex: 1 1 auto;
        overflow: hidden;
        flex-wrap: nowrap;
    }

    .as-topbar-right {
        flex: 0 0 auto;
        width: auto !important;
    }

    .as-topbar-item {
        font-size: 12px;
        gap: 5px;
    }

    .as-hotline strong {
        font-size: 16px;
    }

    .as-topbar-separator {
        display: none;
    }

    .as-lang-link {
        font-size: 12px;
        gap: 5px;
    }

    .as-mainnav {
        height: 68px !important;
        min-height: 68px !important;
    }

    .as-mainnav-inner {
        max-width: 100%;
        height: 68px !important;
        min-height: 68px !important;
        padding-inline: 16px;
        position: relative;
        justify-content: space-between;
    }

    .as-logo {
        margin-left: 0 !important;
        max-height: 46px !important;
        max-width: 190px !important;
    }

    .as-navbar-collapse {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        z-index: 50;
        width: 100%;
        padding: 12px 18px 18px !important;
        background: var(--as-green);
        border-top: 1px solid rgba(214, 181, 109, 0.25);
        box-shadow: 0 18px 32px rgba(1, 56, 43, 0.20);
    }

    .as-navbar-nav {
        gap: 0 !important;
        align-items: stretch !important;
    }

        .as-navbar-nav .nav-link {
            padding: 13px 4px !important;
            font-size: 15px !important;
            border-bottom: 1px solid rgba(255, 255, 255, 0.10);
        }

    .as-reservation-item {
        margin-inline-start: 0 !important;
        margin-top: 10px;
    }

    .as-reservation-btn {
        width: 100% !important;
        min-width: 0 !important;
        height: 46px !important;
        font-size: 14px !important;
    }

    .home-slide,
    .home-slide .carousel-inner,
    .home-slide .carousel-item,
    .home-slide .slide-bg {
        height: 560px !important;
    }

        .home-slide .slide-bg > img {
            object-position: center center !important;
        }

    .as-slide-content {
        display: none !important;
    }

    .as-slide-overlay {
        background: transparent !important;
    }

    .home-slide .carousel-control-prev,
    .home-slide .carousel-control-next {
        display: none;
    }

    .home-slide .carousel-indicators {
        bottom: 28px !important;
    }
}

/* =========================
   Small Mobile
   ========================= */

@media (max-width: 570px) {
    .as-topbar-item.as-address {
        display: none !important;
    }

    .as-topbar-item,
    .as-lang-link {
        font-size: 11px;
    }

    .as-logo {
        max-height: 42px !important;
        max-width: 180px !important;
    }

    .home-slide,
    .home-slide .carousel-inner,
    .home-slide .carousel-item,
    .home-slide .slide-bg {
        height: 560px !important;
    }

        .home-slide .slide-bg > img {
            object-position: center center !important;
        }
}
