/* =========================================================
   شركة الخصوصية – هوية الموقع
   ألوان مستخرجة من الشعار (السماوي) وواجهة المحل (الأزرق الملكي)
   ========================================================= */

:root {
    --navy-950: #061528;
    --navy-900: #081D38;
    --navy-800: #0B2545;
    --navy-700: #12345E;
    --blue-700: #13579B;
    --blue-600: #1A69B5;
    --cyan-400: #4FB8E0;
    --cyan-300: #7CCBEA;
    --cyan-100: #DDF1FA;
    --sky-50:   #F2F8FC;
    --ink:      #1A2636;
    --muted:    #56677A;
    --line:     #E1E9F1;
    --white:    #FFFFFF;

    --radius-sm: 10px;
    --radius:    16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(11, 37, 69, .06), 0 2px 8px rgba(11, 37, 69, .05);
    --shadow:    0 10px 30px -10px rgba(11, 37, 69, .18);
    --shadow-lg: 0 24px 60px -20px rgba(11, 37, 69, .35);
    --header-h:  76px;

    --bs-body-font-family: 'Tajawal', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
    --bs-body-color: var(--ink);
    --bs-body-bg: var(--white);
    --bs-body-line-height: 1.8;
    --bs-link-color: var(--blue-700);
    --bs-link-color-rgb: 19, 87, 155;
    --bs-link-hover-color: var(--navy-800);
    --bs-link-hover-color-rgb: 11, 37, 69;
    --bs-border-color: var(--line);
    --bs-primary: var(--blue-700);
    --bs-primary-rgb: 19, 87, 155;
}

html { scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    font-size: 1.0625rem; /* خط Tajawal أصغر بصرياً، فنكبّره قليلاً */
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--navy-800);
    font-weight: 700;
    line-height: 1.4;
}

img { max-width: 100%; height: auto; }

::selection { background: var(--cyan-100); color: var(--navy-800); }

:focus-visible {
    outline: 3px solid var(--cyan-400);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    inset-inline-start: 1rem;
    top: -100px;
    z-index: 2000;
    background: var(--cyan-400);
    color: var(--navy-900);
    padding: .5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------- Buttons ---------- */
.btn {
    --bs-btn-font-weight: 600;
    --bs-btn-border-radius: 999px;
    --bs-btn-padding-x: 1.4rem;
    --bs-btn-padding-y: .6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn-lg { --bs-btn-padding-x: 1.75rem; --bs-btn-padding-y: .8rem; --bs-btn-font-size: 1.05rem; }
.btn:hover { transform: translateY(-1px); }

.btn-accent {
    --bs-btn-color: var(--navy-900);
    --bs-btn-bg: var(--cyan-400);
    --bs-btn-border-color: var(--cyan-400);
    --bs-btn-hover-color: var(--navy-900);
    --bs-btn-hover-bg: var(--cyan-300);
    --bs-btn-hover-border-color: var(--cyan-300);
    --bs-btn-active-color: var(--navy-900);
    --bs-btn-active-bg: var(--cyan-300);
    --bs-btn-active-border-color: var(--cyan-300);
    box-shadow: 0 8px 20px -8px rgba(79, 184, 224, .7);
}
.btn-primary {
    --bs-btn-bg: var(--blue-700);
    --bs-btn-border-color: var(--blue-700);
    --bs-btn-hover-bg: var(--navy-800);
    --bs-btn-hover-border-color: var(--navy-800);
    --bs-btn-active-bg: var(--navy-800);
    --bs-btn-active-border-color: var(--navy-800);
}
.btn-outline-light {
    --bs-btn-border-color: rgba(255, 255, 255, .45);
    --bs-btn-hover-color: var(--navy-900);
}

/* ---------- Top bar ---------- */
.topbar {
    background: var(--navy-950);
    color: rgba(255, 255, 255, .72);
    font-size: .85rem;
    padding: .45rem 0;
}
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: var(--cyan-300); }
.topbar-list {
    display: flex;
    gap: 1.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.topbar .bi { color: var(--cyan-400); margin-inline-end: .3rem; }

/* ---------- Header / Navbar ---------- */
.site-header {
    /* بدون backdrop-filter: يجعل قائمة الهاتف (position: fixed) محصورة داخل الهيدر */
    background: var(--navy-800);
    transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -8px rgba(0, 0, 0, .45); }

.site-header .navbar { min-height: var(--header-h); padding: .5rem 0; }

.navbar-brand { padding: 0; margin: 0; }
.navbar-brand img { height: 48px; width: auto; display: block; }
@media (min-width: 992px) { .navbar-brand img { height: 64px; } }

.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 1.6rem;
    padding: .2rem .55rem;
    line-height: 1;
}
.navbar-toggler:focus { box-shadow: none; }

.site-header .nav-link {
    color: rgba(255, 255, 255, .82);
    font-weight: 500;
    padding: .5rem .9rem !important;
    border-radius: var(--radius-sm);
    position: relative;
}
.site-header .nav-link:hover,
.site-header .nav-link:focus-visible,
.site-header .nav-link.show { color: var(--white); }
.site-header .nav-link.active { color: var(--white); }

/* Offcanvas (mobile menu) */
.site-header .offcanvas {
    background: var(--navy-800);
    color: var(--white);
    max-width: 86vw;
}
.site-header .offcanvas-header { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.site-header .offcanvas-title { font-weight: 700; font-size: 1.1rem; }

/* Mega menu */
.mega-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--cyan-400);
    margin: 0 0 .5rem;
}
.mega-menu .dropdown-item {
    white-space: normal;
    border-radius: 8px;
    padding: .45rem .75rem;
    font-size: .93rem;
    line-height: 1.6;
}

