/* =========================================================
   شركة السلامة - النسخة الاحترافية
   الفكرة: صفحات فاتحة هادئة تتخللها ألواح كحلية تشبه
   لوحات التحكم في غرف السلامة، والذهبي للتأكيد فقط.
   ========================================================= */

:root {
    /* الألوان */
    --navy-950: #06111f;
    --navy-900: #0b1d33;
    --navy-800: #112a47;
    --navy-700: #1b3a5e;
    --gold: #c9a45c;
    --gold-strong: #b48a3e;
    --gold-soft: #ead7a8;
    --paper: #f3f5f8;
    --white: #ffffff;
    --ink: #0d1b2a;
    --muted: #5a6a7d;
    --line: #dce3eb;
    --line-dark: rgba(234, 215, 168, 0.16);
    --signal: #d0503a;
    --ok: #3fae7a;

    /* الخطوط */
    --font-display: "Cairo", "Segoe UI", Tahoma, sans-serif;
    --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;

    /* المقاسات */
    --step--1: 0.875rem;
    --step-0: 1rem;
    --step-1: 1.2rem;
    --step-2: 1.5rem;
    --step-3: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
    --step-4: clamp(2.2rem, 1.4rem + 3vw, 3.6rem);

    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 18px 50px -20px rgba(6, 17, 31, 0.28);
    --container: 1200px;
    --header-h: 76px;
}

/* ===== الأساسيات ===== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: 1.85;
    color: var(--ink);
    background: var(--paper);
    overflow-x: clip;
}

html[lang="en"] body {
    line-height: 1.7;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: 0;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    line-height: 1.35;
    text-wrap: balance;
}

::selection {
    background: var(--gold-soft);
    color: var(--navy-950);
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
}

@media (min-width: 700px) {
    .container {
        padding-left: max(32px, env(safe-area-inset-left, 0px));
        padding-right: max(32px, env(safe-area-inset-right, 0px));
    }
}

.section {
    padding-block: clamp(64px, 9vw, 120px);
}

.section--white {
    background: var(--white);
}

.section--navy {
    background: var(--navy-900);
    color: var(--white);
}

.skip-link {
    position: absolute;
    inset-inline-start: 16px;
    top: -80px;
    z-index: 100;
    padding: 10px 18px;
    background: var(--gold);
    color: var(--navy-950);
    font-weight: 700;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.skip-link:focus {
    top: 0;
}

/* ===== عناوين الأقسام ===== */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: var(--step--1);
    font-weight: 700;
    color: var(--gold-strong);
    letter-spacing: 0.02em;
}

html[lang="en"] .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: currentColor;
}

.section--navy .eyebrow {
    color: var(--gold);
}

.section-head {
    display: grid;
    gap: 14px;
    max-width: 680px;
    margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head h2 {
    font-size: var(--step-3);
    font-weight: 800;
}

.section-head p {
    color: var(--muted);
    font-size: var(--step-1);
    line-height: 1.8;
}

.section--navy .section-head p {
    color: #b9c6d6;
}

/* ===== الأزرار ===== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 26px;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--step-0);
    border: 1px solid transparent;
    transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
    white-space: nowrap;
}

.btn svg {
    width: 20px;
    height: 20px;
    flex: none;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--gold {
    background: var(--gold);
    color: var(--navy-950);
}

.btn--gold:hover {
    background: var(--gold-soft);
}

.btn--ghost {
    border-color: rgba(255, 255, 255, 0.28);
    color: var(--white);
}

.btn--ghost:hover {
    border-color: var(--gold);
    color: var(--gold-soft);
}

.btn--ink {
    background: var(--navy-900);
    color: var(--white);
}

.btn--ink:hover {
    background: var(--navy-700);
}

.btn--whatsapp {
    background: #1fa855;
    color: var(--white);
}

.btn--whatsapp:hover {
    background: #22bd5f;
}

.arrow {
    display: inline-block;
    transition: transform 0.25s;
}

html[dir="ltr"] .arrow {
    transform: scaleX(-1);
}

/* ===== الشريط العلوي ===== */

.topbar {
    background: var(--navy-950);
    color: #a9b8ca;
    font-size: 0.8rem;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    min-height: 40px;
}

.topbar a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-soft);
    direction: ltr;
}

.topbar svg {
    width: 14px;
    height: 14px;
}

@media (max-width: 560px) {
    .topbar-note {
        display: none;
    }

    .topbar .container {
        justify-content: center;
    }
}

/* ===== الهيدر ===== */

.header {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 50;
    background: rgba(11, 29, 51, 0.92);
    border-bottom: 1px solid var(--line-dark);
    color: var(--white);
}

.header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.header .container {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: var(--header-h);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-inline-end: auto;
}

