
:root {
  --olive-dark: #1a200f;
  --olive-deep: #2d3a1a;
  --olive-mid: #4a5e2a;
  --olive-main: #6b7f3a;
  --olive-light: #8fa44e;
  --olive-pale: #b5c46e;
  --gold: #c9a84c;
  --gold-light: #e8c96e;
  --cream: #f5f0e8;
  --cream-warm: #ede6d6;
  --sand: #d4c9a8;
  --text-dark: #1a200f;
  --text-mid: #3d4a28;
  --text-muted: #7a8562;
  --white: #ffffff;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --font-arabic: 'Noto Sans Arabic', sans-serif;
  --radius: 4px;
  --radius-md: 10px;
  --radius-lg: 20px;
  --shadow: 0 8px 40px rgba(26,32,15,0.12);
  --shadow-lg: 0 24px 80px rgba(26,32,15,0.22);
  --transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  --section-pad: 64px;
  --section-pad-sm: 48px;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream);
  overflow-x: hidden;
  line-height: 1.65;
}

/* Arabic font — only on text elements, NOT on icons */
html[lang="ar"] body { font-family: var(--font-arabic), var(--font-body); }
html[lang="ar"] p,
html[lang="ar"] span:not(.fa):not([class*="fa-"]):not([class*="fa "]),
html[lang="ar"] div:not([class*="fa"]),
html[lang="ar"] a,
html[lang="ar"] button,
html[lang="ar"] h1,html[lang="ar"] h2,html[lang="ar"] h3,
html[lang="ar"] h4,html[lang="ar"] h5,html[lang="ar"] h6 {
  font-family: var(--font-arabic), var(--font-body);
}
html[lang="ar"] { direction: rtl; }

/* Protect FontAwesome icons from RTL font override */
html[lang="ar"] i[class*="fa-"],
html[lang="ar"] .fa,
html[lang="ar"] .fas,
html[lang="ar"] .far,
html[lang="ar"] .fab,
html[lang="ar"] .fal,
html[lang="ar"] .fad,
html[lang="ar"] .fa-solid,
html[lang="ar"] .fa-regular,
html[lang="ar"] .fa-brands {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
  direction: ltr !important;
  unicode-bidi: embed;
}


