/* ===================================================================
   Production Street — Main CSS 2026
   Cinematic · Glassmorphism 2.0 · Anti-Grid · Human-first
   =================================================================== */

/* -------------------------------------------------------------------
   0. GOOGLE FONTS
------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300&display=swap');

/* -------------------------------------------------------------------
   1. DESIGN TOKENS
------------------------------------------------------------------- */
:root {
    /* — Cinematic Palette — */
    --ink: #0A0907;
    /* Near-black warm */
    --ink-2: #141210;
    --chalk: #F5F1EA;
    /* Warm off-white */
    --chalk-2: #EDE8DF;
    --amber: #E8A020;
    /* Hot amber — main accent */
    --amber-dim: rgba(232, 160, 32, .15);
    --amber-glow: rgba(232, 160, 32, .35);
    --teal: #4ECDC4;
    /* Nature-derived secondary */
    --teal-dim: rgba(78, 205, 196, .12);
    --blush: #C75B7A;
    /* Warm rose — emotion accent */

    /* — Text — */
    --text-primary: #F5F1EA;
    --text-secondary: rgba(245, 241, 234, .65);
    --text-muted: rgba(245, 241, 234, .38);
    --text-dark: #1A1512;
    --text-dark-2: #4A3F35;

    /* — Surfaces — */
    --surface-dark: rgba(255, 255, 255, .04);
    --surface-dark2: rgba(255, 255, 255, .08);
    --surface-light: rgba(10, 9, 7, .04);
    --glass-border: rgba(255, 255, 255, .11);
    --glass-border-h: rgba(255, 255, 255, .22);

    /* — Typography — */
    --font-heading: 'Cairo', sans-serif;
    --font-body: 'Cairo', sans-serif;
    --font-en: 'Poppins', sans-serif;

    /* — Font Sizes — */
    --fs-xs: 0.72rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: 1.25rem;
    --fs-2xl: 1.5rem;
    --fs-3xl: 2rem;
    --fs-4xl: 2.75rem;
    --fs-5xl: 3.75rem;
    --fs-6xl: 5.5rem;
    --fs-7xl: 7rem;

    /* — Spacing — */
    --sp-xs: 0.5rem;
    --sp-sm: 1rem;
    --sp-md: 1.5rem;
    --sp-lg: 2rem;
    --sp-xl: 3rem;
    --sp-2xl: 4rem;
    --sp-3xl: 6rem;
    --sp-4xl: 8rem;

    /* — Shadows — */
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, .18);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, .28);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, .4);
    --shadow-amber: 0 12px 40px rgba(232, 160, 32, .3);

    /* — Radius — */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* — Transitions — */
    --t-fast: 0.15s ease;
    --t-normal: 0.35s cubic-bezier(.4, 0, .2, 1);
    --t-slow: 0.6s cubic-bezier(.4, 0, .2, 1);
    --t-spring: 0.5s cubic-bezier(.34, 1.56, .64, 1);

    /* — Layout — */
    --container-max: 1300px;
    --container-px: clamp(1.25rem, 5vw, 5rem);
    --header-height: 80px;
    --section-py: clamp(5rem, 10vw, 8rem);
}

/* -------------------------------------------------------------------
   2. RESET & BASE
------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.72;
    color: var(--text-primary);
    background-color: var(--ink);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img,
video {
    display: block;
    max-width: 100%;
}

ul,
ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--t-normal);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input,
textarea,
select {
    font-family: inherit;
}

/* -------------------------------------------------------------------
   3. TYPOGRAPHY
------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.8rem, 7vw, var(--fs-6xl));
}

h2 {
    font-size: clamp(2rem, 5vw, var(--fs-4xl));
}

h3 {
    font-size: clamp(1.4rem, 3vw, var(--fs-3xl));
}

h4 {
    font-size: var(--fs-2xl);
}

h5 {
    font-size: var(--fs-xl);
}

h6 {
    font-size: var(--fs-lg);
}

p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-sm);
    font-family: var(--font-en);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--amber);
}

.eyebrow::before {
    content: '';
    display: block;
    width: 28px;
    height: 1px;
    background: var(--amber);
    flex-shrink: 0;
}

/* -------------------------------------------------------------------
   4. LAYOUT UTILITIES
------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-px);
}

.section {
    padding-block: var(--section-py);
}

.section--sm {
    padding-block: clamp(3rem, 6vw, 5rem);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-xl);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-lg);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-lg);
}

.align-center {
    align-items: center;
}

/* Solid Archival Panels (Replaced Glassmorphism) */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
}

.glass-panel-light {
    background: rgba(245, 241, 234, 0.04);
    border: 1px solid rgba(245, 241, 234, .15);
    border-radius: 4px;
}

/* Section header */
.section-header {
    margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-header.centered {
    text-align: center;
}

.section-header h2 {
    margin-top: var(--sp-sm);
    margin-bottom: var(--sp-sm);
}

.section-header p {
    max-width: 560px;
    font-size: var(--fs-lg);
}

.section-header.centered p {
    margin-inline: auto;
}

.section-divider {
    width: 56px;
    height: 2px;
    background: linear-gradient(90deg, var(--amber), transparent);
    margin-bottom: var(--sp-md);
}

.section-header.centered .section-divider {
    margin-inline: auto;
}

/* -------------------------------------------------------------------
   5. PRELOADER
------------------------------------------------------------------- */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: var(--sp-lg);
    transition: opacity .7s ease, visibility .7s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-ring {
    width: 80px;
    height: 80px;
    position: relative;
}

.preloader-ring svg {
    width: 100%;
    height: 100%;
    animation: spinLoader 1.8s linear infinite;
}

.preloader-ring circle {
    fill: none;
    stroke: var(--amber);
    stroke-width: 2;
    stroke-dasharray: 180 60;
    stroke-linecap: round;
}

.preloader-ring circle.track {
    stroke: rgba(232, 160, 32, .15);
    stroke-dasharray: none;
    animation: none;
}

.preloader-dot {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-dot::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--amber);
    animation: pulseDot 1s ease-in-out infinite alternate;
}

