/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Cormorant+Garamond:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
    /* Brand Colors (Refined & Premium) */
    --color-primary: #ed2e34;
    --color-accent: #ed2e34;

    /* Neutrals */
    --color-bg-light: #ffffff;
    /* Pure white for max contrast against text */
    --color-bg-dark: #000000;
    /* Deepest black */
    --color-text-primary: #111111;
    /* Near black for primary text */
    --color-text-secondary: #444444;
    /* Dark grey for secondary text */
    --color-secondary: #444444;
    --color-border: #d0d0d0;
    /* Darker border for visibility */

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Playfair Display', serif;
    --font-arabic: 'Inter', sans-serif;
    /* fallback for arabic */

    --h1-size: 4.5rem;
    --h2-size: 3rem;
    --h3-size: 1.75rem;

    /* Spacing & Layout */
    --spacing-container: 8vw;
    --container-width: 1300px;
    /* Wider for luxury feel */
    --header-height: 80px;
    --section-spacing: 140px;
    /* increased from 120px for better breathing room */

    /* Border Radius */
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 24px;

    /* Transitions */
    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
    --header-transition: all 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Base Styles */
body {
    background-color: var(--color-bg-body);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-weight: 400;
    /* Increased weight for readability */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--color-text-secondary);
}

a {
    transition: all 0.4s var(--ease-out);
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* Utility */
.text-center {
    text-align: center;
}

.mb-small {
    margin-bottom: 1rem;
}

.mb-medium {
    margin-bottom: 3rem;
}

.mb-large {
    margin-bottom: 5rem;
}

/* Typography Override */
h1.hero-title {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    background-color: var(--color-primary);
    color: #fff;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-sm);
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    border: 1px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: #fff;
    color: var(--color-primary);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid currentColor;
    color: inherit;
}

.btn-outline:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* ═══════════════════════════════════════════
   HEADER — Floating Pill Bar
   ═══════════════════════════════════════════ */
.main-header {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1280px;
    z-index: 1000;
    background-color: rgba(18, 18, 18, 0.72);
    /* lighter semi-transparent for glass effect */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    /* much subtler shadow */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--header-transition);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 76px;
    padding: 0 28px 0 20px;
    transition: var(--header-transition);
}

/* ── Scrolled state ── */
.main-header.scrolled {
    background-color: rgba(12, 12, 12, 0.88);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    /* still subtle when scrolled */
}

.main-header.scrolled .container {
    height: 68px;
}

/* ── Logo ── */
.logo {
    display: flex;
    align-items: center;
    height: 100%;
    flex-shrink: 0;
}

.logo img {
    height: 62px;
    width: auto;
    display: block;
    transition: var(--header-transition);
}

