/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #f8f4e3;
    --accent-color: #a77e43;
    --hover-color: #8d6c34;
    --text-color: #2b2b2b;
    --secondary-color: #6d6356;
    --white: #ffffff;
    --light-bg: #faf9f5;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --nav-height: 120px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 1rem;
    font-weight: 500;
}

body[dir="ltr"] {
    font-family: 'Inter', sans-serif;
}

body[dir="ltr"] h1,
body[dir="ltr"] h2,
body[dir="ltr"] h3,
body[dir="ltr"] .section-title,
body[dir="ltr"] .hero-title {
    font-family: 'Playfair Display', serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-inline: clamp(1rem, 4vw, 2rem);
}

.section-padding {
    padding: clamp(3rem, 8vw, 5rem) 0;
}

.bg-light {
    background-color: var(--light-bg);
}

/* Navigation - RTL/LTR Perfect Alignment */
.navbar {
    position: fixed;
    top: 0;
    inset-inline: 0;
    background: rgba(248, 244, 227, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
    height: var(--nav-height);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-block: 0;
    padding-inline: 1.5rem;
    height: 100%;
    max-width: 100% !important;
    /* Force Full Width */
}

.nav-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
}

.brand-logo {
    width: auto;
    height: 110px;
    max-height: 95%;
    object-fit: contain;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-logo-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1.2;
}

.brand-tagline {
    font-size: clamp(0.75rem, 1.5vw, 0.85rem);
    color: var(--secondary-color);
    line-height: 1.2;
    display: none;
}

/* Mobile Menu Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: clamp(0.75rem, 2vw, 1.5rem);
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link,
.nav-dropdown-toggle {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    position: relative;
    background: none;
    border: none;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
}

.nav-link::after,
.nav-dropdown-toggle::after {
    content: '';
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after,
.nav-dropdown-toggle:hover::after,
.nav-dropdown-toggle.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active,
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active {
    color: var(--accent-color);
}

.dropdown-icon {
    transition: transform 0.3s;
    flex-shrink: 0;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle[aria-expanded="true"] .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    background: white;
    box-shadow: var(--shadow-hover);
    border-radius: 8px;
    min-width: 200px;
    padding: 0.5rem 0;
    margin-block-start: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    list-style: none;
    z-index: 1001;
}

.nav-dropdown:hover>.dropdown-menu:not(.mobile-submenu),
.nav-dropdown-toggle[aria-expanded="true"]+.dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--light-bg);
    color: var(--accent-color);
    padding-inline-start: 1.75rem;
}

/* Nested Dropdown Styles */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>.dropdown-menu {
    top: 0;
    inset-inline-start: 100%;
    margin-top: -5px;
    margin-inline-start: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
}

.dropdown-submenu:hover>.dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* RTL adjustment for nested menu */
body[dir="rtl"] .dropdown-submenu>.dropdown-menu {
    transform: translateX(10px);
}

body[dir="rtl"] .dropdown-submenu:hover>.dropdown-menu {
    transform: translateX(0);
}

.dropdown-item-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nested-arrow {
    font-size: 0.8em;
    transform: rotate(-90deg);
    transition: transform 0.3s;
}

body[dir="rtl"] .nested-arrow {
    transform: rotate(90deg);
}

.lang-switcher .lang-link {
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
}

.lang-switcher .lang-link:hover {
    background: var(--hover-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--accent-color);
    transition: var(--transition);
    border-radius: 2px;
    display: block;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Social Chat Links - RTL/LTR Perfect */
.social-chat {
    position: fixed;
    inset-inline-end: clamp(1rem, 3vw, 1.25rem);
    bottom: clamp(1rem, 3vw, 1.25rem);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 999;
}

.social-btn {
    width: clamp(45px, 5vw, 50px);
    height: clamp(45px, 5vw, 50px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: var(--transition);
    flex-shrink: 0;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.social-btn.whatsapp {
    background: var(--accent-color);
}

.social-btn.instagram {
    background: var(--accent-color);
}

.social-btn.messenger {
    background: var(--accent-color);
}

.social-btn.phone {
    background: var(--accent-color);
}

.social-btn.email {
    background: var(--accent-color);
}

/* Hero Section - Fixed Aspect Ratio */
.hero {
    position: relative;
    min-height: calc(100vh - var(--nav-height));
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--hover-color) 100%);
    overflow: hidden;
    margin-top: var(--nav-height);
    padding: clamp(2rem, 6vw, 4rem) 0;
}

/* Hero Slider Styles */
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
    animation: zoomEffect 20s infinite alternate;
}