.loader-logo {
    font-family: var(--font-en);
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.4em;
    color: var(--text-secondary);
    text-transform: uppercase;
    animation: fadeInUp .8s .4s both;
}

/* -------------------------------------------------------------------
   6. CURSOR GLOW
------------------------------------------------------------------- */
.cursor-glow {
    position: fixed;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 160, 32, .08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: opacity .4s;
    will-change: left, top;
}

/* -------------------------------------------------------------------
   7. SCROLL PROGRESS BAR
------------------------------------------------------------------- */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--amber), var(--teal));
    z-index: 10000;
    transition: width .1s ease;
}

/* -------------------------------------------------------------------
   8. HEADER / NAVIGATION — Floating Pill Style
   عائم · مستدير · زجاجي · يتقلص عند التمرير
------------------------------------------------------------------- */
.header {
    position: fixed;
    /* هامش علوي + جانبي ليبدو عائماً */
    top: 1rem;
    inset-inline: clamp(1rem, 4vw, 3rem);
    z-index: 1000;
    height: 62px;
    display: flex;
    align-items: center;
    /* زجاجية خفيفة من البداية */
    background: rgba(14, 12, 10, .55);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, .09);
    /* حواف مستديرة كاملة — شكل Pill */
    border-radius: var(--radius-full);
    /* ظل ناعم تحت الشريط */
    box-shadow:
        0 4px 24px rgba(0, 0, 0, .28),
        inset 0 1px 0 rgba(255, 255, 255, .06);
    /* انتقال سلس عند التمرير */
    transition:
        top .4s cubic-bezier(.4, 0, .2, 1),
        height .4s cubic-bezier(.4, 0, .2, 1),
        background .4s ease,
        box-shadow .4s ease,
        border-color .4s ease;
    will-change: top, height;
}

/* عند التمرير: يصبح أكثف وأوضح */
.header.scrolled {
    top: .6rem;
    height: 56px;
    background: rgba(10, 9, 7, .82);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border-color: rgba(232, 160, 32, .18);
    box-shadow:
        0 2px 0 rgba(232, 160, 32, .12),
        /* خط علوي كهرماني خفيف */
        0 8px 40px rgba(0, 0, 0, .45),
        inset 0 1px 0 rgba(255, 255, 255, .08);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-md);
    /* Padding داخلي مناسب لشكل الـ Pill */
    padding-inline: clamp(1rem, 3vw, 2rem);
    width: 100%;
}

/* Logo */
.logo {
    flex-shrink: 0;
    z-index: 1001;
}

.logo h2 {
    font-family: var(--font-en);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--chalk);
    text-transform: uppercase;
    transition: color var(--t-normal);
}

.logo h2 span {
    color: var(--amber);
}

/* Nav */
.nav-menu ul {
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.nav-menu a {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: rgba(245, 241, 234, .7);
    position: relative;
    padding-block: 4px;
    white-space: nowrap;
    transition: color var(--t-normal);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 1.5px;
    background: var(--amber);
    transition: width var(--t-normal);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--chalk);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
}

/* Mobile menu btn */
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--chalk);
    font-size: 1.1rem;
    z-index: 1001;
    border-radius: var(--radius-md);
    transition: color var(--t-normal);
}

/* -------------------------------------------------------------------
   9. BUTTONS
------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-xs);
    padding: .8rem 2rem;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: .03em;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all var(--t-normal);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .12);
    transform: translateX(-101%);
    transition: transform .4s ease;
}

.btn:hover::before {
    transform: translateX(0);
}

.btn-primary {
    background: var(--amber);
    color: var(--ink);
    border-color: var(--amber);
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-amber);
}

.btn-ghost {
    background: transparent;
    color: var(--chalk);
    border-color: rgba(245, 241, 234, .35);
}

.btn-ghost:hover {
    background: rgba(245, 241, 234, .08);
    border-color: rgba(245, 241, 234, .6);
    transform: translateY(-2px);
}

.btn-amber-outline {
    background: transparent;
    color: var(--amber);
    border-color: var(--amber);
}

.btn-amber-outline:hover {
    background: var(--amber);
    color: var(--ink);
    transform: translateY(-2px);
    box-shadow: var(--shadow-amber);
}

/* -------------------------------------------------------------------
   10. HERO
------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* overflow removed — was clipping RTL text on the right column */
    background: var(--ink-2);
}

/* Right (in LTR) / Start-in-RTL: text column */
.hero-text-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Use padding-inline for RTL-safe spacing */
    padding-block: calc(var(--header-height) + var(--sp-3xl)) var(--sp-3xl);
    padding-inline: var(--container-px);
    position: relative;
    z-index: 2;
    /* Ensure text never bleeds into the image column */
    overflow: hidden;
}

/* Right: image column */
.hero-image-col {
    position: relative;
    overflow: hidden;
}

.hero-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08);
    transition: transform 8s ease;
    filter: brightness(.82);
}

.hero.loaded .hero-image-col img {
    transform: scale(1);
}

.hero-image-col::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(270deg, transparent 50%, var(--ink-2) 98%);
}

.hero-image-col::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(10, 9, 7, .4) 0%, transparent 40%, rgba(10, 9, 7, .5) 100%);
}

/* Floating stats pill */
.hero-stats-pill {
    position: absolute;
    bottom: var(--sp-2xl);
    right: var(--sp-xl);
    z-index: 3;
    padding: var(--sp-md) var(--sp-lg);
    display: flex;
    gap: var(--sp-xl);
    animation: fadeInUp 1s 1.2s both;
}

.hero-stat {
    text-align: center;
}

.hero-stat-num {
    font-family: var(--font-en);
    font-size: var(--fs-3xl);
    font-weight: 700;
    color: var(--amber);
    line-height: 1;
    margin-bottom: .25rem;
}

