/* ============================================================
   KAIROUAN FURNITURE — Frontend CSS v2.0
   Premium luxury furniture brand aesthetic
   Mobile-first, RTL-ready, WCAG-accessible
   ============================================================ */

/* ── Google Fonts loaded in header.php ────────────────────────
   EN: Playfair Display (headings) + DM Sans (body)
   AR: Cairo (both)
   ── ────────────────────────────────────────────────────────── */

/* ── Design tokens ─────────────────────────────────────────── */
:root {
  /* Brand palette */
  --ink:        #0D0A07;
  --charcoal:   #1A1410;
  --brown:      #5C2D0A;
  --sienna:     #8B4A1C;
  --gold:       #C4922A;
  --gold-lt:    #DDB96A;
  --cream:      #FAF7F2;
  --paper:      #F2EBE0;
  --white:      #FFFFFF;

  /* Grays */
  --g1: #F5F1EC;
  --g2: #E6DDD2;
  --g3: #C4B8AC;
  --g4: #8A7D72;
  --g5: #5C524A;

  /* Typography */
  --font-en:    'DM Sans', sans-serif;
  --font-head:  'Playfair Display', Georgia, serif;
  --font-ar:    'Cairo', 'Segoe UI', sans-serif;

  /* Spacing scale (8px base) */
  --s1: 8px;  --s2: 16px; --s3: 24px;
  --s4: 32px; --s5: 48px; --s6: 64px;
  --s7: 96px; --s8: 128px;

  /* Layout */
  --container: 1280px;
  --nav-h:     72px;
  --radius:    3px;
  --radius-lg: 6px;

  /* Transitions */
  --ease:      cubic-bezier(.25,.46,.45,.94);
  --t1:        .18s;
  --t2:        .32s;
  --t3:        .5s;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 8px 32px rgba(0,0,0,.12);
  --shadow-lg: 0 24px 64px rgba(0,0,0,.16);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
img, video { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }
input, select, textarea { font-family: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ── Base ──────────────────────────────────────────────────── */
body {
  font-family: var(--font-en);
  background: var(--white);
  color: var(--ink);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.lang-ar {
  font-family: var(--font-ar);
  direction: rtl;
}
body.lang-ar .font-head { font-family: var(--font-ar); }
h1,h2,h3,h4,h5 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}
body.lang-ar h1,
body.lang-ar h2,
body.lang-ar h3,
body.lang-ar h4 { font-family: var(--font-ar); }
p { line-height: 1.75; color: var(--g5); }

/* ── Layout ────────────────────────────────────────────────── */
.container   { max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); }
.container-sm{ max-width: 860px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.section     { padding: clamp(56px, 8vw, 100px) 0; }
.section-sm  { padding: clamp(40px, 5vw, 64px) 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); }

/* ── Typography ────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s2);
}
body.lang-ar .eyebrow { font-family: var(--font-ar); letter-spacing: 1px; }

.heading-xl  { font-size: clamp(36px, 5vw, 64px); }
.heading-lg  { font-size: clamp(28px, 3.5vw, 48px); }
.heading-md  { font-size: clamp(22px, 2.5vw, 34px); }
.heading-sm  { font-size: clamp(18px, 2vw, 24px); }

.heading-rule {
  width: 48px; height: 2px;
  background: var(--gold);
  margin: var(--s2) 0 var(--s3);
}
.heading-rule.center { margin-left: auto; margin-right: auto; }

.text-center { text-align: center; }
.text-gold   { color: var(--gold); }
.text-brown  { color: var(--brown); }
.text-muted  { color: var(--g4); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  font-size: 12px; font-weight: 500; letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  transition: all var(--t1) var(--ease);
  white-space: nowrap;
  line-height: 1;
}
.btn-primary { background: var(--brown); color: var(--white); border-color: var(--brown); }
.btn-primary:hover { background: var(--sienna); border-color: var(--sienna); }
.btn-gold    { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-gold:hover { background: var(--sienna); border-color: var(--sienna); }
.btn-outline { background: transparent; color: var(--brown); border-color: var(--brown); }
.btn-outline:hover { background: var(--brown); color: var(--white); }
.btn-white   { background: var(--white); color: var(--brown); border-color: var(--white); }
.btn-white:hover { background: transparent; color: var(--white); }
.btn-ghost   { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.1); }
.btn-wa      { background: #25D366; color: var(--white); border-color: #25D366; }
.btn-wa:hover{ background: #1da851; }
.btn svg     { width: 16px; height: 16px; flex-shrink: 0; }
.btn-sm      { padding: 9px 18px; font-size: 11px; }
.btn-lg      { padding: 16px 36px; font-size: 13px; }

/* ── Badges ────────────────────────────────────────────────── */
.badge {
  display: inline-block; padding: 4px 10px;
  font-size: 10px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; border-radius: 2px;
}
.badge-gold    { background: var(--gold); color: var(--white); }
.badge-dark    { background: var(--charcoal); color: var(--white); }
.badge-brown   { background: var(--brown); color: var(--white); }

/* ── Navbar ────────────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 56px);
  transition: background var(--t2) var(--ease), box-shadow var(--t2);
}
#navbar.scrolled {
  background: rgba(250,247,242,.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--g2), var(--shadow-sm);
}
.nav-logo {
  display: flex; align-items: center; gap: 14px;
  flex-shrink: 0; z-index: 1;
}
.nav-logo-emblem {
  width: 44px; height: 44px;
  border: 1.5px solid rgba(196,146,42,.6);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: border-color var(--t1);
}
#navbar.scrolled .nav-logo-emblem { border-color: var(--gold); }
.nav-logo-emblem svg { width: 28px; height: 28px; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1; }
.nav-logo-en {
  font-family: var(--font-head);
  font-size: 17px; font-weight: 500;
  letter-spacing: 3px;
  color: var(--white);
  transition: color var(--t1);
}
.nav-logo-ar {
  font-family: var(--font-ar);
  font-size: 9px; letter-spacing: .5px;
  color: rgba(196,146,42,.7);
  margin-top: 2px;
}
#navbar.scrolled .nav-logo-en { color: var(--ink); }

.nav-links {
  display: flex; align-items: center; gap: 2px;
}
.nav-links > li > a,
.nav-links > li > button {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 14px;
  font-size: 12.5px; font-weight: 400; letter-spacing: .3px;
  color: rgba(255,255,255,.88);
  border-radius: var(--radius);
  transition: color var(--t1), background var(--t1);
  border: none; background: none;
}
#navbar.scrolled .nav-links > li > a,
#navbar.scrolled .nav-links > li > button { color: var(--g5); }
.nav-links > li > a:hover,
.nav-links > li > button:hover { color: var(--white); background: rgba(255,255,255,.1); }
#navbar.scrolled .nav-links > li > a:hover,
#navbar.scrolled .nav-links > li > button:hover { color: var(--brown); background: var(--g1); }
.nav-links > li > a.active { color: var(--gold); }

/* Dropdown */
.has-dropdown { position: relative; }
.nav-dropdown {
  position: absolute; top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--g2);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
  padding: 8px 0;
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--t1) var(--ease);
  z-index: 100;
}
body.lang-ar .nav-dropdown { left: auto; right: 0; }
.has-dropdown:hover .nav-dropdown {
  opacity: 1; visibility: visible; transform: none;
}
.nav-dropdown a {
  display: block; padding: 10px 18px;
  font-size: 13px; color: var(--g5);
  transition: color var(--t1), background var(--t1);
}
.nav-dropdown a:hover { color: var(--brown); background: var(--g1); }

