/* ============================================================
   Alpha Group Marketing Site — style.css
   Faithful port of the Next.js storefront design system:
   brand palette, Cairo/Inter type, clamp() scale, dark mode.
   No framework — single static CSS (RTL via logical properties).
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
    --brand-navy:  #002049;
    --brand-deep:  #00142E;
    --brand-royal: #212244;
    --brand-blue:  #364998;
    --brand-sky:   #4B90CB;
    --brand-cyan:  #62B6E5;
    --brand-ice:   #EAF5FB;

    --brand-50:  #F0F7FD;
    --brand-100: #DCEEFA;
    --brand-200: #BDE0F5;
    --brand-300: #8ECEEE;
    --brand-400: #62B6E5;
    --brand-500: #364998;
    --brand-600: #212244;
    --brand-700: #1A1B36;
    --brand-800: #002049;
    --brand-900: #00142E;

    --gold:       #C9A84C;
    --gold-light: #E8C96A;
    --gold-dark:  #A0802E;

    --font-arabic: "Cairo", Tahoma, Arial, sans-serif;
    --font-latin:  "Inter", Helvetica, Arial, sans-serif;

    --body-bg: #ffffff;
    --body-text: #1f2937;
    --muted-text: #6b7280;
    --card-bg: #ffffff;
    --card-border: #e5e7eb;
    --header-bg: rgba(255, 255, 255, 0.95);
    --ice-bg: rgba(234, 245, 251, 0.4);

    --radius-sm: 2px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 2px rgba(0, 20, 46, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 20, 46, 0.10);
    --shadow-xl: 0 12px 32px rgba(0, 20, 46, 0.16);

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --header-h: 80px;
}

html[data-theme="dark"] {
    --body-bg: #00142E;
    --body-text: #f3f4f6;
    --muted-text: #9ca3af;
    --card-bg: rgba(0, 20, 46, 0.8);
    --card-border: rgba(33, 34, 68, 0.5);
    --header-bg: rgba(0, 20, 46, 0.95);
    --ice-bg: rgba(0, 28, 61, 0.6);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-latin);
    background: var(--body-bg);
    color: var(--body-text);
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.2s ease, color 0.2s ease;
}

body.rtl { font-family: var(--font-arabic); }

img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; }

.site-main { flex: 1; }

.container {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 32px);
}
.container-narrow {
    width: 100%;
    max-width: 672px;
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 32px);
}

/* ---------- Typography helpers ---------- */
.kicker {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--brand-cyan);
    letter-spacing: 3px;
}
body.rtl .kicker { letter-spacing: normal; }