@media (max-width: 991.98px) {
    .site-header .navbar-nav .nav-link { padding: .8rem .5rem !important; font-size: 1.05rem; }
    .site-header .navbar-nav .nav-item + .nav-item { border-top: 1px solid rgba(255, 255, 255, .06); }
    .mega-menu {
        background: transparent;
        border: 0;
        padding: .25rem .5rem .75rem;
        margin: 0;
    }
    .mega-menu .dropdown-item { color: rgba(255, 255, 255, .78); }
    .mega-menu .dropdown-item:hover,
    .mega-menu .dropdown-item:focus,
    .mega-menu .dropdown-item.active { background: rgba(79, 184, 224, .12); color: var(--white); }
    .site-header .offcanvas .btn-accent { width: 100%; }
}

@media (min-width: 992px) {
    .site-header .nav-link.active::after {
        content: "";
        position: absolute;
        inset-inline: .9rem;
        bottom: -.15rem;
        height: 3px;
        border-radius: 3px;
        background: var(--cyan-400);
    }
    .site-header .navbar .mega-menu {
        left: .75rem;
        right: .75rem;
        top: calc(100% + .5rem);
        margin: 0;
        padding: 1.75rem 2rem;
        border: 0;
        border-radius: var(--radius-lg);
        background: var(--white);
        box-shadow: var(--shadow-lg);
        --bs-dropdown-link-color: var(--ink);
        --bs-dropdown-link-hover-color: var(--blue-700);
        --bs-dropdown-link-hover-bg: var(--sky-50);
        --bs-dropdown-link-active-color: var(--blue-700);
        --bs-dropdown-link-active-bg: var(--cyan-100);
    }
    .mega-menu .mega-title {
        color: var(--blue-700);
        padding-bottom: .6rem;
        border-bottom: 1px solid var(--line);
        margin-bottom: .6rem;
    }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--sky-50); }
.product-body { padding-top: clamp(2rem, 4vw, 3rem); }

.section-head { max-width: 680px; margin: 0 auto 3rem; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .75rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--blue-700);
    background: var(--cyan-100);
    padding: .3rem .9rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}
.eyebrow::before {
    content: "";
    width: 7px; height: 7px;
    background: var(--cyan-400);
    border-radius: 2px;
    transform: rotate(45deg);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(900px 500px at 85% 10%, rgba(79, 184, 224, .22), transparent 60%),
        radial-gradient(700px 500px at 0% 100%, rgba(26, 105, 181, .35), transparent 60%),
        linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 100%);
    padding: clamp(3rem, 7vw, 6rem) 0 clamp(6rem, 10vw, 8.5rem);
}
.hero-shapes {
    position: absolute;
    inset-inline-end: -60px;
    top: -40px;
    width: 420px;
    opacity: .5;
    pointer-events: none;
}
[dir="rtl"] .hero-shapes { transform: scaleX(-1); }
.hero .eyebrow { background: rgba(79, 184, 224, .15); color: var(--cyan-300); }
.hero h1 {
    color: var(--white);
    font-size: clamp(2rem, 4.6vw, 3.3rem);
    line-height: 1.3;
    margin-bottom: 1.25rem;
}
.hero h1 span { color: var(--cyan-400); }
.hero-lead {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    color: rgba(255, 255, 255, .78);
    max-width: 560px;
    margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero-media { position: relative; }
.hero-photo {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 6px solid rgba(255, 255, 255, .08);
    aspect-ratio: 16 / 10;
}
.hero-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}
.hero-badge {
    position: absolute;
    inset-inline-start: -1rem;
    bottom: -1.5rem;
    background: var(--white);
    color: var(--navy-800);
    border-radius: var(--radius);
    padding: .9rem 1.2rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: .8rem;
}
.hero-badge .bi {
    width: 46px; height: 46px;
    display: grid; place-items: center;
    background: var(--cyan-100);
    color: var(--blue-700);
    border-radius: 12px;
    font-size: 1.35rem;
}
.hero-badge strong { display: block; font-size: 1.15rem; line-height: 1.2; }
.hero-badge small { color: var(--muted); }