.hero-stat-label {
    font-size: var(--fs-xs);
    color: var(--text-secondary);
    letter-spacing: .1em;
}

/* Hero content */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-sm);
    font-family: var(--font-en);
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: var(--sp-lg);
    animation: fadeInUp .8s .3s both;
}

.hero-eyebrow::before {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--amber);
}

.hero h1 {
    font-size: clamp(2.6rem, 5.5vw, 5.2rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.03em;
    color: var(--chalk);
    margin-bottom: var(--sp-lg);
    animation: fadeInUp .9s .5s both;
}

.hero h1 em {
    font-style: normal;
    color: var(--amber);
    display: block;
}

.hero-desc {
    font-size: clamp(1rem, 1.8vw, 1.1rem);
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: var(--sp-2xl);
    line-height: 1.85;
    animation: fadeInUp .9s .7s both;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
    flex-wrap: wrap;
    animation: fadeInUp .9s .9s both;
}

/* Large background text — clipped by hero-text-col overflow:hidden */
.hero-bg-text {
    position: absolute;
    bottom: -.1em;
    /* Use logical inset so it anchors to the inline-start in RTL */
    inset-inline-start: 0;
    font-family: var(--font-en);
    font-size: clamp(5rem, 12vw, 12rem);
    font-weight: 700;
    letter-spacing: -.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .02);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    /* z-index:-1 ensures it never overlaps any text content */
    z-index: -1;
    line-height: 1;
}

/* Scroll hint */
.hero-scroll {
    position: absolute;
    bottom: var(--sp-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(245, 241, 234, .4);
    font-size: var(--fs-xs);
    letter-spacing: .15em;
    text-transform: uppercase;
    font-family: var(--font-en);
    cursor: pointer;
    animation: scrollBounce 2.2s ease-in-out infinite;
}

.hero-scroll i {
    font-size: 1rem;
}

/* -------------------------------------------------------------------
   11. ABOUT SECTION
------------------------------------------------------------------- */
.story-section {
    background: var(--ink);
    /* Contains data-reveal translateX animations — prevents horizontal overflow */
    overflow-x: hidden;
}

.story-layout {
    display: grid;
    grid-template-columns: 48% 1fr;
    gap: var(--sp-3xl);
    align-items: center;
}

.story-image-wrap {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.story-image-wrap img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: var(--radius-xl);
    transition: transform var(--t-slow);
}

.story-image-wrap:hover img {
    transform: scale(1.04);
}

.story-year-badge {
    position: absolute;
    bottom: var(--sp-lg);
    left: var(--sp-lg);
    padding: var(--sp-md) var(--sp-lg);
}

.story-year-badge .badge-year {
    font-family: var(--font-en);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--amber);
    line-height: 1;
}

.story-year-badge .badge-label {
    font-size: var(--fs-xs);
    color: var(--text-secondary);
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-top: .25rem;
}

.story-content {
    padding-block: var(--sp-xl);
    /* min-width:0 يمنع الـ grid column من التمدد خارج حدوده */
    min-width: 0;
}

.story-content h2 {
    color: var(--chalk);
    margin-bottom: var(--sp-md);
}

.story-content p {
    margin-bottom: var(--sp-md);
}

/* Stats row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-md);
    margin-top: var(--sp-2xl);
}

.stat-card {
    padding: var(--sp-lg);
    text-align: center;
    border-top: 1px solid var(--glass-border);
    transition: border-color var(--t-normal);
}

.stat-card:hover {
    border-color: var(--amber);
}

.stat-number {
    font-family: var(--font-en);
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--amber);
    line-height: 1;
    margin-bottom: .4rem;
}

.stat-label {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* Values */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-lg);
    margin-top: var(--sp-xl);
}

.value-card {
    padding: var(--sp-xl) var(--sp-lg);
    border-radius: var(--radius-lg);
    background: var(--surface-dark);
    border: 1px solid var(--glass-border);
    text-align: center;
    transition: transform var(--t-normal), border-color var(--t-normal), box-shadow var(--t-normal);
}

.value-card:hover {
    transform: translateY(-8px);
    border-color: var(--amber);
    box-shadow: 0 20px 50px rgba(232, 160, 32, .12);
}

.value-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: var(--amber-dim);
    color: var(--amber);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto var(--sp-md);
    transition: background var(--t-normal), transform var(--t-normal);
}

.value-card:hover .value-icon {
    background: var(--amber);
    color: var(--ink);
    transform: scale(1.1);
}

.value-card h3 {
    font-size: var(--fs-xl);
    color: var(--chalk);
    margin-bottom: var(--sp-sm);
}

/* -------------------------------------------------------------------
   12. SERVICES SECTION
------------------------------------------------------------------- */
.services-section {
    background: var(--ink-2);
}

.services-scroll-wrapper {
    position: relative;
    overflow: hidden;
}

.services-cards {
    display: flex;
    gap: var(--sp-lg);
    padding-bottom: var(--sp-md);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.services-cards::-webkit-scrollbar {
    display: none;
}

.service-card-h {
    width: clamp(155px, 19vw, 210px);
    max-width: 210px;
    flex-shrink: 0;
    scroll-snap-align: start;
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    aspect-ratio: 3/4;
    cursor: pointer;
    transition: transform var(--t-slow);
}

.service-card-h:hover {
    transform: scale(1.02);
}

.service-card-h img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow);
    filter: brightness(.55);
}

.service-card-h:hover img {
    transform: scale(1.06);
}

.service-card-h-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10, 9, 7, .95) 0%, rgba(10, 9, 7, .3) 55%, transparent 80%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--sp-xl);
}

.service-num {
    font-family: var(--font-en);
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--amber);
    letter-spacing: .2em;
    margin-bottom: var(--sp-sm);
}

.service-card-h h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    color: var(--chalk);
    margin-bottom: var(--sp-sm);
}

.service-card-h p {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity var(--t-normal), transform var(--t-normal);
    max-height: 0;
    overflow: hidden;
}

