/* Elegant Light Beige-Gold-Brown Theme */
:root {
    --border-radius-soft: 25px;
    --border-radius-card: 15px;
    --box-shadow-soft: 0 10px 30px rgba(51, 49, 141, 0.08);
    --primary-color: #33318d;
    /* Rich Brown (buttons, icons, accents) */
    --secondary-color: #fcd3dd;
    /* Warm Gold */
    --dark-bg: #ffffff;
    /* Light Beige (main background) */
    --section-alt-bg: #f8f9fa;
    /* Slightly darker beige for alternating sections */
    --text-dark: #1d1c4f;
    /* Dark Brown for headings */
    --text-body: #33318d;
    /* Brown for body text */
    --text-muted: #5a578f;
    /* Muted Brown */
    --beige: #ffffff;
    /* Warm Beige */
    --light-gold: #fadce3;
    /* Light Gold */

    /* Fonts */
    --font-heading-en: 'Cinzel', serif;
    --font-body-en: 'Montserrat', sans-serif;
    --font-heading-ar: 'El Messiri', sans-serif;
    --font-body-ar: 'Cairo', sans-serif;
}

body {
    font-family: var(--font-body-en);
    background-color: var(--dark-bg);
    color: var(--text-body);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
.navbar-brand {
    font-family: var(--font-heading-en);
}

.title-font {
    font-family: var(--font-heading-en);
}

/* Colors Utilities */
.bg-dark-blue {
    background-color: var(--section-alt-bg);
}

.bg-dark-main {
    background-color: var(--dark-bg);
}

.bg-dark-footer {
    background-color: #33318d;
}

.text-gold {
    color: var(--primary-color) !important;
}

/* Ensure text-gold on dark backgrounds uses the secondary (light) color */
.bg-dark-footer .text-gold,
.features-strip .text-gold {
    color: var(--secondary-color) !important;
}

.text-light-50 {
    color: rgba(29, 28, 79, 0.55);
}

.text-light-80 {
    color: rgba(29, 28, 79, 0.8);
}

.border-gold {
    border-color: var(--secondary-color) !important;
}

.border-white-10 {
    border-color: rgba(29, 28, 79, 0.1) !important;
}

/* Navbar */
.navbar {
    background: transparent;
    transition: all 0.5s ease;
    padding-top: 2rem;
    z-index: 1050;
    position: absolute;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 3px;
    color: var(--primary-color);
    white-space: nowrap;
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }
}

.nav-link {
    color: #fff !important;
    opacity: 0.7;
    font-size: 0.85rem;
    letter-spacing: 2px;
    transition: 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(---secondary-color) !important;
    opacity: 1;
    font-weight: bold;
}

/* Navbar Toggle */
.navbar-toggler {
    border-color: rgba(51, 49, 141, 0.2) !important;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler i {
    color: var(--primary-color);
}

/* Mobile Navbar Fix */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: 1.5rem;
        margin-top: 1rem;
        border: 1px solid rgba(252, 211, 221, 0.2);
        border-radius: 4px;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(29, 28, 79, 0.08);
    }

    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }
}

/* Split Hero Section */
/* Hero Section Glassmorphism Container */
.hero-glass-container {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--border-radius-card);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--box-shadow-soft);
    padding: 3rem;
    max-width: 600px;
    margin: auto;
}

/* Split Hero Section */
.bg-image-hero {
    background: url('https://images.unsplash.com/photo-1460538512106-37e555b43281?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTE3fHxkcmVzcyUyMEJBQ0tHUk9VTkR8ZW58MHx8MHx8fDI%3D') center/cover no-repeat;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.hero-text-col {
    position: relative;
    z-index: 2;
}

@media (max-width: 991.98px) {
    .hero-text-col {
        padding-top: 8rem;
        justify-content: flex-start !important;
        padding-bottom: 4rem;
    }
}

.hero-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--section-alt-bg) 0%, transparent 100%);
}

.ls-2 {
    letter-spacing: 2px;
}

/* Buttons */
.btn-gold {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    transition: 0.3s;
    border-radius: var(--border-radius-soft) !important;
}

.btn-gold:hover {
    background-color: var(--primary-color);
    color: var(--beige);
}

.btn-outline-gold {
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    transition: 0.3s;
    border-radius: var(--border-radius-soft) !important;
}

.btn-outline-gold:hover {
    background-color: var(--secondary-color);
    color: var(--beige);
}

/* Features Strip — stays dark brown for contrast */
.features-strip {
    background: transparent;
    border-bottom: none;
    margin-top: -50px;
}

.feature-item-card {
    background: #ffffff;
    border-radius: var(--border-radius-card);
    box-shadow: var(--box-shadow-soft);
    padding: 2rem 1rem;
    transition: 0.3s;
}

.feature-item-card:hover {
    transform: translateY(-10px);
}

.feature-item {
    transition: 0.3s;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Products */
.separator {
    width: 80px;
    height: 1px;
    background: var(--secondary-color);
}

.product-card {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transition: all 0.4s ease;
    overflow: visible;
    position: relative;
    padding: 0 !important;
}



.product-card:hover {
    transform: translateY(-5px);
}



.product-card:hover {
    transform: translateY(-5px);
}

.product-card p.small {
    color: var(--text-muted) !important;
}

.img-wrapper {
    position: relative;
    overflow: hidden;
    height: 350px;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: var(--border-radius-card) var(--border-radius-card) 0 0;
}

.product-card:hover .img-wrapper img {
    transform: scale(1.03);
}

/* About Frame */
.border-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 105%;
    height: 105%;
    background: var(--light-gold);
    border-radius: var(--border-radius-card);
    z-index: 1;
    opacity: 0.3;
}

