/* Import Professional Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&family=Dosis:wght@200;300;400;500;600;700;800&display=swap');

:root {
    --background-main: #f8f5f3;
    --section-light: #fdf8f7;
    --section-rose: #fdecec;
    --section-peach: #fff3f0;
    --section-beige: #f6eee8;
    --text-primary: #3a1a1a;
    --text-secondary: #6b4b4b;
    --accent: #d67878;
    --accent-dark: #a74848;
    --footer-bg: var(--accent-dark);
    --footer-text: #ffffff;
    --footer-muted: rgba(255, 255, 255, 0.85);
    --nav-bg: rgba(255, 255, 255, 0.85);
    --nav-blur: blur(8px);
    --font-en-primary: 'Inter', sans-serif;
    --font-en-display: 'Playfair Display', serif;
    --font-en-accent: 'Poppins', sans-serif;
    --font-ar-primary: 'Almarai', sans-serif;
    --font-ar-accent: 'Dosis', sans-serif;
}

body {
    font-family: var(--font-en-primary);
    background-color: var(--background-main);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Arabic Font Support */
body.rtl,
html[lang="ar"] {
    font-family: var(--font-ar-primary);
}

body.rtl h1,
body.rtl h2,
body.rtl h3,
body.rtl h4,
body.rtl h5,
body.rtl h6,
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6 {
    font-family: var(--font-ar-primary);
    font-weight: 700;
}
body.rtl {
  direction: rtl;
  text-align: right;
}

html {
    scroll-behavior: smooth;
}

/* Base styles */
.bg-rose-gold {
    background-color: var(--accent);
}

.text-rose-gold {
    color: var(--accent);
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-en-display);
    font-weight: 700;
    letter-spacing: -0.02em;
}

body.rtl h1, body.rtl h2, body.rtl h3, body.rtl h4, body.rtl h5, body.rtl h6,
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4, html[lang="ar"] h5, html[lang="ar"] h6 {
    font-family: var(--font-ar-primary);
    letter-spacing: 0;
}

p {
    line-height: 1.6;
    letter-spacing: 0.3px;
}

body.rtl p,
html[lang="ar"] p {
    line-height: 1.7;
    letter-spacing: 0;
}

/* Value Cards */
#values .asym-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

#values .value-card {
    aspect-ratio: 1;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.5rem;
    padding: 2.5rem;
    margin: 0;
    grid-column: span 1;
}

.value-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(250, 238, 236, 0.9));
    border: 1px solid rgba(214, 120, 120, 0.25);
    color: var(--text-primary);
}

.value-card:hover {
    box-shadow: 0 15px 40px rgba(214, 120, 120, 0.25);
    transform: translateY(-6px);
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(232, 180, 184, 0.3), transparent);
    transition: left 0.5s ease;
}

.value-card:hover::before {
    left: 100%;
}
[id^="cat-"] {
    scroll-margin-top: 200px;
}
/* Brand Cards */
.brand-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(250, 238, 236, 0.9));
    border: 1px solid rgba(214, 120, 120, 0.25);
    color: var(--text-primary);
    transform-style: preserve-3d;
    will-change: transform;
}

.brand-card:hover {
    box-shadow: 0 15px 40px rgba(214, 120, 120, 0.25);
    transform: translateY(-6px);
}

.brand-card img {
    height: 160px;
    width: 100%;
    object-fit: cover;
    display: block;
}

/* Horizontal Scroll */
.horizontal-scroll-wrapper {
    position: relative;
}

.h-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(87, 6, 6, 0.9);
    color: white;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    z-index: 20;
}

.h-scroll-btn.left {
    left: 8px;
}

.h-scroll-btn.right {
    right: 8px;
}

.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1.5rem;
    padding-bottom: 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.scroll-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

/* Growth Chart */
.chart-bar {
    transition: height 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 2px;
    position: relative;
}

.chart-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(214, 120, 120, 0.2);
}

/* Contact Form */
.contact-form { 
    background: #fff; 
    padding: 1.5rem; 
    border-radius: 12px; 
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
    width: 100%;
    font-family: var(--font-en-primary);
}

