/* ================= ROOT / RESET ================= */
:root {
  --gold: #b8952f;
  --gold-light: #d9bc63;
  --dark: #14120f;
  --dark2: #1d1a15;
  --cream: #faf7f0;
  --grey: #6b6660;
  --white: #ffffff;
  --radius: 14px;
  --ease: cubic-bezier(.22,1,.36,1);
  --font-en: 'Poppins', 'Cormorant Garamond', sans-serif;
  --font-zh: 'Noto Sans SC', 'Poppins', sans-serif;
  --font-ar: 'Cairo', 'Poppins', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-zh);
  color: var(--dark);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  transition: opacity .18s ease;
}
body.lang-en { font-family: var(--font-en); }
body.lang-ar { font-family: var(--font-ar); }
body.lang-fade { opacity: 0; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: 1220px; margin: 0 auto; padding: 0 28px; }

h1, h2, h3 { font-weight: 600; letter-spacing: .01em; }

/* ================= PRELOADER ================= */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--dark);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s var(--ease), visibility .6s var(--ease);
}
.preloader-logo {
  font-family: var(--font-en);
  font-size: 2.2rem; letter-spacing: .35em;
  color: var(--gold-light);
  animation: pulseGlow 1.4s ease-in-out infinite;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes pulseGlow {
  0%, 100% { opacity: .5; letter-spacing: .35em; }
  50% { opacity: 1; letter-spacing: .5em; }
}

/* ================= REVEAL ANIMATIONS ================= */
.reveal-up, .reveal-left, .reveal-right, .reveal-fade {
  opacity: 0;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: transform, opacity;
}
.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-fade { transform: scale(.94); }
.reveal-up.in-view, .reveal-left.in-view, .reveal-right.in-view, .reveal-fade.in-view {
  opacity: 1; transform: translate(0,0) scale(1);
}
[dir="rtl"] .reveal-left { transform: translateX(50px); }
[dir="rtl"] .reveal-right { transform: translateX(-50px); }

/* ================= NAVBAR ================= */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  padding: 18px 0;
  transition: background .35s var(--ease), padding .35s var(--ease), box-shadow .35s var(--ease);
}
.navbar.scrolled {
  background: rgba(20,18,15,.92);
  backdrop-filter: blur(10px);
  padding: 10px 0;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
}
.nav-inner {
  max-width: 1220px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand-logo { height: 42px; width: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.3)); transition: height .3s var(--ease); }
.navbar.scrolled .brand-logo { height: 34px; }
.nav-links { display: flex; gap: 34px; }
.nav-links a {
  position: relative; font-size: .95rem; font-weight: 500;
  color: var(--white); opacity: .88;
  padding: 4px 0;
  transition: opacity .25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px; background: var(--gold-light);
  transition: width .3s var(--ease);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: flex; gap: 6px; background: rgba(255,255,255,.08); border-radius: 30px; padding: 4px; }