.brand-mark {
    position: relative;
    width: 66px;
    height: 54px;
    flex: none;
    display: grid;
    place-items: center;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* الشعار موجود: نخفي الأيقونة الاحتياطية */
.brand-mark img:not(.is-missing) + svg {
    display: none;
}

.brand-mark img.is-missing {
    display: none;
}

.brand-mark svg {
    width: 30px;
    height: 30px;
    color: var(--gold);
}

.brand-name {
    display: grid;
    line-height: 1.3;
}

.brand-name strong {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
}

.brand-name small {
    font-size: 0.72rem;
    color: #a9b8ca;
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav a {
    position: relative;
    padding: 8px 12px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: #d5deea;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.nav a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
}

.nav a.is-active {
    color: var(--gold-soft);
}

.nav a.is-active::after {
    content: "";
    position: absolute;
    inset-inline: 12px;
    bottom: 2px;
    height: 2px;
    background: var(--gold);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-btn {
    min-width: 46px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 6px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    transition: border-color 0.2s, color 0.2s;
}

.lang-btn:hover {
    border-color: var(--gold);
    color: var(--gold-soft);
}

.header .btn {
    min-height: 40px;
    padding: 0 16px;
    font-size: 0.9rem;
}

.menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(201, 164, 92, 0.6);
    border-radius: 10px;
    place-items: center;
    color: var(--gold);
}

.menu-btn svg {
    width: 22px;
    height: 22px;
}

/* القائمة الجانبية للجوال */
.drawer {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
}

.drawer.is-open {
    display: block;
}

.drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 17, 31, 0.6);
}

.drawer-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    inset-inline-end: 0;
    width: min(340px, 86vw);
    padding: calc(20px + env(safe-area-inset-top, 0px)) 22px calc(28px + env(safe-area-inset-bottom, 0px));
    background: var(--navy-900);
    border-inline-start: 1px solid var(--line-dark);
    color: var(--white);
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    animation: drawer-in 0.3s ease;
}

html[dir="ltr"] .drawer-panel {
    animation-name: drawer-in-ltr;
}

@keyframes drawer-in {
    from {
        transform: translateX(-100%);
    }
}

@keyframes drawer-in-ltr {
    from {
        transform: translateX(100%);
    }
}

.drawer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.drawer-top strong {
    font-family: var(--font-display);
    color: var(--gold-soft);
}

.drawer-close {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.drawer-close svg {
    width: 20px;
    height: 20px;
}

.drawer-panel a:not(.btn) {
    padding: 13px 14px;
    border-radius: 8px;
    font-family: var(--font-display);
    font-weight: 600;
    border: 1px solid transparent;
}

.drawer-panel a:not(.btn):hover,
.drawer-panel a.is-active {
    border-color: var(--line-dark);
    background: rgba(201, 164, 92, 0.08);
    color: var(--gold-soft);
}

.drawer-panel .btn {
    margin-top: 16px;
}

body.drawer-open {
    overflow: hidden;
}

@media (max-width: 1080px) {
    .nav,
    .header .btn {
        display: none;
    }

    .menu-btn {
        display: grid;
    }
}

@media (max-width: 420px) {
    .brand-name small {
        display: none;
    }

    .brand-mark {
        width: 54px;
        height: 44px;
    }
}

/* ===== الواجهة الرئيسية ===== */

.hero {
    position: relative;
    background: var(--navy-900);
    color: var(--white);
    overflow: hidden;
    isolation: isolate;
}

/* خطوط المخطط الهندسي في الخلفية */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(234, 215, 168, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(234, 215, 168, 0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
}

.hero > .container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
    padding-block: clamp(56px, 8vw, 104px);
}

.hero-copy {
    display: grid;
    gap: 22px;
    min-width: 0;
}

.hero h1 {
    font-size: var(--step-4);
    font-weight: 900;
    line-height: 1.3;
}

.hero h1 em {
    font-style: normal;
    color: var(--gold);
}

.hero-lead {
    font-size: var(--step-1);
    color: #c3cfdd;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 10px;
    font-size: 0.92rem;
    color: #a9b8ca;
    list-style: none;
}

.hero-points li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-points svg {
    width: 16px;
    height: 16px;
    color: var(--gold);
}

/* لوحة حالة الأنظمة */
.panel {
    min-width: 0;
    background: linear-gradient(180deg, var(--navy-800), var(--navy-950));
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line-dark);
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: #a9b8ca;
}

.panel-head .live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ok);
    font-weight: 700;
}

.panel-head .live::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 4px rgba(63, 174, 122, 0.18);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    50% {
        box-shadow: 0 0 0 8px rgba(63, 174, 122, 0);
    }
}

.panel-rows {
    display: grid;
}

.panel-row {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line-dark);
    transition: background 0.2s;
}

.panel-row:last-child {
    border-bottom: 0;
}

a.panel-row:hover {
    background: rgba(201, 164, 92, 0.06);
}

.panel-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(201, 164, 92, 0.1);
    color: var(--gold);
}

.panel-icon svg {
    width: 22px;
    height: 22px;
}

.panel-row h3 {
    font-size: 1rem;
    font-weight: 700;
}

.panel-row p {
    font-size: 0.82rem;
    color: #92a3b8;
    line-height: 1.6;
}

.panel-meter {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 26px;
}

.panel-meter span {
    width: 4px;
    border-radius: 2px;
    background: var(--gold);
    opacity: 0.85;
}

.panel-foot {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.18);
    font-size: 0.75rem;
    color: #7f91a7;
    font-variant-numeric: tabular-nums;
}

/* شريط المجالات أسفل الواجهة */
.hero-strip {
    border-top: 1px solid var(--line-dark);
    background: rgba(0, 0, 0, 0.18);
}

.hero-strip ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    list-style: none;
}

.hero-strip li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 8px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    color: #d5deea;
    text-align: center;
}

.hero-strip li + li {
    border-inline-start: 1px solid var(--line-dark);
}

.hero-strip svg {
    width: 20px;
    height: 20px;
    color: var(--gold);
    flex: none;
}