.contact-form label { 
    display: block; 
    font-weight: 600; 
    margin-bottom: .25rem;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
}

body.rtl .contact-form label,
html[lang="ar"] .contact-form label {
    font-family: 'Almarai', sans-serif !important;
    font-weight: 700 !important;
}

.contact-form input,
.contact-form textarea {
    font-family: 'Inter', sans-serif !important;
    font-size: 1rem;
}

body.rtl .contact-form input,
body.rtl .contact-form textarea,
html[lang="ar"] .contact-form input,
html[lang="ar"] .contact-form textarea {
    font-family: 'Almarai', sans-serif !important;
}

.contact-form input, 
.contact-form textarea { 
    width: 100%; 
    padding: .75rem 1rem; 
    border: 1px solid rgba(0,0,0,0.08); 
    border-radius: 8px; 
    margin-bottom: 1rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    font-family: var(--font-en-primary);
}
body.rtl .contact-form input,
body.rtl .contact-form textarea,
html[lang="ar"] .contact-form input,
html[lang="ar"] .contact-form textarea {
    font-family: var(--font-ar-primary);
}

.contact-form input, 
.contact-form textarea { 
    width: 100%; 
    padding: .75rem 1rem; 
    border: 1px solid rgba(0,0,0,0.08); 
    border-radius: 8px; 
    margin-bottom: 1rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(214,120,120,0.1);
}

.contact-form textarea { 
    min-height: 140px; 
    resize: vertical; 
}

.contact-form .submit-btn { 
    background: var(--accent); 
    color: #fff; 
    padding: .75rem 1.5rem; 
    border-radius: 999px; 
    border: none; 
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    width: auto;
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.contact-form .submit-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .contact-form {
        padding: 1.25rem;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: .65rem .75rem;
    }
}

/* Footer Styles */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    font-family: 'Inter', sans-serif !important;
}

footer h3,
footer h4 {
    color: #ffffff;
    font-family: 'Playfair Display', serif !important;
    font-weight: 700;
}

body.rtl footer h3,
body.rtl footer h4,
html[lang="ar"] footer h3,
html[lang="ar"] footer h4 {
    font-family: 'Almarai', sans-serif !important;
}

footer p,
footer li,
footer a {
    color: var(--footer-text);
    opacity: 0.95;
    text-decoration: none;
    font-family: 'Inter', sans-serif !important;
}

body.rtl footer p,
body.rtl footer li,
body.rtl footer a,
html[lang="ar"] footer p,
html[lang="ar"] footer li,
html[lang="ar"] footer a {
    font-family: 'Almarai', sans-serif !important;
}

footer [class*="text-"] {
    color: var(--footer-text) !important;
}

footer a:hover {
    color: #ffffff !important;
    opacity: 1;
}

