/* ============ THEME ============ */
:root {
  --cream: #f6f1e8;
  --cream-soft: #faf7f1;
  --stone: #ece5d8;
  --ink: #1a1714;
  --bronze: #8b6f47;
  --bronze-light: #c8a878;
}

/* Tailwind config-via-CDN: extend palette */
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; font-weight: 300; }
.font-serif { font-family: 'Fraunces', Georgia, serif; font-weight: 400; letter-spacing: -0.01em; }

[dir="rtl"] body { font-family: 'Noto Naskh Arabic', 'Inter', sans-serif; }
[dir="rtl"] .font-serif { font-family: 'Noto Naskh Arabic', 'Fraunces', serif; }

.bg-cream { background-color: var(--cream); }
.bg-stone { background-color: var(--stone); }
.bg-ink { background-color: var(--ink); }
.text-cream { color: var(--cream); }
.text-ink { color: var(--ink); }
.text-bronze { color: var(--bronze); }
.text-bronze-light { color: var(--bronze-light); }
.border-bronze\/10 { border-color: rgba(139,111,71,0.10); }
.border-bronze\/15 { border-color: rgba(139,111,71,0.15); }
.border-bronze\/20 { border-color: rgba(139,111,71,0.20); }
.border-cream\/10 { border-color: rgba(246,241,232,0.10); }

/* ============ HEADER ============ */
#site-header {
  background: rgba(26, 23, 20, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(200, 168, 120, 0.12);
}
#site-header.scrolled {
  background: rgba(26, 23, 20, 0.96);
}
.header-bar {
  height: 180px;
  transition: height 0.3s ease;
}
#site-header.scrolled .header-bar { height: 88px; }
#site-header .nav-link,
#site-header a:not(.btn-primary):not(.btn-ghost-light),
#site-header .lang-btn,
#site-header #menu-toggle { color: var(--cream); }
/* Header CTA: cream background by default, bronze on hover */
#site-header .btn-primary {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}
#site-header .btn-primary:hover {
  background: var(--bronze);
  color: var(--cream);
  border-color: var(--bronze);
}

.nav-link {
  position: relative; letter-spacing: 0.05em; transition: color 0.25s ease;
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -4px; height: 1px; width: 0;
  background: currentColor; transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

.lang-btn {
  padding: 4px 6px; opacity: 0.6; transition: opacity 0.2s ease;
  font-weight: 500; cursor: pointer; background: transparent; border: 0;
}
.lang-btn:hover { opacity: 1; }
.lang-btn.active { opacity: 1; color: var(--bronze) !important; }

.logo-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid currentColor;
  font-family: 'Fraunces', serif; font-size: 14px;
  letter-spacing: 0.05em;
  border-radius: 1px;
}
.logo-mark-light { color: var(--bronze-light); }

/* SVG logo — header is always dark, so always render in cream */
.logo-img {
  height: 150px;
  width: auto;
  display: block;
  filter: invert(1) brightness(1.05);
  transition: height 0.3s ease;
}
#site-header.scrolled .logo-img { height: 64px; }
.logo-img-footer { height: 88px; filter: invert(1) brightness(1.05); }
.logo-img-light { filter: invert(1) brightness(1.05); }

/* ============ BUTTONS ============ */
.btn-primary {
  display: inline-block;
  padding: 14px 28px;
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--bronze);
  border-color: var(--bronze);
  color: var(--cream);
}
.btn-ghost-light {
  display: inline-block;
  padding: 14px 28px;
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(246,241,232,0.4);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 999px;
  transition: all 0.25s ease;
}
.btn-ghost-light:hover {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}

/* ============ HERO ============ */
.hero-image {
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  background-color: #2b2522;
  transform: scale(1.05);
  filter: brightness(0.5) saturate(1.1);
  animation: kenBurns 20s ease-in-out infinite alternate;
}
@keyframes kenBurns {
  from { transform: scale(1.05) translateY(0); }
  to   { transform: scale(1.12) translateY(-1.5%); }
}

/* ============ TYPOGRAPHY ============ */
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bronze);
  font-weight: 500;
}
.section-pad { padding-top: clamp(80px, 10vw, 160px); padding-bottom: clamp(80px, 10vw, 160px); }

/* ============ PRODUCT CARDS ============ */
.product-card {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
}
.product-image {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.product-card:hover .product-image { transform: scale(1.06); }
.product-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 32px;
  background: linear-gradient(to top, rgba(26,23,20,0.92) 0%, rgba(26,23,20,0.4) 50%, transparent 80%);
  color: var(--cream);
}