/* ── TICKER ── */
.ticker {
  background: var(--olive-dark);
  height: 32px;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
}
.ticker::before, .ticker::after {
  content:''; position:absolute; top:0; bottom:0; width:40px; z-index:2; pointer-events:none;
}
.ticker::before { left:0; background:linear-gradient(90deg,var(--olive-dark),transparent); }
.ticker::after  { right:0; background:linear-gradient(-90deg,var(--olive-dark),transparent); }
.ticker-track { display:flex; white-space:nowrap; animation:tickerScroll 40s linear infinite; }
html[lang="ar"] .ticker-track { animation-direction: reverse; }
.ticker-item {
  padding: 0 28px; font-size: 10px; font-weight: 600;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: rgba(255,255,255,0.65); display: flex; align-items:center; gap:8px;
  text-decoration: none; transition: color .2s;
}
a.ticker-item:hover { color: var(--gold); }
.ticker-item i { color: var(--gold); font-size: 11px; direction:ltr; }
@keyframes tickerScroll { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ── HEADER ── */
.header {
  position: fixed; top:32px; left:0; right:0; z-index:1000;
  padding: 18px 60px;
  display: flex; align-items:center; justify-content:space-between;
  transition: var(--transition);
  background: rgba(26,32,15,0);
}
.header.scrolled {
  background: rgba(245,240,232,0.97);
  backdrop-filter: blur(20px);
  top:0; padding: 12px 60px;
  box-shadow: 0 2px 30px rgba(26,32,15,0.10);
  border-bottom: 1px solid rgba(107,127,58,0.15);
}
@media(max-width:768px){
  /* Ticker stays visible — header sits below it */
  .header { top:32px; padding:10px 16px; background:rgba(26,32,15,0.85); backdrop-filter:blur(16px); }
  .header.scrolled { top:32px; padding:10px 16px; background:rgba(245,240,232,0.97); }
}

.logo { display:flex; align-items:center; gap:12px; text-decoration:none; }
.logo-mark {
  width:42px; height:42px;
  background:linear-gradient(135deg,var(--olive-mid),var(--olive-dark));
  border-radius:13px; display:flex; align-items:center; justify-content:center;
  position:relative; overflow:hidden; border:1px solid rgba(201,168,76,0.3); flex-shrink:0;
}
.logo-mark svg { width:24px; height:24px; }
.logo-text { display:flex; flex-direction:column; }
.logo-name { font-family:var(--font-display); font-size:24px; font-weight:700; color:white; letter-spacing:0.5px; line-height:1; transition:var(--transition); }
.header.scrolled .logo-name { color:var(--olive-dark); }
.logo-tagline { font-size:9px; font-weight:500; letter-spacing:2px; text-transform:uppercase; color:rgba(255,255,255,0.45); transition:var(--transition); }
.header.scrolled .logo-tagline { color:var(--text-muted); }
@media(max-width:768px){
  .logo-name { color:white !important; }
  .logo-tagline { display:none; }
  .logo-mark { width:36px; height:36px; }
}

.nav-center { display:flex; align-items:center; gap:2px; }
@media(max-width:1024px){ .nav-center { display:none; } }

.nav-item {
  position:relative; padding:10px 14px; cursor:pointer;
  display:flex; align-items:center; gap:6px;
  font-size:13px; font-weight:600; letter-spacing:0.5px;
  color:rgba(255,255,255,0.80); border-radius:var(--radius-md);
  transition:var(--transition); user-select:none;
}
.header.scrolled .nav-item { color:var(--text-mid); }
.nav-item:hover, .nav-item.active { color:var(--gold-light); background:rgba(255,255,255,0.08); }
.header.scrolled .nav-item:hover, .header.scrolled .nav-item.active { color:var(--olive-mid); background:rgba(107,127,58,0.08); }
.nav-item i { font-size:9px; transition:transform 0.3s; direction:ltr; }
.nav-item.active i:last-child { transform:rotate(180deg); }

/* ══════════════════════════════════════
   MEGA MENU — FULL REDESIGN
══════════════════════════════════════ */

/* ── BASE: shared desktop + mobile ── */
.nav-mega {
  position:fixed; top:0; left:0; right:0;
  z-index:1005;
  transform:translateY(-100%); opacity:0;
  transition:transform 0.42s cubic-bezier(0.22,1,0.36,1), opacity 0.28s;
  pointer-events:none;
  background: var(--olive-dark);
  /* top will be set dynamically by JS to header bottom */
}
.nav-mega.open { transform:translateY(0); opacity:1; pointer-events:all; }

/* ── MOBILE FULL-SCREEN SHEET ── */
@media(max-width:1024px){
  .nav-mega {
    top:0; left:0; right:0; bottom:0;
    transform:translateX(100%);
    opacity:1;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    background:var(--cream);
    z-index:1010;
  }
  .nav-mega.open { transform:translateX(0); }
}

/* ── DESKTOP INNER: top bar + two-column split ── */
.mega-inner {
  display:grid;
  grid-template-columns: 240px 1fr;
  grid-template-rows: auto 1fr;
  gap:0;
  height: var(--mega-height, 480px);
  overflow:hidden;
  position:relative;
}

@media(max-width:1024px){
  .mega-inner {
    display:flex; flex-direction:column;
    padding:0; height:100%; max-height:100%; overflow:hidden;
  }
}

/* ── FAMILY SWITCHER BAR — desktop top strip ── */
.mega-family-switcher {
  grid-column: 1 / -1; /* spans full width */
  display:flex; align-items:stretch;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 0 0 0 24px;
  height: 52px;
  flex-shrink:0;
}
@media(max-width:1024px){ .mega-family-switcher { display:none; } }

.mega-fam-tab {
  display:flex; align-items:center; gap:8px;
  padding: 0 18px;
  font-size:12px; font-weight:600; letter-spacing:0.5px;
  color: rgba(255,255,255,0.35);
  cursor:pointer; border:none; background:transparent;
  font-family:var(--font-body);
  border-bottom: 2px solid transparent;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
  white-space:nowrap;
  position:relative;
}
.mega-fam-tab i { font-size:11px; direction:ltr; flex-shrink:0; }
.mega-fam-tab:hover { color:rgba(255,255,255,0.7); background:rgba(255,255,255,0.04); }
.mega-fam-tab.active {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
  background: rgba(201,168,76,0.06);
}
/* Close btn right-aligned in the bar */
.mega-fam-close {
  margin-left:auto;
  padding:0 20px;
  display:flex; align-items:center;
  border:none; background:transparent; cursor:pointer;
  color:rgba(255,255,255,0.3); font-size:14px;
  transition: color 0.2s;
  border-left:1px solid rgba(255,255,255,0.06);
}
.mega-fam-close:hover { color:white; }

/* ── MOBILE MEGA HEADER ── */
.mega-mobile-header { display:none; }
@media(max-width:1024px){
  .mega-mobile-header {
    display:flex; align-items:center; justify-content:space-between;
    padding:14px 20px; background:var(--olive-dark); flex-shrink:0; gap:12px;
  }
  .mega-mobile-title {
    font-family:var(--font-display); font-size:20px; font-weight:700;
    color:white; font-style:italic;
  }
  .mega-mobile-back {
    display:flex; align-items:center; gap:8px; background:none; border:none;
    cursor:pointer; color:rgba(255,255,255,0.7); font-size:13px; font-weight:600;
    font-family:var(--font-body); padding:6px 0; -webkit-tap-highlight-color:transparent;
  }
  .mega-mobile-back i { font-size:11px; }
}

/* ══ LEFT PANEL — dark sidebar ══ */
.mega-left {
  background: var(--olive-dark);
  padding: 20px 20px 20px 24px;
  display:flex; flex-direction:column; gap:4px;
  overflow-y:auto; position:relative;
  border-right: 1px solid rgba(255,255,255,0.06);
  grid-column: 1; grid-row: 2;
}
html[lang="ar"] .mega-left { padding: 20px 24px 20px 20px; border-right:none; border-left:1px solid rgba(255,255,255,0.06); }

/* left panel decorative line */
.mega-left::after {
  content:''; position:absolute; top:16px; bottom:16px; right:0;
  width:1px;
  background:linear-gradient(180deg,transparent,rgba(201,168,76,0.2),transparent);
}

@media(max-width:1024px){
  .mega-left {
    padding:12px 16px; flex-direction:row; overflow-x:auto; overflow-y:hidden;
    gap:8px; background:white; border-right:none;
    border-bottom:1px solid rgba(107,127,58,0.10);
    flex-shrink:0; scrollbar-width:none; align-items:stretch;
  }
  .mega-left::after { display:none; }
  .mega-left::-webkit-scrollbar { display:none; }
  html[lang="ar"] .mega-left { padding:12px 16px; border-left:none; }
}

/* Family header inside left panel */
.mega-family-header {
  margin-bottom:20px; padding-bottom:18px;
  border-bottom:1px solid rgba(255,255,255,0.08);
}
@media(max-width:1024px){ .mega-family-header { display:none; } }

.mega-family-name {
  font-family:var(--font-display); font-size:30px; font-weight:700;
  color:white; line-height:1.05; margin-bottom:4px; font-style:italic;
}
.mega-family-sub {
  font-size:10px; color:rgba(255,255,255,0.35);
  letter-spacing:2px; text-transform:uppercase;
}

/* ── SUBFAM BUTTONS — desktop ── */
.subfam-btn {
  display:flex; align-items:center; gap:12px; padding:11px 14px;
  border-radius:10px; cursor:pointer; transition:var(--transition);
  border:none; background:transparent; width:100%; text-align:left;
  font-family:var(--font-body); white-space:nowrap; flex-shrink:0;
  position:relative;
}
html[lang="ar"] .subfam-btn { text-align:right; }

@media(min-width:1025px){
  .subfam-btn:hover {
    background: rgba(255,255,255,0.06);
  }
  .subfam-btn.active {
    background: rgba(201,168,76,0.12);
    border:1px solid rgba(201,168,76,0.2);
  }
  .subfam-btn.active::before {
    content:''; position:absolute; left:0; top:50%; transform:translateY(-50%);
    width:3px; height:60%; border-radius:0 2px 2px 0;
    background:var(--gold);
  }
  html[lang="ar"] .subfam-btn.active::before { left:auto; right:0; border-radius:2px 0 0 2px; }
}

/* Mobile subfam pill */
@media(max-width:1024px){
  .subfam-btn {
    flex-direction:column; align-items:center; justify-content:center;
    padding:10px 14px; border-radius:12px;
    border:1.5px solid rgba(107,127,58,0.15);
    width:auto; min-width:72px; flex-shrink:0; gap:6px; background:white;
  }
  .subfam-btn.active {
    background:var(--olive-dark); border-color:var(--olive-dark);
    box-shadow:0 4px 16px rgba(26,32,15,0.18);
  }
  .subfam-btn.active .subfam-label { color:white; }
  .subfam-btn:not(.active):hover { border-color:var(--olive-mid); background:rgba(107,127,58,0.06); }
}

/* subfam icon */
.subfam-icon {
  width:36px; height:36px; border-radius:9px; flex-shrink:0;
  background:rgba(255,255,255,0.08); color:rgba(255,255,255,0.5);
  display:flex; align-items:center; justify-content:center;
  font-size:14px; transition:var(--transition);
  direction: ltr;
}
.subfam-btn.active .subfam-icon { background:var(--gold); color:var(--olive-dark); }
.subfam-btn:hover .subfam-icon { background:rgba(255,255,255,0.12); color:white; }
.subfam-btn.active:hover .subfam-icon { background:var(--gold); color:var(--olive-dark); }

@media(max-width:1024px){
  .subfam-icon {
    width:36px; height:36px; font-size:15px; border-radius:10px;
    background:rgba(107,127,58,0.12); color:var(--olive-mid);
  }
  .subfam-btn.active .subfam-icon { background:var(--gold); color:var(--olive-dark); }
}

/* subfam text */
.subfam-label { font-size:13px; font-weight:600; color:rgba(255,255,255,0.6); transition:color 0.3s; }
.subfam-btn.active .subfam-label,
.subfam-btn:hover .subfam-label { color:white; }
.subfam-count { display:none; }

@media(max-width:1024px){
  .subfam-label { font-size:11px; font-weight:700; text-align:center; color:var(--text-mid); line-height:1.2; }
  .subfam-count { display:none; }
}

/* ══ RIGHT PANEL — light products area ══ */
.mega-right {
  background: #f8f4ec;
  padding: 20px 32px 20px 28px;
  overflow-y:auto; overflow-x:hidden;
  display:flex; flex-direction:column;
  position:relative;
  grid-column: 2; grid-row: 2;
}
html[lang="ar"] .mega-right { padding: 20px 28px 20px 32px; }

/* subtle texture */
.mega-right::before {
  content:''; position:absolute; inset:0;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events:none;
}

@media(max-width:1024px){
  .mega-right {
    padding:16px 16px 24px; flex:1;
    overflow-y:auto; -webkit-overflow-scrolling:touch;
    background:var(--cream);
  }
  .mega-right::before { display:none; }
  html[lang="ar"] .mega-right { padding-right:16px; }
}

/* ── PRODUCT PANELS ── */
.products-panel { display:none; position:relative; z-index:1; }
.products-panel.active { display:block; animation:panelIn 0.32s cubic-bezier(0.22,1,0.36,1) forwards; }
@keyframes panelIn { from{opacity:0;transform:translateX(10px)} to{opacity:1;transform:translateX(0)} }

/* Desktop: auto-fit columns, min 200px */
.products-waterfall {
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(200px,1fr));
  gap:16px;
  align-content:start;
}
/* Only force single column on genuinely small phone screens */
@media(max-width:500px){ .products-waterfall { grid-template-columns:1fr; gap:12px; } }