/* Accordion */
.accordion-button::after {
    filter: none;
}

.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    box-shadow: none;
}

.accordion-item {
    background: transparent;
}

/* Carousel Controls */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--primary-color);
    border-radius: 50%;
    background-size: 50% 50%;
}

.carousel-indicators [data-bs-target] {
    background-color: var(--primary-color);
}

/* Form Styles */
.form-control {
    color: var(--text-body);
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.5);
    border-color: var(--secondary-color);
    color: var(--text-body);
    box-shadow: 0 0 0 0.25rem rgba(252, 211, 221, 0.25);
}

.form-control::placeholder {
    color: rgba(51, 49, 141, 0.4);
}

/* Testimonials (Royal Cards) */
.bg-absolute-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 2px 2px, rgba(252, 211, 221, 0.15) 1px, transparent 0);
    background-size: 40px 40px;
    opacity: 0.5;
    z-index: 1;
}

.testimonial-card {
    max-width: 800px;
    background: #ffffff;
    border-radius: var(--border-radius-card);
    box-shadow: var(--box-shadow-soft);
    padding: 4rem 2rem;
    position: relative;
    margin: 2rem 0;
    border: none;
}

/* Removed royal borders for a softer look */

.quote-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    opacity: 0.5;
    margin-bottom: 1rem;
}

/* Contact Form (VIP) */
.contact-frame {
    box-shadow: var(--box-shadow-soft);
    border-radius: var(--border-radius-card);
    overflow: hidden;
}

.bg-image-contact {
    background: url('https://images.unsplash.com/photo-1593487568720-92097fb460fb?q=80&w=1170&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') center/cover;
    height: 100%;
    /* filter: grayscale(100%) contrast(1.2); */
    transition: 0.5s;
}

.contact-frame:hover .bg-image-contact {
    filter: grayscale(0%) contrast(1);
}

.custom-floating .form-control {
    border: 1px solid rgba(51, 49, 141, 0.1);
    border-radius: var(--border-radius-card);
    padding: 1rem 1.25rem;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    background-color: #fafbfc;
}

.custom-floating .form-control:focus {
    border-bottom-color: var(--secondary-color);
    background: transparent;
}

.custom-floating label {
    padding-left: 1.25rem;
    color: rgba(51, 49, 141, 0.5);
}

.custom-floating .form-control:focus~label,
.custom-floating .form-control:not(:placeholder-shown)~label {
    color: var(--primary-color);
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.border-bottom-only {
    border-bottom: 1px solid rgba(51, 49, 141, 0.2) !important;
}

/* Footer — stays dark for contrast */
.social-links a:hover {
    color: var(--secondary-color) !important;
}

/* RTL Support */
body[dir="rtl"] {
    font-family: var(--font-body-ar);
    text-align: right;
}

body[dir="rtl"] * {
    font-family: var(--font-heading-ar);
}

body[dir="rtl"] .hero-overlay-gradient {
    background: linear-gradient(to left, var(--section-alt-bg) 0%, transparent 100%);
}

body[dir="rtl"] .ps-lg-4 {
    padding-right: 1.5rem !important;
    padding-left: 0 !important;
}

body[dir="rtl"] .navbar-nav {
    margin-right: auto;
    margin-left: 0 !important;
}

body[dir="rtl"] .text-md-end {
    text-align: left !important;
}

body[dir="rtl"] .border-end {
    border-left: 1px solid rgba(29, 28, 79, 0.1) !important;
    border-right: none !important;
}

#checkoutModal input,
#checkoutModal textarea {
    color: #000;
}

/* Fix background on focus */
.custom-floating .form-control:focus {
    background-color: transparent !important;
}

/* Fix label background in floating forms */
.custom-floating>.form-control:focus~label::after,
.custom-floating>.form-control:not(:placeholder-shown)~label::after {
    background-color: transparent !important;
}

/* RTL Specific Styles */
body[dir="rtl"] .custom-floating label {
    left: auto;
    right: 0;
    transform-origin: top right;
}

body[dir="rtl"] .custom-floating .form-control:focus~label,
body[dir="rtl"] .custom-floating .form-control:not(:placeholder-shown)~label {
    color: var(--primary-color);
    transform: scale(0.85) translateY(-0.5rem) translateX(-0.15rem);
}

body[dir="rtl"] .accordion-button::after {
    margin-right: auto;
    margin-left: 0;
}

/* --- Extra Contrast Fixes for Dark Backgrounds --- */
.bg-dark-footer .text-light-50,
.features-strip .text-light-50 {
    color: rgba(255, 255, 255, 0.65) !important;
}
.bg-dark-footer .text-light-80,
.features-strip .text-light-80 {
    color: rgba(255, 255, 255, 0.8) !important;
}
.bg-dark-footer .border-white-10,
.features-strip .border-white-10,
.border-white-10 {
    border-color: rgba(255, 255, 255, 0.15) !important;
}
.bg-dark-footer .text-light,
.bg-dark-footer .text-white {
    color: #ffffff !important;
}

.product-card-img-container {
    border-radius: var(--border-radius-card);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
    position: relative;
}

.product-card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-card-img-container img {
    transform: scale(1.05);
}

.product-action-overlay {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    text-align: center;
    padding: 1rem;
    background: linear-gradient(to top, rgba(51, 49, 141, 0.8), transparent);
    opacity: 0;
    transition: all 0.4s ease;
}

.product-card:hover .product-action-overlay {
    bottom: 0;
    opacity: 1;
}

.product-card-content {
    text-align: center;
    padding: 0 10px;
}

.hero-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
    pointer-events: none;
}