.service-card-h:hover p {
    opacity: 1;
    transform: translateY(0);
    max-height: 120px;
}

.service-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--amber);
    color: var(--ink);
    font-size: var(--fs-xs);
    font-weight: 700;
    padding: .4rem 1rem;
    border-radius: var(--radius-full);
    margin-top: var(--sp-md);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--t-normal) .1s, transform var(--t-normal) .1s;
}

.service-card-h:hover .service-pill {
    opacity: 1;
    transform: translateY(0);
}

/* Process steps */
.process-section {
    background: var(--ink);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    position: relative;
}

.process-grid::before {
    content: '';
    position: absolute;
    top: 2.5rem;
    left: calc(100%/6);
    right: calc(100%/6);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--amber), transparent);
}

.process-step {
    padding: var(--sp-2xl) var(--sp-xl);
    text-align: center;
    position: relative;
}

.process-num {
    font-family: var(--font-en);
    font-size: var(--fs-5xl);
    font-weight: 700;
    color: var(--amber);
    opacity: .15;
    line-height: 1;
    margin-bottom: var(--sp-md);
}

.process-step h3 {
    color: var(--chalk);
    margin-bottom: var(--sp-sm);
    font-size: var(--fs-xl);
}

.process-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto var(--sp-md);
    background: var(--amber-dim);
    border: 1px solid var(--amber);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--amber);
    font-size: 1.3rem;
}

/* -------------------------------------------------------------------
   13. PORTFOLIO SECTION
------------------------------------------------------------------- */
.portfolio-section {
    background: var(--ink-2);
}

/* Filter bar */
.filter-bar {
    display: flex;
    gap: var(--sp-sm);
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: var(--sp-2xl);
}

.filter-btn {
    padding: .5rem 1.4rem;
    border-radius: var(--radius-full);
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    transition: all var(--t-normal);
    background: transparent;
    cursor: pointer;
}

.filter-btn:hover {
    color: var(--chalk);
    border-color: rgba(245, 241, 234, .35);
}

.filter-btn.active {
    background: var(--amber);
    color: var(--ink);
    border-color: var(--amber);
    font-weight: 700;
}

/* Organic masonry gallery */
.gallery-organic {
    columns: 3;
    column-gap: var(--sp-md);
}

.portfolio-item {
    break-inside: avoid;
    display: block;
    margin-bottom: var(--sp-md);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.portfolio-item img {
    width: 100%;
    display: block;
    border-radius: var(--radius-lg);
    transition: transform .6s ease, filter .5s ease;
    filter: brightness(.88);
}

.portfolio-item:hover img {
    transform: scale(1.06);
    filter: brightness(.7);
}

/* tall items */
.portfolio-item.tall img {
    aspect-ratio: 3/4;
    object-fit: cover;
}

.portfolio-item:nth-child(3n+1) img {
    aspect-ratio: 4/5;
    object-fit: cover;
}

.portfolio-item:nth-child(3n+2) img {
    aspect-ratio: 1;
    object-fit: cover;
}

.portfolio-item:nth-child(3n) img {
    aspect-ratio: 4/3;
    object-fit: cover;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10, 9, 7, .9) 0%, transparent 55%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--sp-lg);
    border-radius: var(--radius-lg);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--t-normal), transform var(--t-normal);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-overlay h3 {
    font-size: var(--fs-lg);
    color: var(--chalk);
    margin-bottom: .25rem;
}

.portfolio-overlay p {
    font-size: var(--fs-xs);
    color: var(--amber);
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* Lightbox compat alias */
.gallery-grid {
    break-inside: avoid;
}

/* -------------------------------------------------------------------
   14. TESTIMONIALS
------------------------------------------------------------------- */
.testimonials-section {
    background: var(--ink);
    overflow: hidden;
}

.testimonials-wrapper {
    position: relative;
}

.testimonial-slider {
    position: relative;
    min-height: 340px;
}

.testimonial-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .6s ease, transform .6s ease;
    transform: translateX(3rem);
}

.testimonial-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.testimonial-card-big {
    max-width: 780px;
    width: 100%;
    padding: var(--sp-2xl) var(--sp-3xl);
    border-radius: var(--radius-xl);
    position: relative;
}

.quote-mark {
    font-family: var(--font-en);
    font-size: 8rem;
    line-height: 1;
    color: var(--amber);
    opacity: .15;
    position: absolute;
    top: var(--sp-lg);
    right: var(--sp-2xl);
    font-weight: 900;
}

.testimonial-stars {
    font-size: 1rem;
    color: var(--amber);
    margin-bottom: var(--sp-md);
    letter-spacing: .15em;
}

.testimonial-text {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--chalk);
    line-height: 1.75;
    margin-bottom: var(--sp-lg);
    font-weight: 300;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--amber);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-name {
    font-weight: 700;
    color: var(--chalk);
    font-size: var(--fs-base);
}

.testimonial-role {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    letter-spacing: .08em;
}

/* Dots */
.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: var(--sp-sm);
    margin-top: var(--sp-2xl);
}

.t-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--glass-border);
    cursor: pointer;
    transition: all var(--t-normal);
}

.t-dot.active {
    background: var(--amber);
    transform: scale(1.3);
}

/* -------------------------------------------------------------------
   15. CTA BAND
------------------------------------------------------------------- */
.cta-section {
    position: relative;
    overflow: hidden;
    background: var(--ink-2);
    padding-block: var(--sp-4xl);
    text-align: center;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 60% at 20% 50%, rgba(232, 160, 32, .12) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 80% 50%, rgba(78, 205, 196, .08) 0%, transparent 50%);
}

.cta-noise {
    position: absolute;
    inset: 0;
    opacity: .03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-inline: auto;
}

.cta-big-text {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    color: var(--chalk);
    line-height: 1.15;
    margin-block: var(--sp-lg) var(--sp-2xl);
}

.cta-big-text span {
    color: var(--amber);
}

