/* =========================================================
   Hamsa Mandala Art — Global Stylesheet
   Palette: 斋月金 #C9A961 / 中东深蓝 #1B3A57 / 摩洛哥红 #B85C50
   Fonts: Cormorant Garamond (display) / Montserrat (body) / Amiri (Arabic)
   ========================================================= */

:root {
  --c-gold: #C9A961;
  --c-gold-soft: #E2CB94;
  --c-navy: #1B3A57;
  --c-navy-deep: #122640;
  --c-clay: #B85C50;
  --c-ivory: #FAF6EE;
  --c-ivory-2: #F1E9D8;
  --c-ink: #2C1810;
  --c-ink-soft: #5B4636;
  --c-line: #D9CDB4;
  --c-success: #2E7D5A;

  --f-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --f-body: 'Montserrat', system-ui, -apple-system, sans-serif;
  --f-arabic: 'Amiri', 'Scheherazade New', serif;

  --shadow-sm: 0 2px 8px rgba(44, 24, 16, 0.06);
  --shadow-md: 0 8px 24px rgba(44, 24, 16, 0.10);
  --shadow-lg: 0 18px 48px rgba(44, 24, 16, 0.16);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;

  --container: 1200px;
  --gutter: 24px;

  --tr-fast: 180ms ease;
  --tr-base: 280ms ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--c-navy); text-decoration: none; transition: color var(--tr-fast); }
a:hover { color: var(--c-gold); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { padding-left: 1.4em; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; color: var(--c-navy); line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
p { margin: 0 0 1em; }

[lang="ar"], .ar { font-family: var(--f-arabic); direction: rtl; line-height: 1.85; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--tight { padding: clamp(40px, 6vw, 64px) 0; }
.section--dark { background: var(--c-navy); color: var(--c-ivory); }
.section--dark h2, .section--dark h3 { color: var(--c-gold); }
.eyebrow {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-gold);
  font-weight: 600;
  margin-bottom: 12px;
}
.eyebrow--light { color: var(--c-gold-soft); }
.text-center { text-align: center; }
.divider {
  width: 60px; height: 2px; background: var(--c-gold);
  margin: 24px auto; border: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: all var(--tr-base);
  cursor: pointer;
  white-space: nowrap;
}
.btn--gold {
  background: var(--c-gold);
  color: var(--c-navy-deep);
  box-shadow: var(--shadow-sm);
}
.btn--gold:hover { background: var(--c-gold-soft); color: var(--c-navy-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--outline {
  background: transparent;
  color: var(--c-gold);
  border: 2px solid var(--c-gold);
}
.btn--outline:hover { background: var(--c-gold); color: var(--c-navy-deep); }
.btn--ghost {
  background: var(--c-ivory);
  color: var(--c-navy);
}
.btn--ghost:hover { background: var(--c-gold); color: var(--c-navy-deep); }
.btn--whatsapp {
  background: #25D366;
  color: #fff;
}
.btn--whatsapp:hover { background: #1da851; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 238, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand-logo {
  font-family: var(--f-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--c-navy);
  letter-spacing: 0.5px;
  display: flex; align-items: center; gap: 10px;
}
.brand-logo .mark { font-size: 1.4rem; color: var(--c-gold); }
.brand-logo .small { display: block; font-family: var(--f-body); font-size: 0.62rem; letter-spacing: 0.3em; color: var(--c-ink-soft); text-transform: uppercase; margin-top: -2px; }

.nav-list { display: flex; gap: 32px; list-style: none; padding: 0; margin: 0; align-items: center; }
.nav-list a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--c-ink);
  position: relative;
  padding: 6px 0;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--c-gold);
  transition: width var(--tr-base);
}
.nav-list a:hover::after, .nav-list a.active::after { width: 100%; }
.nav-list a.active { color: var(--c-navy); }
.lang-switch { display: flex; gap: 6px; font-size: 0.78rem; }
.lang-switch a { padding: 4px 8px; border: 1px solid var(--c-line); border-radius: 4px; color: var(--c-ink-soft); }
.lang-switch a.active { background: var(--c-gold); border-color: var(--c-gold); color: var(--c-navy-deep); font-weight: 600; }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(480px, 80vh, 720px);
  background: linear-gradient(135deg, var(--c-navy-deep) 0%, var(--c-navy) 60%, #2A5478 100%);
  color: var(--c-ivory);
  display: flex; align-items: center;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(201, 169, 97, 0.18), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(184, 92, 80, 0.10), transparent 40%);
  pointer-events: none;
}
.hero-pattern {
  position: absolute; inset: 0; opacity: 0.12;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(201, 169, 97, 0.5) 35px, rgba(201, 169, 97, 0.5) 36px),
    repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(201, 169, 97, 0.5) 35px, rgba(201, 169, 97, 0.5) 36px);
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 760px;
}
.hero .eyebrow { color: var(--c-gold); }
.hero h1 { color: var(--c-ivory); margin-bottom: 24px; }
.hero h1 .accent { color: var(--c-gold); font-style: italic; }
.hero p.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(250, 246, 238, 0.85);
  max-width: 600px;
  margin-bottom: 36px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Page hero (smaller) ---------- */