footer .border-white\/20 {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Channel Icons */
.channel-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.channel-logo {
    height: 36px;
    border-radius: 4px;
    background: white;
    padding: 2px;
}

.nav {
    background-color: var(--nav-bg);
    color: var(--text-primary);
    backdrop-filter: var(--nav-blur);
    font-family: var(--font-en-accent);
}

body.rtl .nav,
html[lang="ar"] .nav {
    font-family: var(--font-ar-primary);
}

.nav-link {
    color: var(--text-primary);
    transition: all 0.2s ease;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-weight: 500;
    font-family: var(--font-en-accent);
}

body.rtl .nav-link,
html[lang="ar"] .nav-link {
    font-family: var(--font-ar-primary);
}

.nav-link:hover,
.nav-link:focus {
    background-color: var(--section-rose);
    opacity: 1;
}

.nav-brand {
    color: var(--text-primary);
    font-family: var(--font-en-display);
    font-weight: 700;
    font-size: 1.25rem;
}

body.rtl .nav-brand,
html[lang="ar"] .nav-brand {
    font-family: var(--font-ar-primary);
}

.nav-toggle {
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.nav-toggle:hover {
    background-color: var(--section-rose);
}

/* Desktop dropdown menu */
.group:focus-within .fa-chevron-down {
    transform: rotate(180deg);
}

.nav .absolute {
    font-family: var(--font-en-accent);
}

body.rtl .nav .absolute,
html[lang="ar"] .nav .absolute {
    font-family: var(--font-ar-primary);
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    z-index: 49;
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
}

.mobile-link {
    display: block;
    padding: 0.75rem 0;
    color: var(--text-primary);
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-family: var(--font-en-accent);
    font-weight: 500;
}

body.rtl .mobile-link,
html[lang="ar"] .mobile-link {
    font-family: var(--font-ar-primary);
}

.mobile-link:hover,
.mobile-link:focus {
    background-color: var(--section-rose);
    padding-left: 1rem;
}

.mobile-dropdown {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.mobile-brands-toggle {
    color: var(--text-primary);
    padding: 0.75rem 0;
    transition: all 0.2s ease;
    font-family: var(--font-en-accent);
    font-weight: 500;
}

body.rtl .mobile-brands-toggle,
html[lang="ar"] .mobile-brands-toggle {
    font-family: var(--font-ar-primary);
}

.mobile-brands-toggle:hover,
.mobile-brands-toggle:focus {
    background-color: var(--section-rose);
}

.mobile-brands-menu {
    background-color: rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

.mobile-brands-menu .mobile-link {
    padding-left: 1.5rem;
}

.mobile-brands-menu.show {
    display: block;
}

/* Responsive */
@media (max-width: 1024px) {
    #values .asym-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    #values .value-card {
        height: 360px;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    #values .asym-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #values .value-card {
        height: 320px;
    }

    .split-screen {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    #values .asym-grid {
        grid-template-columns: 1fr;
    }

    #values .value-card {
        height: 300px;
    }
}

/* Brands Portfolio - redesigned */
.brands-hero {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 2rem;
    align-items: stretch;
    margin-bottom: 2rem;
}

.brands-hero .spotlight {
    /* background: linear-gradient(180deg, rgba(83, 31, 5, 0.862), rgba(255, 255, 255, 0.02)); */
    border-radius: 18px;
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brands-hero .spotlight h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-en-display);
    font-weight: 700;
}

body.rtl .brands-hero .spotlight h3,
html[lang="ar"] .brands-hero .spotlight h3 {
    font-family: var(--font-ar-primary);
}

.brands-hero .spotlight p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.brands-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.brands-filter-btn {
    background: transparent;
    border: 1px solid rgba(58, 26, 26, 0.06);
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    cursor: pointer;
    color: var(--text-primary);
    transition: all .18s ease;
    font-family: var(--font-en-accent);
    font-weight: 500;
}

body.rtl .brands-filter-btn,
html[lang="ar"] .brands-filter-btn {
    font-family: var(--font-ar-primary);
}

.brands-filter-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(214, 120, 120, 0.08);
    transform: translateY(-2px);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.brand-tile {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.brand-tile:hover {
    border-color: rgba(214, 120, 120, 0.3);
    box-shadow: 0 8px 24px rgba(214, 120, 120, 0.12);
}

.brand-tile img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    display: block;
    padding: 0.4rem;
}

.brand-tile .meta {
    padding: 0.75rem;
}


.brand-tile h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
    font-family: var(--font-en-accent);
    font-weight: 600;
}

body.rtl .brand-tile h4,
html[lang="ar"] .brand-tile h4 {
    font-family: var(--font-ar-primary);
}

.brand-tile .meta p {
    font-size: 0.8rem;
    font-family: var(--font-en-primary);
}

body.rtl .brand-tile .meta p,
html[lang="ar"] .brand-tile .meta p {
    font-family: var(--font-ar-primary);
}

.brand-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(10, 10, 10, 0.42));
    opacity: 0;
    transition: opacity .28s ease;
}

.brand-tile:hover .brand-overlay {
    opacity: 1;
}

.brand-overlay .cta {
    margin: 0.75rem;
    background: var(--accent);
    color: #fff;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.875rem;
    box-shadow: 0 8px 26px rgba(214, 120, 120, 0.14);
    transition: all 0.2s ease;
}

