/* =========================================================================
   Future Momentum – shared stylesheet
   -------------------------------------------------------------------------
   1. Design tokens (colours, fonts, spacing)  ← change branding here
   2. Base / reset
   3. Layout helpers
   4. Buttons
   5. Header & navigation
   6. Language switcher
   7. Hero
   8. Sections (Fields, Companies, Contact, sub-pages)
   9. Footer
   10. Sub-page (Global Creation)
   11. Responsive breakpoints (tablet ≥ 640px, desktop ≥ 900px)

   RTL note: we use logical properties (margin-inline-start, padding-inline,
   inset-inline-end, text-align: start …) so the layout mirrors itself
   automatically when <html dir="rtl">.
   ========================================================================= */

/* 1. Design tokens ------------------------------------------------------- */
:root {
  /* Brand colours taken from the Future Momentum logo */
  --color-primary: #314e86;        /* logo blue ("FM", "FUTURE") */
  --color-primary-700: #16294d;    /* deep navy for dark areas */
  --color-primary-50: #eef2f9;
  --color-slate: #8897a9;          /* logo grey ("MOMENTUM") */
  --color-slate-600: #66778d;      /* darker grey, readable for text */
  --color-accent: #4a78c9;         /* lighter brand blue for highlights */
  --color-accent-600: #3561ae;     /* accent that is readable as text */
  --color-accent-on-dark: #9bbcf2; /* accent for text on navy backgrounds */
  --color-hero-bg: #f5f8fd;

  /* Oman Motorhomes brand colours (from its logo) – used on its card and page */
  --om-blue: #1b6491;
  --om-blue-700: #134b6d;
  --om-sky: #409dd6;
  --om-sky-50: #eef6fc;
  --color-text: #1d2733;
  --color-muted: #5b6878;
  --color-border: #dde3ea;
  --color-surface: #ffffff;
  --color-bg-alt: #f6f8fb;

  --font-en: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-ar: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 42, 74, 0.06), 0 2px 8px rgba(15, 42, 74, 0.05);
  --shadow: 0 10px 30px rgba(15, 42, 74, 0.10);

  --container: 1160px;
  --gutter: 16px;
  --header-h: 68px;
  --section-y: 64px;
  --transition: 0.2s ease;
}

/* 2. Base / reset -------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-en);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
}

html[lang="ar"] body { font-family: var(--font-ar); line-height: 1.8; }

body.menu-open { overflow: hidden; }

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

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

h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.25; color: var(--color-primary); font-weight: 700; }
p { margin: 0 0 1em; }

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

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

/* Text for screen readers only (e.g. "opens in a new tab") */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Placeholder text marker – makes [ ... ] content easy to spot */
.placeholder { color: var(--color-muted); font-style: italic; }

/* 3. Layout helpers ------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--alt { background: var(--color-bg-alt); }

.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head--center { margin-inline: auto; text-align: center; }

.section-label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-600);
}
html[lang="ar"] .section-label { letter-spacing: 0; font-size: 0.9rem; }

.section-title { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
.section-intro { color: var(--color-muted); font-size: 1.05rem; }

.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(2, 1fr); gap: 14px; }

/* 4. Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: transparent;          /* <button> elements otherwise get the browser's grey */
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.btn:hover { transform: translateY(-1px); }