.nav-right {
  display: flex; align-items: center; gap: 8px;
}
.nav-search-btn, .nav-lang-btn, .hamburger {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  color: rgba(255,255,255,.88);
  transition: all var(--t1);
  border: none; background: none;
}
#navbar.scrolled .nav-search-btn,
#navbar.scrolled .nav-lang-btn,
#navbar.scrolled .hamburger { color: var(--g5); }
.nav-search-btn:hover, .nav-lang-btn:hover, .hamburger:hover { background: rgba(255,255,255,.12); }
#navbar.scrolled .nav-search-btn:hover,
#navbar.scrolled .nav-lang-btn:hover,
#navbar.scrolled .hamburger:hover { background: var(--g1); }
.nav-lang-btn { font-size: 12px; font-weight: 500; width: auto; padding: 0 12px; }
.hamburger { display: none; flex-direction: column; gap: 5px; }
.hamburger span { width: 22px; height: 1.5px; background: currentColor; transition: all var(--t2); border-radius: 1px; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative; height: 100svh; min-height: 600px;
  overflow: hidden; background: var(--charcoal);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide  {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1s var(--ease);
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 8s var(--ease);
}
.hero-slide.active img { transform: scale(1.06); }
.hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    160deg,
    rgba(10,6,2,.72) 0%,
    rgba(10,6,2,.38) 50%,
    rgba(10,6,2,.55) 100%
  );
}
.hero-bottom-fade {
  position: absolute; bottom: 0; left: 0; right: 0; height: 220px; z-index: 2;
  background: linear-gradient(to top, rgba(255,255,255,.12) 0%, transparent 100%);
}
.hero-content {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 0 clamp(24px, 6vw, 80px);
  max-width: 860px;
}
.hero-eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: var(--s3); }
.hero-line    { width: 40px; height: 1px; background: var(--gold); }
.hero-eyebrow-txt {
  font-size: 11px; font-weight: 500;
  letter-spacing: 3px; text-transform: uppercase;
  color: rgba(196,146,42,.9);
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(40px, 6.5vw, 86px);
  font-weight: 400; line-height: 1.08;
  color: var(--white);
  margin-bottom: var(--s3);
}
body.lang-ar .hero-title { font-family: var(--font-ar); line-height: 1.25; }
.hero-subtitle {
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 300; line-height: 1.7;
  color: rgba(255,255,255,.7);
  max-width: 520px;
  margin-bottom: var(--s5);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Hero controls */
.hero-nav {
  position: absolute; bottom: var(--s5); right: clamp(24px, 4vw, 56px);
  z-index: 4; display: flex; align-items: center; gap: var(--s2);
}
body.lang-ar .hero-nav { right: auto; left: clamp(24px, 4vw, 56px); }
.hero-counter {
  font-size: 11px; letter-spacing: 2px; color: rgba(255,255,255,.6);
  font-family: var(--font-en);
}
.hero-pips { display: flex; gap: 8px; }
.hero-pip {
  width: 28px; height: 2px; background: rgba(255,255,255,.3);
  border: none; border-radius: 1px; cursor: pointer;
  transition: background var(--t1), width var(--t2);
}
.hero-pip.active { background: var(--gold); width: 48px; }
.hero-arrow {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.25); border-radius: 50%;
  color: var(--white); cursor: pointer;
  transition: all var(--t1);
}
.hero-arrow:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); }
.hero-arrow svg { width: 18px; height: 18px; }