.page-hero {
  background: var(--c-navy);
  color: var(--c-ivory);
  padding: clamp(80px, 12vw, 140px) 0 clamp(56px, 8vw, 96px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%);
  width: 80px; height: 4px; background: var(--c-gold);
}
.page-hero h1 { color: var(--c-ivory); }
.page-hero p { color: rgba(250, 246, 238, 0.8); max-width: 640px; margin: 0 auto; }

/* ---------- Story / About split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split.flip > .split-direction { order: 2; }
.split-img {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-ivory-2);
  box-shadow: var(--shadow-md);
  position: relative;
}
.split-img::before {
  content: ""; position: absolute; inset: 12px;
  border: 1px solid var(--c-gold); border-radius: calc(var(--radius-lg) - 12px);
  pointer-events: none;
}
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split-text p { color: var(--c-ink-soft); font-size: 1.02rem; }

/* ---------- Category grid ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 48px;
}
.cat-card {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-navy);
  color: var(--c-ivory);
  display: flex; align-items: flex-end;
  padding: 28px;
  transition: transform var(--tr-base);
  box-shadow: var(--shadow-sm);
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cat-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(18, 38, 64, 0.85) 100%);
}
.cat-card .icon { position: absolute; top: 28px; right: 28px; font-size: 2.2rem; opacity: 0.8; }
.cat-card-body { position: relative; z-index: 1; }
.cat-card h3 { color: var(--c-ivory); margin-bottom: 4px; }
.cat-card .ar { font-size: 0.95rem; color: var(--c-gold); margin-bottom: 8px; }
.cat-card .arrow { display: inline-block; margin-top: 8px; color: var(--c-gold); font-weight: 600; }

/* ---------- Product grid ---------- */
.product-section { padding: 56px 0; border-top: 1px solid var(--c-line); }
.product-section:first-of-type { border-top: none; }
.product-section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; margin-bottom: 32px;
}
.product-section-head h2 { margin-bottom: 4px; }
.product-section-head .ar { color: var(--c-gold); font-size: 1.15rem; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.product-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--c-line);
  transition: all var(--tr-base);
  display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.product-card .img {
  aspect-ratio: 1/1;
  background: var(--c-ivory-2);
  overflow: hidden;
}
.product-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms ease; }
.product-card:hover .img img { transform: scale(1.05); }
.product-card .body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.product-card .ar { color: var(--c-gold); font-size: 0.92rem; margin-bottom: 10px; }
.product-card .desc { color: var(--c-ink-soft); font-size: 0.88rem; line-height: 1.55; margin-bottom: 12px; flex: 1; }
.product-card .spec { font-size: 0.78rem; color: var(--c-ink-soft); letter-spacing: 0.04em; margin-bottom: 12px; }
.product-card .price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-card .price {
  font-family: var(--f-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--c-navy);
}
.product-card .price small { font-size: 0.7em; font-weight: 500; color: var(--c-ink-soft); }
.product-card .btn { padding: 10px 16px; font-size: 0.82rem; }