.lang-switch button {
  border: none; background: transparent; color: var(--white);
  font-size: .8rem; padding: 6px 12px; border-radius: 20px; cursor: pointer;
  opacity: .7; transition: all .25s var(--ease); font-family: inherit;
}
.lang-switch button.active { background: var(--gold); opacity: 1; color: var(--dark); font-weight: 600; }
.lang-switch button:hover { opacity: 1; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: var(--white); transition: all .3s var(--ease); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  background: radial-gradient(ellipse at 30% 20%, #2a251c 0%, var(--dark) 55%, #0e0c0a 100%);
  overflow: hidden;
  padding-top: 80px;
}
.hero-bg-shapes { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.shape { position: absolute; border-radius: 50%; opacity: .12; background: var(--gold-light); filter: blur(2px); animation: floatShape 10s ease-in-out infinite; }
.shape.s1 { width: 340px; height: 340px; top: -80px; left: -100px; animation-delay: 0s; }
.shape.s2 { width: 220px; height: 220px; bottom: 10%; left: 55%; animation-delay: 2s; opacity: .08; }
.shape.s3 { width: 160px; height: 160px; top: 30%; right: 8%; animation-delay: 4s; opacity: .1; }
@keyframes floatShape {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(20px,-30px) scale(1.08); }
}

.hero-inner {
  position: relative; z-index: 1;
  max-width: 1220px; margin: 0 auto; padding: 40px 28px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center;
}
.eyebrow {
  color: var(--gold-light); letter-spacing: .25em; font-size: .78rem;
  font-weight: 600; margin-bottom: 14px; text-transform: uppercase;
}
.hero-title { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.hero-brand-en {
  font-family: var(--font-en); font-weight: 700; letter-spacing: .08em;
  font-size: clamp(2.4rem, 5vw, 4.2rem); color: var(--white);
  background: linear-gradient(120deg, var(--gold-light), #fff5da 40%, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-brand-zh { font-family: var(--font-zh); font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: var(--white); opacity: .85; letter-spacing: .15em; }
.hero-sub { color: var(--white); font-size: 1.15rem; margin-bottom: 6px; opacity: .92; }
.hero-tagline { color: var(--grey); font-size: 1rem; margin-bottom: 30px; color: #cfc6b3; }
.hero-cta { display: flex; gap: 18px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 14px 30px; border-radius: 40px;
  font-size: .92rem; font-weight: 600; letter-spacing: .02em;
  transition: all .35s var(--ease); cursor: pointer; border: 2px solid transparent;
}
.btn-primary { background: linear-gradient(120deg, var(--gold), var(--gold-light)); color: var(--dark); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(184,149,47,.4); }
.btn-outline { border-color: rgba(255,255,255,.4); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); transform: translateY(-3px); }

.hero-image { position: relative; }
.hero-frame {
  position: relative; border-radius: 20px; overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 30px 60px rgba(0,0,0,.5);
  animation: floatFrame 6s ease-in-out infinite;
}
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s var(--ease); }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-frame .glow {
  position: absolute; inset: -2px; border-radius: 22px;
  background: linear-gradient(120deg, var(--gold-light), transparent 40%, var(--gold) 100%);
  opacity: .35; z-index: -1; filter: blur(20px);
}
@keyframes floatFrame {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.hero-dots { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.hero-dot {
  width: 9px; height: 9px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.3); transition: all .3s var(--ease); padding: 0;
}
.hero-dot.active { background: var(--gold-light); width: 26px; border-radius: 6px; }

.scroll-down {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 2; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.5);
  border-radius: 20px;
}
.scroll-down span {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold-light);
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { top: 8px; opacity: 1; }
  80% { top: 24px; opacity: 0; }
  100% { top: 24px; opacity: 0; }
}

/* ================= SECTION HEAD ================= */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 10px; }
.section-sub { color: var(--grey); font-size: 1rem; }
section { padding: 110px 0; }

/* ================= ABOUT ================= */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.about-text p { margin-bottom: 18px; color: #3a352c; font-size: 1.02rem; }
.about-company {
  margin-top: 24px; padding: 18px 22px; border-radius: var(--radius);
  background: var(--cream); border-inline-start: 4px solid var(--gold);
}
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.feature-card {
  background: var(--cream); padding: 28px 22px; border-radius: var(--radius);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 18px 34px rgba(0,0,0,.08); }
.feature-icon { font-size: 1.8rem; margin-bottom: 12px; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p { color: var(--grey); font-size: .9rem; }

/* ================= TABS ================= */
.tabs { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 44px; }
.tab-btn {
  font-family: inherit; font-size: .88rem; font-weight: 600; letter-spacing: .02em;
  padding: 11px 26px; border-radius: 30px; cursor: pointer;
  border: 1.5px solid rgba(20,18,15,.15); background: transparent; color: var(--dark);
  transition: all .3s var(--ease);
}
.tab-btn:hover { border-color: var(--gold); color: var(--gold); }
.tab-btn.active {
  background: linear-gradient(120deg, var(--gold), var(--gold-light));
  border-color: transparent; color: var(--dark);
}
.tabs-dark .tab-btn { color: var(--white); border-color: rgba(255,255,255,.2); }
.tabs-dark .tab-btn:hover { border-color: var(--gold-light); color: var(--gold-light); }
.tabs-dark .tab-btn.active { color: var(--dark); }

/* Fade transition for tab-switched dynamic content (no scroll dependency) */
.fade-item { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.fade-item.show { opacity: 1; transform: translateY(0); }

/* ================= COLLECTION / GALLERY ================= */
.collection { background: var(--cream); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.gallery-item-inner { position: relative; aspect-ratio: 1/1; overflow: hidden; border-radius: var(--radius); }
.gallery-item-inner img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.gallery-item:hover .gallery-item-inner img { transform: scale(1.12); }
.gallery-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px; color: var(--white);
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 60%);
  opacity: 0; transition: opacity .35s var(--ease);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.g-code { font-weight: 700; font-size: 1rem; letter-spacing: .04em; }
.g-size { font-size: .78rem; opacity: .85; }

/* ================= CATALOGUE ================= */
.catalogue { background: var(--dark); }
.catalogue .section-head .eyebrow { color: var(--gold-light); }
.catalogue .section-head h2 { color: var(--white); }
.catalogue .section-sub { color: #b8b2a4; }
.catalogue-strip {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
  margin-bottom: 46px;
}
.catalogue-page {
  position: relative; border-radius: 10px; overflow: hidden; cursor: pointer;
  aspect-ratio: 3/4.1; background: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.catalogue-page img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.catalogue-page:hover { transform: translateY(-8px) scale(1.03); box-shadow: 0 20px 40px rgba(184,149,47,.25); }
.catalogue-page:hover img { transform: scale(1.06); }
.page-num {
  position: absolute; bottom: 6px; right: 8px; font-size: .68rem; color: #fff;
  background: rgba(0,0,0,.55); padding: 2px 7px; border-radius: 10px;
}
[dir="rtl"] .page-num { right: auto; left: 8px; }
.catalogue-download { text-align: center; }

/* ================= CONTACT ================= */
.contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-row { display: flex; gap: 18px; margin-bottom: 26px; align-items: flex-start; }
.c-icon { font-size: 1.4rem; }
.contact-row strong { display: block; margin-bottom: 4px; font-size: .92rem; color: var(--grey); font-weight: 600; }
.contact-row p, .contact-row a { font-size: 1.02rem; }
.contact-row a:hover { color: var(--gold); }
.contact-qrs { margin-top: 20px; }
.qr-crop {
  width: 320px; max-width: 100%; border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 15px 18px; border-radius: 10px;
  border: 1.5px solid #e6e1d5; background: var(--cream);
  font-family: inherit; font-size: .95rem; resize: vertical;
  transition: border-color .25s, box-shadow .25s;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,149,47,.15);
}
.contact-form button { align-self: flex-start; border: none; }

/* ================= FOOTER ================= */
.site-footer { background: var(--dark); padding: 34px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer-logo { height: 30px; filter: grayscale(.2) brightness(1.3); }
.footer-inner p { color: #a9a294; font-size: .85rem; }

/* ================= LIGHTBOX ================= */
.lightbox {
  position: fixed; inset: 0; z-index: 2000; background: rgba(10,9,7,.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s var(--ease);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 86vw; max-height: 82vh; border-radius: 8px;
  box-shadow: 0 30px 70px rgba(0,0,0,.6);
  transition: opacity .25s var(--ease);
}
.lb-close {
  position: absolute; top: 22px; right: 28px; font-size: 2.2rem; color: var(--white);
  background: none; border: none; cursor: pointer; line-height: 1; opacity: .8;
}
.lb-close:hover { opacity: 1; color: var(--gold-light); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.08); border: none; color: var(--white);
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.1rem; cursor: pointer;
  transition: background .25s;
}
.lb-nav:hover { background: var(--gold); color: var(--dark); }
.lb-prev { left: 26px; }
.lb-next { right: 26px; }
.lb-caption {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: var(--gold-light); font-size: .95rem; letter-spacing: .04em;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-cta { justify-content: center; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .catalogue-strip { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed; top: 0; right: 0; height: 100vh; width: 70%; max-width: 300px;
    background: var(--dark); flex-direction: column; justify-content: center; gap: 30px;
    padding: 40px; transform: translateX(100%); transition: transform .4s var(--ease);
  }
  [dir="rtl"] .nav-links { right: auto; left: 0; transform: translateX(-100%); }
  .nav-links.open { transform: translateX(0); }
  .hamburger { display: flex; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .catalogue-strip { grid-template-columns: repeat(3, 1fr); }
  section { padding: 70px 0; }
  .features { grid-template-columns: 1fr; }
}