/* ============ COLLECTIONS TABS ============ */
.tab-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: 120px;
}
.tab-trigger {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 22px 4px 22px 0;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(26, 23, 20, 0.12);
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  opacity: 0.55;
  transition: opacity 0.3s ease, color 0.3s ease;
  font-family: inherit;
}
.tab-trigger:last-child { border-bottom: 1px solid rgba(26, 23, 20, 0.12); }
.tab-trigger:hover { opacity: 0.85; }
.tab-trigger.is-active { opacity: 1; color: var(--ink); }
.tab-trigger:focus-visible { outline: 1px dashed var(--bronze); outline-offset: 4px; }
.tab-index {
  font-family: 'Fraunces', serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--bronze);
  font-style: italic;
  flex-shrink: 0;
  min-width: 28px;
}
.tab-label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  flex: 1;
  line-height: 1.4;
}
.tab-underline {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 0;
  background: var(--bronze);
  transition: width 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tab-trigger.is-active .tab-underline { width: 100%; }

.tab-panel {
  opacity: 0;
  transition: opacity 0.4s ease;
}
.tab-panel.is-active {
  opacity: 1;
}
.tab-panel[hidden] { display: none; }

[dir="rtl"] .tab-trigger { text-align: right; }
[dir="rtl"] .tab-underline { left: auto; right: 0; }
[dir="rtl"] .tab-label { letter-spacing: 0.05em; }

@media (max-width: 1023px) {
  .tab-list {
    position: static;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 8px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .tab-trigger {
    flex: 1 0 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 18px;
    border: 1px solid rgba(26, 23, 20, 0.15);
    border-radius: 999px;
    white-space: nowrap;
  }
  .tab-trigger:last-child { border-bottom: 1px solid rgba(26, 23, 20, 0.15); }
  .tab-trigger.is-active {
    border-color: var(--bronze);
    background: rgba(139, 111, 71, 0.06);
  }
  .tab-trigger {
    flex-direction: row;
    align-items: center;
  }
  .tab-underline { display: none; }
  .tab-index { min-width: auto; }
  .tab-label { letter-spacing: 0.16em; font-size: 11px; }
}

/* ============ PROCESS ============ */
.process-step {
  background: var(--cream);
  padding: 48px 32px;
  position: relative;
  transition: background 0.25s ease;
}
.process-step:hover { background: var(--cream-soft); }
.step-num {
  font-family: 'Fraunces', serif;
  font-size: 14px;
  color: var(--bronze);
  letter-spacing: 0.1em;
  margin-bottom: 32px;
}

/* ============ MARKETS BG ============ */
.markets-bg {
  background-image: url('../images/loom.jpg');
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) contrast(1.1);
}

/* ============ CLIENTS MARQUEE ============ */
.clients-marquee {
  width: 100%;
  overflow: hidden;
  background: var(--cream);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
          mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.clients-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 60s linear infinite;
}
.clients-marquee:hover .clients-track { animation-play-state: paused; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .clients-track { animation: none; transform: translateX(0); }
}

.client-cell {
  flex: 0 0 240px;
  background: var(--cream);
  padding: 32px 20px;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  color: var(--ink);
  opacity: 0.55;
  border-right: 1px solid rgba(139,111,71,0.15);
  transition: opacity 0.25s ease, color 0.25s ease;
}
.client-cell:hover {
  opacity: 1;
  color: var(--bronze);
}
.client-mark {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}
.client-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

/* ============ FORM ============ */
.form-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 8px;
  font-weight: 500;
}
.form-input {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(26,23,20,0.2);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s ease;
}
.form-input:focus { border-bottom-color: var(--bronze); }

/* ============ FOOTER ============ */
.site-footer { color: rgba(246, 241, 232, 0.75); }
.site-footer p,
.site-footer span,
.site-footer li,
.site-footer a { color: inherit; }
.site-footer .text-bronze-light { color: var(--bronze-light); }
.site-footer .text-cream\/60,
.site-footer [class*="text-cream\/"] { color: rgba(246, 241, 232, 0.65); }

footer a { transition: color 0.2s ease; }
footer a:hover { color: var(--bronze-light); }

.footer-links a {
  position: relative;
  display: inline-block;
  color: rgba(246, 241, 232, 0.7);
}
.footer-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  height: 1px; width: 0;
  background: var(--bronze-light);
  transition: width 0.25s ease;
}
.footer-links a:hover { color: var(--cream); }
.footer-links a:hover::after { width: 100%; }

.footer-link { color: rgba(246, 241, 232, 0.7); }
.footer-link:hover { color: var(--cream); }

.footer-social {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(246, 241, 232, 0.18);
  border-radius: 999px;
  color: var(--cream);
  transition: all 0.25s ease;
}
.footer-social:hover {
  background: var(--bronze);
  border-color: var(--bronze);
  color: var(--cream);
  transform: translateY(-1px);
}

/* ============ RTL ADJUSTMENTS ============ */
[dir="rtl"] .eyebrow,
[dir="rtl"] .form-label,
[dir="rtl"] .step-num { letter-spacing: 0; }
[dir="rtl"] .btn-primary,
[dir="rtl"] .btn-ghost-light { letter-spacing: 0; }

/* ============ REGION FLAGS ============ */
.region {
  display: flex;
  align-items: center;
  gap: 12px;
}
.region img {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(246, 241, 232, 0.12);
  flex-shrink: 0;
}

/* ============ HERO CONTENT READABILITY ============ */
.hero-content h1 {
  text-shadow: 0 2px 24px rgba(26, 23, 20, 0.55);
}
.hero-content > p {
  text-shadow: 0 1px 12px rgba(26, 23, 20, 0.55);
}

/* ============ MOBILE ============ */
@media (max-width: 1024px) {
  .process-step { padding: 36px 24px; }
}