.main-header.scrolled .logo img {
    height: 52px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-toggle,
.lang-toggle {
    background: none;
    border: none;
    color: #EAEAEA;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    transition: color 0.3s ease;
}

.search-toggle:hover,
.lang-toggle:hover {
    color: var(--color-primary);
}

.lang-toggle {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    min-width: 44px;
}

.lang-text {
    line-height: 1;
}

/* Hide legacy logo text elements */
.logo-divider,
.logo-text {
    display: none;
}

/* ── Navigation ── */
.main-nav {
    margin-left: auto;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
}

.main-nav a {
    font-family: 'Playfair Display', serif;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #EAEAEA;
    text-decoration: none;
    position: relative;
    padding: 6px 0;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    /* Changed to thin underline */
    background: var(--color-primary);
    transition: width 0.4s var(--ease-out);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-primary);
    opacity: 1;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Scrolled nav */
.main-header.scrolled .main-nav a {
    color: #EAEAEA;
}

.main-header.scrolled .main-nav a:hover,
.main-header.scrolled .main-nav a.active {
    color: var(--color-primary);
}

/* ── Products Dropdown ── */
.nav-dropdown {
    position: relative;
    padding-bottom: 14px;
    margin-bottom: -14px;
}

.nav-dropdown>a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-dropdown>a::before {
    content: '';
    display: none;
}

.nav-dropdown-arrow {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.nav-dropdown:hover .nav-dropdown-arrow {
    transform: rotate(-135deg) translateY(-2px);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    min-width: 160px;
    padding: 8px 0;
    list-style: none;
    display: flex;
    /* Force vertical layout overriding .main-nav ul */
    flex-direction: column;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 2000;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu li a {
    display: block;
    position: relative;
    /* important for absolute positioning of ::after */
    padding: 10px 20px;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    color: #DADADA;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.2s, background 0.2s;
    border-radius: 0;
    /* Removing for the new line approach */
    margin: 0;
    /* Adjust for padding consistency */
}

.nav-dropdown-menu li a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    /* Offset to not touch the text exactly */
    left: 20px;
    /* match padding */
    width: 0;
    height: 1px;
    /* Thin underline */
    background: var(--color-primary);
    transition: width 0.4s var(--ease-out);
    display: block;
}

.nav-dropdown-menu li a:hover,
.nav-dropdown-menu li a.active {
    color: var(--color-primary);
    background: transparent;
    /* No red background */
}

.nav-dropdown-menu li a:hover::after,
.nav-dropdown-menu li a.active::after {
    width: calc(100% - 40px);
    /* 100% minus the 20px padding on each side */
}

/* ── Mobile hamburger ── */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* ═══════════════════════════════════════════
   RTL SUPPORT
   ═══════════════════════════════════════════ */
[dir="rtl"] {
    font-family: var(--font-arabic);
}

[dir="rtl"] .main-nav {
    margin-right: auto;
    margin-left: unset;
}

[dir="rtl"] .nav-dropdown-arrow {
    border-right: none;
    border-left: 1.5px solid currentColor;
    transform: rotate(-45deg) translateY(-2px);
}

[dir="rtl"] .nav-dropdown:hover .nav-dropdown-arrow {
    transform: rotate(135deg) translateY(-2px);
}

[dir="rtl"] .hero-content {
    padding-left: 0;
    padding-right: 40px;
}

[dir="rtl"] .hero-meta {
    border-left: none;
    border-right: 1px solid rgba(255, 255, 255, 0.5);
    padding-left: 0;
    padding-right: 20px;
}

[dir="rtl"] .split-content {
    padding-right: 0;
    padding-left: 40px;
}

[dir="rtl"] .split-section.reverse .split-content {
    padding-left: 0;
    padding-right: 40px;
}

[dir="rtl"] .footer-col:first-child {
    text-align: right;
}

[dir="rtl"] .footer-col ul {
    padding-right: 0;
}

[dir="rtl"] .lang-text {
    font-family: var(--font-heading);
}

.lang-ar h1,
.lang-ar h2,
.lang-ar h3,
.lang-ar h4,
.lang-ar .btn,
.lang-ar .main-nav a {
    font-family: var(--font-arabic);
    letter-spacing: 0;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    /* Background handled by video now */
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    animation: slowZoom 30s infinite alternate;
    /* Slow smooth zoom effect */
}

@keyframes slowZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* Dark transparent overlay 30% */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding-left: 40px;
    /* Editorial alignment */
    animation: fadeUp 1.2s var(--ease-out) forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-meta {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 30px;
    opacity: 0.9;
    border-left: 1px solid rgba(255, 255, 255, 0.5);
    padding-left: 20px;
}

.hero-title {
    font-size: var(--h1-size);
    margin-bottom: 40px;
    font-weight: 400;
    line-height: 1.1;
}

.hero-buttons {
    display: flex;
    gap: 30px;
    margin-top: 50px;
}

/* Page Hero Banner (Inner Pages) */
.page-hero-banner {
    position: relative;
    margin-top: 100px;
    padding: 100px 0 90px;
    background: url('../assets/images/contact_header.png') center center / cover no-repeat;
    background-attachment: fixed;
    text-align: center;
    overflow: hidden;
}

.page-hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(15, 15, 15, 0.72) 0%,
            rgba(20, 20, 20, 0.68) 60%,
            rgba(25, 25, 25, 0.72) 100%);
    z-index: 1;
}

