/* =====================================================================
   H&J Auto — main stylesheet
   Dark automotive theme · brand #00b5fb · responsive · LTR + RTL
   ===================================================================== */

:root {
    --brand: #00b5fb;
    --brand-600: #00a2e6;
    --brand-700: #0a86c4;
    --brand-soft: rgba(0, 181, 251, 0.14);
    --brand-glow: rgba(0, 181, 251, 0.40);

    --bg: #0a0d12;
    --bg-2: #0e131a;
    --surface: #141b24;
    --surface-2: #19222e;
    --line: rgba(255, 255, 255, 0.09);
    --line-2: rgba(255, 255, 255, 0.16);

    --text: #eaf1f8;
    --text-dim: #9fadbd;
    --text-mute: #74818f;

    --success: #25d366;

    --radius: 16px;
    --radius-sm: 12px;
    --radius-lg: 24px;
    --maxw: 1180px;

    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.25);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    --shadow-brand: 0 14px 40px rgba(0, 124, 173, 0.35);

    --font: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --header-h: 76px;
}

body.rtl {
    --font: 'Tajawal', 'Poppins', system-ui, Segoe UI, sans-serif;
}

/* ---------- Reset / base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

section { scroll-margin-top: calc(var(--header-h) + 12px); }

.container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: 24px;
}

.section { padding-block: 104px; position: relative; }
.section.about { background: var(--bg-2); }
.section.why { background: var(--bg-2); }
.section.contact { background: var(--bg-2); }

.icon { width: 1.4em; height: 1.4em; flex: none; }

/* ---------- Skip link ---------- */
.skip-link {
    position: absolute;
    inset-inline-start: 12px;
    top: -60px;
    background: var(--brand);
    color: #04222e;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    z-index: 200;
    transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 18px;
}
.eyebrow-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-soft);
}
.eyebrow-center { justify-content: center; }

.section-title {
    font-size: clamp(1.7rem, 3.6vw, 2.6rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.section-sub {
    color: var(--text-dim);
    max-width: 620px;
    margin-top: 14px;
    font-size: 1.04rem;
}
.section-head { text-align: center; margin-bottom: 56px; }
.section-head .section-sub { margin-inline: auto; }

.grad {
    background: linear-gradient(100deg, var(--brand) 0%, #7fe0ff 55%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.lead { font-size: 1.1rem; color: #c4cedb; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .98rem;
    line-height: 1;
    border: 1px solid transparent;
    transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease, color .2s ease;
    white-space: nowrap;
}
.btn .icon { width: 1.25em; height: 1.25em; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-600) 100%);
    color: #052430;
    box-shadow: var(--shadow-brand);
}
.btn-primary:hover { box-shadow: 0 18px 48px var(--brand-glow); }

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--line-2);
    color: var(--text);
}
.btn-ghost:hover { border-color: var(--brand); background: var(--brand-soft); }

.btn-outline {
    border-color: var(--brand);
    color: var(--brand);
    background: transparent;
}
.btn-outline:hover { background: var(--brand-soft); }

.btn-success {
    background: var(--success);
    color: #04220f;
    box-shadow: 0 14px 34px rgba(37, 211, 102, 0.28);
}
.btn-success:hover { box-shadow: 0 16px 40px rgba(37, 211, 102, 0.42); }