.cta-actions {
    display: flex;
    gap: var(--sp-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* -------------------------------------------------------------------
   16. CONTACT SECTION
------------------------------------------------------------------- */
.contact-section {
    background: var(--ink);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-2xl);
    align-items: start;
}

.contact-glass {
    padding: var(--sp-2xl);
    border-radius: var(--radius-xl);
}

.contact-glass h3 {
    color: var(--chalk);
    font-size: var(--fs-2xl);
    margin-bottom: var(--sp-xl);
}

/* Form */
.form-group {
    margin-bottom: var(--sp-lg);
}

.form-label {
    display: block;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: .6rem;
}

.form-control {
    width: 100%;
    padding: .9rem 1.2rem;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--chalk);
    font-size: var(--fs-sm);
    transition: border-color var(--t-normal), box-shadow var(--t-normal), background var(--t-normal);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:focus {
    outline: none;
    border-color: var(--amber);
    background: rgba(232, 160, 32, .06);
    box-shadow: 0 0 0 3px var(--amber-dim);
}

select.form-control option {
    background: var(--ink-2);
    color: var(--chalk);
}

textarea.form-control {
    resize: vertical;
    min-height: 130px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-lg);
}

.contact-info-side {
    padding: var(--sp-lg) 0;
}

.contact-info-side h3 {
    color: var(--chalk);
    font-size: var(--fs-2xl);
    margin-bottom: var(--sp-xl);
}

.contact-info-item {
    display: flex;
    gap: var(--sp-md);
    align-items: flex-start;
    padding: var(--sp-md) 0;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: var(--amber-dim);
    border: 1px solid rgba(232, 160, 32, .2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--amber);
    font-size: 1rem;
    transition: background var(--t-normal);
}

.contact-info-item:hover .contact-info-icon {
    background: var(--amber);
    color: var(--ink);
}

.contact-info-label {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: .2rem;
}

.contact-info-value {
    font-size: var(--fs-sm);
    color: var(--chalk);
    transition: color var(--t-normal);
}

.contact-info-item:hover .contact-info-value {
    color: var(--amber);
}

/* Available badge */
.available-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-sm);
    padding: .5rem 1.2rem;
    border-radius: var(--radius-full);
    background: rgba(78, 205, 196, .12);
    border: 1px solid rgba(78, 205, 196, .25);
    color: var(--teal);
    font-size: var(--fs-xs);
    font-weight: 600;
    margin-bottom: var(--sp-xl);
}

.available-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
    animation: pulseDot 1.2s ease-in-out infinite alternate;
}

/* Social */
.social-links {
    display: flex;
    gap: var(--sp-sm);
    flex-wrap: wrap;
    margin-top: var(--sp-lg);
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--surface-dark);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: all var(--t-normal);
}

.social-link:hover {
    background: var(--amber);
    color: var(--ink);
    border-color: var(--amber);
    transform: translateY(-3px);
}

.social-link.whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
}

/* Map */
.map-container {
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 300px;
    border: 1px solid var(--glass-border);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* -------------------------------------------------------------------
   17. FOOTER
------------------------------------------------------------------- */
.footer {
    background: #060504;
    border-top: 1px solid rgba(255, 255, 255, .05);
}

.footer-top {
    padding-block: var(--sp-2xl) var(--sp-xl);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.footer-masthead {
    font-family: var(--font-en);
    font-size: clamp(2.5rem, 7vw, 6rem);
    font-weight: 700;
    letter-spacing: -.02em;
    text-transform: uppercase;
    color: rgba(245, 241, 234, .07);
    margin-bottom: var(--sp-xl);
    line-height: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--sp-2xl);
    padding-block: var(--sp-2xl);
}

.footer-brand p {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    max-width: 280px;
    margin-top: var(--sp-sm);
}

.footer-logo {
    font-family: var(--font-en);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--chalk);
    text-transform: uppercase;
}

.footer-logo span {
    color: var(--amber);
}

.footer-social {
    display: flex;
    gap: .75rem;
    margin-top: var(--sp-lg);
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: .9rem;
    transition: all var(--t-normal);
}

.footer-social a:hover {
    border-color: var(--amber);
    color: var(--amber);
}

.footer-col h4 {
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--chalk);
    margin-bottom: var(--sp-lg);
    padding-bottom: var(--sp-sm);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.footer-col a {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    transition: color var(--t-normal), transform var(--t-normal);
    display: inline-block;
}

.footer-col a:hover {
    color: var(--amber);
    transform: translateX(-4px);
}

.footer-contact-item {
    display: flex;
    gap: var(--sp-sm);
    align-items: flex-start;
    margin-bottom: .75rem;
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.footer-contact-item i {
    color: var(--amber);
    font-size: .9rem;
    margin-top: .2rem;
    flex-shrink: 0;
}

.footer-contact-item a {
    color: var(--text-muted);
}

.footer-contact-item a:hover {
    color: var(--amber);
}

.footer-bottom {
    padding-block: var(--sp-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--fs-xs);
    color: var(--text-muted);
}

/* -------------------------------------------------------------------
   18. BACK TO TOP
------------------------------------------------------------------- */
#back-to-top {
    position: fixed;
    bottom: var(--sp-lg);
    left: var(--sp-lg);
    z-index: 500;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--amber);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--shadow-amber);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
    transition: all var(--t-normal);
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

#back-to-top:hover {
    transform: translateY(-3px);
}

/* -------------------------------------------------------------------
   19. PAGE HERO (inner pages)
------------------------------------------------------------------- */
.page-hero {
    position: relative;
    overflow: hidden;
    padding-block: calc(var(--header-height) + 4rem) 4rem;
    background: var(--ink-2);
    text-align: center;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--amber), transparent);
}

.page-hero h1 {
    margin-block: var(--sp-sm);
    color: var(--chalk);
}

.page-hero p {
    max-width: 560px;
    margin-inline: auto;
    font-size: var(--fs-lg);
}