/* ── Ticker ────────────────────────────────────────────────── */
.ticker {
  background: var(--brown); overflow: hidden;
  padding: 12px 0; border-bottom: 1px solid var(--sienna);
}
.ticker-track {
  display: flex; gap: 0;
  animation: ticker-scroll 24s linear infinite;
  width: max-content;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
body.lang-ar .ticker-track { animation-direction: reverse; }
.ticker-item {
  display: flex; align-items: center; gap: 14px;
  padding: 0 28px;
  font-size: 11px; font-weight: 500;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(255,255,255,.85); white-space: nowrap;
}
.ticker-gem { width: 4px; height: 4px; background: var(--gold-lt); border-radius: 50%; flex-shrink: 0; }

/* ── Section helpers ───────────────────────────────────────── */
.section-head { margin-bottom: var(--s6); }
.section-head-row {
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: var(--s3);
  margin-bottom: var(--s6);
}
.see-all-link {
  font-size: 12px; font-weight: 500; letter-spacing: 1px;
  text-transform: uppercase; color: var(--brown);
  display: flex; align-items: center; gap: 6px;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: color var(--t1);
  white-space: nowrap;
  flex-shrink: 0;
}
.see-all-link:hover { color: var(--sienna); }

/* Background variants */
.bg-white  { background: var(--white); }
.bg-cream  { background: var(--cream); }
.bg-paper  { background: var(--paper); }
.bg-dark   { background: var(--charcoal); }
.bg-brown  { background: var(--brown); }
.bg-dark h2, .bg-dark h3, .bg-brown h2, .bg-brown h3 { color: var(--white); }
.bg-dark p, .bg-brown p { color: rgba(255,255,255,.6); }
.bg-dark .eyebrow, .bg-brown .eyebrow { color: var(--gold-lt); }
.bg-dark .heading-rule, .bg-brown .heading-rule { background: var(--gold-lt); }

/* ── Category tiles ────────────────────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s2);
}
.cat-tile {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--g1);
  border-radius: var(--radius);
  display: block;
}
.cat-tile:nth-child(1), .cat-tile:nth-child(2) { grid-column: span 2; aspect-ratio: 3/4; }
.cat-tile:nth-child(3), .cat-tile:nth-child(4),
.cat-tile:nth-child(5), .cat-tile:nth-child(6) { grid-column: span 2; aspect-ratio: 1/1; }
.cat-tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t3) var(--ease);
}
.cat-tile:hover img { transform: scale(1.07); }
.cat-tile-veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,.1) 60%);
}
.cat-tile-body {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: var(--s3);
  display: flex; align-items: flex-end; justify-content: space-between;
}
.cat-tile-name {
  font-family: var(--font-head);
  font-size: clamp(15px, 2vw, 20px);
  font-weight: 400; color: var(--white);
  line-height: 1.2;
}
body.lang-ar .cat-tile-name { font-family: var(--font-ar); }
.cat-tile-count { font-size: 11px; color: rgba(255,255,255,.6); margin-top: 4px; }
.cat-tile-arrow {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.4);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); flex-shrink: 0;
  transition: background var(--t1), border-color var(--t1);
}
.cat-tile:hover .cat-tile-arrow { background: var(--gold); border-color: var(--gold); }

/* ── Product cards ─────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--s3);
}
.product-card {
  background: var(--white);
  border: 1px solid var(--g2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--t2) var(--ease), transform var(--t2) var(--ease);
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.product-card-img {
  position: relative; aspect-ratio: 4/3;
  background: var(--g1); overflow: hidden;
}
.product-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t3) var(--ease);
}
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-badge {
  position: absolute; top: 12px;
  left: 12px;
}
body.lang-ar .product-card-badge { left: auto; right: 12px; }
.product-card-actions {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; gap: 8px;
  padding: 12px;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 100%);
  transform: translateY(100%);
  transition: transform var(--t2) var(--ease);
}
.product-card:hover .product-card-actions { transform: none; }
.product-card-body { padding: var(--s3); }
.product-card-cat {
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 6px;
}
.product-card-name {
  font-family: var(--font-head);
  font-size: 17px; font-weight: 400;
  color: var(--ink); line-height: 1.3;
  margin-bottom: 8px;
}
body.lang-ar .product-card-name { font-family: var(--font-ar); }
.product-card-desc {
  font-size: 13px; color: var(--g4);
  line-height: 1.6; margin-bottom: var(--s2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-foot {
  display: flex; align-items: center;
  justify-content: space-between; gap: 8px;
  padding-top: var(--s2);
  border-top: 1px solid var(--g1);
}
.product-price {
  font-size: 16px; font-weight: 500; color: var(--brown);
}
.product-price-por {
  font-size: 12px; font-weight: 400; color: var(--g4);
  font-style: italic;
}
.product-inquire-btn {
  font-size: 11px; font-weight: 500;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--brown); border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
  transition: color var(--t1);
}
.product-inquire-btn:hover { color: var(--sienna); }

/* ── About split ───────────────────────────────────────────── */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 580px;
}
.split-img { position: relative; overflow: hidden; }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split-badge {
  position: absolute; bottom: var(--s3); left: var(--s3);
  background: rgba(255,255,255,.95);
  padding: 10px 18px;
  font-size: 11px; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--brown);
  border-left: 3px solid var(--gold);
}
body.lang-ar .split-badge { left: auto; right: var(--s3); border-left: none; border-right: 3px solid var(--gold); }
.split-body {
  padding: clamp(40px, 6vw, 80px);
  display: flex; flex-direction: column; justify-content: center;
}
.split-body-dark { background: var(--charcoal); }
.split-body-dark h2, .split-body-dark .eyebrow-txt { color: var(--white); }

