/* ============================================================
   MOKSHITA ENTERPRISES — GLOBAL DESIGN SYSTEM
   Warm Premium Artisan · Editorial · Boutique Luxury
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

/* ─── DESIGN TOKENS ──────────────────────────────────────── */
:root {
  /* Backgrounds — warm ivory layered system */
  --bg:          #f6f2ec;
  --bg-alt:      #f5f1ea;
  --bg-cream:    #f8f5f0;
  --surface:     #fffdfa;
  --card:        #fffdfa;
  --card-alt:    #fcfaf7;

  /* Dark accents — soft charcoal, never pitch black */
  --charcoal:    #1d1d1d;
  --charcoal-2:  #171717;
  --charcoal-3:  #222222;

  /* Legacy aliases */
  --white:       #fffdfa;
  --off-white:   #f8f5f0;
  --off-white-2: #f5f1ea;

  /* Borders */
  --border:      rgba(0,0,0,0.08);
  --border-soft: rgba(0,0,0,0.05);
  --border-warm: #e8e2d9;

  /* Gold accent — muted luxury, not shiny */
  --gold:        #c9a86a;
  --gold-hover:  #b8934f;
  --gold-light:  #d6b98c;
  --gold-pale:   rgba(201,168,106,0.12);
  --gold-border: rgba(201,168,106,0.3);

  /* Legacy */
  --terra:       #c9a86a;
  --terra-light: #d6b98c;
  --terra-dark:  #b8934f;
  --terra-pale:  rgba(201,168,106,0.08);
  --olive:       #7a8c6e;
  --olive-pale:  #eef2ea;

  /* Text */
  --text-primary:   #1d1d1d;
  --text-secondary: #6f6a63;
  --text-muted:     #9a9389;
  --text-light:     #b0aa9f;
  --text-mid:       #6f6a63;

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-heading: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', -apple-system, system-ui, sans-serif;

  /* Radius */
  --r-sm:   4px;
  --r-md:   10px;
  --r-lg:   18px;
  --r-xl:   32px;
  --r-full: 9999px;

  /* Shadows — warm, soft */
  --shadow-xs:    0 2px 8px rgba(0,0,0,0.04);
  --shadow-sm:    0 4px 16px rgba(0,0,0,0.06);
  --shadow-md:    0 10px 30px rgba(0,0,0,0.07);
  --shadow-lg:    0 20px 50px rgba(0,0,0,0.09);
  --shadow-card:  0 8px 24px rgba(0,0,0,0.06);
  --shadow-terra: 0 8px 24px rgba(201,168,106,0.2);

  /* Transitions */
  --ease:     cubic-bezier(0.4,0,0.2,1);
  --ease-out: cubic-bezier(0,0,0.2,1);
  --t-fast:   0.2s;
  --t-mid:    0.35s;
  --t-slow:   0.6s;

  /* Spacing */
  --section-pad:    120px;
  --section-pad-sm: 80px;
}

