/* Sama Group - site styles. Mobile first; logical properties only so RTL mirrors itself.
   Typefaces come from fonts.css (three variables). */

:root {
  --bg: #2b2b2b;
  --bg-2: #333333;
  --surface: #3a3a3a;
  --surface-2: #444444;
  --line: rgba(224, 196, 152, 0.28);
  --gold: #e0c498;
  --gold-strong: #ecd2a6;
  --text: #ececec;
  --muted: #bdbdbd;
  --radius: 22px;
  --radius-s: 14px;
  --header-h: 68px;
  --gutter: clamp(16px, 5vw, 48px);
  --maxw: 1200px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.2rem);
  line-height: 1.75;
  min-width: 320px;
  overflow-x: hidden;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
html[lang="en"] body { font-family: var(--font-body); }
html[lang="ar"] body { font-family: var(--font-arabic); line-height: 1.95; }

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }

/* headings */
h1, h2, h3 { line-height: 1.2; font-weight: 400; color: #fff; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { font-family: var(--font-display); letter-spacing: 0.02em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { font-family: var(--font-arabic); font-weight: 700; line-height: 1.45; }

.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* a11y helpers */
.skip {
  position: absolute; inset-block-start: 8px; inset-inline-start: 8px; z-index: 200;
  background: var(--gold); color: #1d1d1d; padding: 10px 16px; border-radius: 10px; font-weight: 700;
  transform: translateY(-200%); text-decoration: none;
}
.skip:focus { transform: none; }
:focus-visible { outline: 3px solid var(--gold-strong); outline-offset: 3px; border-radius: 6px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; inset-block-start: 0; z-index: 100;
  background: rgba(30, 30, 30, 0.9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-block-end: 1px solid var(--line);
}
.header-inner {
  min-height: var(--header-h);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding-block: 8px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-inline-end: auto; min-width: 0; }
.brand img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.brand-text { font-size: 1.05rem; color: #fff; white-space: nowrap; }
html[lang="en"] .brand-text { font-family: var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.95rem; }
html[lang="ar"] .brand-text { font-weight: 700; }

.lang-switch {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 44px; padding-inline: 16px;
  border: 1px solid var(--gold); border-radius: 999px;
  color: var(--gold); text-decoration: none; font-size: 0.98rem; line-height: 1;
  transition: background 0.2s, color 0.2s;
}
.lang-switch:hover { background: var(--gold); color: #1d1d1d; }
html[lang="en"] .lang-switch { font-family: var(--font-arabic); font-weight: 700; }
html[lang="ar"] .lang-switch { font-family: var(--font-body); font-size: 1.05rem; letter-spacing: 0.04em; }

.nav-toggle {
  display: none;
  min-height: 44px; min-width: 44px; padding: 0 12px;
  background: transparent; color: var(--text);
  border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
  align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: 0.95rem; line-height: 1;
}
.nav-toggle .bars { width: 20px; height: 14px; position: relative; display: inline-block; }
.nav-toggle .bars::before, .nav-toggle .bars::after, .nav-toggle .bars i {
  content: ""; position: absolute; inset-inline: 0; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s, top 0.2s;
}
.nav-toggle .bars::before { top: 0; }
.nav-toggle .bars i { top: 6px; }
.nav-toggle .bars::after { top: 12px; }
@media (max-width: 519px) {
  .nav-toggle-text { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .brand-text { font-size: 0.98rem; }
  html[lang="en"] .brand-text { font-size: 0.78rem; letter-spacing: 0.05em; }
  .header-inner { flex-wrap: wrap; gap: 8px; }
}
@media (max-width: 439px) {
  .brand-text { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .brand img { width: 46px; height: 46px; }
  .header-inner { flex-wrap: nowrap; }
  .site-nav { position: absolute; inset-inline: 0; inset-block-start: 100%; width: auto; background: rgba(30, 30, 30, 0.98); padding-inline: var(--gutter); border-block-end: 1px solid var(--line); }
}
.nav-toggle[aria-expanded="true"] .bars::before { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { top: 6px; transform: rotate(-45deg); }
.nav-toggle[aria-expanded="true"] .bars i { opacity: 0; }

/* Without JS the nav is a plain wrapping row below the brand. */
.site-nav { order: 5; width: 100%; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 4px 6px; padding-block-end: 4px; }
.site-nav a {
  display: block; padding: 10px 14px; border-radius: 10px; text-decoration: none; color: var(--text); font-size: 0.98rem; line-height: 1.3;
}
.site-nav a:hover { background: rgba(255, 255, 255, 0.07); }
.site-nav a[aria-current="true"] { color: var(--gold); }

/* With JS on small screens: hamburger + dropdown panel */
.js .nav-toggle { display: inline-flex; }
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }
.js .site-nav ul { flex-direction: column; gap: 2px; padding-block: 8px 12px; }
.js .site-nav a { padding: 14px 12px; font-size: 1.05rem; border-block-end: 1px solid rgba(255, 255, 255, 0.06); border-radius: 0; }

@media (min-width: 900px) {
  .header-inner { flex-wrap: nowrap; }
  .site-nav, .js .site-nav, .js .site-nav.is-open { display: block; order: 0; width: auto; margin-inline-start: 12px; }
  .site-nav ul, .js .site-nav ul { flex-direction: row; gap: 2px; padding: 0; }
  .site-nav a, .js .site-nav a { padding: 10px 12px; border: 0; border-radius: 10px; font-size: 0.98rem; }
  .js .nav-toggle { display: none; }
  .brand { margin-inline-end: 0; }
  .header-inner > .spacer { flex: 1; }
}
@media (min-width: 900px) {
  .brand { margin-inline-end: auto; }
}

/* -------------------------------------------------------------------- hero */
.hero {
  position: relative; isolation: isolate;
  min-height: min(92svh, 860px);
  display: grid; align-items: center; text-align: center;
  padding-block: clamp(48px, 10vw, 120px);
  background:
    linear-gradient(180deg, rgba(30, 30, 30, 0.35), rgba(30, 30, 30, 0.8)),
    url("/assets/hero-900.webp") center / cover no-repeat;
  border-block-end: 1px solid var(--line);
}
@media (min-width: 900px) {
  .hero { background-image: linear-gradient(180deg, rgba(30, 30, 30, 0.3), rgba(30, 30, 30, 0.75)), url("/assets/hero-1920.webp"); }
}
.hero-logo { width: clamp(210px, 56vw, 440px); margin-inline: auto; margin-block-end: clamp(20px, 4vw, 36px); filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.45)); }
.hero h1 { font-size: clamp(1.6rem, 1.1rem + 3vw, 3.2rem); max-width: 22ch; margin-inline: auto; text-wrap: balance; }
html[lang="ar"] .hero h1 { max-width: 20ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-block-start: clamp(24px, 4vw, 40px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding-inline: 26px;
  border-radius: 999px; text-decoration: none; font-size: 1rem; line-height: 1; border: 1px solid var(--gold);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
html[lang="ar"] .btn { font-weight: 700; }
.btn-primary { background: var(--gold); color: #1d1d1d; }
.btn-primary:hover { background: var(--gold-strong); }
.btn-ghost { color: var(--gold); background: rgba(30, 30, 30, 0.35); }
.btn-ghost:hover { background: var(--gold); color: #1d1d1d; }

/* ---------------------------------------------------------------- sections */
.section { padding-block: clamp(56px, 9vw, 112px); position: relative; }
.eyebrow { color: var(--gold); font-size: 0.95rem; margin-block-end: 10px; }
html[lang="en"] .eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.82rem; font-family: var(--font-display); }
.section-title { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.8rem); }
.section-title .gold { color: var(--gold); }
.section-sub { color: var(--gold); margin-block-start: 10px; font-size: 1.05em; }
.lead { color: var(--gold); font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); line-height: 1.5; }
html[lang="en"] .lead { font-style: italic; }
.panel {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 44px);
  box-shadow: var(--shadow);
}
.panel p + p { margin-block-start: 1em; }

/* about */
.about-grid { display: grid; gap: 32px; align-items: center; }
.about-art { width: min(100%, 360px); margin-inline: auto; }
.about-panel .lead { margin-block: 14px 16px; }
@media (min-width: 860px) {
  .about-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
  .about-art { width: min(100%, 440px); }
}

/* vision + mission */
.vision { background: var(--bg-2); border-block: 1px solid var(--line); overflow: hidden; }
.vision-grid { display: grid; gap: 28px; align-items: end; }
.vision-art { width: min(80%, 360px); margin-inline: auto; margin-block-end: -8px; -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
.tagline { color: var(--gold); font-size: 0.95em; margin-block: 8px 14px; }
html[lang="en"] .tagline { font-style: italic; }
@media (min-width: 860px) {
  .vision-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
  .vision-art { order: 2; width: min(100%, 440px); margin-block-end: calc(clamp(56px, 9vw, 112px) * -1); }
}

.mission {
  isolation: isolate;
  background: #2a2a2a;
}
.mission::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("/assets/mission-900.webp") 70% center / cover no-repeat;
}
.mission::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(30, 30, 30, 0.82), rgba(30, 30, 30, 0.45));
}
html[dir="rtl"] .mission::before { transform: scaleX(-1); }
html[dir="rtl"] .mission::after { background: linear-gradient(270deg, rgba(30, 30, 30, 0.82), rgba(30, 30, 30, 0.45)); }
@media (min-width: 900px) { .mission::before { background-image: url("/assets/mission-1920.webp"); } }
.mission-copy { max-width: 36em; }
.mission-copy p { margin-block-start: 14px; }

/* pillars */
.section-head { text-align: center; max-width: 46rem; margin-inline: auto; margin-block-end: clamp(28px, 5vw, 56px); }
.star { display: none; width: 0.7em; height: 0.7em; vertical-align: 0.05em; margin-inline: 0.35em; }
@media (min-width: 640px) { .star { display: inline-block; } }
.pillars-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.pillar { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, 0.04); }
.pillar img { width: 56px; height: 56px; object-fit: contain; object-position: start; margin-block-end: 14px; }
.pillar h3 { color: var(--gold); font-size: 1.15rem; margin-block-end: 8px; }
.pillar p { color: var(--text); font-size: 0.97em; line-height: 1.7; }
@media (min-width: 620px) { .pillars-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .pillars-grid { grid-template-columns: repeat(6, 1fr); }
  .pillar { grid-column: span 2; }
  .pillar:nth-child(4) { grid-column: 2 / span 2; }
  .pillar:nth-child(5) { grid-column: 4 / span 2; }
}

/* group band (logo on the facade photo) */
.band {
  display: grid; place-items: center; padding-block: clamp(56px, 12vw, 150px);
  background: url("/assets/facade-800.webp") center / cover no-repeat;
  border-block: 1px solid var(--line);
}
@media (min-width: 900px) { .band { background-image: url("/assets/facade-1600.webp"); } }
.band img { width: clamp(220px, 50vw, 460px); }

/* companies */
.companies { background: var(--bg-2); }
.company-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
.company {
  display: grid; grid-template-columns: 1fr; overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--line); border-radius: var(--radius);
}
.company-media { position: relative; aspect-ratio: 16 / 10; background: var(--surface); overflow: hidden; }
.company-media > img.photo { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.company-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(40, 40, 40, 0.55));
}
.company-logo {
  position: absolute; inset-block-start: 12px; inset-inline-end: 12px; z-index: 2;
  display: grid; place-items: center; width: 116px; height: 64px; padding: 8px 10px;
  background: rgba(28, 28, 28, 0.72); border: 1px solid var(--line); border-radius: var(--radius-s);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.company-logo { overflow: hidden; }
.company-logo img { width: 100%; height: 100%; object-fit: contain; }
.company-body { padding: clamp(20px, 3.4vw, 32px); display: flex; flex-direction: column; gap: 8px; }
.company-num { color: var(--gold); font-size: 0.9rem; opacity: 0.9; }
html[lang="en"] .company-num { font-family: var(--font-display); letter-spacing: 0.15em; }
.company h3 { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); color: var(--gold); }
html[lang="en"] .company h3 { text-transform: uppercase; letter-spacing: 0.04em; font-size: clamp(1.05rem, 0.98rem + 0.5vw, 1.3rem); }
.company .tagline { margin-block: 0; }
.company p.text { font-size: 0.97em; line-height: 1.75; color: var(--text); }
html[lang="ar"] .company p.text { line-height: 1.95; }