/* Stats row */
.stats-row {
  display: flex; gap: var(--s4);
  padding-top: var(--s4);
  border-top: 1px solid var(--g2);
  margin-top: var(--s4);
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400; color: var(--gold);
  line-height: 1;
}
.split-body-dark .stat-num { color: var(--gold-lt); }
.stat-label {
  font-size: 11px; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--g4); margin-top: 6px;
}
.split-body-dark .stat-label { color: rgba(255,255,255,.4); }

/* ── Why us grid ───────────────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); }
.why-card {
  padding: var(--s4);
  border: 1px solid var(--g2);
  border-radius: var(--radius);
  background: var(--white);
  position: relative;
  transition: box-shadow var(--t2), transform var(--t2);
}
.why-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.why-card::before {
  content: attr(data-num);
  font-family: var(--font-head);
  font-size: 56px; font-weight: 400;
  color: var(--g1); line-height: 1;
  position: absolute; top: var(--s2); right: var(--s3);
}
body.lang-ar .why-card::before { right: auto; left: var(--s3); }
.why-card-title {
  font-family: var(--font-head);
  font-size: 18px; font-weight: 400;
  color: var(--brown); margin-bottom: var(--s1);
}
body.lang-ar .why-card-title { font-family: var(--font-ar); }
.why-card p { font-size: 13px; color: var(--g4); line-height: 1.7; }

/* ── Testimonials ──────────────────────────────────────────── */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.testi-card {
  padding: var(--s4);
  background: var(--white);
  border: 1px solid var(--g2);
  border-radius: var(--radius);
  position: relative;
}
.testi-deco {
  font-family: var(--font-head);
  font-size: 72px; line-height: .8;
  color: var(--gold-lt); margin-bottom: var(--s1);
  font-weight: 400;
}
.testi-stars { color: var(--gold); font-size: 14px; margin-bottom: var(--s2); letter-spacing: 2px; }
.testi-text  { font-size: 14px; line-height: 1.75; color: var(--g5); margin-bottom: var(--s3); font-style: italic; }
.testi-name  { font-weight: 500; font-size: 14px; color: var(--ink); }
.testi-role  { font-size: 12px; color: var(--g4); margin-top: 3px; }

