/* ═══════════════════════════════════════════════════════════
   Fahad AC — Premium Design System
   Editorial × Swiss × Minimal
   ═══════════════════════════════════════════════════════════ */

/* ─── Design Tokens ─── */
:root {
    /* Colors — Light Mode */
    --color-bg: #fafafa;
    --color-bg-elevated: #ffffff;
    --color-bg-subtle: #f0f0f0;
    --color-text: #0a0a0a;
    --color-text-secondary: #525252;
    --color-text-tertiary: #737373;
    --color-border: #e5e5e5;
    --color-border-subtle: #f0f0f0;
    --color-accent: #0066ff;
    --color-accent-hover: #0052cc;
    --color-accent-subtle: rgba(0, 102, 255, 0.08);
    --color-success: #16a34a;
    --color-warning: #ca8a04;
    --color-danger: #dc2626;

    /* Typography */
    --font-sans: 'Inter', 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-arabic: 'Tajawal', 'Inter', sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', monospace;

    /* Spacing (8px grid) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-24: 96px;
    --space-32: 128px;

    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.12);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --container-max: 1280px;
    --container-wide: 1440px;
    --header-height: 72px;
}

/* ─── Dark Mode ─── */
[data-theme="dark"] {
    --color-bg: #050505;
    --color-bg-elevated: #0f0f0f;
    --color-bg-subtle: #141414;
    --color-text: #fafafa;
    --color-text-secondary: #a3a3a3;
    --color-text-tertiary: #737373;
    --color-border: #262626;
    --color-border-subtle: #1a1a1a;
    --color-accent: #3b82f6;
    --color-accent-hover: #60a5fa;
    --color-accent-subtle: rgba(59, 130, 246, 0.1);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.4);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.5);
}

/* ─── Reset ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    transition: background var(--transition-base), color var(--transition-base);
    overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
input, textarea { font-family: inherit; }

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }

p { color: var(--color-text-secondary); line-height: 1.7; }

/* ─── Layout ─── */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container-wide {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.section {
    padding: var(--space-24) 0;
}

.section--sm { padding: var(--space-16) 0; }
.section--lg { padding: var(--space-32) 0; }

/* ─── Skip Link ─── */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-accent);
    color: #fff;
    padding: 8px 16px;
    z-index: 1000;
    transition: top var(--transition-fast);
}
.skip-link:focus { top: 0; }

/* ─── Header ─── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-height);
    background: rgba(250, 250, 250, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border-subtle);
    transition: background var(--transition-base);
}

[data-theme="dark"] .header {
    background: rgba(5, 5, 5, 0.8);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: var(--space-6);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
    color: var(--color-text);
}

.logo-mark { color: var(--color-accent); }

.logo-text { font-weight: 800; }

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-text);
    transition: width var(--transition-base);
}

.nav a:hover { color: var(--color-text); }
.nav a:hover::after { width: 100%; }

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
}

.btn-icon:hover {
    background: var(--color-bg-subtle);
    color: var(--color-text);
}

.lang-label { font-size: 0.8rem; font-weight: 600; }

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 24px;
    height: 20px;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    transition: all var(--transition-fast);
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    white-space: nowrap;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--color-text);
    color: var(--color-bg);
}

.btn-primary:hover {
    background: var(--color-accent);
    transform: translateY(-1px);
}

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

.btn-accent:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-ghost:hover {
    border-color: var(--color-text);
    background: var(--color-bg-subtle);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-xl { padding: 20px 40px; font-size: 1.1rem; }
.btn-full { width: 100%; }

/* ─── Hero ─── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
    min-height: calc(100vh - var(--header-height));
}

.hero-content { max-width: 640px; }

.hero-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-6);
    padding: var(--space-2) var(--space-4);
    border: 1px solid var(--color-accent-subtle);
    border-radius: var(--radius-full);
    background: var(--color-accent-subtle);
}

.hero-title {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-6);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-8);
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-bottom: var(--space-12);
}

.hero-visual {
    display: flex;
    justify-content: flex-end;
}

.hero-card {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 400px;
}

.hero-card-inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.hero-card-stat {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.hero-card-divider {
    height: 1px;
    background: var(--color-border);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--color-border);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--color-text);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

/* ─── Trust Bar ─── */
.trust-bar {
    padding: var(--space-8) 0;
    border-top: 1px solid var(--color-border-subtle);
    border-bottom: 1px solid var(--color-border-subtle);
}