.page-hero-banner .container {
    position: relative;
    z-index: 2;
}

.page-hero-banner .section-subtitle {
    color: var(--color-accent);
    letter-spacing: 0.15em;
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.page-hero-banner .section-title {
    color: #ffffff;
    font-size: 3rem;
    margin-bottom: 16px;
    font-family: var(--font-heading);
    font-weight: 400;
}

.page-hero-banner .hero-desc {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.page-hero-banner .hero-accent {
    display: block;
    width: 50px;
    height: 2px;
    background: var(--color-accent);
    margin: 28px auto 0;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .page-hero-banner {
        padding: 70px 0 60px;
        background-attachment: scroll;
    }

    .page-hero-banner .section-title {
        font-size: 2.2rem;
    }
}

/* Sections */
section {
    padding: var(--section-spacing) 0;
}

.section-subtitle {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.section-title {
    font-size: var(--h2-size);
    color: var(--color-text-primary);
    margin-bottom: 40px;
}

/* Split Layout (About) */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.split-content {
    padding-right: 40px;
}

.split-section.reverse .split-content {
    padding-right: 0;
    padding-left: 40px;
}

.split-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.stats-banner {
    background-color: var(--color-bg-dark);
    padding: 80px 0;
    margin: 40px 0;
}

.stats-banner .features-grid {
    border-top: none;
    padding-top: 0;
}

.stats-banner .feature-item span {
    color: #ffffff !important;
}

.stats-banner .feature-item p {
    color: rgba(255, 255, 255, 0.7) !important;
}

@media (max-width: 900px) {
    .split-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .split-content {
        padding-right: 0;
    }

    .split-section.reverse {
        display: flex;
        flex-direction: column-reverse;
    }

    .split-section.reverse .split-content {
        padding-left: 0;
    }
}

/* Stats/Features */
.section-features {
    background-color: #F8F8F8;
    /* subtle off-white to visually separate from pure white above */
    padding: 120px 0 130px;
    /* generous vertical breathing room */
    margin: 0;
    /* flush, no gap — bg color is the separator */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px;
    /* border-top removed — section background now acts as the visual separator */
    padding-top: 0;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-icon {
    font-size: 2.88rem;
    /* +20% from 2.4rem */
    margin-bottom: 25px;
    color: var(--color-text-primary);
    opacity: 0.8;
}

/* Product Grid (Home) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* Product Cards (Catalog Page) */
.product-card {
    display: block;
    margin-bottom: 40px;
}

.product-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: var(--radius-lg);
    filter: brightness(0.95);
    transition: all 0.5s var(--ease-out);
}

.product-card:hover img {
    filter: brightness(1.05);
    transform: scale(1.02);
}

.product-card h3 {
    font-size: 1.25rem;
    margin-bottom: 5px;
    color: var(--color-text-primary);
}

.product-card p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-bottom: 15px;
}



/* Category Card (Home) */
.category-card {
    height: 600px;
    position: relative;
    border-radius: var(--radius-lg);
    display: block;
    overflow: hidden;
    background-color: #f0f0f0;
}

.category-card img {
    /* Assuming images are added via img tag now for better control, or bg image */
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.65) 45%, rgba(0, 0, 0, 0.2) 70%, transparent 100%);
    /* stronger overlay so white labels pop */
    color: #fff;
    transform: translateY(0);
    transition: all 0.5s var(--ease-out);
}

.category-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 400;
}

.category-content span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.8;
}

/* Contact Section */
.contact-section {
    background-color: var(--color-bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: start;
}

.form-group label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-secondary);
    margin-bottom: 10px;
    display: block;
}

.form-control {
    width: 100%;
    background: #fdfcfb;
    /* Very soft stone/beige white */
    border: 1px solid rgba(0, 0, 0, 0.1);
    /* Thin, subtle border */
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    /* Slightly stronger bottom border */
    padding: 18px 20px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text-primary);
    transition: all 0.4s ease;
    border-radius: var(--radius-md);
}