/* ── Gallery strip ─────────────────────────────────────────── */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
}
.gallery-item {
  position: relative; overflow: hidden;
  aspect-ratio: 1; cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t3) var(--ease);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item-overlay {
  position: absolute; inset: 0;
  background: rgba(92,45,10,.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--t1);
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-plus { font-size: 28px; color: var(--white); line-height: 1; }

/* ── Partners ──────────────────────────────────────────────── */
.partners-row {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center; gap: var(--s4);
}
.partner-logo {
  height: 48px; max-width: 120px; object-fit: contain;
  filter: grayscale(1) opacity(.5);
  transition: filter var(--t2);
}
.partner-logo:hover { filter: none; }

/* ── CTA section ───────────────────────────────────────────── */
.cta-section {
  background: var(--brown);
  padding: clamp(64px, 8vw, 100px) 0;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Ccircle cx='40' cy='40' r='38' fill='none' stroke='rgba(255,255,255,.04)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 80px 80px;
}
.cta-section h2 { color: var(--white); font-size: clamp(28px, 4vw, 44px); }
body.lang-ar .cta-section h2 { font-family: var(--font-ar); }
.cta-section p  { color: rgba(255,255,255,.7); margin: var(--s2) 0 var(--s4); font-size: 16px; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ── Footer ────────────────────────────────────────────────── */
footer {
  background: var(--charcoal);
  color: rgba(255,255,255,.6);
  padding: var(--s7) 0 0;
}
.footer-newsletter {
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding-bottom: var(--s6);
  margin-bottom: var(--s6);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); align-items: center;
}
.footer-newsletter h3 {
  font-size: clamp(20px, 2.5vw, 28px);
  color: var(--white);
  font-family: var(--font-head);
}
body.lang-ar footer h3 { font-family: var(--font-ar); }
.newsletter-form {
  display: flex; overflow: hidden;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
}
.newsletter-input {
  flex: 1; background: rgba(255,255,255,.05);
  border: none; outline: none;
  padding: 13px 18px;
  font-size: 13px; color: var(--white);
  font-family: inherit;
}
.newsletter-input::placeholder { color: rgba(255,255,255,.35); }
.newsletter-btn {
  background: var(--gold); color: var(--white);
  padding: 13px 22px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 1px; text-transform: uppercase;
  border: none; cursor: pointer;
  transition: background var(--t1); flex-shrink: 0;
}
.newsletter-btn:hover { background: var(--sienna); }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s6);
  padding-bottom: var(--s6);
}
.footer-brand p { font-size: 13px; line-height: 1.8; margin-top: var(--s3); }
.footer-socials { display: flex; gap: 10px; margin-top: var(--s3); }
.footer-soc {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6);
  transition: all var(--t1);
}
.footer-soc:hover { border-color: var(--gold); color: var(--gold); }
.footer-col h5 {
  font-size: 11px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--white); margin-bottom: var(--s3);
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: 13px; color: rgba(255,255,255,.55);
  transition: color var(--t1);
}
.footer-col ul a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: var(--s3) 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  font-size: 12px;
}
.footer-bottom-links { display: flex; gap: var(--s3); }
.footer-bottom-links a { transition: color var(--t1); }
.footer-bottom-links a:hover { color: var(--gold); }

