:root {
  --night: #0A1530;
  --ink: #12224A;
  --gold: #C59A44;
  --gold-soft: #E9D9B0;
  --gold-text: #8A6A28;
  --mist: #F1F3F7;
  --slate: #56627A;
  --white: #FFFFFF;
  --display: "El Messiri", "IBM Plex Sans Arabic", serif;
  --body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --dur-fast: .2s;
  --dur-normal: .35s;
  --dur-slow: .6s;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1.0625rem/1.8 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.25; margin: 0; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 600; margin-bottom: 1.25rem; }
p { margin: 0 0 1rem; max-width: 62ch; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.muted { color: var(--slate); }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; background: var(--ink); color: var(--white); padding: .5rem 1rem; z-index: 10; }
.skip:focus { top: 1rem; }

.btn {
  display: inline-block; background: var(--gold); color: var(--night); font: 600 1rem/1 var(--body);
  padding: .95rem 1.6rem; border: 0; border-radius: 999px; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn:hover { background: #D4AC5A; transform: translateY(-2px); box-shadow: 0 8px 20px -10px rgba(197, 154, 68, .8); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-small { padding: .7rem 1.2rem; font-size: .95rem; }
.btn-ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(233, 217, 176, .55); }
.btn-ghost:hover { background: #1A2C5C; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid #E3E7EF; transition: box-shadow .3s ease; }
.site-header.scrolled { box-shadow: 0 6px 24px -12px rgba(10, 21, 48, .35); }
.header-row { display: flex; align-items: center; gap: 1.5rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font: 600 1.15rem var(--display); }
.brand img { width: 44px; height: auto; }
nav { display: flex; gap: 1.75rem; margin-inline-start: auto; }
nav a { text-decoration: none; color: var(--slate); font-weight: 500; position: relative; }
nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: -4px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .25s ease; }
nav a:hover { color: var(--ink); }
nav a:hover::after { transform: scaleX(1); }
nav a[href="#contact"] { display: none; }
.lang-switch {
  direction: ltr; position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 3px;
  border-radius: 999px; background: var(--mist); box-shadow: inset 0 0 0 1px #DDE2EC; isolation: isolate;
}
.lang-switch a {
  position: relative; z-index: 1; min-width: 3.25rem; padding: .42rem .8rem; text-align: center;
  font: 600 .9rem/1.2 var(--body); color: var(--slate); text-decoration: none; border-radius: 999px;
  transition: color var(--dur-normal) var(--ease-out);
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current] { color: var(--night); }
.lang-switch .thumb {
  position: absolute; z-index: 0; inset-block: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px;
  background: var(--gold); box-shadow: 0 2px 8px -2px rgba(138, 106, 40, .6);
  transition: transform var(--dur-normal) var(--ease-out);
}
.lang-switch[data-lang="ar"] .thumb { transform: translateX(100%); }
.lang-switch[data-lang="en"] a[lang="en"], .lang-switch[data-lang="ar"] a[lang="ar"] { color: var(--night); }
.lang-switch[data-lang="en"] a[lang="ar"], .lang-switch[data-lang="ar"] a[lang="en"] { color: var(--slate); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; flex-direction: column; justify-content: space-between; }
.menu-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Hero */
.hero { background: var(--night) radial-gradient(ellipse at 20% 55%, #1A2C5C 0%, var(--night) 60%); color: var(--white); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 2rem; min-height: min(78vh, 640px); padding-block: 4rem; }
.wordmark { display: flex; flex-direction: column; }
.wordmark .sheen {
  font-size: clamp(5.5rem, 15vw, 10.5rem); font-weight: 700; line-height: 1.05;
  background: linear-gradient(100deg, #A87A2A 0%, #E9D9B0 30%, #C59A44 45%, #FFF3D1 50%, #C59A44 55%, #A87A2A 100%);
  background-size: 300% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: polish 2.4s .4s cubic-bezier(.4, 0, .2, 1) both;
}
.wordmark small { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 500; color: var(--gold-soft); margin-top: .25rem; }
@keyframes polish { from { background-position: 100% 0; } to { background-position: 0 0; } }
.hero-lead { font-size: 1.2rem; color: #D6DCEA; margin: 1.75rem 0 2rem; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-car { width: 100%; -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 45%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 45%, transparent 100%); }

/* About */
.about { padding-block: 6rem; }
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 4rem; align-items: center; }
.about-img { border-radius: 1.5rem 1.5rem 1.5rem 6rem; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.facts { margin: 2rem 0 0; display: grid; gap: 0; }
.facts div { display: grid; grid-template-columns: 7rem 1fr; padding-block: .9rem; border-top: 1px solid #E3E7EF; }
.facts dt { font-weight: 600; color: var(--gold-text); }
.facts dd { margin: 0; }

/* Services */
.services { background: var(--mist); padding-block: 6rem; }
.service-list { list-style: none; margin: 0; padding: 0; }
.service-list li { display: grid; grid-template-columns: 16rem 1fr; gap: 2rem; padding-block: 1.6rem; border-top: 1px solid #D9DEE8; align-items: baseline; }
.service-list li:last-child { border-bottom: 1px solid #D9DEE8; }
.service-list h3 { font-size: 1.6rem; font-weight: 600; }
.service-list p { margin: 0; color: var(--slate); font-size: 1.1rem; }

/* Journey */
.journey { padding-block: 6rem; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 2.5rem 1.5rem; }
.steps li { counter-increment: step; font-weight: 500; padding-top: .75rem; border-top: 2px solid var(--gold-soft); }
.steps li::before { content: counter(step, arabic-indic); display: block; font: 600 2.2rem/1.2 var(--display); color: var(--gold); margin-bottom: .25rem; }

/* Founder */
.founder { background: var(--ink); color: var(--white); }
.founder-grid { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 3rem; padding-block: 4.5rem; }
.founder-grid img { border-radius: 1rem; aspect-ratio: 3 / 2; object-fit: cover; order: 2; }
.founder figure { margin: 0; }
.founder blockquote { margin: 0 0 1.25rem; font: 500 clamp(1.6rem, 3.2vw, 2.3rem)/1.5 var(--display); color: var(--gold-soft); }
.founder figcaption { color: #B9C2D6; }

/* Contact: one card, navy details panel + white form panel */
.contact { padding-block: 6rem; }
.contact-card {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  border-radius: 1.75rem; overflow: hidden; background: var(--white);
  box-shadow: 0 30px 60px -30px rgba(10, 21, 48, .35), 0 0 0 1px #E3E7EF;
}
.contact-info { background: var(--night) radial-gradient(circle at 100% 0%, #1A2C5C 0%, var(--night) 55%); color: var(--white); padding: clamp(2rem, 4vw, 3.25rem); }
[dir="ltr"] .contact-info { background: var(--night) radial-gradient(circle at 0% 0%, #1A2C5C 0%, var(--night) 55%); }
.contact-info h2 { color: var(--white); }
.contact-info > p { color: #C9D1E3; }
.contact-items { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; gap: .75rem; }
.contact-item {
  display: flex; align-items: center; gap: 1rem; padding: .9rem 1rem; border-radius: 1rem;
  color: var(--white); text-decoration: none; background: #111C38;
  box-shadow: inset 0 0 0 1px rgba(233, 217, 176, .14);
  transition: background-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
a.contact-item:hover { background: #16264F; box-shadow: inset 0 0 0 1px rgba(233, 217, 176, .45); }
.ci-icon { flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; color: var(--gold); box-shadow: inset 0 0 0 1.5px rgba(197, 154, 68, .55); }
.ci-text { display: grid; gap: .1rem; min-width: 0; }
.ci-label { font-size: .85rem; color: #AEB8CE; }
.ci-value { font: 600 1.1rem/1.4 var(--body); color: var(--white); overflow-wrap: anywhere; }
.ci-value[dir="ltr"] { text-align: start; unicode-bidi: isolate; }
[dir="rtl"] .ci-value[dir="ltr"] { text-align: right; }
.ico { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.contact-form { padding: clamp(1.75rem, 4vw, 3rem); }
form { display: grid; gap: 1.25rem; }
form[hidden] { display: none; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); gap: 1.25rem; }
.field { display: grid; gap: .45rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field .opt { font-weight: 400; color: var(--slate); }
input, textarea {
  font: inherit; color: var(--ink); width: 100%; padding: .85rem 1rem;
  background: var(--mist); border: 1.5px solid transparent; border-radius: .85rem;
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
input:hover, textarea:hover { border-color: #CDD4E1; }
input:focus, textarea:focus { outline: none; background: var(--white); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(197, 154, 68, .18); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #B3261E; background: #FDF6F5; }
input[aria-invalid="true"]:focus, textarea[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(179, 38, 30, .14); }
textarea { resize: vertical; min-height: 8rem; }
.field-error { margin: 0; min-height: 0; font-size: .875rem; color: #B3261E; }
.field-error:empty { display: none; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.btn-submit { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; justify-self: start; min-width: 12rem; padding-block: 1rem; }
.btn-submit .ico { width: 1.1rem; height: 1.1rem; transition: transform var(--dur-normal) var(--ease-out); }
[dir="rtl"] .btn-submit .ico { transform: scaleX(-1); }
.btn-submit:hover .ico { transform: translate(3px, -3px); }
[dir="rtl"] .btn-submit:hover .ico { transform: scaleX(-1) translate(3px, -3px); }
.spinner { display: none; width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 2px solid rgba(10, 21, 48, .25); border-top-color: var(--night); animation: spin .7s linear infinite; }
.btn-submit[aria-busy="true"] .spinner { display: block; }
.btn-submit[aria-busy="true"] .ico { display: none; }
.btn:disabled, .btn:disabled:hover { opacity: .7; cursor: progress; transform: none; box-shadow: none; }
@keyframes spin { to { transform: rotate(1turn); } }
.status { margin: 0; font-weight: 500; }
.status:empty { display: none; }
.status.err { color: #B3261E; }

.form-success { display: grid; justify-items: center; text-align: center; gap: .75rem; padding-block: 3rem; animation: rise var(--dur-slow) var(--ease-out) both; }
.form-success[hidden] { display: none; }
.form-success:focus { outline: none; }
.success-icon { display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%; background: #E8F3EC; color: #1E6B47; margin-bottom: .5rem; }
.success-icon .ico { width: 1.9rem; height: 1.9rem; stroke-width: 2.5; }
.form-success h3 { font-size: 1.6rem; }
.form-success p { color: var(--slate); margin: 0 0 .75rem; }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px #CDD4E1; }
.btn-outline:hover { background: var(--mist); box-shadow: inset 0 0 0 1.5px var(--gold); }

/* Footer */
.site-footer { background: var(--night); color: #B9C2D6; padding-block: 1.75rem; font-size: .95rem; }
.footer-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-row p { margin: 0; }

/* Motion: one hero entrance, then gentle reveals as sections scroll in. */
.hero-car { --car-from: -60px; animation: car-in 1.3s .2s cubic-bezier(.2, .7, .2, 1) both, car-float 7s 1.6s ease-in-out infinite; }
@keyframes car-in { from { opacity: 0; transform: translateX(var(--car-from)) scale(.96); } }
@keyframes car-float { 50% { transform: translateY(-8px); } }
.enter { animation: rise .8s var(--d, 0s) cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.js .reveal, .js .stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .stagger > * { transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.in, .js .stagger.in > * { opacity: 1; transform: none; }
.service-list li { transition: background-color .25s ease; }
.service-list li:hover { background-color: rgba(255, 255, 255, .6); }

/* English (left-to-right) */
[dir="ltr"] .hero { background: var(--night) radial-gradient(ellipse at 80% 55%, #1A2C5C 0%, var(--night) 60%); }
[dir="ltr"] .hero-car { --car-from: 60px; }
[dir="ltr"] .about-img { border-radius: 1.5rem 1.5rem 6rem 1.5rem; }
[dir="ltr"] .steps li::before { content: counter(step); }
[dir="ltr"] .wordmark .sheen { font-size: clamp(4.5rem, 12vw, 8.5rem); }

@media (max-width: 900px) {
  .menu-toggle { display: flex; }
  .lang-switch { margin-inline-start: auto; }
  nav {
    display: none; position: absolute; top: 100%; inset-inline: 0; flex-direction: column; gap: 0;
    background: var(--white); border-bottom: 1px solid #E3E7EF; box-shadow: 0 16px 30px -18px rgba(10, 21, 48, .4);
    padding: .5rem 1rem 1rem;
  }
  .menu-open nav { display: flex; animation: drop .25s ease-out; }
  @keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
  nav a { padding: .85rem .25rem; border-bottom: 1px solid #EEF1F6; font-size: 1.1rem; }
  nav a::after { display: none; }
  nav a[href="#contact"] { display: block; }
  .header-row { gap: .75rem; }
  .contact-card { grid-template-columns: 1fr; }
  .hero-grid, .about-grid, .founder-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-grid { padding-block: 2rem; min-height: 0; }
  .hero-car { order: -1; max-width: 520px; margin-inline: auto; }
  .about-img { max-width: 420px; }
  .service-list li { grid-template-columns: 1fr; gap: .4rem; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .founder-grid img { order: 0; }
  .about, .services, .journey, .contact { padding-block: 4rem; }
}
@media (max-width: 480px) {
  .brand span, .header-cta { display: none; }
  .hero-actions .btn { flex: 1 1 100%; text-align: center; }
  .btn-submit { justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .wordmark .sheen { background-position: 0 0; }
  .js .reveal, .js .stagger > * { opacity: 1; transform: none; }
}