@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding-inline: clamp(1rem, 4vw, 2rem);
    max-width: 800px;
    width: 100%;
}

.hero-title,
.hero-subtitle {
    transition: opacity 0.5s ease-in-out;
}



.hero-title {
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 700;
    margin-block-end: 1rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    margin-block-end: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s both;
    line-height: 1.5;
}

/* Buttons - RTL/LTR Perfect */
.btn {
    display: inline-block;
    padding: clamp(0.75rem, 2vw, 0.875rem) clamp(1.5rem, 4vw, 2rem);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-family: inherit;
    text-align: center;
    line-height: 1.5;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-outline:hover {
    background: var(--accent-color);
    color: var(--white);
}

.btn-large {
    padding: clamp(1rem, 3vw, 1.25rem) clamp(2rem, 5vw, 3rem);
    font-size: clamp(1rem, 2.5vw, 1.1rem);
}

/* Sections - Perfect Alignment */
.section-title {
    text-align: center;
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    color: var(--accent-color);
    margin-block-end: 1rem;
    position: relative;
    padding-block-end: 1rem;
    line-height: 1.2;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
}

.section-subtitle {
    text-align: center;
    color: var(--secondary-color);
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    margin-block-end: 3rem;
    line-height: 1.6;
}

/* Services - Cards with Fixed Heights */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: clamp(1.5rem, 4vw, 2rem);
    margin-block-start: 3rem;
}

.service-card {
    background: var(--white);
    padding: clamp(1.5rem, 4vw, 2rem);
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    color: var(--accent-color);
    margin-block-end: 1rem;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.service-card h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    color: var(--accent-color);
    margin-block-end: 1rem;
    line-height: 1.3;
}

.service-card p {
    color: var(--secondary-color);
    line-height: 1.8;
    flex-grow: 1;
}

/* Products Grid - Fixed Aspect Ratios */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: clamp(1.5rem, 4vw, 2rem);
    margin-block-start: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg-color);
    position: relative;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    display: block;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-info {
    padding: clamp(1rem, 3vw, 1.5rem);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.85rem;
    margin-block-end: 0.5rem;
    align-self: flex-start;
}

.product-info h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: var(--accent-color);
    margin-block-end: 0.5rem;
    line-height: 1.3;
}

.product-info p {
    color: var(--secondary-color);
    font-size: clamp(0.9rem, 2vw, 0.95rem);
    margin-block-end: 1rem;
    line-height: 1.6;
    flex-grow: 1;
}

.product-price {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    font-weight: 600;
    color: var(--accent-color);
    margin-block-end: 1rem;
}

/* Gallery - Fixed Aspect Ratios */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
    gap: clamp(0.75rem, 2vw, 1rem);
    margin-block-start: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 1;
    cursor: pointer;
    background: var(--bg-color);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    display: block;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay p {
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

/* Testimonials - Cards */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: clamp(1.5rem, 4vw, 2rem);
    margin-block-start: 3rem;
}

.testimonial-card {
    background: var(--white);
    padding: clamp(1.5rem, 4vw, 2rem);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-block-end: 1rem;
    color: #FFD700;
    flex-shrink: 0;
}

.testimonial-text {
    color: var(--text-color);
    font-style: italic;
    line-height: 1.8;
    margin-block-end: 1.5rem;
    flex-grow: 1;
    font-size: clamp(0.95rem, 2vw, 1rem);
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-shrink: 0;
}

.testimonial-author strong {
    color: var(--accent-color);
    font-size: clamp(1rem, 2vw, 1.1rem);
}

.testimonial-author span {
    color: var(--secondary-color);
    font-size: clamp(0.85rem, 2vw, 0.9rem);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--hover-color) 100%);
    color: var(--white);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding-inline: clamp(1rem, 4vw, 2rem);
}

.cta-content h2 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    margin-block-end: 1rem;
    color: var(--white);
    line-height: 1.2;
}

.cta-content p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin-block-end: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--hover-color) 100%);
    color: var(--white);
    text-align: center;
    margin-top: var(--nav-height);
    padding: clamp(3rem, 8vw, 5rem) 0;
}

