/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Luxury Gold Palette (HSL for precision) */
    --gold-primary: hsl(45, 65%, 53%);
    --gold-hover: hsl(45, 65%, 45%);
    --gold-subtle: hsla(45, 65%, 53%, 0.15);
    
    /* Deep Black & Greys */
    --bg-dark: #070707;
    --bg-card: #121212;
    --glass-bg: rgba(10, 10, 10, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    /* Neutral Text */
    --text-main: #fcfcfc;
    --text-muted: #9a9a9a;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-arabic: 'Tajawal', sans-serif;
    --nav-height: 85px;
    
    /* Transitions */
    --smooth: all 0.4s cubic-bezier(0.2, 0, 0.2, 1);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

h1 { font-size: clamp(2.5rem, 8vw, 5rem); font-family: var(--font-heading); font-weight: 700; line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 5vw, 3rem); font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
h3 { font-size: clamp(1.3rem, 3.5vw, 1.8rem); font-family: var(--font-heading); font-weight: 700; line-height: 1.3; }
h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; }

.arabic-text {
    font-family: var(--font-arabic);
    direction: rtl;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Typography Enhancements */
.text-gold { color: var(--gold-primary); }
.text-center { text-align: center; }

/* Section Management */
section {
    padding: 120px 5%;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Button Styling (Premium & Smooth) */
.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--gold-primary);
    color: #000;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 2px;
    cursor: pointer;
    border: none;
    transition: var(--smooth);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0; height: 100%;
    background: #000;
    transition: var(--smooth);
    z-index: -1;
}

.btn:hover {
    background: var(--gold-hover);
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.btn:hover::after {
    width: 0; /* Disable the black fill effect */
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
}

.btn-outline:hover {
    background: var(--gold-primary);
    color: #000;
}

/* Call to Action Button */
.cta-btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--gold-primary);
    color: #000;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    transition: var(--smooth);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
}

.cta-btn:hover {
    background: var(--gold-hover);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

/* Navbar (Glassmorphism) */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    padding: 0 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(7, 7, 7, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    transition: var(--smooth);
}

nav.scrolled {
    height: 70px;
    background: rgba(0, 0, 0, 0.9);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.nav-links li a:hover {
    color: var(--gold-primary);
}

/* Language Switcher */
.lang-switch {
    display: flex;
    gap: 15px;
    align-items: center;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.3s;
}

.lang-btn.active, .lang-btn:hover {
    color: var(--gold-primary);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: #000; /* Deep black fallback */
}

.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    transform: scale(1.05); /* Slight zoom by default */
}

.slide.active {
    opacity: 1;
    animation: slideZoom 10s forwards;
}

@keyframes slideZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

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

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 10;
    padding-top: 80px;
    visibility: visible;
    opacity: 1;
}