@media (max-width: 900px) {
    .hero > .container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .hero-actions .btn {
        flex: 1 1 100%;
    }

    .hero-strip li {
        flex-direction: column;
        gap: 4px;
        font-size: 0.8rem;
    }
}

/* ===== من نحن ===== */

.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
}

.about-media {
    position: relative;
    min-width: 0;
}

.photo {
    position: relative;
    aspect-ratio: 4 / 3;
    max-width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    background:
        radial-gradient(circle at 70% 30%, rgba(201, 164, 92, 0.25), transparent 55%),
        linear-gradient(150deg, var(--navy-700), var(--navy-950));
    display: grid;
    place-items: center;
}

.photo > svg {
    width: 34%;
    height: auto;
    color: rgba(234, 215, 168, 0.55);
}

.photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo img.is-missing {
    display: none;
}

.about-media .photo {
    aspect-ratio: 5 / 6;
}

.about-badge {
    position: absolute;
    inset-inline-start: -14px;
    bottom: 28px;
    display: grid;
    gap: 2px;
    padding: 16px 20px;
    background: var(--gold);
    color: var(--navy-950);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    font-family: var(--font-display);
}

.about-badge strong {
    font-size: 1.05rem;
}

.about-badge span {
    font-size: 0.82rem;
}

.about-copy {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.about-copy h2 {
    font-size: var(--step-3);
    font-weight: 800;
}

.about-copy > p {
    color: var(--muted);
}

.check-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
    list-style: none;
    margin-top: 6px;
}

.check-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-weight: 600;
}

.check-list svg {
    width: 20px;
    height: 20px;
    flex: none;
    margin-top: 4px;
    color: var(--gold-strong);
}

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

    .about-media {
        max-width: 520px;
    }

    .about-media .photo {
        aspect-ratio: 4 / 3;
    }

    .about-badge {
        inset-inline-start: 12px;
    }
}

@media (max-width: 560px) {
    .check-list {
        grid-template-columns: 1fr;
    }
}

/* ===== المجالات الثلاثة الرئيسية ===== */

.pillars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.pillar {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.pillar:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: transparent;
}

.pillar .photo {
    border-radius: 0;
    aspect-ratio: 16 / 10;
}

.pillar-body {
    display: grid;
    gap: 10px;
    padding: 24px;
    flex: 1;
    align-content: start;
}

.pillar-body h3 {
    font-size: var(--step-2);
    font-weight: 800;
}

.pillar-body p {
    color: var(--muted);
}

.pillar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin-top: 4px;
}

.pillar-tags li {
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--paper);
    font-size: 0.8rem;
    color: var(--navy-700);
}

.pillar-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-top: 1px solid var(--line);
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--gold-strong);
}

.pillar:hover .pillar-link .arrow {
    transform: translateX(-4px);
}

html[dir="ltr"] .pillar:hover .pillar-link .arrow {
    transform: scaleX(-1) translateX(-4px);
}

@media (max-width: 960px) {
    .pillars {
        grid-template-columns: 1fr;
        max-width: 560px;
    }
}

/* ===== كل الخدمات ===== */

.services-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line-dark);
    border-inline-start: 1px solid var(--line-dark);
}

.service {
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 30px 28px;
    border-bottom: 1px solid var(--line-dark);
    border-inline-end: 1px solid var(--line-dark);
    transition: background 0.25s;
}

.service:hover {
    background: rgba(201, 164, 92, 0.05);
}

.service-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid var(--line-dark);
    color: var(--gold);
}

.service-icon svg {
    width: 24px;
    height: 24px;
}

.service h3 {
    font-size: var(--step-1);
    font-weight: 700;
}

.service p {
    color: #b9c6d6;
    font-size: 0.95rem;
}

.service a {
    margin-top: 4px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--gold-soft);
}

.service a:hover {
    color: var(--gold);
}

@media (max-width: 960px) {
    .services-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .services-list {
        grid-template-columns: 1fr;
    }
}

/* ===== خطوات العمل ===== */

.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    list-style: none;
    counter-reset: step;
}

.step {
    position: relative;
    display: grid;
    gap: 10px;
    align-content: start;
    padding-top: 28px;
    border-top: 2px solid var(--line);
    counter-increment: step;
}

.step::before {
    content: counter(step);
    position: absolute;
    top: -17px;
    inset-inline-start: 0;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--navy-900);
    color: var(--gold);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.9rem;
}

.step:first-child {
    border-top-color: var(--gold);
}

.step h3 {
    font-size: var(--step-1);
    font-weight: 800;
}

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

@media (max-width: 900px) {
    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 44px;
    }
}

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

/* ===== لماذا نحن + الرؤية ===== */

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 6vw, 80px);
    align-items: start;
}

.why-items {
    display: grid;
    gap: 14px;
}

.why-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 16px;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.why-item .service-icon {
    border-color: var(--line);
    color: var(--gold-strong);
}

.why-item h3 {
    font-size: var(--step-1);
    font-weight: 700;
}

.why-item p {
    color: var(--muted);
    font-size: 0.95rem;
}

.vision {
    display: grid;
    gap: 0;
    background: var(--navy-900);
    color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
}

.vision > div {
    display: grid;
    gap: 8px;
    padding: 30px;
}

.vision > div + div {
    border-top: 1px solid var(--line-dark);
}

.vision h3 {
    font-size: var(--step-2);
    color: var(--gold);
}