.section-title {
    font-size: clamp(24px, 3vw, 30px);
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 12px;
}
html[data-theme="dark"] .section-title { color: #ffffff; }

.section-sub {
    font-size: 16px;
    color: var(--muted-text);
    max-width: 48ch;
    margin-inline: auto;
}

.section-center { text-align: center; max-width: 768px; margin: 0 auto 48px; }

.prose { color: var(--muted-text); font-size: 17px; line-height: 1.8; max-width: 72ch; }
html[data-theme="dark"] .prose { color: #cbd5e1; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { display: grid; gap: 32px; grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: 24px; grid-template-columns: 1fr; }
.grid-4 { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    border-radius: var(--radius-sm);
    padding: 16px 30px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    border: 1px solid transparent;
    line-height: 1.2;
}
.btn-primary {
    background: var(--brand-blue);
    color: #ffffff;
}
.btn-primary:hover { background: var(--brand-600); }
.btn-ghost-light {
    border-color: rgba(234, 245, 251, 0.5);
    color: #ffffff;
}
.btn-ghost-light:hover { background: rgba(234, 245, 251, 0.1); }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(243, 244, 246, 1);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
html[data-theme="dark"] .site-header { border-bottom-color: var(--brand-royal); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}
.header-logo { display: flex; align-items: center; padding-block: 8px; transition: transform 0.3s ease; }
.header-logo:hover { transform: scale(1.05); }
.logo { height: 44px; width: auto; object-fit: contain; }
.logo-dark { display: none; }
html[data-theme="dark"] .logo-light { display: none; }
html[data-theme="dark"] .logo-dark { display: block; }

.header-nav { display: none; align-items: center; gap: 32px; }
@media (min-width: 768px) { .header-nav { display: flex; } }

.nav-link {
    font-weight: 500;
    font-size: 16px;
    color: #374151;
    transition: color 0.2s ease;
}
html[data-theme="dark"] .nav-link { color: #e5e7eb; }
.nav-link:hover, .nav-link.is-active { color: var(--brand-cyan); }

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

.lang-toggle {
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-navy);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
}
html[data-theme="dark"] .lang-toggle { color: var(--brand-ice); border-color: var(--brand-royal); }
.lang-toggle:hover { border-color: var(--brand-cyan); color: var(--brand-cyan); }

.theme-toggle {
    padding: 8px;
    border-radius: 12px;
    color: #4b5563;
    font-size: 18px;
    line-height: 1;
    transition: background-color 0.2s ease;
}
html[data-theme="dark"] .theme-toggle { color: #d1d5db; }
.theme-toggle:hover { background: rgba(243, 244, 246, 0.8); }
html[data-theme="dark"] .theme-toggle:hover { background: rgba(33, 34, 68, 0.6); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: inline; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: inline; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.menu-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    border-radius: 12px;
}
@media (min-width: 768px) { .menu-toggle { display: none; } }
.menu-bar { width: 22px; height: 2px; background: currentColor; border-radius: 1px; transition: transform 0.2s ease, opacity 0.2s ease; }
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { border-top: 1px solid rgba(243, 244, 246, 0.6); padding: 8px 16px 16px; }
html[data-theme="dark"] .mobile-nav { border-top-color: var(--brand-royal); }
.mobile-nav .nav-link { display: block; padding: 12px; border-radius: 8px; }
.mobile-nav .nav-link:hover { background: rgba(249, 250, 251, 0.8); }
html[data-theme="dark"] .mobile-nav .nav-link:hover { background: rgba(33, 34, 68, 0.4); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 100svh;
    width: 100%;
    overflow: hidden;
    background: var(--brand-deep);
}
.hero-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0,20,46,0.35) 0%, rgba(0,20,46,0.55) 55%, rgba(0,20,46,0.95) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    padding-inline: clamp(20px, 6vw, 80px);
    padding-bottom: clamp(56px, 9vw, 110px);
    will-change: transform, opacity;
}
.hero-title {
    margin-bottom: 22px;
    font-weight: 800;
    color: #ffffff;
    font-size: clamp(44px, 8vw, 110px);
    line-height: 0.98;
}
body.rtl .hero-title { font-size: clamp(30px, 7vw, 64px); line-height: 1.25; }
.hero-sub {
    margin-bottom: 36px;
    max-width: 620px;
    font-size: clamp(16px, 2vw, 22px);
    color: var(--brand-ice);
    line-height: 1.5;
}
body.rtl .hero-sub { line-height: 1.7; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-scroll-label {
    position: absolute;
    bottom: 36px;
    inset-inline-end: clamp(20px, 6vw, 80px);
    z-index: 2;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--brand-ice);
    writing-mode: vertical-rl;
}
@media (max-width: 767px) { .hero-scroll-label { display: none; } }

/* ---------- Pillars ---------- */
.pillars {
    padding-block: 64px;
    background: var(--ice-bg);
    border-block: 1px solid var(--brand-100);
}
html[data-theme="dark"] .pillars { border-color: rgba(33, 34, 68, 0.4); }

.pillar-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
}
.pillar-icon {
    flex-shrink: 0;
    padding: 12px;
    border-radius: 12px;
    background: var(--brand-50);
    color: var(--brand-blue);
}
html[data-theme="dark"] .pillar-icon { background: var(--brand-royal); color: var(--brand-cyan); }
.pillar-icon .icon { width: 24px; height: 24px; }
.pillar-title { font-size: 16px; font-weight: 700; color: var(--brand-navy); margin-bottom: 4px; }
html[data-theme="dark"] .pillar-title { color: #ffffff; }
.pillar-text { font-size: 12px; color: var(--muted-text); line-height: 1.6; }

/* ---------- Marquee ---------- */
.marquee-section { padding-block: 48px; overflow: hidden; }
.marquee-title {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6b7280;
    margin-bottom: 32px;
}
.marquee {
    position: relative;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 24px;
    animation: marquee-scroll 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
    flex-shrink: 0;
    height: 96px;
    width: 224px;
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(1);
    transition: filter 0.3s ease;
}
.marquee-item:hover { filter: grayscale(0); }
.marquee-item img { max-height: 100%; width: auto; object-fit: contain; }
/* Dark mode: client logos are dark artwork on transparency — keep the chips
   white so they stay legible on the dark page. */
html[data-theme="dark"] .marquee-item {
    background: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
@media (max-width: 640px) { .marquee-track { animation-duration: 48s; } }

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ---------- Intro ---------- */
.intro {
    position: relative;
    overflow: hidden;
    padding: clamp(70px, 12vw, 140px) clamp(20px, 6vw, 80px);
    background: var(--brand-deep);
}
.intro-grid {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(28px, 5vw, 60px);
}

/* Decorative side visual (partnership photo) with a slow Ken-Burns motion.
   Sits behind the content on the inline-start side; hidden on phones. */
.intro-media {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: min(48%, 620px);
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    --intro-fade: to right;
}
body.rtl .intro-media { --intro-fade: to left; }
.intro-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    animation: intro-kenburns 26s ease-in-out infinite alternate;
    will-change: transform;
}
.intro-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, var(--brand-deep) 0%, rgba(0, 20, 46, 0) 26%),
        linear-gradient(var(--intro-fade), rgba(0, 20, 46, 0) 30%, var(--brand-deep) 96%);
}
@keyframes intro-kenburns {
    from { transform: scale(1.06) translate3d(0, 0, 0); }
    to   { transform: scale(1.20) translate3d(3%, -3%, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .intro-media img { animation: none; transform: scale(1.06); }
}
@media (max-width: 767px) {
    .intro-media { display: none; }
}
@media (min-width: 768px) {
    .intro-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
}
.intro-kicker { display: flex; align-items: center; gap: 14px; }
.rule { height: 1px; width: 34px; flex: none; background: var(--brand-sky); }
.intro-title {
    margin-bottom: 26px;
    font-size: clamp(30px, 4.5vw, 54px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.08;
}
body.rtl .intro-title { line-height: 1.3; }
.intro-text {
    max-width: 640px;
    font-size: clamp(16px, 1.6vw, 20px);
    color: #C9D6E3;
    line-height: 1.65;
}
body.rtl .intro-text { line-height: 1.8; }

/* ---------- Pinned story ---------- */
.story {
    background: var(--brand-deep);
    padding: clamp(40px, 6vw, 60px) clamp(20px, 6vw, 80px) clamp(80px, 10vw, 140px);
}
.story-kicker { max-width: 1400px; margin-inline: auto; margin-bottom: 40px; }
.story-layout {
    max-width: 1400px;
    margin-inline: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: clamp(24px, 4vw, 48px);
}
.story-sticky {
    position: sticky;
    top: 110px;
    aspect-ratio: 4 / 3;
    min-width: 0;
    max-width: 460px;
    flex: 1 1 420px;
    align-self: flex-start;
    overflow: hidden;
    border-radius: 4px;
    background: var(--brand-royal);
}
.story-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.9s ease;
}
.story-video.is-active { opacity: 1; z-index: 2; }
.story-video-shade {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0,20,46,0.05), rgba(0,20,46,0.55));
}
.story-video-label {
    position: absolute;
    bottom: 20px;
    inset-inline-start: 20px;
    z-index: 6;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
}
.story-column {
    min-width: 0;
    flex: 1 1 420px;
    display: flex;
    flex-direction: column;
    gap: clamp(50px, 10vw, 120px);
}
/* Mobile: stack cleanly, disable sticky so the video cannot overlap the text. */
@media (max-width: 767px) {
    .story-sticky { position: static; top: auto; max-width: 100%; }
    .story-layout { gap: clamp(24px, 6vw, 40px); }
}
.story-block { transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
.story-block.is-dimmed { opacity: 0.45; transform: translateY(8px); }
.story-num { margin-bottom: 14px; font-size: 14px; font-weight: 800; color: var(--brand-cyan); }
.story-heading {
    margin-bottom: 18px;
    font-size: clamp(24px, 3.2vw, 38px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.12;
}
body.rtl .story-heading { line-height: 1.3; }
.story-text {
    margin-bottom: 20px;
    max-width: 480px;
    font-size: clamp(15px, 1.4vw, 18px);
    color: #C9D6E3;
    line-height: 1.65;
}
body.rtl .story-text { line-height: 1.8; }
.story-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
    border-radius: 2px;
    border: 1px solid rgba(98, 182, 229, 0.4);
    background: rgba(98, 182, 229, 0.1);
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-ice);
    letter-spacing: 1px;
}
body.rtl .chip { letter-spacing: normal; }