/* ── PRODUCT CARDS — desktop redesign ── */
.product-card {
  background:white; border-radius:16px; overflow:hidden;
  border:1px solid rgba(26,32,15,0.07);
  transition:var(--transition); cursor:pointer;
  box-shadow: 0 2px 12px rgba(26,32,15,0.06);
}
.product-card:hover {
  transform:translateY(-5px) scale(1.01);
  box-shadow: 0 16px 48px rgba(26,32,15,0.14);
  border-color:rgba(201,168,76,0.4);
}
@media(max-width:1024px){
  .product-card:hover { transform:none; box-shadow:none; }
  .product-card:active { transform:scale(0.98); }
}

/* Image area */
.product-card-img {
  height: 160px;
  position:relative; overflow:hidden;
  background-color:var(--cream-warm);
}
/* Square images only on small real mobile screens */
@media(max-width:500px){
  .product-card-img { height:auto; aspect-ratio: 1 / 1; }
}

.product-card-img img {
  width:100%; height:100%; object-fit:cover; display:block;
  transition:transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.product-card:hover .product-card-img img { transform:scale(1.07); }

/* Gradient overlay on image */
.product-card-img-overlay {
  position:absolute; inset:0;
  background:linear-gradient(180deg, transparent 40%, rgba(26,32,15,0.55) 100%);
}

/* Badge */
.product-card-badge {
  position:absolute; top:10px; left:10px;
  background:var(--gold); color:var(--olive-dark);
  padding:3px 10px; border-radius:40px;
  font-size:9px; font-weight:800; letter-spacing:1.5px; text-transform:uppercase;
}

/* Body */
.product-card-body { padding:14px 16px 16px; }

.product-card-name {
  font-family:var(--font-display); font-size:20px; font-weight:700;
  color:var(--olive-dark); margin-bottom:2px; line-height:1.1;
}
.product-card-model {
  font-size:9px; font-weight:700; color:var(--gold);
  letter-spacing:1.5px; text-transform:uppercase; margin-bottom:8px;
}
/* ── Flag stack on product card ── */
.flag-stack {
  display:flex; align-items:center; gap:0;
  margin-bottom:10px;
}
.flag-bubble {
  display:inline-flex; align-items:center; justify-content:center;
  width:28px; height:28px; border-radius:50%;
  background:#fff; border:2px solid #fff;
  box-shadow:0 2px 6px rgba(0,0,0,.18);
  overflow:hidden; cursor:default;
  margin-right:-7px; transition:transform .18s, box-shadow .18s;
  position:relative;
}
.flag-bubble .fi {
  width:28px; height:28px;
  background-size:cover; background-position:center;
  border-radius:50%; flex-shrink:0;
}
.flag-bubble:hover {
  transform:translateY(-3px) scale(1.18);
  box-shadow:0 6px 16px rgba(0,0,0,.22);
  z-index:20 !important;
}
.flag-overflow {
  display:inline-flex; align-items:center; justify-content:center;
  width:28px; height:28px; border-radius:50%;
  background:var(--olive-dark,#2a3a12); color:#fff;
  font-size:9px; font-weight:800; letter-spacing:-.3px;
  border:2px solid #fff; box-shadow:0 2px 6px rgba(0,0,0,.18);
  margin-right:4px; position:relative; z-index:1;
}
.flag-stack-label {
  font-size:9px; font-weight:700; letter-spacing:1.2px;
  text-transform:uppercase; color:var(--text-muted,#8a9670);
  margin-left:10px;
}
.product-card-desc {
  font-size:12px; color:var(--text-muted); line-height:1.6;
  margin-bottom:12px;
}
.product-card-actions { display:flex; gap:6px; flex-wrap:wrap; }
.product-btn {
  display:inline-flex; align-items:center; gap:5px;
  padding:7px 14px; border-radius:40px; font-size:10px; font-weight:700;
  letter-spacing:0.5px; text-decoration:none; transition:var(--transition);
  border:none; cursor:pointer; font-family:var(--font-body);
}
.product-btn-primary {
  background:var(--olive-dark); color:white;
}
.product-btn-primary:hover { background:var(--olive-mid); transform:translateX(2px); }
.product-btn-video { background:rgba(201,168,76,0.12); color:var(--gold); border:1px solid rgba(201,168,76,0.3); }
.product-btn-video:hover { background:var(--gold); color:var(--olive-dark); }

/* Desktop close button — hidden, replaced by top bar close */
.mega-close { display:none; }
@media(max-width:1024px){ .mega-close { display:none; } }

/* ── HEADER RIGHT ── */
.header-right { display:flex; align-items:center; gap:6px; }

.lang-toggle {
  display:flex; align-items:center; background:rgba(255,255,255,0.10);
  border:1px solid rgba(255,255,255,0.18); border-radius:40px; padding:2px; gap:2px;
  transition:var(--transition);
  flex-shrink: 0;
}
.header.scrolled .lang-toggle { background:rgba(26,32,15,0.06); border-color:rgba(107,127,58,0.20); }
.lang-btn {
  padding:5px 11px; border-radius:40px; font-size:11px; font-weight:700;
  letter-spacing:1px; text-transform:uppercase; border:none; cursor:pointer;
  transition:var(--transition); background:transparent; color:rgba(255,255,255,0.45);
  font-family:var(--font-body); line-height:1;
  min-height: 0 !important; height: auto !important;
  display: inline-flex; align-items: center;
  text-decoration: none;
}
.header.scrolled .lang-btn { color:var(--text-muted); }
.lang-btn.active { background:var(--gold); color:var(--olive-dark); box-shadow:0 2px 10px rgba(201,168,76,0.30); }
.lang-btn:not(.active):hover { color:white; }
.header.scrolled .lang-btn:not(.active):hover { color:var(--olive-mid); }

@media(max-width:768px){
  /* Keep toggle always in its dark style since header is always dark on mobile */
  .lang-toggle { background:rgba(255,255,255,0.12) !important; border-color:rgba(255,255,255,0.20) !important; padding:2px; }
  .header.scrolled .lang-toggle { background:rgba(26,32,15,0.08) !important; border-color:rgba(107,127,58,0.20) !important; }
  .lang-btn { font-size:10px; padding:4px 10px; color:rgba(255,255,255,0.5) !important; }
  .header.scrolled .lang-btn { color:var(--text-muted) !important; }
  .lang-btn.active { background:var(--gold) !important; color:var(--olive-dark) !important; }
}

.hamburger { display:none; flex-direction:column; gap:5px; cursor:pointer; background:none; border:none; padding:8px 4px; }
.hamburger span { width:22px; height:2px; background:white; border-radius:2px; transition:0.3s; display:block; }
.header.scrolled .hamburger span { background:var(--olive-dark); }
.hamburger.open span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity:0; transform:scaleX(0); }
.hamburger.open span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }
@media(max-width:1024px){ 
  .hamburger { display:flex; }
  .hamburger span { background:white !important; }
}
/* On mobile scrolled, header still has dark bg so keep hamburger white */
@media(max-width:768px){
  .header.scrolled .hamburger span { background:var(--olive-dark) !important; }
}

/* ── HERO ── */
.hero {
  position:relative; height:100vh; min-height:600px;
  overflow:hidden; display:flex; align-items:center;
}
/* On mobile: compact hero so stats are visible without scrolling */
@media(max-width:768px){
  .hero {
    height: calc(100vh - 32px); /* subtract ticker height */
    min-height: 480px;
    max-height: 640px; /* cap so stats always show */
    align-items: flex-end;
    padding-bottom: 48px;
  }
}
@media(max-width:480px){
  .hero { max-height: 580px; min-height: 440px; padding-bottom: 36px; }
}
.hero-bg {
  position:absolute; inset:0;
  background-size:cover; background-position:center;
  transform:scale(1.04); animation:heroZoom 12s ease-in-out infinite alternate;
  background-color: var(--olive-dark);
}
@keyframes heroZoom { from{transform:scale(1.04)} to{transform:scale(1.10)} }
.hero-overlay {
  position:absolute; inset:0;
  background:linear-gradient(135deg,rgba(26,32,15,0.90) 0%,rgba(26,32,15,0.60) 50%,rgba(26,32,15,0.30) 100%);
}
.hero-overlay::after {
  content:''; position:absolute; bottom:0; left:0; right:0;
  height:180px;
  background:linear-gradient(0deg, var(--cream) 0%, transparent 100%);
}
@media(max-width:768px){
  .hero-overlay::after { height:80px; }
}

.hero::before {
  content:''; position:absolute; inset:0; z-index:2; pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
}

.hero-content {
  position:relative; z-index:10;
  max-width:1400px; margin:0 auto;
  padding:0 60px; width:100%;
}
@media(max-width:768px){ .hero-content { padding:0 20px; } }
@media(max-width:480px){ .hero-content { padding:0 18px; } }

.hero-eyebrow { display:inline-flex; align-items:center; gap:12px; margin-bottom:20px; opacity:0; animation:fadeUp 0.8s 0.4s forwards; }
.hero-eyebrow-line { width:36px; height:2px; background:var(--gold); }
.hero-eyebrow-text { font-size:10px; font-weight:600; letter-spacing:3px; text-transform:uppercase; color:rgba(255,255,255,0.6); }
@media(max-width:480px){ .hero-eyebrow-text { font-size:9px; letter-spacing:2px; } }

.hero-title { font-family:var(--font-display); font-size:clamp(38px,8vw,110px); font-weight:300; color:white; line-height:0.95; letter-spacing:-1px; margin-bottom:6px; opacity:0; animation:fadeUp 0.9s 0.6s forwards; }
.hero-title em { font-style:italic; color:var(--gold-light); }
.hero-title-bold { font-family:var(--font-display); font-size:clamp(38px,8vw,110px); font-weight:700; color:white; line-height:0.95; letter-spacing:-1px; margin-bottom:16px; display:block; opacity:0; animation:fadeUp 0.9s 0.75s forwards; }
.hero-tagline { font-size:clamp(12px,1.5vw,16px); color:rgba(255,255,255,0.65); max-width:460px; line-height:1.6; margin-bottom:24px; opacity:0; animation:fadeUp 0.8s 0.95s forwards; }
.hero-actions { display:flex; gap:12px; flex-wrap:wrap; opacity:0; animation:fadeUp 0.8s 1.1s forwards; }

@media(max-width:480px){
  .hero-actions { flex-direction:column; align-items:flex-start; gap:8px; }
  .hero-tagline { max-width:100%; margin-bottom:18px; }
  .hero-title-bold { margin-bottom:10px; }
  .hero-eyebrow { margin-bottom:12px; }
}

.btn-hero-primary { display:inline-flex; align-items:center; gap:8px; padding:14px 30px; border-radius:50px; background:var(--gold); color:var(--olive-dark); font-size:12px; font-weight:700; letter-spacing:1px; text-transform:uppercase; text-decoration:none; transition:var(--transition); }
.btn-hero-primary:hover { background:var(--gold-light); transform:translateY(-2px); box-shadow:0 14px 36px rgba(201,168,76,0.35); }
.btn-hero-ghost { display:inline-flex; align-items:center; gap:8px; padding:13px 28px; border-radius:50px; border:1.5px solid rgba(255,255,255,0.35); color:white; font-size:12px; font-weight:600; letter-spacing:0.5px; text-decoration:none; transition:var(--transition); }
.btn-hero-ghost:hover { background:rgba(255,255,255,0.10); border-color:white; transform:translateY(-2px); }

@media(max-width:480px){
  .btn-hero-primary, .btn-hero-ghost { padding:13px 24px; font-size:11px; }
}

.hero-scroll { position:absolute; bottom:90px; left:60px; z-index:10; display:flex; align-items:center; gap:12px; color:rgba(255,255,255,0.45); font-size:10px; font-weight:600; letter-spacing:2px; text-transform:uppercase; opacity:0; animation:fadeUp 0.8s 1.4s forwards; }
.hero-scroll-line { width:50px; height:1px; background:rgba(255,255,255,0.25); }
@media(max-width:768px){ .hero-scroll { left:24px; bottom:70px; } }
@media(max-width:480px){ .hero-scroll { display:none; } }

.hero-deco-year { position:absolute; right:60px; bottom:100px; z-index:10; font-family:var(--font-display); font-size:120px; font-weight:700; color:rgba(255,255,255,0.04); line-height:1; letter-spacing:-6px; pointer-events:none; }
@media(max-width:1024px){ .hero-deco-year { display:none; } }

@keyframes fadeUp { from{opacity:0;transform:translateY(28px)} to{opacity:1;transform:translateY(0)} }

/* ── STATS STRIP ── */
.stats {
  background: white;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  border-bottom: 1px solid rgba(107,127,58,0.10);
  position: relative; z-index: 5;
}
@media(max-width:600px){ .stats { grid-template-columns:1fr 1fr; } }

.stat-item {
  text-align: center;
  padding: 28px 16px;
  border-right: 1px solid rgba(107,127,58,0.10);
  position: relative;
}
.stat-item:last-child { border-right: none; }
@media(max-width:600px){
  .stat-item:nth-child(2){ border-right:none; }
  .stat-item:nth-child(3){ border-top:1px solid rgba(107,127,58,0.10); }
  .stat-item:nth-child(4){ border-top:1px solid rgba(107,127,58,0.10); border-right:none; }
  .stat-item { padding:16px 10px; }
}

.stat-val { font-family:var(--font-display); font-size:clamp(28px,5vw,44px); font-weight:700; color:var(--olive-mid); line-height:1; margin-bottom:4px; }
.stat-label { font-size:9px; color:var(--text-muted); letter-spacing:1px; text-transform:uppercase; font-weight:500; }

/* ── PAGE BODY ── */
.page-body { background: var(--cream); }

/* ── SECTION SHARED ── */
.section-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--section-pad) 60px;
}
@media(max-width:768px){ .section-wrap { padding: var(--section-pad-sm) 24px; } }
@media(max-width:480px){ .section-wrap { padding: 36px 20px; } }

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(107,127,58,0.15), transparent);
  margin: 0 60px;
}
@media(max-width:768px){ .section-divider { margin: 0 24px; } }