/* -------------------------------------------------------------------
   20. CHECK LIST (services)
------------------------------------------------------------------- */
.check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-top: var(--sp-lg);
}

.check-list li {
    display: flex;
    gap: var(--sp-sm);
    align-items: flex-start;
    font-size: var(--fs-sm);
    color: var(--text-secondary);
}

.check-list li i {
    color: var(--amber);
    font-size: .85rem;
    margin-top: .2rem;
    flex-shrink: 0;
}

/* -------------------------------------------------------------------
   21. SERVICE ROW (services page)
------------------------------------------------------------------- */
.service-row {
    padding-block: var(--sp-3xl);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.service-row:last-child {
    border-bottom: none;
}

.service-row-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.service-row-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius-xl);
    filter: brightness(.9);
}

.service-row-content h2 {
    color: var(--chalk);
}

.service-row-content p {
    margin-block: var(--sp-md);
}

/* -------------------------------------------------------------------
   22. TEAM
------------------------------------------------------------------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-xl);
}

.team-card {
    padding: var(--sp-xl);
    text-align: center;
    border-radius: var(--radius-xl);
    background: var(--surface-dark);
    border: 1px solid var(--glass-border);
    transition: transform var(--t-normal), border-color var(--t-normal);
}

.team-card:hover {
    transform: translateY(-8px);
    border-color: var(--amber);
}

.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto var(--sp-md);
    border: 2px solid var(--amber);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--chalk);
    margin-bottom: .25rem;
}

.team-role {
    font-size: var(--fs-xs);
    color: var(--amber);
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: var(--sp-sm);
}

.team-bio {
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

/* -------------------------------------------------------------------
   23. SECTION BG VARIANTS
------------------------------------------------------------------- */
.bg-ink {
    background: var(--ink);
}

.bg-ink-2 {
    background: var(--ink-2);
}

/* Noise overlay utility */
.noise-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: .025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px;
}

/* ===================================================================
   24. GRAIN / TACTILE TEXTURE (Tactile Maximalism — design.md §1)
   Subtle film-grain overlay on the body to fight the "plastic" AI look
   =================================================================== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: .035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23grain)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 300px 300px;
    mix-blend-mode: overlay;
}

/* ===================================================================
   25. DARK MODE / LIGHT MODE THEMING (design.md §5 — Dynamic Theming)
   =================================================================== */
[data-theme="light"] {
    --ink: #F7F4EE;
    --ink-2: #EDE9E0;
    --chalk: #1A1512;
    --chalk-2: #2E2823;
    --text-primary: #1A1512;
    --text-secondary: rgba(26, 21, 18, .72);
    --text-muted: rgba(26, 21, 18, .42);
    --text-dark: #F5F1EA;
    --surface-dark: rgba(0, 0, 0, .04);
    --surface-dark2: rgba(0, 0, 0, .07);
    --glass-border: rgba(0, 0, 0, .1);
    --glass-border-h: rgba(0, 0, 0, .2);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, .12);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, .18);
}

[data-theme="light"] .header.scrolled {
    background: rgba(247, 244, 238, .88);
    box-shadow: 0 1px 0 rgba(0, 0, 0, .08), 0 4px 24px rgba(0, 0, 0, .1);
}

[data-theme="light"] .logo h2 {
    color: var(--chalk);
}

[data-theme="light"] .nav-menu a {
    color: rgba(26, 21, 18, .7);
}

[data-theme="light"] .nav-menu a:hover,
[data-theme="light"] .nav-menu a.active {
    color: var(--chalk);
}

[data-theme="light"] .hero {
    background: var(--ink-2);
}

[data-theme="light"] .hero h1,
[data-theme="light"] .hero p {
    color: var(--text-primary);
}

/* الفوتر يبقى داكناً دائماً بغض النظر عن الثيم */
[data-theme="light"] .footer {
    background: #060504;
    color: #F5F1EA;
}

/* إعادة ضبط ألوان عناصر الفوتر مباشرةً (بدون اعتماد على CSS vars) */
[data-theme="light"] .footer-masthead {
    color: rgba(245, 241, 234, .07);
}

[data-theme="light"] .footer-logo {
    color: #F5F1EA;
}

[data-theme="light"] .footer-brand p,
[data-theme="light"] .footer-col a,
[data-theme="light"] .footer-contact-item,
[data-theme="light"] .footer-contact-item a,
[data-theme="light"] .footer-bottom {
    color: rgba(245, 241, 234, .45);
}

[data-theme="light"] .footer-col h4 {
    color: #F5F1EA;
    border-bottom-color: rgba(255, 255, 255, .08);
}

[data-theme="light"] .footer-social a {
    color: rgba(245, 241, 234, .45);
    border-color: rgba(255, 255, 255, .08);
}

[data-theme="light"] .footer-top,
[data-theme="light"] .footer-grid {
    border-color: rgba(255, 255, 255, .06);
}

[data-theme="light"] .footer-col a:hover,
[data-theme="light"] .footer-contact-item a:hover,
[data-theme="light"] .footer-social a:hover {
    color: var(--amber);
}

/* قسم التواصل — نُعيد الألوان ليظهر في الثيم الفاتح */
[data-theme="light"] .contact-section {
    background: var(--ink-2);
}

[data-theme="light"] .contact-info-label {
    color: rgba(26, 21, 18, .5);
}

[data-theme="light"] .contact-info-value {
    color: #1a1512;
}

[data-theme="light"] .contact-section h2,
[data-theme="light"] .contact-section h3,
[data-theme="light"] .contact-section p {
    color: var(--text-primary);
}