/* ── WhatsApp float ────────────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 800;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform var(--t1), box-shadow var(--t1);
}
body.lang-ar .wa-float { right: auto; left: 28px; }
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.55); }
.wa-float svg { width: 28px; height: 28px; fill: var(--white); }

/* ── Back to top ───────────────────────────────────────────── */
.back-to-top {
  position: fixed; bottom: 100px; right: 28px; z-index: 799;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); color: var(--brown);
  border: 1px solid var(--g2);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(8px);
  transition: all var(--t2);
}
body.lang-ar .back-to-top { right: auto; left: 28px; }
.back-to-top.visible { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.back-to-top:hover { background: var(--brown); color: var(--white); }

/* ── Search overlay ────────────────────────────────────────── */
.search-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(10,6,2,.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: all var(--t2);
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-wrap { width: min(660px, 90vw); }
.search-form { display: flex; border-bottom: 1.5px solid rgba(255,255,255,.2); }
.search-input {
  flex: 1; background: none; border: none; outline: none;
  font-family: var(--font-head);
  font-size: clamp(22px, 4vw, 32px);
  color: var(--white); padding: var(--s2) 0;
}
body.lang-ar .search-input { font-family: var(--font-ar); }
.search-input::placeholder { color: rgba(255,255,255,.3); }
.search-submit {
  background: none; border: none; color: var(--white);
  padding: var(--s2); cursor: pointer;
}
.search-close-btn {
  position: absolute; top: var(--s3); right: var(--s3);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6); font-size: 20px;
  border-radius: 50%;
  transition: color var(--t1), background var(--t1);
}
.search-close-btn:hover { color: var(--white); background: rgba(255,255,255,.1); }

/* ── Mobile drawer ─────────────────────────────────────────── */
.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(340px, 90vw);
  background: var(--white);
  z-index: 1001;
  transform: translateX(110%);
  transition: transform var(--t2) var(--ease);
  overflow-y: auto;
  display: flex; flex-direction: column;
}
body.lang-ar .mobile-drawer { right: auto; left: 0; transform: translateX(-110%); }
.mobile-drawer.open { transform: none; }
.drawer-header {
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--g2);
  display: flex; align-items: center; justify-content: space-between;
}
.drawer-close {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--g4); font-size: 20px; border-radius: var(--radius);
  transition: all var(--t1);
}
.drawer-close:hover { background: var(--g1); color: var(--ink); }
.drawer-nav { padding: var(--s2) 0; flex: 1; }
.drawer-nav a, .drawer-nav button {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--s4);
  font-size: 15px; color: var(--g5);
  border-bottom: 1px solid var(--g1);
  width: 100%; text-align: left;
  transition: color var(--t1), background var(--t1);
}
body.lang-ar .drawer-nav a, body.lang-ar .drawer-nav button { text-align: right; }
.drawer-nav a:hover, .drawer-nav button:hover { color: var(--brown); background: var(--cream); }
.drawer-sub { display: none; background: var(--cream); }
.drawer-sub a { padding-left: var(--s6); font-size: 13.5px; }
body.lang-ar .drawer-sub a { padding-left: 0; padding-right: var(--s6); }
.drawer-sub.open { display: block; }
.drawer-foot {
  padding: var(--s3) var(--s4);
  border-top: 1px solid var(--g2);
  display: flex; gap: 10px;
}
.drawer-lang-btn {
  flex: 1; padding: 10px;
  font-size: 12px; font-weight: 500;
  border: 1px solid var(--g2); border-radius: var(--radius);
  color: var(--g5); text-align: center;
  transition: all var(--t1);
}
.drawer-lang-btn.active, .drawer-lang-btn:hover {
  background: var(--brown); color: var(--white); border-color: var(--brown);
}
.drawer-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.5);
  opacity: 0; visibility: hidden;
  transition: all var(--t2);
}
.drawer-overlay.open { opacity: 1; visibility: visible; }