.btn--primary { background: var(--color-primary); color: #fff; box-shadow: 0 8px 20px -8px rgba(49, 78, 134, 0.6); }
.btn--primary:hover { background: var(--color-primary-700); }

.btn--outline { border-color: currentColor; color: var(--color-primary); }
.btn--outline:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

.btn--light { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn--light:hover { background: #fff; color: var(--color-primary); }

.btn--dark { background: var(--color-primary-700); color: #fff; }
.btn--dark:hover { background: var(--color-primary); }

.btn--om { background: var(--om-blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(27, 100, 145, 0.6); }
.btn--om:hover { background: var(--om-blue-700); }

.btn--white { background: #fff; color: var(--om-blue-700); }
.btn--white:hover { background: var(--om-sky-50); }

/* Arrow icons point the reading direction: flip them in RTL */
.icon { width: 18px; height: 18px; flex-shrink: 0; }
[dir="rtl"] .icon--flip { transform: scaleX(-1); }

/* 5. Header & navigation ------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.site-header.is-scrolled { border-color: var(--color-border); box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; font-weight: 800; color: var(--color-primary); }
.brand img { width: 42px; height: 42px; flex-shrink: 0; border-radius: 10px; }
/* On narrow phones the name may wrap to two lines instead of overflowing */
.brand-name { font-size: 1rem; line-height: 1.15; }

@media (min-width: 420px) {
  .brand-name { font-size: 1.1rem; white-space: nowrap; }
}

/* Two-line wordmark styled like the logo: FUTURE (blue) over MOMENTUM (grey) */
.brand-wordmark {
  display: flex;
  flex-direction: column;
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.22em;
}
.brand-wordmark-a { color: var(--color-primary); }
.brand-wordmark-b { color: var(--color-slate); }

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

/* Mobile: nav is a dropdown panel under the header */
.site-nav {
  position: fixed;
  inset-inline: 0;
  top: var(--header-h);
  bottom: 0;
  padding: 24px var(--gutter);
  background: var(--color-surface);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.site-nav.is-open { visibility: visible; opacity: 1; transform: none; }

.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.nav-link {
  display: block;
  padding: 14px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-text);
  transition: background var(--transition), color var(--transition);
}
.nav-link:hover,
.nav-link.is-current { background: var(--color-primary-50); color: var(--color-primary); }

/* Hamburger button */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform var(--transition), background var(--transition);
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; inset-inline-start: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* 6. Language switcher --------------------------------------------------- */
.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-bg-alt);
}
.lang-btn {
  min-width: 42px;
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.lang-btn:hover { color: var(--color-primary); }
.lang-btn.is-active { background: var(--color-primary); color: #fff; }

/* 7. Hero ---------------------------------------------------------------- */
/* Light, airy hero. Mobile: logo on top, centred text. Desktop: two columns. */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 40px 72px;
  border-bottom: 1px solid var(--color-border);
  background:
    radial-gradient(circle at 85% 25%, rgba(74, 120, 201, 0.16), transparent 42%),
    radial-gradient(circle at 5% 95%, rgba(136, 151, 169, 0.20), transparent 40%),
    linear-gradient(180deg, var(--color-hero-bg), #fff);
}
[dir="rtl"] .hero {
  background:
    radial-gradient(circle at 15% 25%, rgba(74, 120, 201, 0.16), transparent 42%),
    radial-gradient(circle at 95% 95%, rgba(136, 151, 169, 0.20), transparent 40%),
    linear-gradient(180deg, var(--color-hero-bg), #fff);
}
/* Subtle dot grid that fades out downwards */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(49, 78, 134, 0.13) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 80%);
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
  pointer-events: none;
}

.hero-inner { position: relative; display: grid; gap: 36px; align-items: center; text-align: center; }

/* Company name above the heading */
.hero-brand {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6em;
  margin: 0 0 18px;
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.3em;
}
.hero-brand::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-accent);
}

.hero-title {
  margin-bottom: 20px;
  font-size: clamp(1.85rem, 5.4vw, 3.3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-primary-700);
}
.hero-title > span { display: block; }
.hero-title-soft {
  background: linear-gradient(90deg, var(--color-primary), var(--color-slate-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
[dir="rtl"] .hero-title-soft { background-image: linear-gradient(270deg, var(--color-primary), var(--color-slate-600)); }
html[lang="ar"] .hero-title { letter-spacing: 0; line-height: 1.45; }

.hero-text { max-width: 520px; margin-inline: auto; font-size: 1.12rem; color: var(--color-muted); }

/* Field chips */
.hero-fields {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.hero-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
}
.hero-field svg { width: 17px; height: 17px; color: var(--color-accent); }

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

/* Logo showcase */
.hero-visual { order: -1; display: flex; justify-content: center; }
.logo-stage { position: relative; width: min(72vw, 280px); aspect-ratio: 1; }
.logo-stage::before {               /* soft glow behind the disc */
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 120, 201, 0.35), transparent 70%);
  filter: blur(28px);
}
.logo-stage::after {                /* thin dashed ring */
  content: "";
  position: absolute;
  inset: -16px;
  border: 1px dashed rgba(49, 78, 134, 0.28);
  border-radius: 50%;
}
.logo-disc {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 10px rgba(255, 255, 255, 0.7),
    0 0 0 11px rgba(49, 78, 134, 0.08),
    0 30px 60px -20px rgba(22, 41, 77, 0.35);
}
.logo-disc img { width: 78%; height: auto; }
/* Small dot travelling around the ring – a quiet "momentum" cue */
.logo-orbit {
  position: absolute;
  inset: -16px;
  z-index: 1;
  border-radius: 50%;
  animation: fm-spin 16s linear infinite;
}
.logo-orbit::before {
  content: "";
  position: absolute;
  top: -5px;
  left: calc(50% - 5px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(74, 120, 201, 0.2);
}
@keyframes fm-spin { to { transform: rotate(360deg); } }

/* 8. Sections ------------------------------------------------------------ */

/* About */
.about-grid { align-items: center; }
.about-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* Cards (contact items, Global Creation services) */
.card {
  height: 100%;
  padding: 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--color-primary-50);
  color: var(--color-primary);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.2rem; }
.card p { margin: 0; color: var(--color-muted); }

/* Fields */
.field-card {
  position: relative;
  overflow: hidden;
  height: 100%;
  padding: 24px 18px 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.field-card::after {                 /* accent bar that grows on hover */
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transition: width 0.35s ease;
}
.field-card:hover { border-color: rgba(74, 120, 201, 0.4); box-shadow: var(--shadow); transform: translateY(-3px); }
.field-card:hover::after { width: 100%; }
.field-num {
  position: absolute;
  top: 14px;
  inset-inline-end: 16px;
  font-family: var(--font-en);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-primary-50);
}
.field-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  box-shadow: 0 10px 20px -10px rgba(49, 78, 134, 0.7);
}
.field-icon svg { width: 26px; height: 26px; }
.field-card h3 { margin: 0; font-size: 1rem; }

/* Companies */
.company-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.company-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.company-media { position: relative; }
.company-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.company-media .company-logo {
  position: absolute;
  aspect-ratio: auto;
  bottom: -28px;
  inset-inline-start: 24px;
  width: 64px;
  height: 64px;
  border: 4px solid var(--color-surface);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.company-body { display: flex; flex-direction: column; flex: 1; padding: 44px 24px 26px; }
.company-body h3 { font-size: 1.4rem; }
.company-body p { color: var(--color-muted); flex: 1; }
.company-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
/* "About" image area showing a whole logo (never cropped) */
.about-media--logo {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: 32px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}
.about-media--logo img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}

/* Card whose media area shows a real logo instead of a photo.
   The logo is never stretched: it keeps its natural proportions and is
   shown no larger than its original 192px, so it stays sharp. */
.company-media--logo {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}
.company-media--logo img {
  width: auto;
  max-width: 70%;
  height: auto;
  max-height: 170px;
  aspect-ratio: auto;
  object-fit: contain;
}
.company-body .company-tagline { flex: 0 0 auto; margin-bottom: 0.6em; font-weight: 600; color: var(--om-blue); }

/* =========================================================================
   Oman Motorhomes page
   ========================================================================= */
.om-hero {
  position: relative;
  overflow: hidden;
  padding-block: 32px 64px;
  border-bottom: 1px solid var(--color-border);
  background:
    radial-gradient(circle at 85% 30%, rgba(64, 157, 214, 0.18), transparent 45%),
    linear-gradient(180deg, var(--om-sky-50), #fff);
}
[dir="rtl"] .om-hero {
  background:
    radial-gradient(circle at 15% 30%, rgba(64, 157, 214, 0.18), transparent 45%),
    linear-gradient(180deg, var(--om-sky-50), #fff);
}
.om-hero-inner { display: grid; gap: 36px; align-items: center; }

.om-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-muted);
}
.om-back:hover { color: var(--om-blue); }

.om-hero .section-label { display: block; color: var(--om-blue); }
.om-title {
  margin-bottom: 10px;
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--om-blue-700);
}
html[lang="ar"] .om-title { letter-spacing: 0.02em; }
.om-tagline {
  margin-bottom: 16px;
  font-size: clamp(1.1rem, 2.6vw, 1.4rem);
  font-weight: 700;
  color: var(--om-blue);
}
.om-intro { max-width: 600px; font-size: 1.05rem; color: var(--color-muted); }
.om-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* z-index creates a layer so the card's decorative frame (::before) sits behind the card but above the section background */
.om-hero-visual { position: relative; z-index: 0; order: -1; display: flex; justify-content: center; padding: 12px; }
.om-logo-card {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 300px);
  aspect-ratio: 1;
  border-radius: 28px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(27, 100, 145, 0.08),
    0 30px 60px -24px rgba(19, 75, 109, 0.4);
}
.om-logo-card::before {               /* soft sky-blue frame */
  content: "";
  position: absolute;
  inset: -12px;
  z-index: -1;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(64, 157, 214, 0.35), rgba(27, 100, 145, 0.12));
}
.om-logo-card img { width: 192px; max-width: 80%; height: auto; }