/* Theme toggle button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    border: 1px solid var(--glass-border);
    background: var(--surface-dark);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    transition: color var(--t-normal), background var(--t-normal), border-color var(--t-normal), transform var(--t-spring);
    flex-shrink: 0;
}

.theme-toggle:hover {
    color: var(--amber);
    border-color: var(--amber-glow);
    transform: rotate(20deg) scale(1.08);
}

.theme-toggle .icon-sun {
    display: none;
}

.theme-toggle .icon-moon {
    display: block;
}

[data-theme="light"] .theme-toggle .icon-sun {
    display: block;
}

[data-theme="light"] .theme-toggle .icon-moon {
    display: none;
}

/* ===================================================================
   26. ENHANCED NAVIGATION HOVER (design.md §4)
   Underline reveal from right + amber glow on hover — RTL safe
   No span duplication needed; works purely in CSS
   =================================================================== */

/* تأكد من الـ overflow hidden لعمل الـ clip */
.nav-menu a {
    overflow: visible;
    /* لا نخفي الـ overflow هنا لأن underline خارج الـ box */
}

/* نخفي الـ nav-text-hover spans التي أضفناها سابقاً */
.nav-menu a .nav-text-hover {
    display: none;
}

/* نُعيد الـ nav-text ليظهر بشكل عادي */
.nav-menu a .nav-text {
    display: inline;
    transform: none !important;
}

/* ===  Amber underline يمتد من اليمين (RTL) عند hover === */
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    inset-inline-end: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--amber));
    border-radius: 2px;
    transition: width .4s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 0 8px var(--amber-glow);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
    inset-inline-end: 0;
    inset-inline-start: auto;
}

/* لون النص يتحول عند hover */
.nav-menu a:hover,
.nav-menu a.active {
    color: var(--chalk);
}


/* ===================================================================
   27. ARCHIVAL SECTION COUNTER (Museumcore / design.md §3)
   Numbered labels (01 / 02 / 03) on each major section
   =================================================================== */
.section-labeled {
    position: relative;
}

.section-label-num {
    position: absolute;
    top: clamp(3rem, 6vw, 5rem);
    inset-inline-end: var(--container-px);
    font-family: var(--font-en);
    font-size: clamp(5rem, 10vw, 9rem);
    font-weight: 700;
    line-height: 1;
    color: rgba(232, 160, 32, .06);
    letter-spacing: -.04em;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

/* ===================================================================
   28. 3D PERSPECTIVE TILT — Service Cards (design.md §4 — 3D Immersive)
   JS sets --rx and --ry on mousemove; CSS applies the transform
   =================================================================== */
.service-card-h {
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform .4s cubic-bezier(.4, 0, .2, 1), box-shadow .4s;
}

.service-card-h:hover {
    transform:
        perspective(900px) rotateY(calc(var(--rx, 0) * 1deg)) rotateX(calc(var(--ry, 0) * -1deg)) translateZ(8px);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(232, 160, 32, .12);
}

/* ===================================================================
   29. SCROLL PROGRESS BAR — GLOWING (enhanced from §4)
   =================================================================== */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--amber), var(--teal), var(--amber));
    background-size: 200% 100%;
    z-index: 10000;
    transition: width .1s ease;
    box-shadow: 0 0 10px var(--amber-glow), 0 0 4px rgba(78, 205, 196, .5);
    animation: progressShimmer 3s linear infinite;
}

@keyframes progressShimmer {
    0% {
        background-position: 0% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* ===================================================================
   30. MULTI-STEP CONTACT FORM (Progressive Lead Nurturing — design.md §2)
   =================================================================== */
.form-steps {
    display: none;
    /* shown when multi-step form is active */
}

.step-progress {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: var(--sp-2xl);
    position: relative;
}

.step-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    inset-inline-start: 0;
    inset-inline-end: 0;
    height: 1px;
    background: var(--glass-border);
    transform: translateY(-50%);
    z-index: 0;
}

.step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    flex: 1;
    position: relative;
    z-index: 1;
}

.step-dot-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--surface-dark2);
    border: 1.5px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-en);
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all var(--t-normal);
}

.step-dot.active .step-dot-circle {
    background: var(--amber);
    border-color: var(--amber);
    color: var(--ink);
    box-shadow: 0 0 16px var(--amber-glow);
}

.step-dot.done .step-dot-circle {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--ink);
}

.step-dot-label {
    font-size: .65rem;
    color: var(--text-muted);
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: color var(--t-normal);
}

.step-dot.active .step-dot-label {
    color: var(--amber);
}

.form-step-panel {
    display: none;
    animation: fadeInUp .4s ease both;
}

.form-step-panel.active {
    display: block;
}

.form-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--sp-lg);
    gap: var(--sp-md);
}

.service-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-sm);
    margin-bottom: var(--sp-lg);
}

.service-choice-btn {
    padding: var(--sp-md) var(--sp-sm);
    border: 1.5px solid var(--glass-border);
    border-radius: var(--radius-md);
    background: var(--surface-dark);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    cursor: pointer;
    text-align: center;
    transition: all var(--t-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
}

.service-choice-btn i {
    font-size: 1.4rem;
    color: var(--amber);
    transition: transform var(--t-spring);
}

.service-choice-btn:hover,
.service-choice-btn.selected {
    border-color: var(--amber);
    background: var(--amber-dim);
    color: var(--chalk);
}

.service-choice-btn:hover i,
.service-choice-btn.selected i {
    transform: scale(1.2);
    color: var(--amber);
}

/* ===================================================================
   EFFICA / ARCHIVAL INDEX SYSTEM (errica.md — 2026)
   هندسة الثقة: الفهرس الأرشيفي، الطباعة السلطوية، الإفصاح التدريجي
   =================================================================== */

/* -------------------------------------------------------------------
   A. ARCHIVAL SECTION HEADER — العنوان الأرشيفي المهيكل
   رقم تسلسلي بارز + خط فاصل + عنوان القسم
   نمط: 01 ——— مَن نحن
------------------------------------------------------------------- */
.arch-section-header {
    display: flex;
    align-items: center;
    gap: var(--sp-lg);
    margin-bottom: var(--sp-3xl);
    position: relative;
    z-index: 1;
}

/* الرقم التسلسلي — بارز ومقروء */
.arch-num {
    font-family: var(--font-en);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: .2em;
    color: var(--amber);
    flex-shrink: 0;
    align-self: center;
    line-height: 1;
}

/* الخط الفاصل الرأسي بين الرقم والعنوان */
.arch-rule-v {
    width: 1px;
    height: 2.5rem;
    background: rgba(232, 160, 32, .35);
    flex-shrink: 0;
}

/* حاوية العنوان والـ eyebrow */
.arch-title-group {
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

/* الـ eyebrow بتباعد حرفي واسع — W · H · Y style */
.spaced-label {
    font-family: var(--font-en);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .35em;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
}

/* عنوان القسم الكبير — أهدأ من السابق */
.arch-section-header h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.15;
    margin: 0;
}

/* الخط الأفقي الأرشيفي الممتد */
.arch-rule {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
    margin-block: var(--sp-2xl);
    opacity: .25;
}

.arch-rule::before,
.arch-rule::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--chalk);
}