.vision p {
    color: #c3cfdd;
    font-size: var(--step-1);
    line-height: 1.8;
}

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

/* ===== شريط الدعوة ===== */

.cta-band {
    background: var(--gold);
    color: var(--navy-950);
}

.cta-band .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding-block: clamp(40px, 6vw, 64px);
}

.cta-band h2 {
    font-size: var(--step-3);
    font-weight: 900;
}

.cta-band p {
    font-size: var(--step-1);
}

.cta-band .cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 800px) {
    .cta-band .container {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    .cta-band .cta-actions,
    .cta-band .btn {
        width: 100%;
    }
}

/* ===== التواصل ===== */

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(28px, 5vw, 64px);
    align-items: start;
}

.contact-cards {
    display: grid;
    gap: 12px;
}

.contact-card {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color 0.25s, transform 0.25s;
}

.contact-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}

.contact-card .service-icon {
    border-color: var(--line);
    color: var(--gold-strong);
}

.contact-card span {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
}

.contact-card strong {
    font-family: var(--font-display);
    font-size: var(--step-1);
}

.contact-card .arrow {
    color: var(--gold-strong);
}

.quote-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: clamp(22px, 4vw, 36px);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.quote-form h3 {
    grid-column: 1 / -1;
    font-size: var(--step-2);
    font-weight: 800;
}

.quote-form .hint {
    grid-column: 1 / -1;
    margin-top: -10px;
    color: var(--muted);
    font-size: 0.9rem;
}

.field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.field--full {
    grid-column: 1 / -1;
}

.field label {
    font-weight: 600;
    font-size: 0.9rem;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s, background 0.2s;
}

.field textarea {
    min-height: 110px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--white);
}

.field .error {
    display: none;
    font-size: 0.82rem;
    color: var(--signal);
}

.field.has-error input,
.field.has-error select {
    border-color: var(--signal);
}

.field.has-error .error {
    display: block;
}

.quote-form .btn {
    grid-column: 1 / -1;
}

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

@media (max-width: 520px) {
    .quote-form {
        grid-template-columns: 1fr;
    }
}

/* ===== الفوتر ===== */

.footer {
    background: var(--navy-950);
    color: #a9b8ca;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    padding-block: clamp(48px, 7vw, 80px);
}

.footer .brand {
    color: var(--white);
    margin-bottom: 14px;
}

.footer .footer-title {
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 14px;
}

.footer-links {
    display: grid;
    gap: 8px;
    list-style: none;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-block: 20px;
    font-size: 0.85rem;
}

.footer-bottom a:hover {
    color: var(--gold-soft);
}

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

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

/* ===== زر واتساب العائم ===== */

.float-whatsapp {
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    left: calc(20px + env(safe-area-inset-left, 0px));
    z-index: 40;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #1fa855;
    color: var(--white);
    box-shadow: 0 12px 30px -8px rgba(31, 168, 85, 0.6);
    transition: transform 0.25s;
}

.float-whatsapp:hover {
    transform: scale(1.06);
}

.float-whatsapp svg {
    width: 28px;
    height: 28px;
}

html[dir="ltr"] .float-whatsapp {
    left: auto;
    right: calc(20px + env(safe-area-inset-right, 0px));
}

/* ===== صفحات الخدمات ===== */

.page-hero {
    background: var(--navy-900);
    color: var(--white);
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(234, 215, 168, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(234, 215, 168, 0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, #000, transparent);
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent);
}

.page-hero .container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
    padding-block: clamp(44px, 7vw, 88px);
}

.page-hero-copy {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.88rem;
    color: #92a3b8;
    list-style: none;
}

.breadcrumb a:hover {
    color: var(--gold-soft);
}

.breadcrumb li + li::before {
    content: "/";
    margin-inline-end: 8px;
    color: #5d6f86;
}

.page-hero h1 {
    font-size: var(--step-4);
    font-weight: 900;
}

.page-hero p {
    font-size: var(--step-1);
    color: #c3cfdd;
    max-width: 580px;
}

.page-hero .photo {
    aspect-ratio: 4 / 3;
    border: 1px solid var(--line-dark);
}