/* ─── RESET ──────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.75;
  overflow-x: clip; /* clip allows position: sticky to work, unlike hidden */
}
img  { display: block; max-width: 100%; height: auto; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
svg  { display: block; }

/* ─── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar        { width: 5px; }
::-webkit-scrollbar-track  { background: var(--bg); }
::-webkit-scrollbar-thumb  { background: var(--border-warm); border-radius: 3px; }

/* ─── SELECTION ──────────────────────────────────────────── */
::selection { background: var(--gold-pale); color: var(--charcoal); }

/* ─── PAGE LOADER ────────────────────────────────────────── */
.page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.page-loader.hidden { opacity: 0; visibility: hidden; }
.loader-emblem {
  width: 44px; height: 44px;
  border: 1.5px solid var(--border-warm);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
.loader-text {
  font-family: var(--font-display);
  font-size: 0.88rem; color: var(--text-muted);
  letter-spacing: 0.32em; text-transform: uppercase; font-weight: 400;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── NAVIGATION ─────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 76px;
  background: rgba(246,242,236,0.92);
  border-bottom: 1px solid var(--border-warm);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.04);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  padding: 0 52px; gap: 0;
  transition: background var(--t-mid), box-shadow var(--t-mid);
}
.nav.scrolled {
  background: rgba(246,242,236,0.98);
  box-shadow: 0 2px 24px rgba(0,0,0,0.07);
}

/* Transparent navbar state specifically for hero video */
.nav.nav--hero {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Make header contents legible over dark video background when transparent */
.nav.nav--hero .nav-logo-title {
  color: #ffffff;
}
.nav.nav--hero .nav-logo-sub {
  color: var(--gold-light);
}
.nav.nav--hero .nav-link {
  color: rgba(255, 255, 255, 0.85);
}
.nav.nav--hero .nav-link:hover,
.nav.nav--hero .nav-link.active {
  color: #ffffff;
}
.nav.nav--hero .nav-cart-icon {
  color: rgba(255, 255, 255, 0.85);
}
.nav.nav--hero .nav-cart-icon:hover {
  color: #ffffff;
}
.nav.nav--hero .nav-hamburger span {
  background: #ffffff;
}

/* Mobile Menu Open override to keep nav readable when overlay is active */
.nav.mobile-menu-open {
  background: var(--bg-cream) !important;
  box-shadow: 0 2px 24px rgba(0,0,0,0.07) !important;
  border-bottom: 1px solid var(--border-warm) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}
.nav.mobile-menu-open .nav-logo-title {
  color: var(--charcoal) !important;
}
.nav.mobile-menu-open .nav-logo-sub {
  color: var(--gold) !important;
}
.nav.mobile-menu-open .nav-cart-icon {
  color: var(--text-secondary) !important;
}
.nav.mobile-menu-open .nav-hamburger span {
  background: var(--charcoal) !important;
}

/* Logo */
.nav-logo {
  display: flex; flex-direction: column; gap: 3px;
  text-decoration: none; justify-self: start; align-self: center;
}
.nav-logo-title {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 500;
  color: var(--charcoal); letter-spacing: 0.06em; line-height: 1;
}
.nav-logo-sub {
  font-size: 0.5rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--gold); font-weight: 500;
}

/* Nav links */
.nav-links {
  display: flex; align-items: center; gap: 44px; justify-self: center;
}
.nav-link {
  font-size: 0.68rem; letter-spacing: 0.16em;
  text-transform: uppercase; font-weight: 500;
  color: var(--text-secondary);
  position: relative; transition: color var(--t-fast); white-space: nowrap;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-link:hover { color: var(--charcoal); }
.nav-link:hover::after,
.nav-link.active::after,
.nav-link.active-tab::after { transform: scaleX(1); }
.nav-link.active, .nav-link.active-tab { color: var(--charcoal); }

/* Right actions */
.nav > div:last-of-type,
.nav > div[style*="display:flex"],
.nav > div[style*="display: flex"] {
  justify-self: end; display: flex !important; align-items: center; gap: 20px;
}

/* Cart / account icons */
.nav-cart, .nav-cart-icon {
  display: flex; align-items: center; position: relative;
  color: var(--text-secondary); transition: color var(--t-fast);
}
.nav-cart:hover, .nav-cart-icon:hover { color: var(--charcoal); }
.nav-cart svg, .nav-cart-icon svg { width: 20px; height: 20px; stroke: currentColor; }
.cart-badge {
  position: absolute; top: -6px; right: -7px;
  background: var(--gold); color: #fff;
  font-size: 0.55rem; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* CTA button */
.nav-cta {
  padding: 10px 24px;
  background: var(--charcoal); color: #fff;
  border-radius: var(--r-full);
  font-size: 0.65rem; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 600; white-space: nowrap;
  transition: background var(--t-mid), box-shadow var(--t-mid), transform 0.15s;
}
.nav-cta:hover {
  background: var(--gold); color: #fff;
  box-shadow: 0 4px 16px rgba(201,168,106,0.3);
  transform: translateY(-1px);
}

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 26px; padding: 2px; justify-self: end; align-self: center;
}
.nav-hamburger span {
  display: block; height: 1.5px; width: 100%;
  background: var(--charcoal); border-radius: 1px;
  transition: all var(--t-mid) var(--ease);
}

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed;
  top: 76px; left: 0; right: 0; z-index: 999;
  background: var(--bg-cream);
  border-bottom: 1px solid var(--border-warm);
  padding: 24px 48px 32px;
  flex-direction: column; gap: 18px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.07);
}
.mobile-menu.open { display: flex; }
.mobile-menu .nav-link {
  color: var(--text-secondary); font-size: 0.88rem;
  padding: 6px 0; letter-spacing: 0.1em;
}
.mobile-menu .nav-link:hover,
.mobile-menu .nav-link.active,
.mobile-menu .nav-link.active-tab { color: var(--charcoal); }
.mobile-menu .btn { width: 100%; justify-content: center; margin-top: 8px; }

