/********** Riyadh Curtain House - Premium Theme **********/
:root {
    --primary: #C9A84C;
    --gold: #C9A84C;
    --gold-light: #E8D5A3;
    --gold-dark: #A8882E;
    --cream: #FFF8F0;
    --champagne: #F7E8D0;
    --charcoal: #2C2C2C;
    --dark-brown: #3A2A1A;
    --burgundy: #722F37;
    --soft-gold: rgba(201, 168, 76, 0.1);
    --light: #FAF8F5;
    --dark: #2C2C2C;
    --accent: #E8D5A3;
    --shadow-sm: 0 2px 15px rgba(0,0,0,0.06);
    --shadow-md: 0 5px 30px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 50px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 80px rgba(0,0,0,0.2);
}

.fw-medium { font-weight: 500 !important; }
.fw-bold { font-weight: 700 !important; }
.fw-black { font-weight: 900 !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;
}

/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}
.btn.btn-primary,
.btn.btn-outline-primary:hover {
    color: #FFFFFF;
}
.btn-square {
    width: 38px;
    height: 38px;
}
.btn-sm-square {
    width: 32px;
    height: 32px;
}
.btn-lg-square {
    width: 48px;
    height: 48px;
}
.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}
.navbar .navbar-brand,
.navbar a.btn {
    height: 75px;
}
.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: var(--dark);
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
}
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}
@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }
    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}
@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }
    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

/*** Header / Carousel ***/
.owl-carousel-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, .1);
}
@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }
    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .header-carousel .owl-carousel-item p {
        font-size: 16px !important;
    }
}
.header-carousel .owl-dots {
    position: absolute;
    width: 60px;
    height: 100%;
    top: 0;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.header-carousel .owl-dots .owl-dot {
    position: relative;
    width: 45px;
    height: 45px;
    margin: 5px 0;
    background: #FFFFFF;
    box-shadow: 0 0 30px rgba(255, 255, 255, .9);
    border-radius: 45px;
    transition: .5s;
}
.header-carousel .owl-dots .owl-dot.active {
    width: 60px;
    height: 60px;
}
.header-carousel .owl-dots .owl-dot img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 2px;
    border-radius: 45px;
    transition: .5s;
}

/*** Page Header ***/
.page-header {
    background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
    min-height: 250px;
    display: flex;
    align-items: center;
}
.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}

/*** About ***/
@media (min-width: 992px) {
    .container.about {
        max-width: 100% !important;
    }
    .about-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}
@media (min-width: 1200px) {
    .about-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}
@media (min-width: 1400px) {
    .about-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}

/*** Service ***/
.service-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}
.service-icon {
    position: relative;
    margin: -50px 0 25px 0;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: #FFFFFF;
    border-radius: 100px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transition: .5s;
}
.service-item:hover .service-icon {
    color: #FFFFFF;
    background: var(--primary);
}

/*** Feature ***/
@media (min-width: 992px) {
    .container.feature {
        max-width: 100% !important;
    }
}

/*** Project Portfolio ***/
#portfolio-flters li {
    display: inline-block;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: .5s;
    border-bottom: 2px solid transparent;
}
#portfolio-flters li:hover,
#portfolio-flters li.active {
    color: var(--primary);
    border-color: var(--primary);
}
.portfolio-img {
    position: relative;
}
.portfolio-img::before, .portfolio-img::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    background: var(--dark);
    transition: .5s;
}
.portfolio-img::before {
    left: 50%;
}
.portfolio-img::after {
    right: 50%;
}
.portfolio-item:hover .portfolio-img::before {
    width: 51%;
    left: 0;
}
.portfolio-item:hover .portfolio-img::after {
    width: 51%;
    right: 0;
}
.portfolio-btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: 1;
    transition: .5s;
}
.portfolio-item:hover .portfolio-btn {
    opacity: 1;
    transition-delay: .3s;
}

/* Remove split dark overlay on project images when clicked/hovered */
.portfolio-img::before,
.portfolio-img::after {
    display: none !important;
}

/*** Quote ***/
@media (min-width: 992px) {
    .container.quote {
        max-width: 100% !important;
    }
    .quote-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}
@media (min-width: 1200px) {
    .quote-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}
@media (min-width: 1400px) {
    .quote-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}

/*** Team ***/
.team-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}
.team-item img {
    border-radius: 8px 60px 0 0;
}
.team-item .team-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    background: #FFFFFF;
    transition: .5s;
}

/*** Testimonial ***/
.testimonial-carousel {
    position: relative;
    z-index: 1;
    overflow: visible;
    min-height: 400px;
    background: #faf8f5;
    padding: 20px 0;
}
.testimonial-carousel::before,
.testimonial-carousel::after {
    display: none !important;
}
.testimonial-carousel .owl-stage-outer {
    overflow: visible !important;
}
.testimonial-carousel .owl-stage {
    display: flex !important;
}
.testimonial-carousel .owl-item {
    display: block !important;
    min-height: 250px;
}
.testimonial-carousel .owl-item .testimonial-card {
    position: relative;
    z-index: 5;
    background: #fff;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.testimonial-carousel .owl-nav {
    position: absolute;
    width: 350px;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
    z-index: 1;
}
.testimonial-carousel:hover .owl-nav {
    width: 300px;
    opacity: 1;
}
.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    color: var(--primary);
    font-size: 45px;
    transition: .5s;
}
.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}
.testimonial-carousel .testimonial-img img {
    width: 100px;
    height: 100px;
}
.testimonial-carousel .testimonial-img .btn-square {
    position: absolute;
    bottom: -19px;
    left: 50%;
    transform: translateX(-50%);
}
.testimonial-carousel .owl-item .testimonial-text {
    margin-bottom: 30px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transform: scale(.8);
    transition: .5s;
}
.testimonial-carousel .owl-item.center .testimonial-text {
    transform: scale(1);
}