/* ---------- Story 3-col ---------- */
.story-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 48px; }
.story-card { text-align: center; }
.story-card .img-frame {
  aspect-ratio: 1/1; border-radius: var(--radius-md); overflow: hidden;
  background: var(--c-ivory-2); margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.story-card h4 { color: var(--c-navy); margin-bottom: 4px; }
.story-card p { font-size: 0.88rem; color: var(--c-ink-soft); }

/* ---------- Contact 3-col ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 40px; }
.contact-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--tr-base);
}
.contact-card:hover { border-color: var(--c-gold); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.contact-card .icon-circle {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--c-ivory-2);
  color: var(--c-gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 16px;
}
.contact-card h4 { color: var(--c-navy); margin-bottom: 8px; }
.contact-card a { display: block; color: var(--c-ink); font-weight: 500; }
.contact-card a:hover { color: var(--c-gold); }
.contact-card .ar { font-size: 0.92rem; color: var(--c-ink-soft); margin-top: 8px; }

/* ---------- Form ---------- */
.form-wrap { max-width: 640px; margin: 0 auto; }
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-navy);
  margin-bottom: 6px;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color var(--tr-fast);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--c-gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.18);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-success {
  background: rgba(46, 125, 90, 0.1);
  border: 1px solid var(--c-success);
  color: var(--c-success);
  padding: 16px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
  display: none;
}
.form-success.show { display: block; }

/* ---------- Map ---------- */
.map-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--c-line);
  margin-top: 32px;
}
.map-wrap iframe { width: 100%; height: 360px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-navy-deep);
  color: rgba(250, 246, 238, 0.85);
  padding: 64px 0 24px;
  margin-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-grid h4 {
  color: var(--c-gold);
  font-family: var(--f-body);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-grid p { font-size: 0.9rem; line-height: 1.7; }
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 0.9rem; }
.footer-grid a { color: rgba(250, 246, 238, 0.75); }
.footer-grid a:hover { color: var(--c-gold); }
.footer-bottom {
  border-top: 1px solid rgba(250, 246, 238, 0.12);
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.82rem;
  color: rgba(250, 246, 238, 0.55);
}

/* ---------- Floating WhatsApp ---------- */
.fab-whatsapp {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 200;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform var(--tr-base);
}
.fab-whatsapp:hover { transform: scale(1.08); color: #fff; }
.fab-whatsapp::before {
  content: "";
  position: absolute; inset: -6px;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.5;
  z-index: -1;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ---------- Decorative elements ---------- */
.mandala-mark {
  display: inline-block;
  width: 60px; height: 60px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><g fill='none' stroke='%23C9A961' stroke-width='1.5'><circle cx='50' cy='50' r='40'/><circle cx='50' cy='50' r='30'/><circle cx='50' cy='50' r='20'/><path d='M50 10 L60 40 L90 50 L60 60 L50 90 L40 60 L10 50 L40 40 Z'/><path d='M50 18 L58 42 L82 50 L58 58 L50 82 L42 58 L18 50 L42 42 Z' opacity='0.6'/></g></svg>");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ---------- Placeholder image generator (used inline in HTML) ---------- */
.placeholder {
  background: linear-gradient(135deg, var(--c-ivory-2) 0%, #E5D5B0 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-ink-soft);
  font-family: var(--f-display);
  font-size: 1.1rem;
  position: relative;
}
.placeholder::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent 0, transparent 14px, rgba(201, 169, 97, 0.15) 14px, rgba(201, 169, 97, 0.15) 15px);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-list, .lang-switch { display: none; }
  .nav-toggle {
    display: flex;
    width: 44px; height: 44px;
    align-items: center; justify-content: center;
    border: 1px solid var(--c-line);
    border-radius: 6px;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block;
    width: 22px; height: 2px;
    background: var(--c-navy);
    position: relative;
  }
  .nav-toggle span::before { content: ""; position: absolute; top: -7px; left: 0; }
  .nav-toggle span::after { content: ""; position: absolute; top: 7px; left: 0; }

  .nav-list.open {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--c-ivory);
    border-bottom: 1px solid var(--c-line);
    padding: 16px 24px;
  }
  .nav-list.open li { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--c-line); }
  .nav-list.open li:last-child { border-bottom: none; }

  .split, .split.flip { grid-template-columns: 1fr; }
  .split.flip > .split-direction { order: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .fab-whatsapp { right: 16px; bottom: 16px; width: 54px; height: 54px; font-size: 1.4rem; }
}

/* ---------- Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.fade-in.in { opacity: 1; transform: translateY(0); }