.page-header h1 {
    font-size: clamp(1.75rem, 6vw, 3rem);
    margin-block-end: 1rem;
    color: var(--white);
    line-height: 1.2;
}

.page-subtitle {
    font-size: clamp(1rem, 3vw, 1.2rem);
    opacity: 0.95;
    line-height: 1.6;
}

/* Category Filters - RTL/LTR Perfect */
.category-filters {
    display: flex;
    justify-content: center;
    gap: clamp(0.75rem, 2vw, 1rem);
    margin-block-end: 2rem;
    flex-wrap: wrap;
}

.filter-chip {
    padding: clamp(0.5rem, 1.5vw, 0.6rem) clamp(1rem, 3vw, 1.5rem);
    background: var(--bg-color);
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    text-decoration: none;
    display: inline-block;
}

.filter-chip:hover,
.filter-chip.active {
    background: var(--accent-color);
    color: var(--white);
}

/* Contact Page - Forms RTL/LTR Perfect */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 5vw, 3rem);
    margin-block-start: 2rem;
}

.contact-info h2,
.contact-form-wrapper h2 {
    color: var(--accent-color);
    margin-block-end: 2rem;
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-block-end: 2rem;
    align-items: flex-start;
}

.contact-icon {
    color: var(--accent-color);
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.contact-item h3 {
    color: var(--accent-color);
    margin-block-end: 0.5rem;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--accent-color);
}

.contact-form {
    background: var(--white);
    padding: clamp(1.5rem, 4vw, 2rem);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-block-end: 1.5rem;
}