/* ── SECTION HEADER ── */
.section-header { margin-bottom: 36px; }
.section-eyebrow { display:inline-flex; align-items:center; gap:10px; margin-bottom:10px; }
.section-eyebrow-dot { width:24px; height:2px; background:var(--gold); border-radius:2px; }
.section-eyebrow-text { font-size:11px; font-weight:700; letter-spacing:3px; text-transform:uppercase; color:var(--gold); }
.section-title { font-family:var(--font-display); font-size:clamp(32px,5vw,60px); font-weight:300; color:var(--olive-dark); line-height:1.05; letter-spacing:-0.5px; }
.section-title strong { font-weight:700; }

/* ══════════════════════════════════════
   PORTFOLIO — IMMERSIVE PANEL LAYOUT
══════════════════════════════════════ */

/* Section wrapper override for dark bg */
/* ── FAMILY SECTION ── */
.fam-section {
  background: var(--cream);
  padding: 60px;
}
@media(max-width:768px){ .fam-section { padding: 40px 20px; } }

.fam-section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(107,127,58,0.15);
  margin-bottom: 28px;
}
@media(max-width:600px){ .fam-section-head { flex-direction:column; align-items:flex-start; gap:8px; } }

.fam-section-head-left {}
.fam-section-title {
  font-family: var(--font-display);
  font-size: clamp(28px,3.5vw,52px); font-weight: 300;
  color: var(--olive-dark); line-height: 1; letter-spacing: -1px;
  margin: 6px 0 0;
}
.fam-section-title strong { font-weight:700; font-style:italic; color:var(--olive-mid); }
.fam-section-sub {
  font-size: 14px; color: var(--olive-mid);
  max-width: 260px; text-align: right; line-height: 1.6;
  font-style: italic;
  border-left: 3px solid var(--gold);
  padding-left: 12px;
}
@media(max-width:600px){ .fam-section-sub { text-align:left; max-width:100%; border-left:3px solid var(--gold); border-top:none; } }