/* Service cards */
.om-service {
  position: relative;
  height: 100%;
  padding: 28px 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.om-service::before {                /* coloured top edge */
  content: "";
  position: absolute;
  top: -1px;
  inset-inline: 24px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--om-blue), var(--om-sky));
  opacity: 0;
  transition: opacity var(--transition);
}
.om-service:hover { border-color: rgba(64, 157, 214, 0.45); box-shadow: var(--shadow); transform: translateY(-3px); }
.om-service:hover::before { opacity: 1; }
.om-service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--om-blue), var(--om-sky));
  color: #fff;
  box-shadow: 0 10px 20px -10px rgba(27, 100, 145, 0.7);
}
.om-service-icon svg { width: 28px; height: 28px; }
.om-service h3 { font-size: 1.15rem; color: var(--om-blue-700); }
.om-service p { margin: 0; color: var(--color-muted); }

/* Website call-to-action band */
.om-cta {
  padding-block: 48px;
  background: linear-gradient(135deg, var(--om-blue-700), var(--om-blue) 60%, var(--om-sky));
  color: #fff;
}
[dir="rtl"] .om-cta { background: linear-gradient(225deg, var(--om-blue-700), var(--om-blue) 60%, var(--om-sky)); }
.om-cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.om-cta h2 { margin: 0 0 4px; color: #fff; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.om-cta p { margin: 0; color: rgba(255, 255, 255, 0.8); font-weight: 600; }

/* Simple page title band (Contact page), same light style as the homepage hero */
.page-head {
  padding-block: 48px 40px;
  border-bottom: 1px solid var(--color-border);
  background:
    radial-gradient(circle at 85% 20%, rgba(74, 120, 201, 0.14), transparent 45%),
    linear-gradient(180deg, var(--color-hero-bg), #fff);
  text-align: center;
}
[dir="rtl"] .page-head {
  background:
    radial-gradient(circle at 15% 20%, rgba(74, 120, 201, 0.14), transparent 45%),
    linear-gradient(180deg, var(--color-hero-bg), #fff);
}
.page-head-title { margin: 0; font-size: clamp(1.9rem, 5vw, 2.8rem); font-weight: 800; color: var(--color-primary-700); }
.section--tight-top { padding-top: 40px; }

/* Contact: form + address card */
.contact-layout { display: grid; gap: 24px; align-items: start; }
.contact-layout > .contact-item { height: auto; }   /* address card fits its content */
.contact-item { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.contact-item .card-icon { margin: 0; flex-shrink: 0; }
.contact-item strong { display: block; color: var(--color-primary); }
.contact-item > div { min-width: 0; }
.contact-value { display: inline-block; font-weight: 600; color: var(--color-text); }

/* Contact form */
[hidden] { display: none !important; }
.contact-panel {
  padding: 24px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}
.contact-form { position: relative; }
.form-note { margin: 0 0 18px; font-size: 0.9rem; color: var(--color-muted); }
.form-grid { display: grid; gap: 18px; }
.form-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-primary-700);
}
.form-control {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  font: inherit;
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control::placeholder { color: #98a4b3; opacity: 1; }
.form-control:hover { border-color: #c5cfdb; }
.form-control:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 4px rgba(74, 120, 201, 0.16); }
.form-control[aria-invalid="true"] { border-color: #c0392b; box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.1); }
textarea.form-control { min-height: 140px; resize: vertical; }
/* Email / phone are typed left-to-right, but align with the labels in Arabic */
[dir="rtl"] .form-control[dir="ltr"] { text-align: right; }
/* Custom arrow for the dropdown, placed on the correct side in each language */
select.form-control {
  -webkit-appearance: none;
  appearance: none;
  padding-inline-end: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23314e86' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 18px;
  background-position: right 14px center;
  cursor: pointer;
}
[dir="rtl"] select.form-control { background-position: left 14px center; }
.form-error { margin: 6px 0 0; font-size: 0.85rem; color: #b42318; }
.form-error:empty { display: none; }

/* Honeypot: invisible to people (clipped, not display:none, which some bots detect).
   Clipping instead of moving it off-screen avoids sideways scrolling in the Arabic layout. */
.form-hp { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; opacity: 0; pointer-events: none; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; }
.form-actions .btn[disabled] { opacity: 0.7; cursor: progress; transform: none; }
.form-status { margin: 0; font-size: 0.92rem; font-weight: 600; }
.form-status.is-error { color: #b42318; }

/* Success message */
.form-success { padding: 28px 8px; text-align: center; }
.form-success:focus { outline: none; }
.form-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  box-shadow: 0 12px 24px -12px rgba(49, 78, 134, 0.7);
}
.form-success-icon svg { width: 30px; height: 30px; }
.form-success h3 { font-size: 1.4rem; }
.form-success p { max-width: 420px; margin-inline: auto; color: var(--color-muted); }

/* 9. Footer -------------------------------------------------------------- */
.site-footer { background: var(--color-primary-700); color: rgba(255, 255, 255, 0.75); padding-block: 48px 24px; }
.footer-grid { display: grid; gap: 32px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: #fff; font-size: 1.1rem; margin-bottom: 12px; }
.footer-brand img { width: 40px; height: 40px; padding: 4px; border-radius: 10px; background: #fff; }
.site-footer .placeholder { color: rgba(255, 255, 255, 0.6); }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a:hover { color: var(--color-accent-on-dark); }
.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  text-align: center;
}

/* 10. Sub-page (Global Creation) ---------------------------------------- */
.page-hero {
  padding-block: 56px 64px;
  background: linear-gradient(135deg, var(--color-primary-700), var(--color-primary));
  color: #fff;
}
[dir="rtl"] .page-hero { background: linear-gradient(225deg, var(--color-primary-700), var(--color-primary)); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 6vw, 3rem); }
.page-hero .placeholder { color: rgba(255, 255, 255, 0.75); }
.page-hero .section-label { display: block; color: var(--color-accent-on-dark); }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}
.back-link:hover { color: var(--color-accent-on-dark); }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

/* 11. Responsive --------------------------------------------------------- */

/* Tablet ≥ 640px */
@media (min-width: 640px) {
  :root { --gutter: 24px; --section-y: 80px; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .field-card { padding: 28px 24px 26px; }
  .field-card h3 { font-size: 1.12rem; }
  .contact-panel { padding: 32px; }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .form-field--full { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 2fr 1fr; }
}

/* Desktop ≥ 900px: inline navigation, no hamburger */
@media (min-width: 900px) {
  :root { --header-h: 76px; --section-y: 96px; }

  /* Blurred header on desktop only: on phones the filter would trap the full-screen menu (position: fixed) inside the header */
  .site-header { background: rgba(255, 255, 255, 0.96); backdrop-filter: saturate(160%) blur(8px); }

  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    padding: 0;
    background: none;
    overflow: visible;
    visibility: visible;
    opacity: 1;
    transform: none;
  }
  .nav-list { flex-direction: row; gap: 2px; }
  .nav-link { padding: 8px 14px; font-size: 0.95rem; }

  .header-inner { gap: 24px; }
  .site-nav { margin-inline-start: auto; }

  .hero { padding-block: 96px 112px; }
  .hero-inner { grid-template-columns: 1.15fr 0.85fr; gap: 56px; text-align: start; }
  .hero-brand,
  .hero-fields,
  .hero-actions { justify-content: flex-start; }
  .hero-text { margin-inline: 0; }
  .hero-visual { order: 0; }
  .logo-stage { width: min(100%, 400px); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }

  .om-hero { padding-block: 64px 96px; }
  .om-hero-inner { grid-template-columns: 1.25fr 0.75fr; gap: 56px; }
  .om-hero-visual { order: 0; }
  .om-logo-card { width: min(100%, 340px); }

  .about-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Contact: form beside the address card on large screens */
@media (min-width: 1000px) {
  .contact-layout { grid-template-columns: 2fr 1fr; }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