/*** Contact ***/
@media (min-width: 992px) {
    .container.contact {
        max-width: 100% !important;
    }
    .contact-text  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}
@media (min-width: 1200px) {
    .contact-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}
@media (min-width: 1400px) {
    .contact-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}

/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    color: #9B9B9B;
    border: 1px solid #9B9B9B;
    border-radius: 38px;
    transition: .3s;
}
.footer .btn.btn-social:hover {
    color: var(--primary);
    border-color: var(--light);
}
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #9B9B9B;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}
.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}
.footer .btn.btn-link:hover {
    color: #FFFFFF;
    letter-spacing: 1px;
    box-shadow: none;
}
.footer .copyright {
    padding: 25px 0;
    border-top: 1px solid rgba(256, 256, 256, .1);
}
.footer .copyright a {
    color: var(--light);
}
.footer .copyright a:hover {
    color: var(--primary);
}

/*** Custom Premium Styles ***/

/* Page Header Enhancement */
.page-header {
    position: relative;
    overflow: hidden;
}
.page-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

/* Value Cards */
.value-card {
    border: 1px solid #eee;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.value-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}
.value-card:hover::before {
    transform: scaleX(1);
}
.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* Team Cards */
.team-card {
    border: 1px solid #eee;
    transition: all 0.4s ease;
}
.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}
.team-img-wrapper {
    width: 150px;
    height: 150px;
    overflow: hidden;
    border: 3px solid var(--primary);
    padding: 4px;
    transition: all 0.4s ease;
}
.team-member-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.team-card:hover .team-member-img {
    transform: scale(1.1);
}

/* Floating Cards */
.about-floating-card,
.about-floating-card-2 {
    position: absolute;
    background: white;
    padding: 15px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    animation: float 3s ease-in-out infinite;
}
.about-floating-card {
    top: 30px;
    right: -20px;
}
.about-floating-card-2 {
    bottom: 30px;
    left: -20px;
    animation-delay: 1.5s;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Icon Box Small */
.icon-box-sm {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* CTA Section */
.cta-section {
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 6s ease-in-out infinite;
}
@keyframes shimmer {
    0%, 100% { transform: translate(-10%, -10%) rotate(0deg); }
    50% { transform: translate(10%, 10%) rotate(5deg); }
}

/* RTL Support */
[dir="rtl"] .navbar-nav {
    margin-right: auto;
    margin-left: 0 !important;
}
[dir="rtl"] .navbar-nav .nav-link {
    margin-right: 0;
    margin-left: 20px;
}
[dir="rtl"] .ms-lg-3 {
    margin-right: 1rem !important;
    margin-left: 0 !important;
}
[dir="rtl"] .me-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}
[dir="rtl"] .me-3 {
    margin-left: 1rem !important;
    margin-right: 0 !important;
}
[dir="rtl"] .ps-5 {
    padding-right: 3rem !important;
    padding-left: 0 !important;
}
[dir="rtl"] .text-start {
    text-align: right !important;
}
[dir="rtl"] .breadcrumb-item + .breadcrumb-item::before {
    content: "\f104" !important;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    padding-right: 0.5rem;
    padding-left: 0;
}
[dir="rtl"] .about-floating-card {
    right: auto;
    left: -20px;
}
[dir="rtl"] .about-floating-card-2 {
    left: auto;
    right: -20px;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Section Backgrounds */
.bg-light {
    background-color: var(--light) !important;
}

/* Form Styling */
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(201, 168, 76, 0.25);
}

/* Badge/Pill Active States */
.nav-pills .nav-link.active {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Responsive refinements */
@media (max-width: 768px) {
    .page-header {
        min-height: 200px;
    }
    .page-header h1 {
        font-size: 2rem;
    }
    .team-img-wrapper {
        width: 120px;
        height: 120px;
    }
    .about-floating-card,
    .about-floating-card-2 {
        display: none;
    }
}

/* Animation Delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Counter animation base */
.counter {
    font-weight: 700;
}

/* Gallery hover effect */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}
.gallery-item img {
    transition: transform 0.6s ease;
}
.gallery-item:hover img {
    transform: scale(1.08);
}

/* Social icons */
.social-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}
.social-icon:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* Navbar dropdown enhancements */
@media (min-width: 992px) {
    .navbar .navbar-nav .nav-link {
        position: relative;
    }
    .navbar .navbar-nav .nav-link::after {
        content: "";
        position: absolute;
        bottom: 4px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--primary);
        transition: width 0.3s ease;
    }
    .navbar .navbar-nav .nav-link:hover::after,
    .navbar .navbar-nav .nav-link.active::after {
        width: 100%;
    }
}
[dir="rtl"] .navbar .navbar-nav .nav-link::after {
    left: auto;
    right: 0;
}

/* Gold theme overrides for text-primary */
.text-primary {
    color: var(--gold) !important;
}
.btn-primary {
    background-color: var(--gold) !important;
    border-color: var(--gold) !important;
}
.btn-primary:hover {
    background-color: var(--gold-dark) !important;
    border-color: var(--gold-dark) !important;
}