:root {
    --bg: #f7f6f9;
    --bg-tint: #eef0f8;
    --surface: #ffffff;
    --ink: #626263;
    --muted: #8a898c;
    --line: rgba(45, 58, 131, 0.12);
    --navy: #2d3a83;
    --teal: #0984e3;
    --copper: #f47e36;
    --button-bg: #f47e36;
    --button-text: #ffffff;
    --header: rgba(247, 246, 249, 0.9);
    --shadow: 0 24px 50px rgba(45, 58, 131, 0.08);
    --glow: rgba(176, 166, 230, 0.45);
    --glow-2: rgba(244, 126, 54, 0.14);
    --logo-light: #b7e4fb;
    --logo: #3d9ad4;
    --logo-deep: #1c78b4;
    --sans: "DM Sans", "Segoe UI", sans-serif;
    --serif: "DM Sans", "Segoe UI", sans-serif;
    --radius: 1.4rem;
}

[data-theme="dark"] {
    --bg: #0f0326;
    --bg-tint: #161033;
    --surface: #1c1d3c;
    --ink: #d5d2dc;
    --muted: #bdbac2;
    --line: rgba(232, 230, 244, 0.14);
    --navy: #e8e6f4;
    --teal: #7eb6f0;
    --copper: #f47e36;
    --button-bg: #f47e36;
    --button-text: #ffffff;
    --header: rgba(15, 3, 38, 0.9);
    --shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
    --glow: rgba(98, 84, 180, 0.28);
    --glow-2: rgba(244, 126, 54, 0.16);
    --logo-light: #d7f3ff;
    --logo: #6ec4ef;
    --logo-deep: #2f95d4;
}

html[dir="rtl"] {
    --sans: "Cairo", "Segoe UI", sans-serif;
    --serif: "Noto Naskh Arabic", "Cairo", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.05rem;
    line-height: 1.7;
    min-height: 100vh;
}
body::before {
    content: "";
    position: fixed;
    inset: -18%;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 12%, var(--glow), transparent 34%),
        radial-gradient(circle at 86% 8%, rgba(244, 190, 220, 0.45), transparent 30%),
        radial-gradient(circle at 72% 78%, rgba(167, 224, 214, 0.4), transparent 32%),
        radial-gradient(circle at 8% 70%, var(--glow-2), transparent 28%);
    animation: wash 16s ease-in-out infinite alternate;
}
[data-theme="dark"] body::before { opacity: 0.55; }

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

h1, h2, h3, .brand strong {
    font-family: var(--sans);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--navy);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0 0 0.8rem; }
h3 { font-size: 1.35rem; margin: 0 0 0.4rem; }

p { margin: 0 0 1rem; }

a { color: var(--teal); text-underline-offset: 0.18em; }
a:hover { color: var(--copper); }

.skip {
    position: absolute;
    inset-inline-start: 1rem;
    top: -4rem;
    background: var(--button-bg);
    color: var(--button-text);
    padding: 0.5rem 0.8rem;
    z-index: 20;
}
.skip:focus { top: 0.5rem; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--header);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}