.form-group label {
    display: block;
    margin-block-end: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: clamp(0.7rem, 2vw, 0.8rem);
    border: 2px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: clamp(0.9rem, 2vw, 1rem);
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-message {
    margin-block-start: 1rem;
    padding: 1rem;
    border-radius: 5px;
    display: none;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

/* About Page */
.about-sections {
    max-width: 800px;
    margin: 0 auto clamp(2rem, 5vw, 3rem);
}

.about-section {
    margin-block-end: clamp(2rem, 5vw, 3rem);
}

.about-section h2 {
    color: var(--accent-color);
    margin-block-end: 1rem;
    font-size: clamp(1.5rem, 4vw, 1.8rem);
    line-height: 1.3;
}

.about-section p {
    color: var(--secondary-color);
    line-height: 1.8;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
}

.stats-section {
    margin-block-start: clamp(3rem, 6vw, 4rem);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: clamp(1.5rem, 4vw, 2rem);
}

.stat-card {
    background: var(--white);
    padding: clamp(1.5rem, 4vw, 2rem);
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 700;
    color: var(--accent-color);
    margin-block-end: 0.5rem;
    line-height: 1;
}

.stat-label {
    color: var(--secondary-color);
    font-size: clamp(1rem, 2.5vw, 1.1rem);
}

/* Profile Page */
.profile-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.pdf-viewer {
    margin-block-end: 2rem;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    min-height: 600px;
}

.pdf-viewer iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.pdf-actions {
    text-align: center;
}

.no-pdf {
    text-align: center;
    padding: clamp(3rem, 8vw, 4rem) clamp(1rem, 4vw, 2rem);
    color: var(--secondary-color);
}

.no-products,
.no-images {
    grid-column: 1 / -1;
    text-align: center;
    padding: clamp(3rem, 8vw, 4rem) clamp(1rem, 4vw, 2rem);
    color: var(--secondary-color);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    display: block;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    font-size: 3rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-close {
    top: 20px;
    inset-inline-end: 20px;
}

.lightbox-prev {
    inset-inline-end: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    inset-inline-start: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-caption {
    color: var(--white);
    text-align: center;
    padding: 1rem;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
}

/* Footer - RTL/LTR Perfect */
.footer {
    background: var(--text-color);
    color: var(--white);
    padding: clamp(2rem, 5vw, 3rem) 0 clamp(1rem, 3vw, 1.5rem);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: clamp(1.5rem, 4vw, 2rem);
    margin-block-end: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--accent-color);
    margin-block-end: 1rem;
    font-size: clamp(1.1rem, 2.5vw, 1.2rem);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-block-end: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.footer-section ul li svg {
    color: var(--accent-color);
    flex-shrink: 0;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-block-start: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-block-start: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-size: clamp(0.85rem, 2vw, 0.9rem);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Breakpoints */
/* Mobile Small: 375px */
@media (max-width: 374px) {
    .brand-tagline {
        display: none;
    }

    .nav-menu {
        width: 85%;
    }
}

/* Mobile: up to 767px */
@media (max-width: 767px) {
    .brand-tagline {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        inset-inline-end: -100%;
        flex-direction: column;
        background: var(--bg-color);
        width: 85%;
        max-width: 320px;
        padding: 2rem;
        box-shadow: var(--shadow-hover);
        transition: var(--transition);
        align-items: flex-start;
        height: calc(100vh - var(--nav-height));
        overflow-y: auto;
        z-index: 1000;
    }

    .nav-menu.active {
        inset-inline-end: 0;
    }

    .nav-overlay.active {
        display: block;
    }

    .nav-link,
    .nav-dropdown-toggle {
        width: 100%;
        padding: 0.75rem 0;
        justify-content: space-between;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-toggle {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin-block-start: 0.5rem;
        margin-inline-start: 1rem;
        background: var(--light-bg);
        border-radius: 5px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-dropdown-toggle[aria-expanded="true"]+.dropdown-menu {
        max-height: 500px;
    }

    .social-chat {
        inset-inline-end: 1rem;
        bottom: 1rem;
    }

    .social-btn {
        width: 45px;
        height: 45px;
    }

    .services-grid,
    .products-grid,
    .testimonials-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .category-filters {
        justify-content: flex-start;
    }
}

/* Tablet: 768px - 1023px */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        padding-inline: 2rem;
    }

    .services-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .contact-wrapper {
        grid-template-columns: 1fr 1.2fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop Small: 1024px - 1279px */
@media (min-width: 1024px) and (max-width: 1279px) {
    .container {
        padding-inline: 2rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop Large: 1280px+ */
@media (min-width: 1280px) {
    .container {
        max-width: 1200px;
        padding-inline: 2rem;
    }

    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

/* Print Styles */
@media print {

    .navbar,
    .social-chat,
    .nav-toggle {
        display: none;
    }

    body {
        margin-top: 0;
    }
}

/* Product Details Grid */
.product-details-wrapper {
    display: block;
    /* Reset grid on wrapper for inner layout control */
    margin: 0 auto;
}

.product-top-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: stretch;
}

@media (min-width: 992px) {
    .product-top-section {
        grid-template-columns: 450px 1fr;
        gap: 3rem;
    }
}

.product-image-container {
    background: transparent;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.product-info-column {
    display: flex;
    flex-direction: column;
}

/* Features Images Grid */
.features-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .features-images-grid {
        grid-template-columns: 1fr;
    }
}



.features-image-item img {
    cursor: pointer;
}


.features-image-item:hover img {
    transform: scale(1.05);
}

/* Navbar Desktop Alignment: Keep Menu close to Logo */
@media (min-width: 992px) {
    .navbar .container {
        justify-content: flex-start;
        gap: 4rem;
        /* Gap between Logo and Menu */
    }
}

/* Featured Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-item {
    background: transparent;
    overflow: hidden;
    transition: var(--transition);
}

.project-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-item:hover img {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.project-desc {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.6;
    font-weight: 600;
}

/* Showrooms Page */
.showroom-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    transition: transform 0.3s ease;
}

.showroom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.1);
}

.showroom-card.reverse {
    flex-direction: row-reverse;
}

.showroom-info {
    flex: 1;
    min-width: 300px;
}

.showroom-info h2 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.showroom-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 1.1rem;
}

.showroom-detail svg {
    color: var(--accent-color);
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.btn-location {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(167, 126, 67, 0.3);
}

.btn-location:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(167, 126, 67, 0.4);
}

.showroom-gallery {
    flex: 1.5;
    min-width: 300px;
}

.showroom-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.showroom-image-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.showroom-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.showroom-image-item:hover img {
    transform: scale(1.1);
}

@media (max-width: 991px) {
    .showroom-card {
        flex-direction: column !important;
        /* Stack vertically on mobile */
        gap: 2rem;
    }

    .showroom-gallery,
    .showroom-info {
        width: 100%;
    }

    .showroom-info {
        text-align: flex-start;
    }

    .showroom-detail {
        justify-content: flex-start;
    }
}