/* ─── SECTION BASE ───────────────────────────────────────── */
.section { padding: var(--section-pad) 5%; }
.section-sm { padding: var(--section-pad-sm) 5%; }
.section--white    { background: var(--surface); }
.section--offwhite { background: var(--bg-alt); }
.section--cream    { background: var(--bg-cream); }
.section--dark     { background: var(--charcoal-2); }
.section--dark-soft{ background: var(--charcoal-3); }

/* Section header */
.section-tag {
  font-size: 0.62rem; letter-spacing: 0.3em;
  text-transform: uppercase; font-weight: 600;
  color: var(--gold); margin-bottom: 14px; display: block;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 400; line-height: 1.2;
  color: var(--charcoal); margin-bottom: 20px; letter-spacing: -0.01em;
}
.section-title em { font-style: italic; font-weight: 300; color: var(--gold); }
.section--dark .section-title { color: #f8f5f0; }
.section-body {
  font-size: 1rem; color: var(--text-secondary); line-height: 1.82; max-width: 520px;
}
.section--dark .section-body { color: rgba(248,245,240,0.65); }
.section-header { margin-bottom: 64px; }
.section-header--center { text-align: center; }
.section-header--center .section-body { margin: 0 auto; }

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer; transition: all var(--t-mid) var(--ease);
  position: relative; border: none;
}
.btn-primary {
  padding: 15px 38px; background: var(--charcoal); color: #fff;
  border-radius: var(--r-full); box-shadow: 0 3px 14px rgba(0,0,0,0.12);
}
.btn-primary:hover {
  background: var(--gold); color: #fff;
  box-shadow: var(--shadow-terra); transform: translateY(-1px);
}
.btn-outline {
  padding: 14px 34px; background: transparent;
  color: var(--charcoal); border-radius: var(--r-full);
  border: 1.5px solid var(--charcoal);
}
.btn-outline:hover {
  background: var(--charcoal); color: #fff; transform: translateY(-1px);
}
.btn-outline-dark {
  padding: 14px 34px; background: transparent;
  color: var(--charcoal); border-radius: var(--r-full);
  border: 1.5px solid var(--border-warm);
}
.btn-outline-dark:hover { background: var(--bg-alt); transform: translateY(-1px); }
.btn-ghost {
  padding: 14px 34px; background: rgba(255,255,255,0.14); color: #fff;
  border-radius: var(--r-full); border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.22); border-color: rgba(255,255,255,0.6); }
.btn-text {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; display: inline-flex; align-items: center; gap: 8px;
}
.btn-text .arrow { display: inline-block; transition: transform var(--t-fast) var(--ease); }
.btn-text:hover .arrow { transform: translateX(5px); }
.btn-whatsapp {
  padding: 15px 36px; background: #25D366; color: #fff;
  border-radius: var(--r-full); box-shadow: 0 4px 18px rgba(37,211,102,0.25);
}
.btn-whatsapp:hover { background: #20be5c; transform: translateY(-1px); }
.btn-sm { padding: 10px 22px; font-size: 0.65rem; }

/* ─── DIVIDER ─────────────────────────────────────────────── */
.divider {
  width: 48px; height: 1px; background: var(--gold-border);
  display: block; margin: 0 auto 32px;
}
.divider--left { margin: 0 0 32px; }
.divider--olive { background: var(--border-warm); }

/* ─── BADGE / PILL ───────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; padding: 5px 14px;
  border-radius: var(--r-full); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.pill-terra { background: var(--gold-pale); color: var(--gold-hover); }
.pill-olive { background: #eef2ea; color: #515f45; }
.pill-white { background: rgba(255,255,255,0.18); color: #fff; border: 1px solid rgba(255,255,255,0.3); }

/* ─── CARDS ──────────────────────────────────────────────── */
.card {
  background: var(--card); border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--border-soft); box-shadow: var(--shadow-card);
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

/* ─── IMAGE WRAP ─────────────────────────────────────────── */
.img-wrap { position: relative; overflow: hidden; }
.img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}
.img-wrap:hover img { transform: scale(1.04); }