@media (max-width: 900px) {
    .page-hero .container {
        grid-template-columns: 1fr;
    }

    .page-hero .photo {
        max-width: 520px;
    }
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.offer {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.offer:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.offer .photo {
    border-radius: 0;
    aspect-ratio: 16 / 10;
}

.offer-body {
    display: grid;
    gap: 8px;
    align-content: start;
    padding: 22px;
    flex: 1;
}

.offer-body h3 {
    font-size: var(--step-1);
    font-weight: 800;
}

.offer-body p {
    color: var(--muted);
    font-size: 0.95rem;
}

.offer-request {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 22px;
    border-top: 1px solid var(--line);
    font-family: var(--font-display);
    font-weight: 700;
    color: #178a45;
    transition: background 0.2s;
}

.offer-request:hover {
    background: #f1faf4;
}

.offer-request svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 960px) {
    .offer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

.other-services {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.other-services .contact-card {
    background: var(--paper);
}

@media (max-width: 700px) {
    .other-services {
        grid-template-columns: 1fr;
    }
}

/* ===== صفحة 404 ===== */

.not-found {
    min-height: 70vh;
    display: grid;
    place-items: center;
    text-align: center;
}

.not-found .container {
    display: grid;
    gap: 16px;
    justify-items: center;
    padding-block: 80px;
}

.not-found strong {
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 7rem);
    line-height: 1;
    color: var(--gold);
}

/* ===== تقليل الحركة ===== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ===== الأيقونات ===== */

.sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.ic {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* أعمدة المؤشر في لوحة الأنظمة */
.panel-meter span {
    height: 50%;
    animation: meter 2.4s ease-in-out infinite;
}

.panel-meter span:nth-child(1) { height: 40%; animation-delay: -0.2s; }
.panel-meter span:nth-child(2) { height: 75%; animation-delay: -0.9s; }
.panel-meter span:nth-child(3) { height: 55%; animation-delay: -1.4s; }
.panel-meter span:nth-child(4) { height: 90%; animation-delay: -0.5s; }
.panel-meter span:nth-child(5) { height: 65%; animation-delay: -1.8s; }

.panel-row:nth-child(2) .panel-meter span { animation-duration: 2.9s; }
.panel-row:nth-child(3) .panel-meter span { animation-duration: 2.1s; }

@keyframes meter {
    50% {
        transform: scaleY(0.6);
    }
}

.panel-meter span {
    transform-origin: bottom;
}

/* =========================================================
   لمسات احترافية
   ========================================================= */

/* ===== الشعار المتحرك ===== */

.brand-mark {
    width: 74px;
    height: 60px;
    animation: logo-float 5s ease-in-out infinite;
    filter: drop-shadow(0 6px 14px rgba(201, 164, 92, 0.25));
}

/* لمعة ذهبية تمر على الشعار نفسه */
.brand-mark::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 244, 214, 0.95) 50%, transparent 65%);
    background-size: 250% 100%;
    background-position: 130% 0;
    -webkit-mask-image: url("images/logo-new.png");
    mask-image: url("images/logo-new.png");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    mix-blend-mode: screen;
    animation: logo-shine 4.5s ease-in-out infinite;
}

.brand:hover .brand-mark {
    filter: drop-shadow(0 8px 20px rgba(201, 164, 92, 0.45));
}

@keyframes logo-float {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-4px) rotate(-1.5deg);
    }
}

@keyframes logo-shine {
    0%,
    55% {
        background-position: 130% 0;
    }

    85%,
    100% {
        background-position: -30% 0;
    }
}

.footer .brand-mark {
    width: 92px;
    height: 74px;
}

@media (max-width: 420px) {
    .brand-mark {
        width: 60px;
        height: 48px;
    }
}

/* ===== الهيدر عند التمرير ===== */

.header {
    transition: background 0.3s, box-shadow 0.3s;
}

.header.is-scrolled {
    background: rgba(6, 17, 31, 0.96);
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5);
}

/* ===== الواجهة ===== */

.hero h1 {
    letter-spacing: -0.01em;
}

/* توهج ذهبي هادئ خلف اللوحة */
.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 560px;
    height: 560px;
    inset-inline-start: -120px;
    top: 10%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 164, 92, 0.16), transparent 65%);
    animation: glow-drift 12s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes glow-drift {
    to {
        transform: translate(60px, 40px) scale(1.1);
    }
}

.hero-copy > * {
    animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.24s; }
.hero-copy > :nth-child(5) { animation-delay: 0.32s; }

.hero .panel,
.page-hero .photo {
    animation: rise 1s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
}

/* لمعة على الزر الذهبي */
.btn--gold {
    position: relative;
    overflow: hidden;
}

.btn--gold::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.7s ease;
}

.btn--gold:hover::after {
    transform: translateX(120%);
}

/* ===== قسم الأرقام ===== */

.stats {
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
    display: grid;
    gap: 4px;
    align-content: start;
    padding: clamp(28px, 4vw, 44px) clamp(16px, 2.5vw, 32px);
}

.stat + .stat {
    border-inline-start: 1px solid var(--line);
}

.stat-num {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 2rem + 2.4vw, 3.8rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--navy-900);
    font-variant-numeric: tabular-nums;
}

.stat-num::after {
    content: "";
    display: block;
    width: 36px;
    height: 3px;
    margin-top: 12px;
    background: var(--gold);
    border-radius: 2px;
}

.stat-label {
    margin-top: 8px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--step-1);
}

.stat-note {
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stat:nth-child(3) {
        border-inline-start: 0;
    }

    .stat:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }
}

/* ===== عناوين الأقسام ===== */

.section-head h2 {
    letter-spacing: -0.01em;
}

/* ===== ظهور الأقسام عند التمرير =====
   العناصر ظاهرة دائمًا، والحركة تشتغل فقط إذا السكربت جاهز */

.js-reveal .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--delay, 0s);
}

.js-reveal .reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ===== بطاقات أكثر فخامة ===== */

.pillar .photo img,
.offer .photo img {
    transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.pillar:hover .photo img,
.offer:hover .photo img {
    transform: scale(1.05);
}

.pillar,
.offer,
.why-item,
.contact-card {
    box-shadow: 0 1px 2px rgba(6, 17, 31, 0.04);
}

.service-icon {
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.service:hover .service-icon {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy-950);
}

@media (prefers-reduced-motion: reduce) {
    .js-reveal .reveal {
        opacity: 1;
        transform: none;
    }
}

/* =========================================================
   التصميم المؤسسي: واجهة بالصور ومجالات بطاقات كبيرة
   ========================================================= */

.btn--lg {
    min-height: 56px;
    padding: 0 30px;
    font-size: 1.05rem;
}

/* ===== الواجهة بالصور ===== */

.hero {
    display: flex;
    flex-direction: column;
    min-height: clamp(600px, 86vh, 860px);
    background: var(--navy-950);
}

.hero::before {
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(6, 17, 31, 0.15) 0%, rgba(6, 17, 31, 0.78) 55%, rgba(6, 17, 31, 0.94) 100%),
        linear-gradient(0deg, rgba(6, 17, 31, 0.95) 0%, transparent 45%);
    background-size: auto;
    mask-image: none;
    -webkit-mask-image: none;
}