.brand-overlay .cta:hover {
    background: var(--accent-dark);
    transform: scale(1.05);
}

@media (max-width: 1024px) {
    .brands-hero {
        grid-template-columns: 1fr;
    }

    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.9rem;
    }
}

@media (max-width: 768px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
}

@media (max-width: 480px) {
    .brands-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .brand-tile img {
        height: 120px;
    }
}

@media (max-width: 640px) {
    .brands-grid {
        grid-template-columns: 1fr;
    }
}

/* Sticky category nav inside Brands section */
.brands-filter-nav {
    position: sticky;
    top: 72px;
    /* Match the main nav height */
    left: 0;
    right: 0;
    z-index: 40;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    background: rgba(248, 245, 243, 0.98);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(214, 120, 120, 0.1);
    margin: 0 -1.5rem;
    /* Extend beyond container */
    width: calc(100% + 3rem);
}

.brands-filter-nav .brands-filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(214, 120, 120, 0.15);
    background: white;
    color: var(--text-primary);
    transition: all 0.2s ease;
    white-space: nowrap;
    font-size: 0.95rem;
    font-family: var(--font-en-accent);
    font-weight: 500;
}

body.rtl .brands-filter-nav .brands-filter-btn,
html[lang="ar"] .brands-filter-nav .brands-filter-btn {
    font-family: var(--font-ar-primary);
}

.brands-filter-nav .brands-filter-btn:hover {
    background: var(--section-rose);
    border-color: var(--accent);
}

.brands-filter-nav .brands-filter-btn.active {
    background: var(--accent);
    color: white;
    border-color: transparent;
}

@media (max-width: 768px) {
    .brands-filter-nav {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .brands-filter-nav::-webkit-scrollbar {
        display: none;
    }

    .brands-filter-nav .brands-filter-btn {
        flex: 0 0 auto;
    }
}

/* Brand modal */
.brand-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    /* Increased z-index to ensure it's above everything */
}

.brand-modal.open {
    display: flex;
}

.brand-modal__backdrop {
    position: fixed;
    /* Changed to fixed */
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
}