.topbar {
    background: transparent;
    color: var(--muted);
    font-size: 0.74rem;
    border-bottom: 1px solid rgba(244, 126, 54, 0.4);
}
[data-theme="dark"] .topbar { color: var(--muted); }
.topbar a { color: inherit; text-decoration: none; }
.contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--ink);
    font-weight: 500;
    line-height: 1.25;
    max-width: 100%;
}
.contact-chip:hover { color: var(--navy); }
.contact-chip-icon {
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 0.48rem;
    display: grid;
    place-items: center;
    color: #2d3a83;
    background:
        linear-gradient(180deg, #ffffff 0%, #eef1f8 100%);
    border: 1px solid rgba(45, 58, 131, 0.16);
    box-shadow: 0 6px 14px rgba(45, 58, 131, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.7);
    flex: none;
}
[data-theme="dark"] .contact-chip-icon {
    color: #f4f7ff;
    background: linear-gradient(180deg, #2a2c52 0%, #1c1d3c 100%);
    border-color: rgba(244, 126, 54, 0.45);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
}
.contact-chip:hover .contact-chip-icon {
    color: #fff;
    background: #f47e36;
    border-color: #f47e36;
}
.contact-chip-icon svg { width: 0.88rem; height: 0.88rem; display: block; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.topbar-inner, .header-inner, .footer-base, .cta-inner {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    justify-content: space-between;
    min-height: 2.4rem;
}
.topbar-inner { justify-content: flex-end; flex-wrap: wrap; gap: 1.1rem; padding-block: 0.4rem; }
html[dir="rtl"] .topbar-inner { justify-content: flex-start; }

.header-inner { min-height: 5.2rem; gap: 1rem; }
.site-header.is-compact .header-inner { min-height: 4.2rem; }
.site-header.is-compact .brand-logo { height: 52px; }

.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: inherit; }
.brand-logo { height: 68px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong {
    display: inline-block;
    font-size: 1.85rem;
    transform-origin: center;
    animation: brand-zoom-in 0.85s cubic-bezier(0.16, 0.84, 0.32, 1) both, brand-zoom 3.4s ease-in-out 0.85s infinite;
}
.site-header.is-compact .brand-text strong { font-size: 1.55rem; }
.brand-text small { color: var(--muted); font-family: var(--sans); letter-spacing: 0.04em; }

.site-nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 0.2rem; list-style: none; margin: 0; padding: 0; }
.nav-list > li { display: flex; align-items: center; }
.nav-list a {
    display: inline-flex;
    align-items: center;
    color: var(--ink);
    text-decoration: none;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    font-weight: 500;
    line-height: 1.2;
}
.nav-list a.is-active, .nav-list a:hover,
.nav-drop.is-current > .nav-drop-toggle, .nav-drop-toggle:hover {
    background: transparent;
    color: var(--navy);
    box-shadow: inset 0 -2px 0 var(--copper);
    border-radius: 0;
}
.nav-drop { position: relative; display: flex; align-items: center; }
.nav-drop-toggle {
    display: inline-flex;
    align-items: center;
    margin: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-weight: 500;
    line-height: 1.2;
    padding: 0.4rem 0.7rem;
    cursor: pointer;
    appearance: none;
}
.nav-drop-menu {
    display: none;
    position: absolute;
    top: calc(100% - 0.15rem);
    inset-inline-start: 0;
    min-width: 15rem;
    padding: 0.45rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    box-shadow: var(--shadow);
    z-index: 40;
}
.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu,
.nav-drop.is-open .nav-drop-menu { display: grid; }
.nav-drop-menu a {
    border-radius: 0.55rem;
    box-shadow: none;
}
.nav-drop-menu a:hover, .nav-drop-menu a.is-active {
    background: var(--bg-tint);
    box-shadow: none;
}

.header-tools { display: flex; align-items: center; gap: 0.6rem; margin-inline-start: auto; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-switch a {
    color: var(--muted);
    text-decoration: none;
    padding: 0.28rem 0.55rem;
    font-size: 0.82rem;
    font-weight: 650;
}
.lang-switch a.is-active { background: var(--navy); color: #fff; }
[data-theme="dark"] .lang-switch a.is-active { background: var(--copper); color: #fff; }

.theme-toggle, .nav-toggle {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    border-radius: 999px;
    width: 2.4rem;
    height: 2.4rem;
    display: grid;
    place-items: center;
    cursor: pointer;
}
.nav-toggle { display: none; width: auto; padding-inline: 0.8rem; gap: 0.45rem; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 16px; height: 1.5px; background: currentColor; position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; inset-inline-start: 0; }
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }
.nav-toggle-label { font-size: 0.85rem; }

.icon-sun, .icon-moon { width: 18px; height: 18px; display: block; }
[data-theme="light"] .icon-sun, [data-theme="dark"] .icon-moon { display: none; }

.hero { padding: 3.5rem 0 2rem; }

.hero-slider { padding: 1.25rem 0 0.5rem; }
.hero-slider-viewport {
    position: relative;
    min-height: 640px;
    border-radius: 1.8rem;
    overflow: hidden;
    background: #120c28;
    box-shadow: var(--shadow);
}
.hero-slider-track {
    position: absolute;
    inset: 0;
    display: flex;
    width: calc(var(--hero-count) * 100%);
    height: 100%;
    transform: translateX(calc(var(--hero-index, 0) * -100% / var(--hero-count)));
    transition: transform 0.65s cubic-bezier(0.77, 0, 0.18, 1);
}
html[dir="rtl"] .hero-slider-track {
    transform: translateX(calc(var(--hero-index, 0) * 100% / var(--hero-count)));
}
.hero-slide {
    position: relative;
    flex: 0 0 calc(100% / var(--hero-count));
    height: 100%;
    margin: 0;
    overflow: hidden;
}
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.14);
    border-radius: 0;
}
.hero-slide.is-active img {
    animation: hero-ken 4s ease-out both;
}
.hero-slider-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(10, 8, 28, 0.9) 0%, rgba(10, 8, 28, 0.62) 40%, rgba(10, 8, 28, 0.12) 72%, rgba(10, 8, 28, 0.28) 100%);
}
html[dir="rtl"] .hero-slider-shade {
    background: linear-gradient(270deg, rgba(10, 8, 28, 0.9) 0%, rgba(10, 8, 28, 0.62) 40%, rgba(10, 8, 28, 0.12) 72%, rgba(10, 8, 28, 0.28) 100%);
}
.hero-slider-copy {
    position: relative;
    z-index: 2;
    min-height: 640px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 640px;
    padding-block: 3rem 5rem;
}
.hero-slider h1, .hero-slider .lead { color: #fff; }
.hero-slider .lead { color: rgba(255, 255, 255, 0.88); }
.hero-slider .eyebrow { color: #f47e36; }
.hero-slider .button-line {
    border-color: rgba(255, 255, 255, 0.85);
    color: #fff;
}
.hero-slider .button-line:hover { background: #fff; border-color: #fff; color: #2d3a83; }
.hero-slider-controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.5rem; }
.hero-slider-arrow {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
}
.hero-slider-arrow svg { width: 18px; height: 18px; }
html[dir="rtl"] .hero-slider-arrow svg { transform: scaleX(-1); }
.hero-slider-dots { display: flex; gap: 0.45rem; }
.hero-slider-dot {
    width: 2.3rem;
    height: 0.28rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    padding: 0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.hero-slider-dot.is-active::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #f47e36;
    transform-origin: left center;
    animation: hero-dot 4s linear;
}
html[dir="rtl"] .hero-slider-dot.is-active::after { transform-origin: right center; }
.hero-grid, .split, .contact-grid, .footer-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
    align-items: start;
}
.split.align-center, .contact-grid { align-items: center; }
.eyebrow, .kicker {
    color: var(--copper);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.7rem;
}
html[dir="rtl"] .eyebrow, html[dir="rtl"] .kicker { letter-spacing: 0; text-transform: none; font-size: 0.95rem; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 42rem; }
.action-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.4rem; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.75rem 1.3rem;
    text-decoration: none;
    border: 1px solid transparent;
    font-weight: 650;
    cursor: pointer;
    font-family: inherit;
}
.button-solid { background: var(--button-bg); color: var(--button-text); }
.button-solid:hover { color: var(--button-text); filter: brightness(1.08); }
.button-line { background: transparent; border-color: var(--navy); color: var(--navy); }
.button-line:hover { background: var(--copper); border-color: var(--copper); color: #fff; }
.button-solid { animation: pulse-glow 3.2s ease-in-out infinite; }

.hero-media { margin: 0; position: relative; }
.hero-media img, .frame-photo img, .article-photo img, .news-row img {
    width: 100%;
    border-radius: var(--radius);
    object-fit: cover;
    display: block;
}
.hero-media img { height: min(68vh, 640px); box-shadow: var(--shadow); }
.hero-media blockquote {
    margin: 1rem 0 0;
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 1.1rem;
    padding: 1.1rem 1.2rem;
    color: var(--ink);
    box-shadow: var(--shadow);
    font-family: var(--serif);
    font-size: 1.08rem;
    line-height: 1.45;
}

.stat-band { background: var(--navy); color: #f6f3ec; padding: 1.5rem 0; }
[data-theme="dark"] .stat-band { background: #161033; border-block: 1px solid var(--line); }
.stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.stat-grid strong {
    display: block;
    font-family: var(--serif);
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    color: #f6f3ec;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}
.stat-grid strong.is-counting {
    animation: stat-pop 0.7s cubic-bezier(0.16, 0.84, 0.32, 1);
}
@keyframes stat-pop {
    0% { transform: translateY(10px) scale(0.82); }
    55% { transform: translateY(-6px) scale(1.08); }
    100% { transform: none; }
}
.stat-grid span { color: rgba(246, 243, 236, 0.78); font-size: 0.92rem; }

.section { padding: 4.5rem 0; }
.section-tint { background: color-mix(in srgb, var(--bg-tint) 80%, transparent); }
.subhead { margin-top: 1.6rem; }
.section-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1.6rem; }
.text-link { font-weight: 650; white-space: nowrap; }

.pillar-stack, .trio, .card-grid, .partner-grid, .news-grid { display: grid; gap: 1rem; }
.pillar-stack { gap: 0.8rem; }
.pillar, .info-card, .trio article, .partner-card, .quote-panel, .form-card, .message-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.2rem 1.25rem;
}
@property --angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}
.pillar, .info-card, .trio article, .partner-card, .logo-tile, .news-card, .company-card {
    position: relative;
    border: 3px solid var(--logo);
    box-shadow:
        0 0 0 1px var(--logo-light),
        0 0 14px 1px rgba(61, 154, 212, 0.55),
        0 0 28px 4px rgba(61, 154, 212, 0.28);
}
.news-card { border-radius: var(--radius); padding: 1.2rem 1.25rem; }
.pillar::before, .info-card::before, .trio article::before, .partner-card::before, .logo-tile::before, .news-card::before, .company-card::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    padding: 3px;
    background: conic-gradient(from var(--angle), transparent 0 62%, #ffffff 74%, var(--logo-light) 82%, var(--logo) 90%, transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: border-light 2.8s linear infinite;
    pointer-events: none;
    z-index: 2;
}
.pillar:nth-child(2)::before, .info-card:nth-child(2)::before, .trio article:nth-child(2)::before, .logo-tile:nth-child(2n)::before { animation-delay: -0.9s; }
.pillar:nth-child(3)::before, .info-card:nth-child(3)::before, .trio article:nth-child(3)::before, .logo-tile:nth-child(3n)::before { animation-delay: -1.7s; }
.pillar:nth-child(4)::before, .info-card:nth-child(4)::before, .logo-tile:nth-child(4n)::before { animation-delay: -2.3s; }
.info-card span { color: var(--copper); font-family: var(--serif); font-size: 1.3rem; }
.card-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
.trio { grid-template-columns: repeat(3, 1fr); }
.partner-grid { grid-template-columns: repeat(4, 1fr); }

.company-list { display: grid; gap: 1.15rem; }
.company-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.4rem;
    align-items: center;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.35rem 1.4rem;
}
.company-logo {
    background: #fff;
    border-radius: 1rem;
    min-height: 150px;
    display: grid;
    place-items: center;
    padding: 1rem;
}
.company-logo img { max-width: 100%; max-height: 92px; width: auto; object-fit: contain; }
.company-card h3 { margin: 0.15rem 0 0.45rem; }
.company-card p { margin: 0 0 1rem; }
[data-theme="dark"] .company-logo { background: #f4f7f8; }

.marquee {
    overflow: hidden;
    border-bottom: 1px solid rgba(244, 126, 54, 0.45);
    padding: 0.65rem 0;
}
.marquee-track, .logo-track {
    display: flex;
    width: max-content;
    animation: marquee 28s linear infinite;
}
.marquee-track span {
    color: var(--navy);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
    padding-inline-end: 1.5rem;
}
html[dir="rtl"] .marquee-track span { letter-spacing: 0; text-transform: none; font-size: 1.02rem; }
html[dir="rtl"] .marquee-track, html[dir="rtl"] .logo-track { animation-direction: reverse; }
.logo-marquee { overflow: hidden; }
.logo-track { gap: 0.8rem; animation-duration: 36s; }
.logo-track .logo-tile { width: 180px; flex: 0 0 auto; }

.logo-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
.logo-row.logo-track { display: flex; width: max-content; }
.logo-tile {
    background: #fff;
    border-radius: 1rem;
    min-height: 110px;
    display: grid;
    place-items: center;
    padding: 0.8rem;
}
.logo-tile img { max-height: 64px; width: auto; object-fit: contain; }
[data-theme="dark"] .logo-tile { background: #f4f7f8; }

.index-list { list-style: none; margin: 0 0 1.2rem; padding: 0; counter-reset: item; }
.index-list li {
    counter-increment: item;
    display: flex;
    gap: 0.9rem;
    align-items: baseline;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
    font-weight: 600;
}
.index-list li::before {
    content: counter(item, decimal-leading-zero);
    color: var(--copper);
    font-family: var(--serif);
    min-width: 2rem;
}

.frame-photo { margin: 0; }
.frame-photo img { height: 460px; box-shadow: var(--shadow); }

.service-stack { display: grid; gap: 2.5rem; }
.service-row { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 2rem; align-items: center; }
.service-row.is-flipped figure { order: 2; }
.service-row img { height: 320px; width: 100%; object-fit: cover; border-radius: var(--radius); }

.chip-list { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; }
.chip-list li {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
}

.center-line { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.center-line h3 { font-size: 1.08rem; }
.partner-logo {
    height: 84px;
    display: grid;
    place-items: center;
    background: #fff;
    border-radius: 0.8rem;
    margin-bottom: 0.9rem;
    padding: 0.5rem;
}
.partner-logo img { max-height: 58px; width: auto; }

.news-card time, .news-row time, .article time { color: var(--copper); font-size: 0.9rem; }
.news-card h3 a, .news-row h2 a { color: var(--navy); text-decoration: none; }
.news-card h3 a:hover, .news-row h2 a:hover { color: var(--teal); }
.news-list { display: grid; gap: 1.4rem; }
.news-row { display: grid; grid-template-columns: 220px 1fr; gap: 1.2rem; align-items: center; }
.news-row img { height: 150px; object-fit: cover; }
.narrow { max-width: 48rem; }
.article-photo { margin: 1.2rem 0 1.6rem; }
.article-photo img { max-height: 460px; width: 100%; object-fit: cover; }
.prose p { font-size: 1.12rem; }

.page-hero { padding: 3.2rem 0 1rem; }
.page-hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.page-hero-copy { min-width: 0; max-width: 46rem; }
.page-hero-logo {
    width: min(190px, 30vw);
    height: auto;
    flex: none;
    transform-origin: center;
    animation: brand-zoom-in 0.9s cubic-bezier(0.16, 0.84, 0.32, 1) both, brand-zoom 4.2s ease-in-out 0.9s infinite;
}
.article .page-hero-logo { display: block; width: 120px; margin: 0 0 1rem auto; }
html[dir="rtl"] .article .page-hero-logo { margin-inline: auto 0; }
.quote-panel { background: var(--navy); color: #f6f3ec; }
.quote-panel h2, .quote-panel p { color: #f6f3ec; }
[data-theme="dark"] .quote-panel { background: #081018; }

.cta-band { padding: 0 0 4rem; }
.cta-inner {
    background: var(--navy);
    color: #f6f3ec;
    border-radius: calc(var(--radius) + 0.4rem);
    padding: 2rem;
}
[data-theme="dark"] .cta-inner { background: #081018; border: 1px solid var(--line); }
.cta-inner h2, .cta-inner p { color: #f6f3ec; }
.cta-inner p { margin: 0; max-width: 40rem; }

.contact-facts h2 { font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--copper); font-family: var(--sans); }
html[dir="rtl"] .contact-facts h2 { letter-spacing: 0; text-transform: none; }
.form-card, .stack-form label, .auth-card label { display: grid; gap: 0.35rem; }
.form-card { display: grid; gap: 0.85rem; }
input, textarea, select {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--ink);
    border-radius: 0.8rem;
    padding: 0.7rem 0.8rem;
    font: inherit;
}
.form-card small, .stack-form small, .form-error { color: #9a3030; }
[data-theme="dark"] .form-error, [data-theme="dark"] .stack-form small { color: #ffb4b4; }
.form-success { background: color-mix(in srgb, var(--teal) 16%, var(--surface)); border-radius: 0.8rem; padding: 0.8rem 1rem; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; filter: saturate(0.8); }
.social-row { display: flex; gap: 1rem; }

.site-footer { background: #1c1d3c; color: #e7eef3; padding-top: 3rem; }
.site-footer h2 { color: #f6f3ec; font-size: 1rem; font-family: var(--sans); letter-spacing: 0.08em; text-transform: uppercase; }
html[dir="rtl"] .site-footer h2 { letter-spacing: 0; text-transform: none; }
.site-footer a { color: #d5e4ee; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.footer-logo { height: 72px; width: auto; margin-bottom: 0.8rem; }
.footer-grid { padding-bottom: 2rem; }
.footer-base { border-top: 1px solid rgba(255,255,255,0.12); padding-block: 1rem; font-size: 0.9rem; }

.admin-body { background: var(--bg); }
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-side {
    background: var(--navy);
    color: #f6f3ec;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
[data-theme="dark"] .admin-side { background: #070c11; }
.admin-side .brand-text strong, .admin-side .brand-text small { color: #f6f3ec; }
.admin-side nav { display: grid; gap: 0.3rem; }
.admin-side nav a {
    color: #f6f3ec;
    text-decoration: none;
    padding: 0.55rem 0.7rem;
    border-radius: 0.8rem;
    display: flex;
    justify-content: space-between;
}
.admin-side nav a.is-active, .admin-side nav a:hover { background: rgba(255,255,255,0.1); }
.admin-side nav em {
    background: var(--copper);
    color: white;
    border-radius: 999px;
    min-width: 1.4rem;
    text-align: center;
    font-style: normal;
    font-size: 0.8rem;
}
.admin-side-foot { margin-top: auto; display: grid; gap: 0.7rem; }
.admin-side-foot a, .admin-side-foot button {
    color: #f6f3ec;
    background: none;
    border: 0;
    padding: 0;
    text-align: start;
    cursor: pointer;
    font: inherit;
}
.admin-main { padding: 1.4rem 1.6rem 3rem; }
.admin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.admin-top h1 { font-size: 2rem; }
.admin-intro { color: var(--muted); max-width: 46rem; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; margin: 1rem 0 1.4rem; }
.metric-grid article { background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; padding: 1rem; }
.metric-grid span { color: var(--muted); font-size: 0.9rem; }
.metric-grid strong { display: block; font-size: 1.4rem; overflow-wrap: anywhere; }
.stack-form { display: grid; gap: 0.9rem; max-width: 46rem; }
.stack-form fieldset { border: 1px solid var(--line); border-radius: 1rem; padding: 1rem; display: grid; gap: 0.8rem; }
.hint { color: var(--muted); }
.check { grid-template-columns: auto 1fr; align-items: center; }
.check input { width: auto; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; background: var(--surface); }
.data-table th, .data-table td { border-bottom: 1px solid var(--line); padding: 0.7rem; text-align: start; vertical-align: middle; }
.thumb { height: 42px; width: auto; background: white; border-radius: 0.4rem; }
.thumb.wide { height: 90px; }
.row-actions { display: flex; gap: 0.8rem; align-items: center; }
.row-actions form { margin: 0; }
.row-actions button { background: none; border: 0; color: #9a3030; cursor: pointer; font: inherit; padding: 0; }
.message-list { display: grid; gap: 0.8rem; }
.message-card header { display: flex; justify-content: space-between; gap: 1rem; }
.message-card.is-unread { border-color: var(--copper); }
.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.auth-card {
    width: min(100%, 420px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: grid;
    gap: 0.8rem;
    box-shadow: var(--shadow);
}
.auth-card img { height: 84px; width: auto; }
.auth-card form { display: grid; gap: 0.8rem; }
.auth-links { display: flex; gap: 0.8rem; flex-wrap: wrap; }

@media (max-width: 1100px) {
    .stat-grid { grid-template-columns: repeat(3, 1fr); }
    .partner-grid, .logo-row { grid-template-columns: repeat(2, 1fr); }
    .trio { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .nav-toggle { display: inline-flex; }
    .header-inner { flex-wrap: wrap; }
    .site-nav {
        display: none;
        flex-basis: 100%;
        order: 4;
        padding-bottom: 0.8rem;
    }
    .site-nav.is-open { display: block; }
    .nav-list { flex-direction: column; }
    .nav-drop-menu { position: static; min-width: 0; box-shadow: none; padding-inline-start: 0.8rem; }
    .nav-drop:hover .nav-drop-menu,
    .nav-drop:focus-within .nav-drop-menu { display: none; }
    .nav-drop.is-open .nav-drop-menu { display: grid; }
    .hero-grid, .split, .contact-grid, .footer-grid, .service-row, .news-row, .card-grid, .news-grid, .admin-shell, .metric-grid, .company-card {
        grid-template-columns: 1fr;
    }
    .service-row.is-flipped figure { order: 0; }
    .hero-media img, .frame-photo img, .service-row img { height: 260px; }
    .page-hero .container { align-items: flex-start; }
    .page-hero-logo { width: 110px; }
    .hero-slider-viewport, .hero-slider-copy { min-height: 0; }
    .hero-slider-copy { max-width: none; padding: 2rem 0 2.5rem; }
    .hero-slider-shade {
        background: linear-gradient(180deg, rgba(10, 8, 28, 0.25) 0%, rgba(10, 8, 28, 0.88) 70%) !important;
    }
    .cta-inner, .footer-base { flex-direction: column; align-items: flex-start; }
    .topbar-inner { flex-direction: column; align-items: flex-end; }
    html[dir="rtl"] .topbar-inner { align-items: flex-start; }
    .header-tools { margin-inline-start: 0; }
}

.scroll-progress {
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    height: 3px;
    width: 0;
    z-index: 40;
    background: linear-gradient(90deg, var(--copper), var(--teal));
    pointer-events: none;
}

.hero-media { overflow: visible; }
.hero-media img {
    animation: hero-breathe 9s ease-in-out infinite;
    transform-origin: center center;
}

.info-card, .pillar, .partner-card, .news-card, .logo-tile, .trio article, .center-line, .company-card {
    transition: transform 0.45s ease, box-shadow 0.45s ease;
}
.info-card:hover, .pillar:hover, .partner-card:hover, .news-card:hover, .trio article:hover, .company-card:hover {
    transform: translateY(-10px) scale(1.025);
    box-shadow:
        0 0 0 1px var(--logo-light),
        0 0 20px 3px rgba(61, 154, 212, 0.75),
        0 18px 36px rgba(16, 40, 58, 0.12);
}
.logo-tile:hover { transform: scale(1.06) rotate(-1.5deg); }
.logo-tile img, .partner-logo img { transition: transform 0.5s ease; }
.logo-tile:hover img, .partner-card:hover .partner-logo img { transform: scale(1.12); }
.button-solid:hover, .button-line:hover { transform: translateY(-2px) scale(1.03); }

.reveal { animation-duration: 0.9s; animation-fill-mode: both; animation-timing-function: cubic-bezier(0.16, 0.84, 0.32, 1); }
.reveal-rise.is-in { animation-name: rise-in; }
.reveal-fade.is-in { animation-name: fade-in; }
.reveal-zoom-in.is-in { animation-name: zoom-in; }
.reveal-zoom-out.is-in { animation-name: zoom-out; }
.reveal-shake.is-in { animation-name: shake-in; animation-duration: 0.85s; }
.reveal-slide.is-in { animation-name: slide-in; }

html.motion-on .reveal:not(.is-in) {
    opacity: 0;
}
.reveal.settled {
    opacity: 1;
    animation: float-y 6.2s ease-in-out infinite;
}
.page-hero-logo.reveal.settled { animation: brand-zoom 4.2s ease-in-out infinite; }
.reveal-zoom-out.settled { animation: drift-zoom 9s ease-in-out infinite; }
.brand-logo { animation: float-y 4.8s ease-in-out infinite; }
.stat-grid > div:nth-child(2n) { animation-delay: -1.4s; }
.frame-photo img, .service-row img, .news-row img, .article-photo img { animation: drift-zoom 10s ease-in-out infinite; }

@keyframes wash {
    from { transform: translate3d(-3%, -2%, 0) scale(1); }
    to { transform: translate3d(4%, 3%, 0) scale(1.08); }
}
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@keyframes float-y {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -12px; }
}
@keyframes drift-zoom {
    0%, 100% { scale: 1; }
    50% { scale: 1.06; }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 8px 18px rgba(244, 126, 54, 0.22); }
    50% { box-shadow: 0 14px 30px rgba(244, 126, 54, 0.5); }
}
@keyframes border-light {
    to { --angle: 360deg; }
}
@keyframes hero-ken {
    from { transform: scale(1.14); }
    to { transform: scale(1); }
}
@keyframes hero-dot {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}
@keyframes hero-breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}
@keyframes rise-in {
    from { opacity: 0; transform: translateY(46px); }
    to { opacity: 1; transform: none; }
}
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes brand-zoom-in {
    from { opacity: 0; scale: 0.7; }
    to { opacity: 1; scale: 1; }
}
@keyframes brand-zoom {
    0%, 100% { scale: 1; }
    50% { scale: 1.08; }
}
@keyframes zoom-in {
    from { opacity: 0; transform: scale(0.78); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes zoom-out {
    from { opacity: 0; transform: scale(1.22); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes shake-in {
    0% { opacity: 0; transform: scale(0.9) rotate(0); }
    25% { opacity: 1; transform: translateX(-7px) rotate(-1.4deg) scale(1.04); }
    50% { transform: translateX(6px) rotate(1.1deg) scale(1.02); }
    75% { transform: translateX(-3px) rotate(-0.4deg); }
    100% { opacity: 1; transform: none; }
}
@keyframes slide-in {
    from { opacity: 0; transform: translateX(-28px); }
    to { opacity: 1; transform: none; }
}
html[dir="rtl"] .reveal-slide.is-in { animation-name: slide-in-rtl; }
@keyframes slide-in-rtl {
    from { opacity: 0; transform: translateX(28px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal, .reveal.is-in, .hero-media img, .brand-logo, .brand-text strong, .page-hero-logo, .marquee-track, .logo-track, .button-solid, body::before,
    .frame-photo img, .service-row img, .news-row img, .article-photo img, .hero-slide img, .hero-slider-dot.is-active::after { animation: none !important; opacity: 1 !important; transform: none !important; }
    .hero-slider-track { transition: none; }
    .stat-grid strong.is-counting { animation: none; }
    .pillar::before, .info-card::before, .trio article::before, .partner-card::before, .logo-tile::before, .news-card::before, .company-card::before { animation: none !important; }
    .info-card:hover, .pillar:hover, .partner-card:hover, .news-card:hover, .logo-tile:hover, .company-card:hover { transform: none; }
}