/* ---------- Stats ---------- */
.stats-wrap { margin-top: clamp(-4.5rem, -6vw, -3.5rem); position: relative; z-index: 2; }
.stats {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}
.stat { padding: 1.5rem 1rem; text-align: center; }
.stat:nth-child(odd) { border-inline-end: 1px solid var(--line); }
.stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.stat-num {
    display: block;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 700;
    color: var(--blue-700);
    line-height: 1.2;
}
.stat-label { color: var(--muted); font-size: .92rem; }
@media (min-width: 768px) {
    .stats { grid-template-columns: repeat(4, 1fr); }
    .stat { padding: 2rem 1rem; border: 0 !important; }
    .stat + .stat { border-inline-start: 1px solid var(--line) !important; }
}

/* ---------- About ---------- */
.about-text p { color: var(--muted); font-size: 1.05rem; }
.value-card {
    height: 100%;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.value-card .bi {
    font-size: 1.5rem;
    color: var(--blue-700);
    background: var(--cyan-100);
    width: 52px; height: 52px;
    display: grid; place-items: center;
    border-radius: 14px;
    margin-bottom: 1rem;
}
.value-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.value-card p { color: var(--muted); margin: 0; font-size: .97rem; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 600;
    text-decoration: none;
}
.link-arrow .bi { transition: transform .2s ease; }
[dir="rtl"] .link-arrow:hover .bi { transform: translateX(-4px); }
[dir="ltr"] .link-arrow:hover .bi { transform: translateX(4px); }

/* ---------- Product groups ---------- */
.group-card {
    height: 100%;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.group-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.group-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.25rem; }
.group-icon {
    flex: none;
    width: 54px; height: 54px;
    display: grid; place-items: center;
    border-radius: 16px;
    background: linear-gradient(140deg, var(--blue-700), var(--navy-800));
    color: var(--white);
    font-size: 1.45rem;
}
.group-head h3 { font-size: 1.15rem; margin: 0; }
.group-head small { color: var(--muted); }
.group-list { list-style: none; margin: 0; padding: 0; }
.group-list li + li { border-top: 1px dashed var(--line); }
.group-list a {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .6rem 0;
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    font-size: .97rem;
}
.group-list a .bi:first-child { color: var(--blue-600); font-size: 1.05rem; }
.group-list a .bi:last-child {
    margin-inline-start: auto;
    color: var(--cyan-400);
    opacity: 0;
    transition: opacity .2s ease, transform .2s ease;
}
.group-list a:hover { color: var(--blue-700); }
.group-list a:hover .bi:last-child { opacity: 1; }

/* ---------- Services ---------- */
.service-card {
    height: 100%;
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
    transition: border-color .25s ease, box-shadow .25s ease;
}
.service-card:hover { border-color: var(--cyan-300); box-shadow: var(--shadow); }
.service-card .bi {
    font-size: 1.6rem;
    color: var(--blue-700);
    display: inline-block;
    margin-bottom: .9rem;
}
.service-card h3 { font-size: 1.02rem; margin: 0; line-height: 1.7; font-weight: 600; }

/* ---------- Projects ---------- */
.project {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: .75rem;
    height: 100%;
    transition: box-shadow .25s ease;
}
.project:hover { box-shadow: var(--shadow); }
.project-thumb {
    flex: none;
    width: 128px;
    aspect-ratio: 17 / 10;
    border-radius: 10px;
    overflow: hidden;
    background: var(--sky-50);
}
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.project-year {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    color: var(--blue-700);
    background: var(--cyan-100);
    padding: .1rem .6rem;
    border-radius: 999px;
    margin-bottom: .35rem;
}
.project p { margin: 0; font-size: .95rem; line-height: 1.7; font-weight: 500; }

/* ---------- Brands ---------- */
.brands {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.brands li {
    direction: ltr;
    font-weight: 700;
    letter-spacing: .08em;
    font-size: .9rem;
    color: var(--navy-700);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .55rem 1.25rem;
}

/* ---------- Page header (inner pages) ---------- */
.page-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(700px 360px at 90% 0%, rgba(79, 184, 224, .22), transparent 60%),
        linear-gradient(160deg, var(--navy-800), var(--navy-900));
    padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.page-hero .hero-shapes { width: 300px; top: -60px; opacity: .35; }
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .25rem; }
.page-hero .subtitle {
    display: block;
    color: var(--cyan-300);
    font-weight: 500;
    letter-spacing: .03em;
    margin-bottom: 1rem;
}
[dir="rtl"] .page-hero .subtitle { text-align: right; }
.page-hero .lead { color: rgba(255, 255, 255, .78); max-width: 720px; font-size: 1.05rem; margin: 0; }

.breadcrumb {
    --bs-breadcrumb-divider-color: rgba(255, 255, 255, .4);
    --bs-breadcrumb-item-active-color: rgba(255, 255, 255, .9);
    font-size: .88rem;
    margin-bottom: 1.25rem;
}
.breadcrumb a { color: rgba(255, 255, 255, .65); text-decoration: none; }
.breadcrumb a:hover { color: var(--cyan-300); }
[dir="rtl"] .breadcrumb { --bs-breadcrumb-divider: "‹"; }
[dir="ltr"] .breadcrumb { --bs-breadcrumb-divider: "›"; }

/* ---------- Product content ---------- */
.product-section {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 3vw, 2rem);
    margin-bottom: 1.5rem;
}
.product-section h2 {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    font-size: clamp(1.2rem, 2.2vw, 1.4rem);
    margin-bottom: .25rem;
}
.product-section .num {
    flex: none;
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border-radius: 10px;
    background: var(--cyan-100);
    color: var(--blue-700);
    font-size: .9rem;
    font-weight: 700;
    margin-top: .1rem;
}
.term {
    display: inline-block;
    direction: ltr;
    font-size: .85rem;
    font-weight: 600;
    color: var(--blue-600);
    margin-bottom: 1rem;
}
[dir="rtl"] .term { padding-right: calc(34px + .75rem); }
[dir="ltr"] .term { padding-left: calc(34px + .75rem); }
.product-section p, .product-section li { color: #33445A; }
.product-section p:last-child { margin-bottom: 0; }
.product-section ol, .product-section ul { padding-inline-start: 1.25rem; }
.product-section li { margin-bottom: .4rem; }
.product-section li::marker { color: var(--blue-600); font-weight: 700; }

.media-stack { display: grid; gap: .75rem; }
.media-stack.two { grid-template-columns: repeat(2, 1fr); }
.product-figure {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--sky-50);
    aspect-ratio: 3 / 2;
    max-width: 360px;
}
.product-figure img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); }