/* ── Page hero (interior pages) ────────────────────────────── */
.page-hero {
  background: var(--charcoal);
  padding: calc(var(--nav-h) + 48px) 0 56px;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--gold);
}
.page-hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .2; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); font-size: clamp(28px, 4vw, 48px); }
body.lang-ar .page-hero h1 { font-family: var(--font-ar); }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
  font-size: 12px; color: rgba(255,255,255,.5);
  margin-bottom: 14px;
}
.breadcrumb a { transition: color var(--t1); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { color: rgba(255,255,255,.25); }
.breadcrumb span:last-child { color: var(--gold-lt); }

/* ── Product detail ────────────────────────────────────────── */
.product-detail {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s7); align-items: start;
}
.product-gallery-main {
  aspect-ratio: 4/3; background: var(--g1);
  overflow: hidden; border-radius: var(--radius);
}
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbs {
  display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap;
}
.product-thumb {
  width: 72px; height: 56px;
  border: 2px solid transparent;
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: border-color var(--t1);
}
.product-thumb.active, .product-thumb:hover { border-color: var(--gold); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-cat { color: var(--gold); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; }
.product-detail-name { font-size: clamp(24px, 3vw, 36px); margin-bottom: var(--s2); }
.product-detail-price { font-size: clamp(20px, 2.5vw, 28px); color: var(--brown); margin-bottom: var(--s3); font-weight: 400; }
.product-spec-table { margin: var(--s3) 0; border: 1px solid var(--g2); border-radius: var(--radius); overflow: hidden; }
.product-spec-row { display: flex; border-bottom: 1px solid var(--g1); }
.product-spec-row:last-child { border-bottom: none; }
.product-spec-key { width: 140px; padding: 11px 16px; font-size: 12px; font-weight: 500; color: var(--g4); background: var(--g1); border-right: 1px solid var(--g2); flex-shrink: 0; }
body.lang-ar .product-spec-key { border-right: none; border-left: 1px solid var(--g2); }
.product-spec-val { padding: 11px 16px; font-size: 13px; color: var(--ink); }
.product-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: var(--s4) 0; }
.product-share { display: flex; align-items: center; gap: 12px; color: var(--g3); font-size: 12px; }
.product-share a { color: var(--g3); transition: color var(--t1); }
.product-share a:hover { color: var(--brown); }

/* ── Category filters & listing ────────────────────────────── */
.filter-tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: var(--s5);
}
.filter-tab {
  padding: 8px 18px;
  font-size: 12px; font-weight: 500;
  letter-spacing: .5px;
  border: 1px solid var(--g2);
  border-radius: 50px;
  color: var(--g4); background: var(--white);
  transition: all var(--t1); cursor: pointer;
}
.filter-tab.active, .filter-tab:hover {
  background: var(--brown); color: var(--white); border-color: var(--brown);
}
.listing-toolbar {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s4); flex-wrap: wrap; gap: 12px;
}
.listing-count { font-size: 13px; color: var(--g4); }
.listing-sort {
  display: flex; align-items: center; gap: 10px;
}
.listing-sort select {
  border: 1px solid var(--g2); padding: 8px 14px;
  font-size: 13px; font-family: inherit;
  background: var(--white); color: var(--ink);
  border-radius: var(--radius); cursor: pointer;
  outline: none;
}

/* ── Pagination ────────────────────────────────────────────── */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; margin-top: var(--s6);
}
.page-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--g4);
  border: 1px solid var(--g2);
  border-radius: var(--radius);
  transition: all var(--t1);
  text-decoration: none;
}
.page-btn.active, .page-btn:hover {
  background: var(--brown); color: var(--white); border-color: var(--brown);
}
.page-btn.dots { border: none; cursor: default; }
.page-btn.dots:hover { background: none; color: var(--g4); }