.form-control:focus {
    outline: none;
    background: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    /* Soft lift on focus */
}

/* Dropdown specific styling */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
    cursor: pointer;
}

/* Footer */
.main-footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 80px 0 30px;
    margin-top: 0;
    /* CTA section is already dark, no gap needed */
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    /* thin light divider defining the page end */
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.5fr;
    /* wider first column for more breathing room */
    gap: 60px 100px;
    /* extra horizontal gap between columns */
    margin-bottom: 80px;
}

.contact-method {
    margin-top: 30px;
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    padding: 40px;
    border-radius: var(--radius-lg);
}

.contact-method h4 {
    color: var(--color-primary);
    /* Make headers red */
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.footer-logo {
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 30px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: #fff;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-col ul li a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    text-align: center;
    font-size: 0.8rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-bottom p {
    color: #ffffff;
}

/* Responsive */
@media (max-width: 1024px) {
    :root {
        --h1-size: 3.5rem;
        --section-spacing: 80px;
    }

    .container {
        padding: 0 30px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 60px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    :root {
        --h1-size: 2.5rem;
        --h2-size: 2.2rem;
    }

    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .features-grid,
    .product-grid,
    .footer-grid,
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }

    .category-card {
        height: 400px;
    }

    .split-section {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }

    .split-image-wrap,
    .split-image {
        max-width: 100%;
        height: auto;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .main-nav.nav-open {
        display: flex;
        position: fixed;
        top: 76px;
        /* Offset by header height */
        left: 0;
        width: 100%;
        height: calc(100vh - 76px);
        background-color: rgba(15, 15, 15, 0.98);
        backdrop-filter: blur(15px);
        z-index: 999;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .main-header.scrolled .main-nav.nav-open {
        top: 68px;
        height: calc(100vh - 68px);
    }

    .main-nav.nav-open ul {
        flex-direction: column;
        gap: 30px;
    }

    .main-nav.nav-open a {
        font-size: 1.5rem;
    }

    .mobile-menu-toggle.is-active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-menu-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.is-active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero-content {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    :root {
        --h1-size: 2rem;
        --h2-size: 1.8rem;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background-color: #111111;
    /* Matte Black */
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Thin luxury border */
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: floatingBtn 3s ease-in-out infinite;
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
    fill: #ffffff;
    transition: transform 0.4s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #000000;
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
    /* Soft white glow */
    border-color: rgba(255, 255, 255, 0.4);
}

.whatsapp-float:hover svg {
    transform: scale(1.1);
}

@keyframes floatingBtn {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }

    100% {
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 25px;
        right: 25px;
    }

    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }
}

/* ── Search Overlay ── */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    padding: 100px 20px 40px;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-close {
    position: absolute;
    top: 40px;
    right: 40px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.3s;
}

[dir="rtl"] .search-close {
    right: auto;
    left: 40px;
}

.search-close:hover {
    transform: rotate(90deg);
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 40px;
}

.search-input-wrapper input {
    width: 100%;
    background: none;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding: 20px 0;
    font-size: 2rem;
    color: white;
    font-family: var(--font-primary);
    transition: border-color 0.3s;
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.search-results-container {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

[dir="rtl"] .search-results-container {
    padding-right: 0;
    padding-left: 10px;
}

.search-results-container::-webkit-scrollbar {
    width: 4px;
}

.search-results-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.search-results-container::-webkit-scrollbar-thumb {
    background: var(--color-primary);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: white;
    transition: background 0.3s;
    margin-bottom: 10px;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.search-result-img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.search-result-info h3 {
    font-size: 1.1rem;
    margin: 0 0 4px 0;
}

.search-result-info span {
    font-size: 0.8rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.search-no-results {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 40px;
}

/* RTL Adjustments for Search Result Item */
[dir="rtl"] .search-result-item {
    text-align: right;
}

@media (max-width: 768px) {
    .search-overlay {
        padding-top: 80px;
    }

    .search-input-wrapper input {
        font-size: 1.5rem;
    }

    .search-close {
        top: 20px;
        right: 20px;
    }
}