.brand-modal__dialog {
    position: relative;
    background: #fff;
    border-radius: 16px;
    width: min(720px, 92%);
    z-index: 1000;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
    text-align: center;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
}
.brand-modal__image-wrapper {
    width: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-modal__close {
    position: absolute;
    right: 16px;
    top: 16px;
    border: none;
    background: #d348b0;
    font-size: 1.25rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.brand-modal__close:hover {
    background: #1e1e1e;
}

.brand-modal__logo {
    width: 100%;
    height: 300px; /* يمكن تعديل الارتفاع حسب رغبتك */
    object-fit: contain; /* تحافظ على تناسب الصورة */
    display: block;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}
.brand-modal__content {
    padding: 2rem; /* النصوص الآن منفصلة عن الصورة */
}
.brand-modal__title {
    font-size: 1.75rem;
    margin: 1rem 0 0.5rem 0;
    color: var(--text-primary);
    font-family: var(--font-en-display);
    font-weight: 700;
}

body.rtl .brand-modal__title,
html[lang="ar"] .brand-modal__title {
    font-family: var(--font-ar-primary);
}

.brand-modal__desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    font-family: var(--font-en-primary);
}

body.rtl .brand-modal__desc,
html[lang="ar"] .brand-modal__desc {
    font-family: var(--font-ar-primary);
    line-height: 1.7;
}

/* Contact Info Styles */
.contact-info {
    font-family: 'Inter', sans-serif !important;
    direction: ltr;
    text-align: left;
}

body.rtl .contact-info,
html[lang="ar"] .contact-info {
    font-family: 'Almarai', sans-serif !important;
    direction: rtl;
    text-align: right;
}

.contact-info h4 {
    font-family: 'Playfair Display', serif !important;
    font-weight: 700;
}

body.rtl .contact-info h4,
html[lang="ar"] .contact-info h4 {
    font-family: 'Almarai', sans-serif !important;
}

.contact-info .info-row {
    display: flex;
    gap: .75rem;
    align-items: center;
    direction: ltr;
    text-align: left;
    font-family: 'Inter', sans-serif !important;
}

body.rtl .contact-info .info-row,
html[lang="ar"] .contact-info .info-row {
    direction: rtl;
    text-align: right;
    font-family: 'Almarai', sans-serif !important;
}

.contact-info .info-row {
    display: flex;
    gap: .75rem;
    align-items: center;
}

.contact-info .info-row i {
    background: var(--accent);
    color: #fff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.contact-info .socials {
    display: flex;
    gap: .5rem;
    margin-top: .5rem;
}

.contact-info .socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #fff;
    color: var(--accent);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

/* Contact section */
.contact-section { 
    padding: 3rem 0; 
    background: linear-gradient(180deg, var(--section-beige), #fff); 
    border-radius: 18px; 
}

.contact-grid { 
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-section {
    background: linear-gradient(180deg, var(--section-beige), #fff);
    border-radius: 18px;
    padding: 3rem 1rem;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 420px;
    }
    .contact-section {
        padding: 3rem 2rem;
    }
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 1.5rem;
    align-items: start;
}

.contact-form {
    background: #fff;
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: .25rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: .65rem .75rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form .submit-btn {
    background: var(--accent);
    color: #fff;
    padding: .7rem 1rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
}

.contact-info {
    padding: 1rem;
    background: linear-gradient(180deg, rgba(214, 120, 120, 0.04), rgba(255, 255, 255, 0.01));
    border-radius: 12px;
}

.contact-info h4 {
    margin-top: 0;
    font-family: var(--font-en-accent);
    font-weight: 600;
}

body.rtl .contact-info h4,
html[lang="ar"] .contact-info h4 {
    font-family: var(--font-ar-primary);
}

/* Channel logos (already used) */
.channel-logos {
    display: flex;
    gap: .5rem;
    justify-content: center;
}

.channel-logo {
    object-fit: contain;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

/* Footer improvements */
.site-footer {
    background-color: #5a1b1b;
    color: #fff;
    font-family: var(--font-en-primary);
}

body.rtl .site-footer,
html[lang="ar"] .site-footer {
    font-family: var(--font-ar-primary);
}

.site-footer h3,
.site-footer h4 {
    font-family: var(--font-en-accent);
    font-weight: 700;
}

body.rtl .site-footer h3,
body.rtl .site-footer h4,
html[lang="ar"] .site-footer h3,
html[lang="ar"] .site-footer h4 {
    font-family: var(--font-ar-primary);
}

.site-footer a {
    color: #f8eaea;
}

.site-footer .muted {
    color: rgba(255, 255, 255, 0.85);
}

.site-footer .contrast {
    color: #fff;
}

.site-footer .footer-card {
    background: transparent;
}

/* Arabic Text Direction Fix */
body.rtl,
html[lang="ar"] {
    unicode-bidi: embed;
    direction: rtl;
    text-align: right;
}

/* Ensure LTR for numbers and English text in RTL context */
body.rtl input,
body.rtl textarea,
html[lang="ar"] input,
html[lang="ar"] textarea {
    direction: ltr;
    text-align: left;
}

/* Fix for contact info - keep LTR for phone numbers */
.contact-info,
body.rtl .contact-info,
html[lang="ar"] .contact-info {
    direction: ltr;
    text-align: left;
}

/* Appended from inline index.html styles */
:root {
    --background-main: #f8f5f3;
    --section-light: #fdf8f7;
    --section-rose: #fdecec;
    --section-peach: #fff3f0;
    --section-beige: #f6eee8;
    --text-primary: #3a1a1a;
    --text-secondary: #6b4b4b;
    --accent: #d67878;
    --accent-dark: #a74848;
    --footer-bg: var(--accent-dark);
    --footer-text: #ffffff;
    --footer-muted: rgba(255, 255, 255, 0.85);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-main);
    color: var(--text-primary);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

.bg-rose-gold {
    background-color: var(--accent);
}

.text-rose-gold {
    color: var(--accent);
}

.parallax-element {
    will-change: transform;
}

.counter {
    font-size: 3rem;
    font-weight: 700;
}

.brand-card img {
    height: 160px;
    width: 100%;
    object-fit: cover;
    display: block;
}

h1,
h2,
h3 {
    color: var(--text-primary);
}

button:hover {
    background-color: var(--accent-dark);
}

footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
}

footer a {
    color: var(--footer-text);
    text-decoration: none;
    opacity: 0.95;
}

footer a:hover {
    color: var(--accent);
    opacity: 1;
}

.value-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 320px;
    padding: 2rem;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(232, 180, 184, 0.3), transparent);
    transition: left 0.5s ease;
}

.value-card:hover::before {
    left: 100%;
}

.split-screen {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.asym-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(100px, auto);
    gap: 20px;
}

#values .asym-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1rem, 4vw, 2rem);
    max-width: 1200px;
    margin: 0 auto;
}

#values .value-card {
    min-height: 320px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.5rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    margin: 0;
}