/* ── Forms ─────────────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-size: 12px; font-weight: 500; color: var(--ink); letter-spacing: .3px; }
.form-label .req { color: #dc2626; }
.form-control {
  border: 1px solid var(--g2); background: var(--white);
  padding: 11px 14px; font-size: 14px;
  font-family: inherit; color: var(--ink);
  border-radius: var(--radius);
  transition: border-color var(--t1), box-shadow var(--t1);
  -webkit-appearance: none;
}
.form-control:focus {
  border-color: var(--brown);
  box-shadow: 0 0 0 3px rgba(92,45,10,.1);
  outline: none;
}
.form-control::placeholder { color: var(--g3); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-hint { font-size: 11.5px; color: var(--g4); }
.form-msg  { font-size: 13px; padding: 12px 16px; border-radius: var(--radius); margin-top: 12px; }
.form-msg-ok  { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.form-msg-err { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

/* ── FAQ accordion ─────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--g2); }
.faq-q {
  width: 100%; text-align: left; display: flex;
  align-items: center; justify-content: space-between;
  padding: var(--s3) 0; gap: var(--s3);
  font-size: 16px; font-weight: 400;
  color: var(--ink); cursor: pointer;
  transition: color var(--t1);
}
body.lang-ar .faq-q { text-align: right; }
.faq-q:hover { color: var(--brown); }
.faq-icon { width: 24px; height: 24px; border: 1px solid var(--g2); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; transition: all var(--t1); color: var(--g4); }
.faq-item.open .faq-icon { background: var(--brown); border-color: var(--brown); color: var(--white); transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--t2) var(--ease); }
.faq-a-inner { padding-bottom: var(--s3); font-size: 14px; color: var(--g4); line-height: 1.8; }

/* ── Projects grid ─────────────────────────────────────────── */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
.project-card {
  position: relative; overflow: hidden;
  aspect-ratio: 4/3; background: var(--g1);
  border-radius: var(--radius);
  cursor: pointer;
}
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t3) var(--ease); }
.project-card:hover img { transform: scale(1.06); }
.project-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 60%);
  padding: var(--s3);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.project-meta { font-size: 11px; color: rgba(255,255,255,.55); letter-spacing: 1px; margin-bottom: 5px; }
.project-title { font-family: var(--font-head); font-size: 18px; font-weight: 400; color: var(--white); }
body.lang-ar .project-title { font-family: var(--font-ar); }

/* ── Modals ────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.7);
  display: flex; align-items: center; justify-content: center;
  padding: var(--s3);
  opacity: 0; visibility: hidden; transition: all var(--t2);
}
.modal-backdrop.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--white); border-radius: var(--radius-lg);
  width: min(860px, 95vw); max-height: 90vh; overflow-y: auto;
  position: relative;
  transform: translateY(20px); transition: transform var(--t2);
}
.modal-backdrop.open .modal { transform: none; }
.modal-close {
  position: absolute; top: var(--s2); right: var(--s2);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--g4); font-size: 20px;
  transition: all var(--t1); z-index: 1;
}
body.lang-ar .modal-close { right: auto; left: var(--s2); }
.modal-close:hover { background: var(--g1); color: var(--ink); }
.modal-body {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 400px;
}
.modal-img img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.modal-info { padding: var(--s5); }

/* ── Toast ─────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--charcoal); color: var(--white);
  padding: 12px 24px; border-radius: 50px;
  font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow-md); z-index: 3000;
  opacity: 0; visibility: hidden; transition: all var(--t2);
  white-space: nowrap;
}
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* ── Scroll reveal ─────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity var(--t3) var(--ease), transform var(--t3) var(--ease);
}
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }
.reveal.visible { opacity: 1; transform: none; }

/* ── Page loader ───────────────────────────────────────────── */
.page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  transition: opacity var(--t2), visibility var(--t2);
}
.page-loader.done { opacity: 0; visibility: hidden; }
.loader-logo {
  font-family: var(--font-head); font-size: 28px;
  letter-spacing: 6px; color: var(--brown);
  animation: loader-pulse 1.2s ease infinite;
}
@keyframes loader-pulse { 0%,100%{ opacity:.3 } 50%{ opacity:1 } }

/* ── Utility ───────────────────────────────────────────────── */
.d-none  { display: none !important; }
.d-block { display: block !important; }
.mt-auto { margin-top: auto; }
.pt-nav  { padding-top: var(--nav-h); }
.lazy-img { opacity: 0; transition: opacity var(--t2); }
.lazy-img.loaded { opacity: 1; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-tile:nth-child(n) { grid-column: span 1; aspect-ratio: 3/4; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s4); }
}
@media (max-width: 900px) {
  .split-section { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; gap: var(--s4); }
  .modal-body { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-strip { grid-template-columns: repeat(4, 1fr); }
  .footer-newsletter { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-lang-btn { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-nav { display: none; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .gallery-strip { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-row { justify-content: space-between; }
}
@media (max-width: 480px) {
  .cat-grid { grid-template-columns: 1fr; }
  .gallery-strip { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr; }
  .btn-lg { width: 100%; justify-content: center; }
}