.hero-content .btn {
    padding: 10px 24px;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.animate-fade-up {
    animation: fadeUp 1s cubic-bezier(0.2, 0, 0.2, 1) forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    /* controlled by global clamp now */
    margin-bottom: 25px;
    color: #fff;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.4rem;
    color: #eee;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

/* About Section */
.about {
    background: var(--bg-dark);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    /* controlled by global clamp now */
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.about-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

.about-image::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 2px solid var(--gold-primary);
    border-radius: 8px;
    margin: 20px;
    pointer-events: none;
    opacity: 0.5;
}

/* Services Grid Layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

/* Services Section */
.services {
    background: #111;
    border-top: 1px solid #222;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Layout Fixes */
section[id] {
    scroll-margin-top: var(--nav-height);
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Service Card Enhancement */
.service-card {
    background: var(--bg-card);
    padding: 50px 40px;
    border-radius: 4px;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    transition: var(--smooth);
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gold-subtle), transparent);
    opacity: 0;
    transition: var(--smooth);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.service-card:hover::before {
    opacity: 1;
}

.service-number {
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 7rem;
    font-weight: 900;
    color: rgba(212, 175, 55, 0.03);
    font-family: var(--font-heading);
    transition: var(--smooth);
}

.service-card:hover .service-number {
    color: rgba(212, 175, 55, 0.08);
}

[dir="rtl"] .service-number {
    right: auto;
    left: 15px;
}

.service-icon-emoji {
    font-size: 3rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.service-list {
    list-style: none;
    position: relative;
    z-index: 2;
}

.service-list li {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.service-list li i {
    color: var(--gold-primary);
    margin-top: 4px;
    font-size: 0.8rem;
}

/* Contact Section / CTA */
.contact {
    background: linear-gradient(rgba(10,10,10,0.9), rgba(10,10,10,0.9)), url('https://images.unsplash.com/photo-1542314831-c6a4d14b14d8?auto=format&fit=crop&q=80') center/cover;
    text-align: center;
    padding: 120px 5%;
}

.contact h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.contact p {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact .btn {
    width: auto;
    min-width: 200px;
    margin: 20px auto;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.c-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.c-item i {
    color: var(--gold-primary);
}

/* FAQ Section Enhancement */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    margin-bottom: 12px;
    border-radius: 2px;
    transition: var(--smooth);
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--gold-primary);
}

.faq-item summary {
    padding: 18px 25px;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

/* Mobile Nav Overlay */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: #000;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-overlay.active {
    transform: translateX(0);
}

.mobile-overlay .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.mobile-overlay .nav-links li a {
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

@media (max-width: 1024px) {
    .mobile-nav-toggle {
        display: block;
    }
    .nav-links {
        display: none;
    }
}
[dir="rtl"] .form-group select {
    background-position: left 15px center;
}
.form-group select option {
    background: #111;
    color: #fff;
    padding: 10px;
}

/* Mobile Responsiveness Improvements */
@media (max-width: 1024px) {
    .services-grid, .blog-carousel-track, .blog-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 5%;
    }

    nav {
        padding: 15px 5%;
        height: 70px;
    }

    .nav-links {
        display: none;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .hero {
        height: 85vh;
    }

    .hero-content {
        padding: 0 20px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-grid, .blog-carousel-track, .blog-grid {
        grid-template-columns: 1fr !important;
    }

    .contact-info {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    section {
        padding: 60px 5%;
    }

    .hero {
        height: 80vh;
    }

    .btn {
        width: auto;
        display: inline-block;
        padding: 12px 28px;
        text-align: center;
    }
}
.blog-preview {
    background: #0d0d0d;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 80px 5%;
}

/* Blog Carousel Styling for Index Page */
.blog-carousel-wrapper {
    width: 100%;
    position: relative;
    margin-top: 40px;
}

/* ===== DESKTOP (GRID 3x2) ===== */
.blog-carousel-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Fallback/Default for other pages like blog-list.html */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--smooth);
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

/* ===== CARD STYLE ===== */
.blog-card {
    background: var(--bg-card);
    border-radius: 4px;
    border: 1px solid var(--glass-border);
    transition: var(--smooth);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold-primary);
    box-shadow: 0 25px 50px rgba(0,0,0,0.6);
}

.blog-card h3 {
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: 18px;
    color: #fff;
    font-family: var(--font-heading);
}

.blog-card p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    flex-grow: 1;
}

.blog-link {
    color: var(--gold-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-link:hover {
    color: #fff;
}

/* Floating WhatsApp (Luxury Gold) */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: var(--gold-primary);
    color: #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
    z-index: 1000;
    transition: var(--smooth);
    animation: goldPulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
    background: #000;
    color: var(--gold-primary);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

@keyframes goldPulse {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

[dir="rtl"] .whatsapp-float {
    right: auto;
    left: 30px;
}

/* Footer Refinement */
.footer {
    background: #050505;
    color: var(--text-main);
    padding: 100px 6%;
    border-top: 1px solid var(--glass-border);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-col h3 {
    margin-bottom: 25px;
    color: var(--gold-primary);
    font-size: 1.2rem;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-col p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--smooth);
}

.footer-col ul li a:hover {
    color: var(--gold-primary);
    padding-left: 5px;
}

/* TABLET */
@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 850px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

/* MOBILE */
@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
}

/* RTL */
[dir="rtl"] .footer-container {
  text-align: right;
}

/* Responsive Design & Mobile Optimization */
@media (max-width: 768px) {
    /* Specialized component mobile fixes */
    .blog-image {
        height: 160px;
    }

    .blog-card h3 {
        font-size: 1.1rem;
        padding: 0 15px;
    }

    .blog-card p {
        padding: 0 15px;
        font-size: 0.9rem;
    }
    
    .blog-link {
        margin: 0 15px 20px;
    }
}

/* Content Toggling Utility */
html[lang="fr"] .ar-content {
    display: none !important;
}

html[lang="ar"] .fr-content {
    display: none !important;
}

.arabic-text {
    font-family: var(--font-arabic);
}

/* --- Modal Styles --- */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.7); 
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background-color: #111;
    margin: auto;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.6);
    width: 95%;
    max-width: 500px;
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--primary-color, #D4AF37);
}

[dir="rtl"] .close-modal {
    right: auto;
    left: 20px;
}

.modal-header h3 {
    margin-bottom: 5px;
    color: #fff;
    font-size: 1.5rem;
}

.btn-whatsapp {
    background-color: #070707;
    color: var(--gold-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--gold-primary);
    font-size: 1.05rem;
    padding: 12px 25px;
    border-radius: 4px;
    transition: var(--smooth);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
}

.btn-whatsapp:hover {
    background-color: var(--gold-primary);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.whatsapp-pulse {
    animation: goldPulse 2s infinite;
}

@keyframes goldPulse {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

.modal-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #777;
    font-size: 0.9rem;
}

.modal-divider::before, .modal-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.modal-divider::before {
    margin-right: .50em;
}

.modal-divider::after {
    margin-left: .50em;
}

[dir="rtl"] .modal-divider::before {
    margin-right: 0;
    margin-left: .50em;
}

[dir="rtl"] .modal-divider::after {
    margin-left: 0;
    margin-right: .50em;
}
/* --- Legal Pages Styles --- */
.legal-page {
    padding-top: calc(var(--nav-height) + 40px);
    background-color: var(--bg-dark);
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.legal-header {
    text-align: center;
    margin-bottom: 60px;
}

.legal-header h1 {
    font-size: 3rem;
    color: var(--gold-primary);
    margin-bottom: 20px;
}

.legal-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.legal-content section {
    padding: 0;
    margin-bottom: 50px;
}

.legal-content h2 {
    color: var(--gold-primary);
    font-size: 1.8rem;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 10px;
    display: table;
}

.legal-content p, .legal-content li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 20px;
}

.legal-content ul {
    margin-left: 20px;
    margin-bottom: 25px;
    list-style-type: none;
}

.legal-content li {
    position: relative;
    padding-left: 25px;
}

.legal-content li::before {
    content: "•";
    color: var(--gold-primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.legal-back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gold-primary);
    font-weight: 600;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.legal-back-link:hover {
    transform: translateX(-5px);
}

@media (max-width: 768px) {
    .legal-header h1 {
        font-size: 2.2rem;
    }
    
    .legal-content h2 {
        font-size: 1.5rem;
    }
}

/* ─── Cookie Consent Banner ─────────────────────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 0 20px 20px;
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
    pointer-events: none;
}

.cookie-banner--visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.cookie-banner--hiding {
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
}

.cookie-inner {
    max-width: 980px;
    margin: 0 auto;
    background: rgba(15, 15, 15, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 20px;
    padding: 28px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,0.04);
}

.cookie-main {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
}

.cookie-text-block {
    flex: 1;
    min-width: 200px;
}

.cookie-title {
    font-family: 'Playfair Display', serif;
    color: #D4AF37;
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.cookie-desc {
    color: #bbb;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 11px 22px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #D4AF37, #b8930a);
    color: #000;
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.cookie-btn-refuse {
    background: transparent;
    color: #aaa;
    border: 1px solid rgba(255,255,255,0.15);
}

.cookie-btn-refuse:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.35);
    transform: translateY(-2px);
}

.cookie-btn-customize {
    background: transparent;
    color: #D4AF37;
    border: 1px solid rgba(212, 175, 55, 0.4);
}

.cookie-btn-customize:hover {
    background: rgba(212, 175, 55, 0.08);
    transform: translateY(-2px);
}

/* ─── Customize Panel ─────────────────────────── */
.cookie-customize {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: cookieFadeIn 0.3s ease;
}

@keyframes cookieFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cookie-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
}

.cookie-toggle-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cookie-toggle-info strong {
    color: #f0f0f0;
    font-size: 0.92rem;
}

.cookie-toggle-info span {
    color: #888;
    font-size: 0.82rem;
}

/* ─── Toggle Switch ───────────────────────────── */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 25px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background-color: #333;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toggle-slider::before {
    content: "";
    position: absolute;
    height: 19px;
    width: 19px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

input:checked + .toggle-slider {
    background-color: #D4AF37;
}

input:checked + .toggle-slider::before {
    transform: translateX(21px);
}

input:disabled + .toggle-slider {
    background-color: rgba(212, 175, 55, 0.5);
    cursor: not-allowed;
    opacity: 0.7;
}

/* ─── RTL Support ─────────────────────────────── */
[dir="rtl"] .cookie-inner {
    text-align: right;
}

[dir="rtl"] .cookie-actions {
    flex-direction: row-reverse;
}

[dir="rtl"] .cookie-toggle-info {
    text-align: right;
}

/* ─── Responsive ───────────────────────────────── */
@media (max-width: 768px) {
    .cookie-inner {
        padding: 22px 20px;
    }

    .cookie-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .cookie-actions {
        width: 100%;
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
    }

    .cookie-toggle-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Reviews Section Professional Cards */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.review-card {
    background: rgba(25, 25, 25, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.15); /* Subtle gold border */
    padding: 35px 30px;
    border-radius: 12px;
    position: relative;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.review-card:hover {
    transform: translateY(-10px);
    background: rgba(30, 30, 30, 0.9);
    border-color: var(--gold-primary);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.review-card .stars {
    color: #fbbc04; /* Google review star yellow */
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.review-card .google-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #bbb;
    font-weight: 600;
}

.review-card p {
    font-style: italic;
    color: #eee;
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 25px;
    flex-grow: 1;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
}

.review-author .avatar {
    width: 45px;
    height: 45px;
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    font-family: var(--font-heading);
}

.review-author h4 {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin: 0;
}

.review-author span {
    font-size: 0.85rem;
    color: #888;
}