.trust-items {
    display: flex;
    justify-content: space-between;
    gap: var(--space-6);
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.trust-item svg { color: var(--color-accent); flex-shrink: 0; }

/* ─── Section Header ─── */
.section-header {
    margin-bottom: var(--space-16);
    max-width: 720px;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-4);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* ─── Services ─── */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.service-row {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: var(--space-6);
    align-items: center;
    padding: var(--space-8) 0;
    border-bottom: 1px solid var(--color-border-subtle);
    transition: all var(--transition-base);
    cursor: pointer;
}

.service-row:first-child { border-top: 1px solid var(--color-border-subtle); }

.service-row:hover {
    padding-left: var(--space-4);
    background: var(--color-bg-subtle);
}

.service-number {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-tertiary);
    font-variant-numeric: tabular-nums;
}

.service-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-2);
    transition: color var(--transition-fast);
}

.service-row:hover .service-content h3 { color: var(--color-accent); }

.service-content p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    max-width: 600px;
}

.service-arrow {
    font-size: 1.5rem;
    color: var(--color-text-tertiary);
    transition: transform var(--transition-base), color var(--transition-fast);
}

.service-row:hover .service-arrow {
    transform: translateX(8px);
    color: var(--color-accent);
}

[dir="rtl"] .service-row:hover .service-arrow { transform: translateX(-8px); }

/* ─── About ─── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: start;
}

.about-content .section-title { margin-bottom: var(--space-6); }

.about-text {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-8);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.about-feature {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: 1rem;
    font-weight: 500;
}

.feature-marker {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
    flex-shrink: 0;
}

.about-visual {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.about-card {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-6);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.about-card:hover {
    border-color: var(--color-accent);
    transform: translateX(4px);
}

.about-card-number {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-accent);
    font-variant-numeric: tabular-nums;
    min-width: 24px;
}

.about-card-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.about-card-content p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* ─── Process ─── */
.process-steps {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.process-step {
    flex: 1;
    min-width: 240px;
    max-width: 320px;
    text-align: center;
    padding: var(--space-8);
}

.process-step-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-border);
    line-height: 1;
    margin-bottom: var(--space-4);
    transition: color var(--transition-base);
}

.process-step:hover .process-step-number { color: var(--color-accent); }

.process-step h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.process-step p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

.process-connector {
    width: 60px;
    height: 1px;
    background: var(--color-border);
    margin-top: 60px;
    flex-shrink: 0;
}

/* ─── Gallery ─── */
.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: var(--space-4);
    height: 500px;
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    background: var(--color-bg-subtle);
}

.gallery-item--large {
    grid-row: 1 / 3;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-bg-subtle) 0%, var(--color-border) 100%);
    color: var(--color-text-tertiary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-base);
}

.gallery-item:hover .gallery-placeholder {
    background: linear-gradient(135deg, var(--color-accent-subtle) 0%, var(--color-border) 100%);
    color: var(--color-accent);
}

.gallery-note {
    margin-top: var(--space-6);
    font-size: 0.8rem;
    color: var(--color-text-tertiary);
    text-align: center;
}

/* ─── FAQ ─── */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border-subtle);
    transition: border-color var(--transition-fast);
}

.faq-item[open] { border-color: var(--color-border); }

.faq-item summary {
    padding: var(--space-6) 0;
    cursor: pointer;
    font-weight: 500;
    font-size: 1.05rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color var(--transition-fast);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-text-tertiary);
    transition: transform var(--transition-base);
}

.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--color-accent); }

.faq-item p {
    padding: 0 0 var(--space-6);
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 640px;
}

