/********** Template CSS **********/
:root {
    --primary: #B28A4D;
    --light: #F1F8FF;
    --dark: #094546;
}

/* أوزان الخطوط */
.fw-medium { font-weight: 500 !important; }
.fw-semi-bold { font-weight: 600 !important; }

/* زر الرجوع للأعلى */
.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}
#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/*** الأزرار ***/
.btn {
    font-weight: 500;
    text-transform: uppercase;
    transition: .5s;
}
.btn.btn-primary,
.btn.btn-secondary { color: #FFFFFF; }

.btn-square, .btn-sm-square, .btn-lg-square {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    padding: 0;
}
.btn-square { width: 38px; height: 38px; }
.btn-sm-square { width: 32px; height: 32px; }
.btn-lg-square { width: 48px; height: 48px; }

/*** Navbar ***/
.navbar-dark .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 15px;
    text-transform: uppercase;
    outline: none;
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary);
}
@media (max-width: 991.98px) {
    .navbar-dark .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }
}

/*** Header ***/
.carousel-caption {
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(9,69,70,.7);
}
.carousel-control-prev, .carousel-control-next { width: 10%; }
.carousel-control-prev-icon, .carousel-control-next-icon {
    width: 3rem; height: 3rem;
}

/*** خلفية الرأس للصفحات الداخلية ***/
.page-header-inner {
    background: rgba(9,69,70,.7);
}

/*** العناوين ***/
.section-title {
    position: relative;
    display: inline-block;
}
.section-title::before,
.section-title::after {
    position: absolute;
    content: "";
    width: 45px;
    height: 2px;
    top: 50%;
    background: var(--primary);
}
.section-title::before { left: -55px; }
.section-title::after { right: -55px; }
.section-title.text-start::before,
.section-title.text-end::after { display: none; }

/*** الخدمات (Service) ***/
.service-item {
    height: 320px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transition: all 0.5s ease;
    border-radius: 8px;
}
.service-item .service-icon {
    margin: 0 auto 30px auto;
    width: 80px;
    height: 80px;
    border: 2px solid #B28A4D;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    box-shadow: 0 0 10px rgba(178,138,77,0.3);
}
.service-item svg path, 
.service-item i {
    fill: #B28A4D !important;
    color: #B28A4D !important;
    transition: all 0.4s ease;
}
.service-item h5, .service-item p {
    color: #094546;
    transition: all 0.3s ease;
}

/* عند التمرير */
.service-item:hover {
    background-color: #094546;
    transform: translateY(-5px);
}
.service-item:hover .service-icon {
    background-color: #B28A4D;
    box-shadow: 0 0 15px rgba(178,138,77,0.6);
    transform: scale(1.1);
}
.service-item:hover svg path,
.service-item:hover i {
    fill: #ffffff !important;
    color: #ffffff !important;
}
.service-item:hover h5, 
.service-item:hover p {
    color: #ffffff !important;
}

/*** الفيديو ***/
.video {
    position: relative;
    min-height: 500px;
    background: linear-gradient(rgba(9,69,70,.1), rgba(9,69,70,.1)), url(../img/video.jpg);
    background-position: center;
    background-size: cover;
}

/*** Footer ***/
.footer {
    background-color: #094546 !important;
    color: #FFFFFF;
    margin-top: -110px;
    padding-top: 180px;
}
.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px; height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid #FFFFFF;
    border-radius: 35px;
    transition: .3s;
}
.footer .btn.btn-social:hover {
    color: var(--primary);
    background-color: #fff;
}
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    transition: .3s;
}
.footer .btn.btn-link:hover {
    color: #FFD77A;
    letter-spacing: 1px;
}

/*** الخلفيات والألوان العامة ***/
body {
    background-color: #f9faf4 !important;
    color: #094546 !important;
}
.navbar-dark { background-color: #094546 !important; }

.btn-primary {
    background-color: #B28A4D !important;
    border-color: #9c793d !important;
    color: #094546 !important;
}
.btn-primary:hover {
    background-color: #C9A35C !important;
    color: #fff !important;
}

/*** روابط ***/
a, a:hover, a:focus, .nav-link:hover, .nav-link.active, .text-primary {
    color: #B28A4D !important;
}

/*** تحسين الألوان العامة ***/
.bg-primary, .footer .btn.btn-social:hover {
    background-color: #B28A4D !important;
}
.navbar-dark .navbar-nav .nav-link.active,
.navbar-dark .navbar-nav .nav-link:hover {
    color: #B28A4D !important;
}