/* ---------- Categories ---------- */
.categories { padding-block: 80px; }
.badge-round {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-navy);
    background: var(--brand-50);
    padding: 4px 12px;
    border-radius: 9999px;
    margin-bottom: 12px;
}
html[data-theme="dark"] .badge-round { background: rgba(33, 34, 68, 0.6); color: #e5e7eb; }

.category-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 24px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.category-card:hover { box-shadow: var(--shadow-xl); }
.category-card.cat-blue:hover { border-color: var(--brand-blue); }
.category-card.cat-cyan:hover { border-color: var(--brand-cyan); }
.category-card.cat-teal:hover { border-color: #2dd4bf; }

.category-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}
.category-icon .icon { width: 24px; height: 24px; }
.category-icon.cat-blue { background: linear-gradient(135deg, #2563eb, var(--brand-navy)); }
.category-icon.cat-cyan { background: linear-gradient(135deg, var(--brand-cyan), var(--brand-blue)); }
.category-icon.cat-teal { background: linear-gradient(135deg, #14b8a6, var(--brand-cyan)); }

.category-title { font-size: 24px; font-weight: 700; color: var(--brand-navy); margin-bottom: 12px; transition: color 0.2s ease; }
html[data-theme="dark"] .category-title { color: #ffffff; }
.category-card:hover .category-title { color: var(--brand-cyan); }
.category-text { font-size: 14px; color: var(--muted-text); line-height: 1.65; }

.category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid var(--card-border);
    font-weight: 600;
    font-size: 14px;
    color: var(--brand-navy);
    transition: color 0.2s ease;
}
html[data-theme="dark"] .category-link { color: var(--brand-ice); }
.category-card:hover .category-link { color: var(--brand-cyan); }
.category-link .icon-sm { width: 16px; height: 16px; transition: transform 0.2s ease; }
.category-card:hover .category-link .icon-sm { transform: translateX(4px); }
body.rtl .category-card:hover .category-link .icon-sm { transform: translateX(-4px); }

/* ---------- Saudi network ---------- */
.saudi {
    position: relative;
    overflow: hidden;
    padding: clamp(70px, 12vw, 140px) clamp(20px, 6vw, 80px);
}
.saudi-video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.saudi-overlay { position: absolute; inset: 0; z-index: 1; background: rgba(0, 20, 46, 0.86); }
.saudi-grid {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: clamp(30px, 5vw, 60px);
}
@media (min-width: 768px) { .saudi-grid { grid-template-columns: repeat(2, 1fr); } }
.saudi-title {
    margin: 20px 0;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
}
body.rtl .saudi-title { line-height: 1.3; }
.saudi-text {
    max-width: 440px;
    font-size: clamp(15px, 1.5vw, 19px);
    color: #C9D6E3;
    line-height: 1.6;
}
body.rtl .saudi-text { line-height: 1.8; }

.saudi-map { position: relative; width: 100%; max-width: 672px; margin-inline: auto; }
.saudi-map svg { width: 100%; height: auto; animation: map-drift 12s ease-in-out infinite; }
.saudi-map path {
    fill: rgba(54, 73, 152, 0.18);
    stroke: rgba(98, 182, 229, 0.7);
    stroke-width: 1;
    cursor: pointer;
    transition: fill 0.3s ease, stroke-width 0.3s ease;
    outline: none;
}
.saudi-map path:hover, .saudi-map path:focus {
    fill: rgba(98, 182, 229, 0.55);
    stroke-width: 2;
}
.map-tooltip {
    position: absolute;
    bottom: 16px;
    inset-inline-start: 16px;
    padding: 6px 12px;
    border-radius: 9999px;
    background: rgba(0, 32, 73, 0.9);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

@keyframes map-drift {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-6px) scale(1.01); }
}

/* ---------- Compliance ---------- */
.compliance {
    position: relative;
    overflow: hidden;
    padding: clamp(70px, 12vw, 140px) clamp(20px, 6vw, 80px);
}
.compliance-video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.compliance-overlay { position: absolute; inset: 0; z-index: 1; background: rgba(0, 20, 46, 0.88); }
.compliance-content { position: relative; z-index: 2; max-width: 1200px; margin-inline: auto; }
.compliance-title {
    margin: 20px 0 50px;
    font-size: clamp(30px, 5vw, 64px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
}
body.rtl .compliance-title { line-height: 1.25; }
.cert-tag {
    display: inline-block;
    margin-bottom: 16px;
    border-radius: 2px;
    background: rgba(98, 182, 229, 0.15);
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 800;
    color: var(--brand-cyan);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.compliance-text { font-size: 17px; color: var(--brand-ice); line-height: 1.6; margin-bottom: 8px; }
body.rtl .compliance-text { line-height: 1.8; }

/* ---------- Final CTA ---------- */
.cta {
    position: relative;
    overflow: hidden;
    padding: clamp(80px, 14vw, 160px) clamp(20px, 6vw, 80px);
    text-align: center;
}
.cta-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, #00142E 0%, #002049 55%, #212244 100%);
}
.cta-glow {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(98,182,229,0.14) 0%, transparent 70%);
}
.cta-content { position: relative; z-index: 2; }
.cta-mark { width: 56px; height: auto; margin: 0 auto 32px; }
.cta-rule { width: 64px; height: 1px; background: var(--gold); margin: 0 auto 32px; }
.cta-title {
    margin-bottom: 24px;
    font-size: clamp(34px, 6vw, 72px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.05;
}
body.rtl .cta-title { line-height: 1.25; }
.cta-sub {
    margin-bottom: 40px;
    font-size: clamp(16px, 1.8vw, 22px);
    color: #C9D6E3;
    line-height: 1.5;
}
body.rtl .cta-sub { line-height: 1.7; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
    position: relative;
    padding-block: 80px;
    overflow: hidden;
    background: linear-gradient(135deg, #00142E 0%, #002049 55%, #212244 100%);
}
.page-hero .container { position: relative; z-index: 2; max-width: 768px; text-align: start; }
.page-hero-blob {
    position: absolute;
    top: -160px;
    inset-inline-start: -160px;
    width: 384px;
    height: 384px;
    border-radius: 9999px;
    background: rgba(98, 182, 229, 0.15);
    filter: blur(64px);
    pointer-events: none;
}
.page-hero-blob.right { inset-inline-start: auto; inset-inline-end: -160px; }
.page-title {
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
}
.page-desc {
    font-size: clamp(17px, 2vw, 20px);
    color: rgba(219, 234, 254, 0.9);
    line-height: 1.7;
}
.page-updated { margin-top: 16px; font-size: 13px; color: #93b4d8; }

/* About hero: full-bleed photo blended into the brand navy, slow drift. */
.page-hero--image {
    position: relative;
    background: var(--brand-deep);
}
.page-hero--image::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--page-hero-image) center / cover no-repeat;
    transform: scale(1.04);
    animation: hero-kenburns 30s ease-in-out infinite alternate;
    will-change: transform;
}
.page-hero--image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(180deg, rgba(0, 20, 46, 0.92) 0%, rgba(0, 20, 46, 0.66) 45%, rgba(0, 20, 46, 0.96) 100%),
        linear-gradient(90deg, rgba(0, 20, 46, 0.72) 0%, rgba(0, 20, 46, 0) 66%);
}
body.rtl .page-hero--image::after {
    background:
        linear-gradient(180deg, rgba(0, 20, 46, 0.92) 0%, rgba(0, 20, 46, 0.66) 45%, rgba(0, 20, 46, 0.96) 100%),
        linear-gradient(270deg, rgba(0, 20, 46, 0.72) 0%, rgba(0, 20, 46, 0) 66%);
}
.page-hero--image .page-hero-blob { display: none; }
@keyframes hero-kenburns {
    from { transform: scale(1.04) translate3d(0, 0, 0); }
    to   { transform: scale(1.12) translate3d(-1.5%, -1.5%, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .page-hero--image::before { animation: none; }
}
.not-found { min-height: 60vh; display: flex; align-items: center; text-align: center; }
.not-found .btn { margin-top: 24px; }

/* ---------- Page sections ---------- */
.page-section { padding-block: 64px; }
.bg-white { background: var(--body-bg); }
.bg-ice { background: var(--ice-bg); border-block: 1px solid var(--brand-100); }
html[data-theme="dark"] .bg-ice { border-color: rgba(33, 34, 68, 0.4); }

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}
.card-title { font-size: 24px; font-weight: 700; color: var(--brand-navy); margin-bottom: 16px; }
html[data-theme="dark"] .card-title { color: #ffffff; }
.card p, .text { color: var(--muted-text); line-height: 1.7; font-size: 15px; }

.value-card {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--brand-50);
    border: 1px solid var(--card-border);
}
html[data-theme="dark"] .value-card { background: rgba(0, 20, 46, 0.8); }
.value-card .pillar-icon { margin-bottom: 16px; width: fit-content; }
.value-title { font-size: 20px; font-weight: 700; color: var(--brand-navy); margin-bottom: 8px; }
html[data-theme="dark"] .value-title { color: #ffffff; }
.value-text { font-size: 14px; color: var(--muted-text); line-height: 1.65; }

.service-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
}
.service-title { font-size: 18px; font-weight: 700; color: var(--brand-navy); margin-bottom: 4px; }
html[data-theme="dark"] .service-title { color: #ffffff; }
.service-text { font-size: 14px; color: var(--muted-text); line-height: 1.65; }

.client-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.icon-brand { color: var(--brand-blue); }
html[data-theme="dark"] .icon-brand { color: var(--brand-cyan); }
.client-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--muted-text);
    padding-block: 4px;
}
.client-list li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background: var(--brand-cyan);
    flex: none;
}

/* ---------- Contact ---------- */
.contact-card {
    display: block;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--brand-50);
    border: 1px solid var(--card-border);
    transition: border-color 0.2s ease;
}
html[data-theme="dark"] .contact-card { background: rgba(0, 20, 46, 0.8); }
a.contact-card:hover { border-color: var(--brand-cyan); }
.contact-card-inner { display: flex; align-items: flex-start; gap: 16px; }
.contact-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted-text);
    margin-bottom: 4px;
}
.contact-value { font-size: 16px; font-weight: 600; color: var(--brand-navy); transition: color 0.2s ease; }
/* Phone numbers are LTR-isolated (dir="ltr") so "+966 ..." never flips in
   the Arabic layout; keep them aligned with the RTL card text. */