@media (min-width: 640px) {
  .company { grid-template-columns: minmax(150px, 34%) minmax(0, 1fr); }
  .company-media { aspect-ratio: auto; min-height: 100%; }
  .company-media::after { background: linear-gradient(90deg, transparent 55%, rgba(48, 48, 48, 0.7)); }
  html[dir="rtl"] .company-media::after { background: linear-gradient(270deg, transparent 55%, rgba(48, 48, 48, 0.7)); }
  .company-logo { inset-block-start: auto; inset-block-end: 12px; inset-inline-end: auto; inset-inline-start: 12px; width: 108px; height: 60px; }
}
@media (min-width: 1100px) {
  .company-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
}

/* journey */
.journey { text-align: center; position: relative; isolation: isolate; }
.journey::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.9;
  background:
    radial-gradient(60% 80% at 15% 100%, rgba(224, 196, 152, 0.12), transparent 70%),
    radial-gradient(50% 70% at 90% 0%, rgba(255, 255, 255, 0.07), transparent 70%);
}
.journey .panel { max-width: 52rem; margin-inline: auto; text-align: start; background: rgba(255, 255, 255, 0.08); border-radius: 32px; }
.journey h2 { color: var(--gold); padding-block-end: 14px; margin-block-end: 18px; border-block-end: 2px solid var(--gold); width: fit-content; max-width: 100%; }

/* footer */
.site-footer { background: #202020; border-block-start: 1px solid var(--line); padding-block: 40px 28px; }
.footer-grid { display: grid; gap: 24px; justify-items: center; text-align: center; }
.footer-logo { width: 190px; }
.footer-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; }
.footer-nav a { display: block; padding: 8px 12px; text-decoration: none; color: var(--muted); border-radius: 8px; }
.footer-nav a:hover { color: var(--gold); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; color: var(--muted); font-size: 0.9rem; border-block-start: 1px solid rgba(255, 255, 255, 0.08); padding-block-start: 20px; margin-block-start: 8px; width: 100%; }
.footer-contact { margin: 0; color: var(--text); }
.footer-contact a { color: var(--gold); text-decoration: none; padding: 8px 4px; unicode-bidi: isolate; }
.footer-contact a:hover { text-decoration: underline; }
.to-top { color: var(--gold); text-decoration: none; padding: 8px 4px; }

/* ----------------------------------------------------------------- reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js.no-anim .reveal, .no-anim .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media print {
  .site-header, .skip, .nav-toggle { display: none; }
  body { background: #fff; color: #000; }
}