#values .value-card .text-5xl {
    font-size: 3.5rem;
    margin: 0;
}

#values .value-card h3 {
    font-size: 1.75rem;
    margin: 0;
}

#values .value-card p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    #values .value-card {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    #values .value-card {
        min-height: 280px;
    }
    
    #values .value-card .text-5xl {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    #values .value-card {
        min-height: 260px;
    }
    
    #values .value-card p {
        font-size: 1rem;
    }
}

.horizontal-scroll-wrapper {
    position: relative;
}

.h-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(87, 6, 6, 0.9);
    color: white;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    z-index: 20;
}

.h-scroll-btn.left {
    left: 8px;
}

.h-scroll-btn.right {
    right: 8px;
}

.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1.5rem;
    padding-bottom: 12px;
}

.horizontal-scroll .scroll-item {
    scroll-snap-align: start;
}

.brand-card {
    transform-style: preserve-3d;
    will-change: transform;
}

.chart-bar {
    transition: height 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 2px;
    position: relative;
}

.chart-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(214, 120, 120, 0.2);
}

/* ✅ تفعيل ألوان Filament RichEditor في الواجهة الأمامية */
.rich-content [data-color] {
    color: attr(data-color color);
}

/* دعم إضافي في حال وجود inline CSS */
.rich-content span[style*="color"] {
    color: inherit;
}

/* تأكيد عدم كسر ألوان الروابط */
.rich-content a {
    color: var(--accent);
}

@media (max-width:768px) {
    .split-screen {
        grid-template-columns: 1fr;
    }

    .value-card {
        min-height: 260px;
    }
}

/* Scroll to Top Button */
.scroll-to-top-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 8px 24px rgba(214, 120, 120, 0.3);
    transition: all 0.3s ease;
}

.scroll-to-top-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(214, 120, 120, 0.4);
}

.scroll-to-top-btn.hidden {
    display: none !important;
}

/* Language Switcher Compact */
.language-switcher-compact {
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
    font-family: var(--font-en-accent);
}

body.rtl .language-switcher-compact,
html[lang="ar"] .language-switcher-compact {
    font-family: var(--font-ar-primary);
}

.language-switcher-compact:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    border-color: var(--accent);
}

.lang-switch-btn {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.35rem 0.55rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: inline-block;
    font-family: var(--font-en-accent);
}

body.rtl .lang-switch-btn,
html[lang="ar"] .lang-switch-btn {
    font-family: var(--font-ar-primary);
}

.lang-switch-btn:hover {
    background: var(--section-rose);
    color: var(--accent);
}

.lang-switch-btn.active {
    background: var(--accent);
    color: #fff;
}

/* Responsive adjustments for bottom controls */
@media (max-width: 480px) {
    .scroll-to-top-btn {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    
    .language-switcher-compact {
        padding: 0.3rem 0.45rem;
    }
    
    .lang-switch-btn {
        font-size: 0.7rem;
        padding: 0.3rem 0.45rem;
    }
}