[dir] .term.no-num { padding: 0; }

.media-grid {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.media-grid .product-figure { max-width: none; }

.item-grid {
    list-style: none;
    padding: 0 !important;
    margin: 0 0 1rem;
    display: grid;
    gap: .6rem;
    grid-template-columns: 1fr;
}
@media (min-width: 576px) { .item-grid { grid-template-columns: repeat(2, 1fr); } }
.col-md-7 .item-grid { grid-template-columns: 1fr; }
.item-grid li {
    display: flex;
    gap: .65rem;
    align-items: flex-start;
    background: var(--sky-50);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: .75rem .9rem;
    margin: 0 !important;
    line-height: 1.6;
    font-weight: 500;
    color: var(--ink) !important;
}
.item-grid .bi { color: var(--blue-600); font-size: 1.1rem; flex: none; margin-top: .05rem; }
.item-grid small {
    display: block;
    color: var(--muted);
    font-weight: 400;
    font-size: .82rem;
    margin-top: .1rem;
}
[dir="rtl"] .item-grid small { text-align: right; }

.type-table { --bs-table-bg: transparent; margin: 0; font-size: .95rem; }
.type-table thead th {
    background: var(--navy-800);
    color: var(--white);
    font-weight: 600;
    border: 0;
    padding: .75rem 1rem;
}
.type-table thead th:first-child { border-start-start-radius: 12px; }
.type-table thead th:last-child { border-start-end-radius: 12px; }
.type-table td { padding: .7rem 1rem; vertical-align: middle; border-color: var(--line); }
.type-table tbody tr:nth-child(even) td { background: var(--sky-50); }
.type-badge {
    display: inline-grid;
    place-items: center;
    width: 32px; height: 32px;
    border-radius: 9px;
    background: var(--blue-700);
    color: var(--white);
    font-weight: 700;
    font-family: system-ui, sans-serif;
}

.usage-card {
    height: 100%;
    border-radius: var(--radius);
    background: var(--sky-50);
    padding: 1.25rem;
}
.usage-card h3 { font-size: 1.02rem; margin-bottom: .75rem; }
.usage-card ul { list-style: none; padding: 0; margin: 0; }
.usage-card li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .5rem 0;
    border-bottom: 1px solid var(--line);
    margin: 0;
}
.usage-card li:last-child { border-bottom: 0; }
.usage-card .temp { direction: ltr; font-weight: 600; color: var(--navy-700); }