.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 13, 18, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
    background: rgba(10, 13, 18, 0.94);
    border-bottom-color: var(--line);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.header-inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.brand img { height: 46px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link {
    position: relative;
    padding: 8px 14px;
    font-weight: 500;
    font-size: .96rem;
    color: var(--text-dim);
    border-radius: 8px;
    transition: color .2s ease;
}
.nav-link::after {
    content: "";
    position: absolute;
    inset-inline: 14px;
    bottom: 4px;
    height: 2px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .25s ease;
    border-radius: 2px;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.nav-extras { display: flex; align-items: center; gap: 16px; }

.lang-switch {
    display: inline-flex;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px;
    gap: 2px;
}
.lang-opt {
    min-width: 34px;
    text-align: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-dim);
    transition: background .2s ease, color .2s ease;
}
.lang-opt:hover { color: var(--text); }
.lang-opt.is-active {
    background: var(--brand);
    color: #052430;
}

.nav-toggle {
    display: none;
    width: 46px; height: 46px;
    border-radius: 12px;
    border: 1px solid var(--line-2);
    background: var(--surface);
    align-items: center;
    justify-content: center;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(70px, 11vw, 130px);
    min-height: 88vh;
    display: flex;
    align-items: center;
    background: radial-gradient(120% 90% at 50% -10%, #11202c 0%, var(--bg) 55%);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .5;
}
.orb-1 {
    width: 540px; height: 540px;
    background: radial-gradient(circle, var(--brand) 0%, transparent 70%);
    top: -160px; inset-inline-end: -120px;
    animation: float 14s ease-in-out infinite;
}
.orb-2 {
    width: 460px; height: 460px;
    background: radial-gradient(circle, #1d6fa5 0%, transparent 70%);
    bottom: -180px; inset-inline-start: -120px;
    opacity: .4;
    animation: float 18s ease-in-out infinite reverse;
}
.hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(120% 80% at 50% 30%, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(120% 80% at 50% 30%, #000 0%, transparent 75%);
    opacity: .5;
}
.hero-car {
    position: absolute;
    bottom: 4%;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    width: min(1100px, 96%);
    height: auto;
    fill: none;
    stroke: rgba(0, 181, 251, 0.16);
    stroke-width: 2.5;
    filter: drop-shadow(0 0 16px rgba(0, 181, 251, 0.12));
}
.hero-car-accent { stroke: rgba(0, 181, 251, 0.4); }
body.rtl .hero-car { transform: translateX(50%) scaleX(-1); }

.hero-inner { position: relative; z-index: 2; max-width: 880px; }
.hero-title {
    font-size: clamp(2.3rem, 6vw, 4.3rem);
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 22px;
}
.hero-subtitle {
    font-size: clamp(1.02rem, 1.6vw, 1.22rem);
    color: var(--text-dim);
    max-width: 660px;
    margin-bottom: 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 52px; }
.icon-arrow { transition: transform .2s ease; }
.btn:hover .icon-arrow { transform: translateX(4px); }
body.rtl .icon-arrow { transform: scaleX(-1); }
body.rtl .btn:hover .icon-arrow { transform: scaleX(-1) translateX(4px); }

.highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 30px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}
.highlight {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-weight: 500;
    color: #cdd7e3;
    font-size: .98rem;
}
.highlight-ico {
    display: inline-flex;
    width: 40px; height: 40px;
    border-radius: 11px;
    align-items: center; justify-content: center;
    background: var(--brand-soft);
    color: var(--brand);
}
.highlight-ico .icon { width: 22px; height: 22px; }

/* ---------- About ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 56px;
    align-items: center;
}
.about-card {
    background: linear-gradient(160deg, var(--surface) 0%, #101722 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 38px 34px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.about-card::before {
    content: "";
    position: absolute;
    inset-inline-start: 0; top: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--brand), transparent);
}
.about-logo {
    background: #0b0f15;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}
.about-logo img { max-height: 84px; width: auto; }
.about-points { display: grid; gap: 14px; }
.about-points li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: #d3dbe6;
}
.icon-check {
    color: var(--brand);
    background: var(--brand-soft);
    border-radius: 50%;
    padding: 4px;
    width: 26px; height: 26px;
}
.about-body .section-title { margin-bottom: 20px; }
.about-body p { color: var(--text-dim); margin-bottom: 16px; }
.about-body .btn { margin-top: 12px; }

/* ---------- Cards grid (services) ---------- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 28px;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
    position: relative;
}
.card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 181, 251, 0.4);
    box-shadow: var(--shadow);
    background: var(--surface-2);
}
.card-ico {
    display: inline-flex;
    width: 58px; height: 58px;
    border-radius: 15px;
    align-items: center; justify-content: center;
    background: var(--brand-soft);
    color: var(--brand);
    margin-bottom: 20px;
    transition: background .25s ease, color .25s ease;
}
.card-ico .icon { width: 28px; height: 28px; }
.card:hover .card-ico { background: var(--brand); color: #052430; }
.card-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.card-text { color: var(--text-dim); font-size: .98rem; }

/* ---------- Why us ---------- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.why-item {
    display: flex;
    gap: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 24px;
    transition: transform .25s ease, border-color .25s ease;
}
.why-item:hover { transform: translateY(-4px); border-color: rgba(0,181,251,.35); }
.why-ico {
    flex: none;
    width: 50px; height: 50px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%);
    color: #052430;
}
.why-ico .icon { width: 25px; height: 25px; }
.why-title { font-size: 1.08rem; font-weight: 700; margin-bottom: 6px; }
.why-text { color: var(--text-dim); font-size: .94rem; }

/* ---------- Process ---------- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    counter-reset: step;
}
.process-step {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 26px;
    position: relative;
    overflow: hidden;
}
.process-num {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.4px rgba(0, 181, 251, 0.55);
    display: block;
    margin-bottom: 16px;
}
.process-title { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; }
.process-text { color: var(--text-dim); font-size: .94rem; }
.process-step::after {
    content: "";
    position: absolute;
    inset-inline-end: -1px; top: 18px;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--brand-soft), transparent 70%);
}

/* ---------- Gallery ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.gallery-item {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface);
}
.gallery-item img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 2;
    transition: transform .5s ease;
}
.gallery-item img.is-missing { opacity: 0; visibility: hidden; }
.gallery-item:hover img:not(.is-missing) { transform: scale(1.07); }

.gallery-ph {
    position: absolute; inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background:
        radial-gradient(120% 100% at 20% 0%, rgba(0,181,251,.18), transparent 55%),
        linear-gradient(160deg, #14202c 0%, #0c1118 100%);
    color: rgba(255,255,255,.30);
}
.gallery-ph b { font-size: 1.05rem; letter-spacing: .14em; font-weight: 700; }
.gallery-ph-ico { width: 58px; height: 58px; color: rgba(0,181,251,.45); }
.gallery-item:nth-child(3n+2) .gallery-ph { background: radial-gradient(120% 100% at 80% 0%, rgba(0,181,251,.16), transparent 55%), linear-gradient(160deg, #101a24 0%, #0b0f15 100%); }
.gallery-item:nth-child(3n) .gallery-ph { background: radial-gradient(120% 120% at 50% 100%, rgba(0,181,251,.16), transparent 55%), linear-gradient(160deg, #16222e 0%, #0c1219 100%); }

.gallery-hover {
    position: absolute; inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 124, 173, 0.32);
    color: #fff;
    opacity: 0;
    transition: opacity .25s ease;
}
.gallery-hover .icon { width: 34px; height: 34px; }
.gallery-item:hover .gallery-hover { opacity: 1; }
.gallery-cta { text-align: center; margin-top: 40px; }

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 44px;
}
.contact-intro .section-title { margin-bottom: 16px; }
.contact-cards { display: grid; gap: 14px; margin: 30px 0; }
.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    transition: border-color .2s ease;
}
.contact-card:hover { border-color: rgba(0,181,251,.35); }
.contact-ico {
    flex: none;
    width: 46px; height: 46px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center; justify-content: center;
    background: var(--brand-soft);
    color: var(--brand);
}
.contact-label {
    display: block;
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-mute);
    margin-bottom: 2px;
}
.contact-value { font-weight: 600; color: var(--text); word-break: break-word; }
a.contact-value:hover { color: var(--brand); }
.contact-social { display: flex; flex-wrap: wrap; gap: 12px; }

.contact-form-wrap {
    background: linear-gradient(160deg, var(--surface) 0%, #101722 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 34px 30px;
    box-shadow: var(--shadow);
}
.contact-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
    font-size: .82rem;
    font-weight: 500;
    color: var(--text-dim);
}
.req { color: var(--brand); }
.field input, .field textarea {
    background: var(--bg);
    border: 1px solid var(--line-2);
    border-radius: 11px;
    padding: 13px 15px;
    color: var(--text);
    font-family: inherit;
    font-size: .98rem;
    transition: border-color .2s ease, box-shadow .2s ease;
    width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-mute); }
.field input:focus, .field textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    border-radius: 12px;
    margin-bottom: 22px;
    font-weight: 500;
    font-size: .96rem;
}
.alert-success { background: rgba(37, 211, 102, 0.12); border: 1px solid rgba(37, 211, 102, 0.4); color: #b6f5cd; }
.alert-success .icon { color: var(--success); }
.alert-error { background: rgba(255, 86, 86, 0.1); border: 1px solid rgba(255, 86, 86, 0.4); color: #ffc7c7; }

.map-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    line-height: 0;
}
.map-wrap iframe { filter: grayscale(0.3) invert(0.92) hue-rotate(180deg) contrast(0.9); }

/* ---------- Footer ---------- */
.site-footer { background: #07090d; border-top: 1px solid var(--line); }
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 44px;
    padding-block: 64px 48px;
}
.footer-logo { height: 56px; width: auto; margin-bottom: 20px; }
.footer-about { color: var(--text-dim); font-size: .96rem; max-width: 340px; margin-bottom: 22px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 42px; height: 42px;
    border-radius: 11px;
    border: 1px solid var(--line-2);
    display: inline-flex;
    align-items: center; justify-content: center;
    color: var(--text-dim);
    transition: all .2s ease;
}
.footer-social a:hover { background: var(--brand); color: #052430; border-color: var(--brand); transform: translateY(-3px); }
.footer-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 20px; }
.footer-links { display: grid; gap: 11px; }
.footer-links a { color: var(--text-dim); transition: color .2s ease; }
.footer-links a:hover { color: var(--brand); }
.footer-contact { display: grid; gap: 14px; }
.footer-contact li { display: flex; align-items: center; gap: 12px; color: var(--text-dim); }
.footer-contact .icon { color: var(--brand); width: 20px; height: 20px; }
.footer-contact a:hover { color: var(--brand); }

.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    padding-block: 22px;
}
.footer-legal { color: var(--text-mute); font-size: .85rem; }
.footer-copy { color: var(--text-mute); font-size: .85rem; }

/* ---------- Floating buttons ---------- */
.fab-whatsapp {
    position: fixed;
    inset-inline-end: 22px;
    bottom: 24px;
    z-index: 90;
    width: 58px; height: 58px;
    border-radius: 50%;
    background: var(--success);
    color: #04220f;
    display: inline-flex;
    align-items: center; justify-content: center;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
    animation: pulse 2.6s ease-in-out infinite;
    transition: transform .2s ease;
}
.fab-whatsapp:hover { transform: scale(1.08); }
.fab-whatsapp .icon { width: 30px; height: 30px; }

.back-to-top {
    position: fixed;
    inset-inline-end: 26px;
    bottom: 94px;
    z-index: 90;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--line-2);
    color: var(--text);
    display: inline-flex;
    align-items: center; justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .25s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--brand); color: #052430; border-color: var(--brand); }
.icon-up { transform: rotate(180deg); }

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(5, 8, 12, 0.92);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 12px; box-shadow: var(--shadow); }
.lightbox-close {
    position: absolute;
    top: 22px; inset-inline-end: 22px;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--line-2);
    color: var(--text);
    display: inline-flex;
    align-items: center; justify-content: center;
}
.lightbox-close:hover { background: var(--brand); color: #052430; }

/* ---------- Reveal animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .6s ease, transform .6s ease;
    transition-delay: var(--d, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Animations ---------- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-26px); }
}
@keyframes pulse {
    0% { box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45), 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
    .nav-toggle { display: inline-flex; }
    .main-nav {
        position: fixed;
        inset-block: var(--header-h) 0;
        inset-inline-end: 0;
        width: min(330px, 86vw);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--bg-2);
        border-inline-start: 1px solid var(--line);
        padding: 26px 24px;
        transform: translateX(110%);
        transition: transform .3s ease;
        overflow-y: auto;
        box-shadow: var(--shadow);
    }
    body.rtl .main-nav { transform: translateX(-110%); }
    .main-nav.open { transform: translateX(0); }
    .nav-list { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
    .nav-link { padding: 14px 10px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
    .nav-link::after { display: none; }
    .nav-extras { flex-direction: column; align-items: stretch; gap: 18px; margin-top: 24px; width: 100%; }
    .lang-switch { justify-content: center; }
    .nav-cta { width: 100%; }
    .section { padding-block: 72px; }
    .section-head { margin-bottom: 42px; }
}

@media (max-width: 620px) {
    .cards-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .highlights { gap: 14px 20px; }
    .highlight { width: calc(50% - 12px); font-size: .9rem; }
    .hero { min-height: auto; }
    .contact-form-wrap { padding: 26px 20px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom-inner { flex-direction: column; }
}

@media (max-width: 380px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .highlight { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .orb, .fab-whatsapp { animation: none; }
    * { transition-duration: .01ms !important; }
}