html[dir="ltr"] .hero::before {
    background:
        linear-gradient(270deg, rgba(6, 17, 31, 0.15) 0%, rgba(6, 17, 31, 0.78) 55%, rgba(6, 17, 31, 0.94) 100%),
        linear-gradient(0deg, rgba(6, 17, 31, 0.95) 0%, transparent 45%);
}

.hero::after {
    display: none;
}

.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.hero-slide.is-active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08);
}

.hero-slide.is-active img {
    animation: ken-burns 9s ease-out forwards;
}

@keyframes ken-burns {
    from {
        transform: scale(1.12);
    }

    to {
        transform: scale(1);
    }
}

.hero > .container.hero-inner {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: center;
    grid-template-columns: none;
    padding-block: clamp(56px, 9vw, 120px) clamp(40px, 6vw, 72px);
}

.hero-copy {
    max-width: 720px;
    gap: 24px;
}

.hero h1 {
    font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.4rem);
    line-height: 1.25;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}

.hero-lead {
    color: #d8e1ec;
    font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem);
}

.hero .eyebrow {
    color: var(--gold-soft);
}

/* تبويبات المجالات أسفل الواجهة */
.hero-tabs {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(234, 215, 168, 0.18);
    background: rgba(6, 17, 31, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-tabs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-tab {
    position: relative;
    display: grid;
    gap: 2px;
    justify-items: start;
    padding: 22px 24px 26px;
    color: #9fb0c4;
    text-align: start;
    transition: color 0.3s, background 0.3s;
}

.hero-tab + .hero-tab {
    border-inline-start: 1px solid rgba(234, 215, 168, 0.14);
}

.hero-tab:hover,
.hero-tab.is-active {
    color: var(--white);
    background: rgba(201, 164, 92, 0.06);
}

.hero-tab-num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--gold);
    letter-spacing: 0.08em;
}

.hero-tab strong {
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.hero-tab span:not(.hero-tab-num) {
    font-size: 0.85rem;
    color: #8597ad;
}

.hero-tab-bar {
    position: absolute;
    inset-inline: 0;
    top: -1px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: right;
}

html[dir="ltr"] .hero-tab-bar {
    transform-origin: left;
}

.hero-tab.is-active .hero-tab-bar {
    animation: tab-progress var(--slide-time, 7s) linear forwards;
}

@keyframes tab-progress {
    to {
        transform: scaleX(1);
    }
}

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

    .hero-tab {
        display: none;
        padding: 16px 0 20px;
    }

    .hero-tab.is-active {
        display: grid;
        background: none;
    }

    .hero-tab + .hero-tab {
        border-inline-start: 0;
    }

    .hero::before {
        background: linear-gradient(0deg, rgba(6, 17, 31, 0.96) 15%, rgba(6, 17, 31, 0.7) 60%, rgba(6, 17, 31, 0.55) 100%);
    }

    html[dir="ltr"] .hero::before {
        background: linear-gradient(0deg, rgba(6, 17, 31, 0.96) 15%, rgba(6, 17, 31, 0.7) 60%, rgba(6, 17, 31, 0.55) 100%);
    }
}

/* ===== بطاقات المجالات الكبيرة ===== */

.pillars {
    gap: 18px;
}

.feature {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 520px;
    border-radius: var(--radius);
    overflow: hidden;
    color: var(--white);
    isolation: isolate;
    background: var(--navy-900);
}

.feature .photo {
    position: absolute;
    inset: 0;
    z-index: -2;
    aspect-ratio: auto;
    border-radius: 0;
}

.feature::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgba(6, 17, 31, 0.96) 10%, rgba(6, 17, 31, 0.55) 55%, rgba(6, 17, 31, 0.1) 100%);
    transition: background 0.4s;
}

.feature:hover::before {
    background: linear-gradient(0deg, rgba(6, 17, 31, 0.98) 20%, rgba(11, 29, 51, 0.75) 65%, rgba(11, 29, 51, 0.35) 100%);
}

.feature .photo img {
    transition: transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.feature:hover .photo img {
    transform: scale(1.06);
}

.feature-body {
    display: grid;
    gap: 10px;
    padding: 30px 28px;
}

.feature-num {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--gold);
    letter-spacing: 0.1em;
    font-size: 0.9rem;
}

.feature h3 {
    font-size: var(--step-2);
    font-weight: 800;
}

.feature p {
    color: #c6d1de;
    font-size: 0.95rem;
}

.feature .pillar-tags li {
    background: rgba(255, 255, 255, 0.1);
    color: #e3e9f1;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(234, 215, 168, 0.2);
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--gold-soft);
}

.feature:hover .feature-link .arrow {
    transform: translateX(-6px);
}

html[dir="ltr"] .feature:hover .feature-link .arrow {
    transform: scaleX(-1) translateX(-6px);
}

@media (max-width: 960px) {
    .feature {
        min-height: 440px;
    }
}