body.rtl .contact-value[dir="ltr"] { text-align: right; }
body.rtl input[dir="ltr"] { text-align: right; }
html[data-theme="dark"] .contact-value { color: #ffffff; }
a.contact-card:hover .contact-value { color: var(--brand-cyan); }

/* ---------- Forms ---------- */
.contact-form { margin-top: 32px; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 24px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span, .field legend { font-size: 14px; font-weight: 600; color: var(--body-text); }
.field-full { grid-column: 1 / -1; }
.field input, .field textarea {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: var(--body-text);
    width: 100%;
    transition: border-color 0.2s ease;
}
.field input:focus, .field textarea:focus {
    outline: none;
    border-color: var(--brand-cyan);
    box-shadow: 0 0 0 3px rgba(98, 182, 229, 0.2);
}
.radio-row { display: flex; flex-wrap: wrap; gap: 16px; }
.radio-option { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--muted-text); }
.hp-field { position: absolute !important; inset-inline-start: -9999px; opacity: 0; height: 0; width: 0; }

.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-size: 15px; }
.alert-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
html[data-theme="dark"] .alert-success { background: rgba(6, 78, 59, 0.4); border-color: rgba(16, 185, 129, 0.4); color: #6ee7b7; }
html[data-theme="dark"] .alert-error { background: rgba(127, 29, 29, 0.4); border-color: rgba(239, 68, 68, 0.4); color: #fca5a5; }

/* ---------- WhatsApp CTA ---------- */
.whatsapp-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    padding: clamp(32px, 5vw, 48px);
    border-radius: 24px;
    background: linear-gradient(135deg, #00142E 0%, #002049 55%, #212244 100%);
    box-shadow: var(--shadow-xl);
}
@media (min-width: 768px) { .whatsapp-cta { flex-direction: row; align-items: center; } }
.whatsapp-copy { max-width: 672px; }
.whatsapp-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 14px;
    margin-bottom: 16px;
}
.whatsapp-badge .icon-sm { width: 16px; height: 16px; color: var(--brand-cyan); }
.whatsapp-copy h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 700; color: #ffffff; margin-bottom: 8px; }
.whatsapp-copy p { color: rgba(219, 234, 254, 0.9); line-height: 1.7; }
.whatsapp-cta .btn { flex-shrink: 0; min-width: 180px; }

/* ---------- Legal ---------- */
.legal-body { padding-block: 32px; }
.legal-block { margin-bottom: 40px; }
.legal-title { font-size: 20px; font-weight: 700; color: var(--brand-navy); margin-bottom: 12px; }
html[data-theme="dark"] .legal-title { color: #ffffff; }
.legal-block p { color: var(--muted-text); line-height: 1.8; }

/* ---------- Footer ---------- */
.site-footer {
    background: #00142E;
    color: #d1d5db;
    padding-top: 64px;
    padding-bottom: 32px;
    border-top: 1px solid var(--brand-royal);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-logo img { height: 48px; width: auto; margin-bottom: 16px; }
.footer-tagline { font-size: 14px; color: #d1d5db; line-height: 1.65; max-width: 28rem; }
.footer-address { font-size: 14px; color: #9ca3af; margin-top: 8px; }
.footer-title { font-size: 16px; font-weight: 600; color: #ffffff; margin-bottom: 16px; letter-spacing: 0.02em; }
.footer-col ul li { padding-block: 5px; }
.footer-col a { font-size: 14px; color: #9ca3af; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--brand-cyan); }
.footer-bottom {
    border-top: 1px solid rgba(33, 34, 68, 0.6);
    padding-top: 24px;
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
}
@media (min-width: 768px) { .footer-bottom { text-align: start; } }

/* ---------- Icons ---------- */
.icon { width: 24px; height: 24px; flex: none; }
.icon-sm { width: 16px; height: 16px; flex: none; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-revealed { opacity: 1; transform: none; }

.stagger > * { animation: fade-in-up 0.4s var(--ease-out) both; }
.stagger > *:nth-child(1) { animation-delay: 0ms; }
.stagger > *:nth-child(2) { animation-delay: 60ms; }
.stagger > *:nth-child(3) { animation-delay: 120ms; }
.stagger > *:nth-child(4) { animation-delay: 180ms; }
.stagger > *:nth-child(5) { animation-delay: 240ms; }
.stagger > *:nth-child(6) { animation-delay: 300ms; }

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    .marquee-track { animation: none; }
    .saudi-map svg { animation: none; }
    html { scroll-behavior: auto; }
}