.fam-cards {
  display: grid;
  gap: 16px;
}
@media(max-width:768px){ .fam-cards { grid-template-columns: repeat(2, 1fr) !important; gap:10px; } }
@media(max-width:400px){ .fam-cards { grid-template-columns: 1fr !important; } }

.fam-card {
  position: relative;
  border-radius: 16px;
  height: 200px;
  overflow: hidden;
  cursor: pointer;
  background: var(--olive-dark);
  background-size: cover;
  background-position: center;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform 0.22s, box-shadow 0.22s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.fam-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.25); }
.fam-card:active { transform: translateY(0); }

.fam-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,18,6,0.1) 0%, rgba(10,18,6,0.75) 100%);
}

.fam-card-icon-bg {
  position: absolute; top: 16px; left: 16px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--olive-dark);
  z-index: 1;
}

.fam-card-body {
  position: relative; z-index: 1;
  padding: 14px 16px;
}
.fam-card-name {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700;
  color: white; line-height: 1.2;
}
.fam-card-count {
  font-size: 10px; font-weight: 700;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase; letter-spacing: 1px;
  margin-top: 3px;
}

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media(max-width:900px){ .about-grid { grid-template-columns:1fr; gap:36px; } }

.about-img-wrap { position:relative; }
.about-img { width:100%; border-radius:var(--radius-lg); box-shadow:var(--shadow-lg); display:block; aspect-ratio:4/3; object-fit:cover; }
.about-img-card {
  position:absolute; bottom:-16px; right:-16px;
  background:var(--olive-dark); border-radius:var(--radius-md);
  padding:16px 20px; display:flex; align-items:center; gap:14px; color:white;
  box-shadow:var(--shadow);
}
@media(max-width:900px){
  .about-img-card { bottom:16px; right:16px; }
}
@media(max-width:480px){
  .about-img-card { bottom:12px; right:12px; padding:12px 14px; gap:10px; }
}
.about-img-card-num { font-family:var(--font-display); font-size:30px; font-weight:700; color:var(--gold); line-height:1; }
.about-img-card-label { font-size:10px; color:rgba(255,255,255,0.5); letter-spacing:1px; text-transform:uppercase; }
.about-text { font-size:14.5px; color:var(--text-muted); line-height:1.8; margin-bottom:16px; }
@media(max-width:480px){ .about-text { font-size:14px; } }
.about-stats { display:flex; gap:28px; flex-wrap:wrap; margin-top:24px; }
.about-stat-val { font-family:var(--font-display); font-size:34px; font-weight:700; color:var(--olive-mid); line-height:1; }
.about-stat-label { font-size:10px; color:var(--text-muted); letter-spacing:1px; text-transform:uppercase; margin-top:2px; }