/* ===== كولاج "من نحن" ===== */

.about-media {
    padding-bottom: 60px;
    padding-inline-start: 60px;
}

.about-media .about-main {
    aspect-ratio: 4 / 5;
    box-shadow: var(--shadow);
}

.about-media .about-inset {
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 48%;
    aspect-ratio: 1;
    border: 6px solid var(--white);
    box-shadow: var(--shadow);
}

.about-badge {
    inset-inline-start: auto;
    inset-inline-end: -14px;
    bottom: auto;
    top: 32px;
}

@media (max-width: 900px) {
    .about-media .about-main {
        aspect-ratio: 4 / 3;
    }

    .about-badge {
        inset-inline-end: 12px;
    }
}

@media (max-width: 520px) {
    .about-media {
        padding-inline-start: 28px;
        padding-bottom: 40px;
    }
}

/* ===== شريط الدعوة بالصورة ===== */

.cta-band--photo {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--navy-950);
    color: var(--white);
}

.cta-band--photo .cta-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-band--photo::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(6, 17, 31, 0.6), rgba(6, 17, 31, 0.95));
}

html[dir="ltr"] .cta-band--photo::before {
    background: linear-gradient(270deg, rgba(6, 17, 31, 0.6), rgba(6, 17, 31, 0.95));
}

.cta-band--photo .container {
    padding-block: clamp(64px, 9vw, 112px);
}

.cta-band--photo h2 {
    font-size: var(--step-4);
}

.cta-band--photo p {
    color: #c6d1de;
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide.is-active img {
        animation: none;
        transform: none;
    }
}

.cta-band--photo .cta-actions {
    flex-wrap: nowrap;
}

@media (max-width: 800px) {
    .cta-band--photo .cta-actions {
        flex-wrap: wrap;
    }
}

/* =========================================================
   خريطة الموقع في قسم التواصل
   ========================================================= */

.map-card {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 220px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.map-card iframe {
    display: block;
    width: 100%;
    height: 280px;
    border: 0;
}

.map-card--static {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 6px;
    padding: 28px 20px;
    text-align: center;
    color: var(--ink);
    background-color: #eef2f6;
    background-image:
        linear-gradient(115deg, transparent 46%, rgba(201, 164, 92, 0.45) 46.5%, rgba(201, 164, 92, 0.45) 48.5%, transparent 49%),
        linear-gradient(20deg, transparent 62%, #ffffff 62.5%, #ffffff 66%, transparent 66.5%),
        linear-gradient(160deg, transparent 30%, #ffffff 30.5%, #ffffff 33%, transparent 33.5%),
        linear-gradient(rgba(13, 27, 42, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 27, 42, 0.05) 1px, transparent 1px);
    background-size: auto, auto, auto, 28px 28px, 28px 28px;
    transition: border-color 0.25s, transform 0.25s;
}

.map-card--static:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}

.map-card--static strong {
    font-family: var(--font-display);
    font-size: var(--step-1);
}

.map-card--static span:not(.map-pin) {
    font-size: 0.88rem;
    color: var(--muted);
}

.map-pin {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 6px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--gold);
    box-shadow: 0 0 0 10px rgba(201, 164, 92, 0.2), var(--shadow);
    animation: map-pulse 2.4s ease-out infinite;
}

.map-pin .ic {
    width: 28px;
    height: 28px;
}

@keyframes map-pulse {
    0% { box-shadow: 0 0 0 0 rgba(201, 164, 92, 0.45), var(--shadow); }
    100% { box-shadow: 0 0 0 18px rgba(201, 164, 92, 0), var(--shadow); }
}

@media (prefers-reduced-motion: reduce) {
    .map-pin { animation: none; }
}

.footer-parent {
    margin-top: 10px;
    font-size: 0.88rem;
    color: var(--gold-soft);
}
/* ===== الأسئلة الشائعة ===== */
.faq-list { display: grid; gap: 12px; max-width: 880px; margin-inline: auto; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.25s; }
.faq-item[open] { border-color: var(--gold); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-family: var(--font-display); font-size: var(--step-0); font-weight: 700; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: var(--radius); }
.faq-icon { position: relative; flex: none; width: 28px; height: 28px; border: 1px solid var(--gold); border-radius: 50%; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 12px; height: 2px; background: var(--gold-strong); transform: translate(-50%, -50%); transition: transform 0.25s; }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-item p { padding: 0 22px 20px; color: var(--muted); line-height: 1.9; }

/* ===== الوضع الليلي ===== */
.theme-btn { display: grid; place-items: center; min-width: 40px; padding: 0; }
.theme-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .i-sun, [data-theme="dark"] .theme-btn .i-moon { display: none; }
[data-theme="dark"] .theme-btn .i-sun { display: block; }
[data-theme="dark"] { color-scheme: dark; --paper: #0a1828; --ink: #e6edf5; --muted: #9fb0c4; --line: #1f3452; }
[data-theme="dark"] body { background: #07121f; }
[data-theme="dark"] .section--white, [data-theme="dark"] .stats, [data-theme="dark"] .pillar, [data-theme="dark"] .why-item, [data-theme="dark"] .contact-card, [data-theme="dark"] .quote-form, [data-theme="dark"] .offer, [data-theme="dark"] .map-card, [data-theme="dark"] .field input:focus, [data-theme="dark"] .field select:focus, [data-theme="dark"] .field textarea:focus { background: #0f2136; }
[data-theme="dark"] .about-media .about-inset { border-color: #0f2136; }
[data-theme="dark"] .stat-num, [data-theme="dark"] .pillar-tags li { color: var(--gold-soft); }
[data-theme="dark"] .eyebrow, [data-theme="dark"] .pillar-link, [data-theme="dark"] .contact-card .arrow, [data-theme="dark"] .contact-card .service-icon, [data-theme="dark"] .why-item .service-icon, [data-theme="dark"] .check-list svg { color: var(--gold); }
[data-theme="dark"] .offer-request { color: #4cc27f; }
[data-theme="dark"] .offer-request:hover { background: rgba(76, 194, 127, 0.1); }
[data-theme="dark"] .map-card--static { background-color: #0d1d31; background-image: linear-gradient(115deg, transparent 46%, rgba(201, 164, 92, 0.35) 46.5%, rgba(201, 164, 92, 0.35) 48.5%, transparent 49%), linear-gradient(20deg, transparent 62%, #16304d 62.5%, #16304d 66%, transparent 66.5%), linear-gradient(160deg, transparent 30%, #16304d 30.5%, #16304d 33%, transparent 33.5%), linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px); }
[data-theme="dark"] .map-pin { background: var(--navy-950); }
/* ===== زر الاتصال العائم ===== */
.float-call {
    position: fixed;
    bottom: 100px;
    left: 25px;
    z-index: 999;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #c9a45c;
    color: #07182b;
    font-size: 26px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(201, 164, 92, 0.45);
    animation: callPulse 2s infinite;
}
.float-call:hover { transform: scale(1.08); }
html[dir="ltr"] .float-call { left: auto; right: 25px; }
@keyframes callPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 164, 92, 0.5); }
    50% { box-shadow: 0 0 0 14px rgba(201, 164, 92, 0); }
}
@media (prefers-reduced-motion: reduce) { .float-call { animation: none; } }
/* =========================================================
   نصائح السلامة
   ========================================================= */

.tips-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.tip-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 26px 22px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color 0.25s, transform 0.25s;
}

.tip-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
}

.tip-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--navy-900);
    font-size: 1.6rem;
    line-height: 1;
}