.note {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    background: #FFF8E6;
    border: 1px solid #F3DFA8;
    color: #6B4E00;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-top: 1.25rem;
}
.note .bi { font-size: 1.2rem; margin-top: .1rem; }
.note p { color: inherit !important; margin: 0; }

/* Sidebar */
.sidebar { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.side-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.side-card h2 { font-size: 1rem; margin-bottom: 1rem; }
.toc { flex-wrap: nowrap; max-height: 46vh; overflow-y: auto; margin: 0 -.5rem; padding: 0 .5rem; }
.toc .nav-link {
    color: var(--muted);
    font-size: .9rem;
    padding: .35rem .75rem;
    border-inline-start: 2px solid var(--line);
    border-radius: 0;
    line-height: 1.6;
}
.toc .nav-link:hover { color: var(--blue-700); }
.toc .nav-link.active {
    color: var(--blue-700);
    font-weight: 600;
    border-inline-start-color: var(--cyan-400);
    background: var(--sky-50);
}
.side-cta {
    background: linear-gradient(160deg, var(--navy-800), var(--blue-700));
    color: var(--white);
    border: 0;
}
.side-cta h2 { color: var(--white); }
.side-cta p { color: rgba(255, 255, 255, .78); font-size: .95rem; }
.related-list { list-style: none; padding: 0; margin: 0; }
.related-list a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem 0;
    color: var(--ink);
    text-decoration: none;
    font-size: .95rem;
}
.related-list a:hover { color: var(--blue-700); }
.related-list .bi { color: var(--blue-600); }

/* ---------- About ---------- */
.about-photo { border-color: var(--line); box-shadow: var(--shadow); }

/* ---------- Services page ---------- */
.service-row {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    height: 100%;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1rem;
    transition: box-shadow .25s ease, border-color .25s ease;
}
.service-row:hover { box-shadow: var(--shadow); border-color: var(--cyan-300); }
.service-row .project-thumb { width: 150px; }
.service-num {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 700;
    font-size: .85rem;
    color: var(--blue-700);
    margin-bottom: .35rem;
}
.service-num .bi { font-size: 1.1rem; }
.service-row h2 { font-size: 1.05rem; line-height: 1.7; margin: 0; font-weight: 700; }
@media (max-width: 575.98px) {
    .service-row { gap: .9rem; padding: .75rem; }
    .service-row .project-thumb { width: 104px; }
    .service-row h2 { font-size: .97rem; }
}

/* ---------- Projects timeline ---------- */
.timeline {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 860px;
    position: relative;
}
.timeline::before {
    content: "";
    position: absolute;
    top: .5rem; bottom: .5rem;
    inset-inline-start: 9px;
    width: 2px;
    background: linear-gradient(var(--cyan-400), var(--blue-700));
    border-radius: 2px;
}
.timeline-item {
    position: relative;
    padding-inline-start: 2.5rem;
    margin-bottom: 1rem;
}
.timeline-dot {
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    width: 20px; height: 20px;
    margin-top: -10px;
    border-radius: 50%;
    background: var(--white);
    border: 4px solid var(--cyan-400);
    box-shadow: 0 0 0 4px var(--sky-50);
}
.timeline .project-thumb { width: 150px; }
@media (max-width: 575.98px) {
    .timeline-item { padding-inline-start: 2rem; }
    .timeline .project-thumb, .project-thumb { width: 96px; }
}