/* ── CTA ── */
.cta-section {
  background: var(--olive-dark);
  padding: var(--section-pad) 60px;
  position: relative;
  overflow: hidden;
}
@media(max-width:768px){ .cta-section { padding: var(--section-pad-sm) 24px; } }
@media(max-width:480px){ .cta-section { padding: 40px 20px; } }

.cta-section::before {
  content:''; position:absolute; top:0; left:0; right:0;
  height:1px; background:linear-gradient(90deg,transparent,rgba(201,168,76,0.25),transparent);
}
.cta-section::after {
  content:''; position:absolute; right:-80px; top:-80px;
  width:400px; height:400px; border-radius:50%;
  background:radial-gradient(ellipse,rgba(201,168,76,0.10),transparent 70%);
  pointer-events:none;
}

.cta-inner {
  max-width:1400px; margin:0 auto;
  display:flex; align-items:center; justify-content:space-between; gap:32px; flex-wrap:wrap;
  position:relative; z-index:1;
}
@media(max-width:640px){ .cta-inner { flex-direction:column; align-items:flex-start; gap:28px; } }

.cta-title-main { font-family:var(--font-display); font-size:clamp(26px,4vw,50px); font-weight:300; color:white; line-height:1.05; }
.cta-title-main strong { font-weight:700; color:var(--gold-light); }
.cta-subtitle { font-size:13px; color:rgba(255,255,255,0.45); margin-top:8px; }
.cta-btns { display:flex; gap:10px; flex-wrap:wrap; flex-shrink:0; }
@media(max-width:480px){
  .cta-btns { width:100%; }
  .cta-btns a { flex:1; justify-content:center; text-align:center; }
}