/* ─── Final CTA ─── */
.final-cta {
    padding: var(--space-24) 0;
    background: var(--color-text);
    color: var(--color-bg);
}

.final-cta-inner {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.final-cta h2 {
    color: var(--color-bg);
    margin-bottom: var(--space-4);
}

.final-cta p {
    color: var(--color-text-tertiary);
    font-size: 1.125rem;
    margin-bottom: var(--space-8);
}

.final-cta-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── Contact ─── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: start;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-top: var(--space-8);
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.contact-detail:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.contact-detail svg { flex-shrink: 0; }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.form-group input,
.form-group textarea {
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg-elevated);
    color: var(--color-text);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-subtle);
}

/* ─── Footer ─── */
.footer {
    padding: var(--space-16) 0 var(--space-8);
    border-top: 1px solid var(--color-border-subtle);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-top: var(--space-4);
    max-width: 360px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-links h4 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-tertiary);
    margin-bottom: var(--space-2);
}

.footer-links a,
.footer-links span {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.footer-links a:hover { color: var(--color-accent); }

.footer-bottom {
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--color-text-tertiary);
}

.footer-note { font-size: 0.75rem; opacity: 0.6; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: var(--space-8); }
    .hero-visual { justify-content: flex-start; }
    .hero-card { max-width: 100%; }
    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr 1fr; height: auto; }
    .gallery-item--large { grid-row: auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav { display: none; }
    .mobile-menu-btn { display: flex; }
    .header-actions .btn-accent { display: none; }
    .trust-items { justify-content: center; gap: var(--space-4); }
    .trust-item { font-size: 0.8rem; }
    .service-row { grid-template-columns: 40px 1fr; }
    .service-arrow { display: none; }
    .process-steps { flex-direction: column; align-items: center; }
    .process-connector { display: none; }
    .gallery-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .final-cta-actions { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .stat-value { font-size: 2rem; }
    .section { padding: var(--space-16) 0; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* ─── Mobile Menu ─── */
.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg-elevated);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-4);
    z-index: 99;
}

.mobile-nav.active { display: flex; flex-direction: column; gap: var(--space-3); }
.mobile-nav a { padding: var(--space-3); color: var(--color-text-secondary); font-weight: 500; }
.mobile-nav a:hover { color: var(--color-accent); }

/* ─── Animations ─── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeInUp 0.6s ease forwards; }

/* ─── RTL Overrides ─── */
[dir="rtl"] .hero-grid { direction: rtl; }
[dir="rtl"] .about-grid { direction: rtl; }
[dir="rtl"] .contact-grid { direction: rtl; }
[dir="rtl"] .trust-items { direction: rtl; }
[dir="rtl"] .process-steps { direction: rtl; }
[dir="rtl"] .footer-grid { direction: rtl; }
[dir="rtl"] .gallery-grid { direction: rtl; }

/* Header scrolled state */
.header--scrolled {
    background: rgba(250, 250, 250, 0.95);
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .header--scrolled {
    background: rgba(5, 5, 5, 0.95);
}

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

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

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--color-text);
    color: var(--color-bg);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transition: all var(--transition-base);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Mobile nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg-elevated);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-4);
    z-index: 99;
    flex-direction: column;
    gap: var(--space-2);
}

.mobile-nav.active { display: flex; }
.mobile-nav a { padding: var(--space-3); color: var(--color-text-secondary); font-weight: 500; border-radius: var(--radius-md); }
.mobile-nav a:hover { background: var(--color-bg-subtle); color: var(--color-accent); }/* --- Mobile Sticky CTA --- */
.mobile-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-3) var(--space-4);
    background: var(--color-bg-elevated);
    border-top: 1px solid var(--color-border);
    z-index: 98;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
    .mobile-cta-bar { display: block; }
    body { padding-bottom: 72px; }
}

/* --- Prefers Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    .scroll-line::after { animation: none; }
}

/* --- Print --- */
@media print {
    .header, .hero-scroll-indicator, .mobile-menu-btn, .mobile-cta-bar { display: none; }
    body { background: #fff; color: #000; }
}