/* ---------- Contact page ---------- */
.contact-card {
    display: flex;
    gap: 1rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.4rem;
    margin-bottom: 1rem;
}
.contact-icon {
    flex: none;
    width: 50px; height: 50px;
    display: grid; place-items: center;
    border-radius: 14px;
    background: linear-gradient(140deg, var(--blue-700), var(--navy-800));
    color: var(--white);
    font-size: 1.3rem;
}
.contact-card h2 { font-size: 1.05rem; margin-bottom: .5rem; }
.contact-card a, .contact-card p { display: block; margin: 0 0 .25rem; color: var(--ink); text-decoration: none; }
.contact-card a:hover { color: var(--blue-700); }
[dir="rtl"] .contact-card a[dir="ltr"] { text-align: right; }

.form-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    height: 100%;
}
.form-card > h2 { font-size: 1.4rem; margin-bottom: .25rem; }
.form-label { font-weight: 500; color: var(--navy-800); }
.form-control, .form-select {
    border-radius: 12px;
    padding: .7rem 1rem;
    border-color: #CFDBE7;
}
.form-control:focus, .form-select:focus {
    border-color: var(--cyan-400);
    box-shadow: 0 0 0 .25rem rgba(79, 184, 224, .25);
}
[dir="rtl"] .ltr-input { text-align: right; }
[dir="rtl"] .ltr-input:placeholder-shown { direction: rtl; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { text-align: center; padding: 2rem 0; }
.form-success > .bi { font-size: 3.5rem; color: #1E9E6A; }
.form-success h2 { font-size: 1.4rem; margin: 1rem 0 .5rem; }
.form-success p { color: var(--muted); margin-bottom: 1.5rem; }

/* ---------- 404 ---------- */
.notfound { padding: clamp(4rem, 10vw, 8rem) 0; }
.notfound .eyebrow { font-size: 1rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--white); padding: 0 0 clamp(3rem, 6vw, 5rem); }
.section-alt + .cta-band { background: var(--sky-50); }
.cta-inner {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(500px 260px at 100% 0%, rgba(79, 184, 224, .35), transparent 65%),
        linear-gradient(140deg, var(--blue-700), var(--navy-800));
    color: var(--white);
    padding: clamp(2rem, 4vw, 3rem);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.cta-inner h2 { color: var(--white); font-size: clamp(1.35rem, 2.6vw, 1.8rem); margin-bottom: .4rem; }
.cta-inner p { color: rgba(255, 255, 255, .8); margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 992px) {
    .cta-inner { flex-direction: row; align-items: center; justify-content: space-between; }
    .cta-actions { flex: none; }
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy-900);
    color: rgba(255, 255, 255, .72);
    padding-top: clamp(3rem, 6vw, 4.5rem);
    font-size: .95rem;
}
.footer-logo { height: 58px; width: auto; margin-bottom: 1.25rem; }
.footer-about { max-width: 360px; line-height: 1.9; }
.footer-title {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1.25rem;
}
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li + li { margin-top: .6rem; }
.site-footer a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.site-footer a:hover { color: var(--cyan-300); }
.footer-contact li { display: flex; gap: .75rem; margin-bottom: 1rem; }
.footer-contact .bi { color: var(--cyan-400); margin-top: .2rem; }
.phone-list { display: flex; flex-direction: column; gap: .2rem; }
[dir="rtl"] .phone-list a[dir="ltr"] { text-align: right; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    padding: 1.25rem 0;
    font-size: .85rem;
    color: rgba(255, 255, 255, .55);
}

/* ---------- Floating buttons ---------- */
.fab-call, .back-to-top {
    position: fixed;
    bottom: 1.25rem;
    z-index: 1030;
    width: 52px; height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 0;
    box-shadow: var(--shadow-lg);
}
.fab-call {
    inset-inline-end: 1.25rem;
    background: var(--cyan-400);
    color: var(--navy-900);
    font-size: 1.3rem;
    text-decoration: none;
}
.back-to-top {
    inset-inline-start: 1.25rem;
    background: var(--navy-800);
    color: var(--white);
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
@media (min-width: 992px) {
    .back-to-top { inset-inline-start: auto; inset-inline-end: 1.5rem; bottom: 1.5rem; }
}

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
    .has-js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
    .has-js .reveal.is-in { opacity: 1; transform: none; }
}