.arch-rule span {
    font-family: var(--font-en);
    font-size: .65rem;
    letter-spacing: .3em;
    color: var(--chalk);
    white-space: nowrap;
}

/* -------------------------------------------------------------------
   B. HIGH-CONTRAST STAT BLOCKS — أرقام بارزة عالية التباين (errica §1 + §4)
   "+83% كفاءة" / "50+ ساعة شهرياً"
------------------------------------------------------------------- */
.stat-block-high {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .3rem;
    padding: var(--sp-lg) var(--sp-xl);
    border-inline-start: 3px solid var(--amber);
    background: var(--amber-dim);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.stat-block-high .stat-num {
    font-family: var(--font-en);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1;
    color: var(--amber);
    letter-spacing: -.03em;
}

.stat-block-high .stat-label {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: 1.4;
    max-width: 200px;
}

/* شبكة 3 إحصائيات متجانسة */
.stat-blocks-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-md);
    margin-block: var(--sp-2xl);
}

@media (max-width: 767px) {
    .stat-blocks-row {
        grid-template-columns: 1fr;
    }
}

/* -------------------------------------------------------------------
   C. DIRECT STATEMENT — التصريح المباشر (errica §5)
   "ستتحدث معنا مباشرة. لا وسطاء. لا أنظمة آلية."
------------------------------------------------------------------- */
.direct-statement {
    position: relative;
    padding: var(--sp-xl) var(--sp-2xl);
    border: 1px solid rgba(232, 160, 32, .2);
    border-radius: var(--radius-lg);
    background: var(--amber-dim);
    margin-block: var(--sp-2xl);
}

.direct-statement::before {
    content: '"';
    position: absolute;
    top: -.5rem;
    inset-inline-start: var(--sp-xl);
    font-family: serif;
    font-size: 5rem;
    line-height: 1;
    color: var(--amber);
    opacity: .4;
}

.direct-statement p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 500;
    line-height: 1.7;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

/* -------------------------------------------------------------------
   D. HUMAN BADGE — شارة الإنسانية (errica §5)
   "ستتحدث مع [الموظف] مباشرة"
------------------------------------------------------------------- */
.human-badge {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    padding: .6rem 1.2rem;
    border: 1px solid rgba(78, 205, 196, .25);
    border-radius: var(--radius-full);
    background: rgba(78, 205, 196, .08);
    font-size: var(--fs-sm);
    color: var(--teal);
    font-weight: 500;
    margin-block: var(--sp-md);
}

.human-badge i {
    font-size: .85rem;
}

/* -------------------------------------------------------------------
   E. ARCHIVAL TABLE — جدول البيانات الأرشيفي (errica §2)
   شفافية وهيكلية بيانات مماثلة للكتالوجات
------------------------------------------------------------------- */
.arch-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-sm);
    margin-block: var(--sp-xl);
}

.arch-table th {
    padding: .75rem var(--sp-md);
    text-align: start;
    font-size: .65rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--glass-border);
    font-weight: 600;
}

.arch-table td {
    padding: .9rem var(--sp-md);
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, .04);
    vertical-align: top;
    line-height: 1.6;
}

.arch-table tr:last-child td {
    border-bottom: none;
}

.arch-table td:first-child {
    color: var(--amber);
    font-weight: 600;
    font-size: var(--fs-sm);
    white-space: nowrap;
}

/* -------------------------------------------------------------------
   F. PERFORMANCE-FIRST — تخفيف تأثيرات Ambient غير الضرورية (errica §6)
   الحركة تخدم الوظيفة فقط
------------------------------------------------------------------- */

/* تخفيف الـ glow effect على Body */
body::before {
    opacity: .022;
    /* من .035 → أخف */
}

/* تخفيف cursor glow */
.cursor-glow {
    background: radial-gradient(circle, rgba(232, 160, 32, .05) 0%, transparent 70%);
    /* من .08 → .05 */
}

/* -------------------------------------------------------------------
   G. SECTION DIVIDER LINE — الخط الفاصل بين الأقسام (errica §3)
------------------------------------------------------------------- */
.section-arch-divider {
    display: flex;
    align-items: center;
    gap: var(--sp-lg);
    padding-block: var(--section-py);
    opacity: .12;
    pointer-events: none;
}

.section-arch-divider::before,
.section-arch-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--chalk), transparent);
}

/* -------------------------------------------------------------------
   H. PLAIN LANGUAGE BADGES — تصنيفات بلغة بسيطة (errica §4)
   "بدون مصطلحات معقدة" / "نتائج قابلة للقياس"
------------------------------------------------------------------- */
.plain-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-sm);
    margin-block: var(--sp-lg);
}

.plain-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem 1rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--glass-border);
    font-size: var(--fs-xs);
    color: var(--text-secondary);
    background: var(--surface-dark);
    letter-spacing: .05em;
    transition: border-color var(--t-normal), color var(--t-normal);
}

.plain-badge::before {
    content: '✓';
    color: var(--teal);
    font-size: .8rem;
}

.plain-badge:hover {
    border-color: var(--teal);
    color: var(--chalk);
}