/* ─── PRODUCT CARD ───────────────────────────────────────── */
.product-card {
  background: var(--card); border-radius: var(--r-md); overflow: hidden;
  cursor: pointer; border: 1px solid var(--border-soft);
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card-img   { height: 280px; background: var(--bg-alt); }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card-body  { padding: 18px 20px 22px; }
.product-card-name  {
  font-family: var(--font-display); font-size: 1.12rem;
  font-weight: 500; color: var(--charcoal); margin-bottom: 4px;
}
.product-card-origin { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 10px; letter-spacing: 0.06em; }
.product-card-price  { font-size: 0.95rem; font-weight: 600; color: var(--gold-hover); }
.product-card-original { font-size: 0.78rem; color: var(--text-light); text-decoration: line-through; margin-left: 6px; }

/* ─── REVEAL ANIMATIONS ──────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: var(--charcoal-2);
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 80px 5% 40px;
}
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 60px; padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand-name {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 500;
  color: #f8f5f0; letter-spacing: 0.04em; margin-bottom: 8px;
}
.footer-brand-sub {
  font-size: 0.58rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
}
.footer-brand-desc {
  font-size: 0.88rem; color: rgba(248,245,240,0.42); line-height: 1.8; max-width: 260px;
}
.footer-social { display: flex; gap: 12px; margin-top: 24px; }
.footer-social-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4); transition: all var(--t-fast);
}
.footer-social-btn:hover { border-color: var(--gold); color: var(--gold); }
.footer-col-title {
  font-size: 0.58rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); margin-bottom: 24px; font-weight: 600;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-link { font-size: 0.88rem; color: rgba(255,255,255,0.45); transition: color var(--t-fast); }
.footer-link:hover { color: #f8f5f0; }
.footer-bottom {
  padding-top: 32px; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.22); }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-link { font-size: 0.72rem; color: rgba(255,255,255,0.25); transition: color var(--t-fast); }
.footer-bottom-link:hover { color: rgba(255,255,255,0.55); }

/* ─── PRODUCT MODAL ──────────────────────────────────────── */
.product-modal {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(29,29,29,0.75); backdrop-filter: blur(12px);
  z-index: 10000; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity var(--t-mid);
}
.product-modal.show { opacity: 1; pointer-events: auto; }
.modal-close {
  position: absolute; top: 24px; right: 32px;
  font-size: 2rem; color: rgba(255,255,255,0.6); cursor: pointer;
  transition: color var(--t-fast); z-index: 10001; line-height: 1;
}
.modal-close:hover { color: #fff; }
.modal-content {
  display: grid; grid-template-columns: 1fr 1fr;
  max-width: 900px; width: 90%;
  background: var(--card);
  border-radius: var(--r-lg); overflow: hidden;
  transform: scale(0.96); opacity: 0;
  transition: transform var(--t-slow) var(--ease), opacity var(--t-slow);
}
.product-modal.show .modal-content { transform: scale(1); opacity: 1; }
#modal-img { width: 100%; height: 100%; object-fit: cover; min-height: 400px; }
.modal-info { padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; }
.modal-title { font-family: var(--font-display); font-size: 2rem; font-weight: 500; color: var(--charcoal); margin-bottom: 12px; line-height: 1.2; }
.modal-desc { font-size: 0.92rem; line-height: 1.8; color: var(--text-secondary); margin-bottom: 28px; }
.modal-price { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold-hover); margin-bottom: 28px; font-weight: 500; }
@media (max-width: 640px) {
  .modal-content { grid-template-columns: 1fr; }
  #modal-img { min-height: 260px; }
}

/* ─── UTILITY ────────────────────────────────────────────── */
.text-terra  { color: var(--gold); }
.text-olive  { color: var(--olive); }
.text-mid    { color: var(--text-secondary); }
.italic      { font-style: italic; }
.serif       { font-family: var(--font-display); }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* ─── RESPONSIVE GLOBALS ─────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --section-pad: 90px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  :root { --section-pad: 64px; --section-pad-sm: 48px; }
  .nav { padding: 0 24px; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .footer-bottom-links { justify-content: center; }
}
@media (max-width: 480px) {
  :root { --section-pad: 48px; }
}