/* ── FOOTER ── */
.footer {
  background: var(--olive-dark);
  padding: 48px 60px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
@media(max-width:768px){ .footer { padding:36px 24px 20px; } }
@media(max-width:480px){ .footer { padding:28px 20px 20px; } }

.footer-grid {
  display:grid; grid-template-columns:1.6fr 1fr 1fr;
  gap:36px; margin-bottom:36px;
}
@media(max-width:1024px){ .footer-grid { grid-template-columns:1fr 1fr; gap:28px; } }
@media(max-width:600px)  { .footer-grid { grid-template-columns:1fr; gap:28px; } }

.footer-brand-name { font-family:var(--font-display); font-size:28px; font-weight:700; color:white; line-height:1; margin-bottom:3px; }
.footer-brand-name em { color:var(--gold); font-style:normal; }
.footer-about { font-size:13px; color:rgba(255,255,255,0.35); line-height:1.8; margin-top:10px; max-width:280px; }
@media(max-width:1024px){ .footer-about { max-width:100%; } }


.footer-col-title { font-size:11px; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:white; margin-bottom:14px; }
.footer-links { list-style:none; display:flex; flex-direction:column; gap:9px; }
.footer-links a { color:rgba(255,255,255,0.4); text-decoration:none; font-size:12.5px; transition:var(--transition); display:flex; align-items:center; gap:7px; }
.footer-links a:hover { color:var(--gold); }
.footer-links a i { font-size:9px; }
.footer-bottom {
  border-top:1px solid rgba(255,255,255,0.08); padding-top:18px;
  display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap:10px; font-size:11px; color:rgba(255,255,255,0.3);
}

/* ── MOBILE NAV — Full-Screen Drawer ── */
.mob-nav {
  position:fixed; inset:0; background:var(--cream); z-index:2000;
  display:flex; flex-direction:column;
  transform:translateX(100%);
  transition:transform 0.45s cubic-bezier(0.22,1,0.36,1);
  overflow-y:auto;
}
.mob-nav.open { transform:translateX(0); }

.mob-nav-header {
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 20px;
  border-bottom:1px solid rgba(107,127,58,0.12);
  background:var(--olive-dark);
  flex-shrink:0;
}
.mob-nav-logo { display:flex; align-items:center; gap:10px; }
.mob-nav-logo-name { font-family:var(--font-display); font-size:22px; font-weight:700; color:white; }
.mob-nav-logo-name em { color:var(--gold); font-style:normal; }

.mob-nav-close {
  width:40px; height:40px; border-radius:50%;
  background:rgba(255,255,255,0.10); border:none; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  color:white; font-size:15px; transition:var(--transition);
}
.mob-nav-close:hover { background:var(--gold); color:var(--olive-dark); }

.mob-nav-body { padding:16px 0; flex:1; }

.mob-nav-section-label {
  padding:12px 24px 6px;
  font-size:9px; font-weight:700; letter-spacing:2px; text-transform:uppercase;
  color:var(--text-muted);
}

.mob-nav-item {
  display:flex; align-items:center; gap:14px;
  padding:14px 20px; cursor:pointer;
  border-bottom:1px solid rgba(107,127,58,0.08);
  transition:var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.mob-nav-item:hover, .mob-nav-item:active { background:rgba(107,127,58,0.06); }

.mob-nav-item-icon {
  width:44px; height:44px; border-radius:12px;
  background:var(--olive-dark); color:var(--gold);
  display:flex; align-items:center; justify-content:center;
  font-size:18px; flex-shrink:0; transition:var(--transition);
}
.mob-nav-item:hover .mob-nav-item-icon { background:var(--gold); color:var(--olive-dark); }

.mob-nav-item-content { flex:1; }
.mob-nav-item-title { font-family:var(--font-display); font-size:22px; font-weight:600; color:var(--olive-dark); line-height:1.1; }
.mob-nav-item-sub { font-size:11px; color:var(--text-muted); margin-top:2px; }
.mob-nav-item-arrow { color:var(--text-muted); font-size:12px; }

.mob-nav-lang {
  display:flex; align-items:center; justify-content:center; gap:12px;
  padding:20px 24px;
  border-top:1px solid rgba(107,127,58,0.12);
  margin-top:auto;
  flex-shrink:0;
}
.mob-nav-lang-btn {
  flex:1; max-width:140px; padding:12px;
  border-radius:var(--radius-md); font-size:13px; font-weight:700;
  letter-spacing:1px; text-transform:uppercase; border:2px solid rgba(107,127,58,0.2);
  cursor:pointer; transition:var(--transition); background:transparent;
  color:var(--text-muted); font-family:var(--font-body); text-align:center;
}
.mob-nav-lang-btn.active { background:var(--gold); border-color:var(--gold); color:var(--olive-dark); }

/* ── REVEAL ── */
.reveal { opacity:0; transform:translateY(20px); transition:opacity 0.65s cubic-bezier(0.22,1,0.36,1), transform 0.65s cubic-bezier(0.22,1,0.36,1); }
.reveal.visible { opacity:1; transform:translateY(0); }
.reveal-d1 { transition-delay:0.08s; } .reveal-d2 { transition-delay:0.16s; } .reveal-d3 { transition-delay:0.24s; } .reveal-d4 { transition-delay:0.32s; }

/* ── BACKDROP ── */
.mega-backdrop { position:fixed; inset:0; background:rgba(26,32,15,0.5); z-index:998; opacity:0; pointer-events:none; transition:opacity 0.35s; backdrop-filter:blur(4px); }
.mega-backdrop.show { opacity:1; pointer-events:all; }
@media(max-width:1024px){ .mega-backdrop { z-index:1008; } }

/* SCROLLBAR */
::-webkit-scrollbar { width:5px; height:5px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:var(--sand); border-radius:3px; }

/* ── TOUCH TARGET SAFETY ── */
@media(max-width:768px){
  /* Only apply min-height to interactive elements that need it, NOT to inline buttons like lang toggle */
  .mob-nav-item,
  .btn-hero-primary,
  .btn-hero-ghost,
  .mob-nav-item-icon,
  .mob-nav-close,
  .hamburger { min-height:44px; }
  .product-btn { min-height:32px; padding:6px 12px; font-size:11px; }
  .subfam-btn { min-height:auto; }
  /* Explicitly reset for lang toggle */
  .lang-btn, .lang-toggle { min-height:unset !important; }
}

/* ── PANEL ANIMATION RTL ── */
html[lang="ar"] @keyframes panelIn { from{opacity:0;transform:translateX(-8px)} to{opacity:1;transform:translateX(0)} }

/* ══════════════════════════════════════
   RTL FIXES — Arabic layout corrections
══════════════════════════════════════ */

/* Keep nav-item icons in LTR order (icon then text) — don't flip */
html[lang="ar"] .nav-item {
  flex-direction: row-reverse;
}
html[lang="ar"] .nav-item i:first-child {
  order: 2; /* push the fa icon to after text in visual RTL */
}

/* Nav center: keep tabs in logical RTL order */
html[lang="ar"] .nav-center {
  flex-direction: row-reverse;
}

/* Header layout stays symmetric */
html[lang="ar"] .header {
  flex-direction: row-reverse;
}

/* Mega family switcher: reverse tab order visually */
html[lang="ar"] .mega-family-switcher {
  flex-direction: row-reverse;
  padding: 0 24px 0 0;
}
html[lang="ar"] .mega-fam-close {
  margin-left: 0;
  margin-right: auto;
  border-left: none;
  border-right: 1px solid rgba(255,255,255,0.06);
}

/* Mega fam tabs: keep icon + text in consistent order */
html[lang="ar"] .mega-fam-tab {
  flex-direction: row-reverse;
}

/* Subfam buttons in sidebar: keep icon left, text right */
html[lang="ar"] .subfam-btn {
  flex-direction: row;
}

/* Product card badge stays top-left (visual left = physical right in RTL) */
html[lang="ar"] .product-card-badge {
  left: auto;
  right: 10px;
}

/* Hero eyebrow line stays on correct side */
html[lang="ar"] .hero-eyebrow {
  flex-direction: row-reverse;
}
html[lang="ar"] .section-eyebrow {
  flex-direction: row-reverse;
}
html[lang="ar"] .portfolio-eyebrow {
  flex-direction: row-reverse;
}

/* Stat items in strip - keep their structure */
html[lang="ar"] .stat-item {
  border-right: none;
  border-left: 1px solid rgba(107,127,58,0.10);
}
html[lang="ar"] .stat-item:first-child { border-left: none; }
html[lang="ar"] .stat-item:last-child { border-left: 1px solid rgba(107,127,58,0.10); }


/* Footer links keep icon + text order */
html[lang="ar"] .footer-links a {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

/* Mobile nav arrows flip */
html[lang="ar"] .mob-nav-item {
  flex-direction: row-reverse;
}
html[lang="ar"] .mob-nav-item-content {
  text-align: right;
}

/* Header right side stays on left in RTL */
html[lang="ar"] .header-right {
  flex-direction: row-reverse;
}

/* Lang toggle keeps internal order */
html[lang="ar"] .lang-toggle {
  flex-direction: row;
}

/* About grid image card stays in correct corner */
html[lang="ar"] .about-img-card {
  left: -16px;
  right: auto;
}
@media(max-width:900px){
  html[lang="ar"] .about-img-card { left: 16px; right: auto; }
}

/* CTA buttons stay in row */
html[lang="ar"] .cta-btns {
  flex-direction: row-reverse;
}

/* Hero actions */
html[lang="ar"] .hero-actions {
  flex-direction: row-reverse;
}

/* Keep icons inside buttons in proper order */
html[lang="ar"] .btn-hero-primary,
html[lang="ar"] .btn-hero-ghost,
html[lang="ar"] .product-btn {
  flex-direction: row-reverse;
}

/* Ticker direction already handled above */