.tip-card h3 {
    font-size: var(--step-1);
    font-weight: 800;
}

.tip-card p {
    flex: 1;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.9;
}

.tip-link {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--gold-strong);
}

.tip-link:hover {
    color: var(--gold);
}

@media (max-width: 1080px) {
    .tips-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

/* =========================================================
   حجز زيارة معاينة
   ========================================================= */

.booking-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

.booking-copy h2 {
    margin: 10px 0 14px;
    font-size: var(--step-3);
    font-weight: 800;
}

.booking-copy > p {
    color: var(--muted);
    line-height: 1.9;
}

.booking-steps {
    display: grid;
    gap: 14px;
    margin-top: 26px;
    list-style: none;
}

.booking-steps li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 600;
}

.booking-num {
    display: grid;
    flex: none;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--navy-900);
    color: var(--gold);
    font-family: var(--font-display);
    font-weight: 800;
}

.booking-form .btn {
    grid-column: 1 / -1;
}

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

@media (max-width: 520px) {
    .booking-form {
        grid-template-columns: 1fr;
    }
}

[data-theme="dark"] .tip-card {
    background: #0f2136;
}

[data-theme="dark"] .tip-link {
    color: var(--gold);
}
/* =========================================================
   زر الرجوع لأعلى + صفحة سياسة الخصوصية
   ========================================================= */

.to-top {
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    right: calc(20px + env(safe-area-inset-right, 0px));
    z-index: 998;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--gold);
    border-radius: 50%;
    background: var(--navy-900);
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 26px -8px rgba(6, 17, 31, 0.55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s, background 0.2s, color 0.2s;
}

html[dir="ltr"] .to-top {
    right: auto;
    left: calc(20px + env(safe-area-inset-left, 0px));
}

.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.to-top:hover {
    background: var(--gold);
    color: var(--navy-900);
}

.to-top:focus-visible {
    outline: 3px solid var(--gold-soft);
    outline-offset: 3px;
}

[data-theme="dark"] .to-top {
    background: var(--navy-800);
}

[data-theme="dark"] .to-top:hover {
    background: var(--gold);
    color: var(--navy-950);
}

/* صفحة سياسة الخصوصية */

.legal {
    padding-block: clamp(48px, 7vw, 88px);
    background: var(--paper);
    color: var(--ink);
}

.legal .container {
    max-width: 860px;
}

.legal h1 {
    font-family: var(--font-display);
    font-size: var(--step-4);
    line-height: 1.25;
    margin: 0 0 8px;
}

.legal-updated {
    color: var(--muted);
    font-size: var(--step--1);
    margin: 0 0 28px;
}

.legal h2 {
    font-family: var(--font-display);
    font-size: var(--step-2);
    margin: 36px 0 10px;
    padding-inline-start: 14px;
    border-inline-start: 4px solid var(--gold);
}

.legal p,
.legal li {
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.legal ul {
    margin: 0;
    padding-inline-start: 22px;
}

.legal a {
    color: var(--gold-strong);
    text-decoration: underline;
}

[data-theme="dark"] .legal a {
    color: var(--gold);
}

/* مسافة أسفل الفوتر حتى لا تغطيه الأزرار العائمة في الجوال */
@media (max-width: 700px) {
    .footer-bottom .container {
        padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    }
}