/* ==========================================================================
   WAJJI & HAYA — Shared Stylesheet
   --------------------------------------------------------------------------
   Design tokens (also mirrored into the Tailwind config in each page's
   <script> block, so keep these two in sync if you change a value):

     --color-ink     : #1C1A18  (charcoal — primary text, nav bg)
     --color-bone    : #F7F3EC  (warm off-white — page background)
     --color-gold    : #C9A24B  (antique gold — accents, CTAs, the clasp line)
     --color-taupe   : #8B7355  (secondary text, muted labels)
     --color-hairline: #3D3835  (borders on dark surfaces)

   Signature motif: the "clasp line" — a thin gold rule that narrows to a
   point at its center, like a necklace clasp. Used wherever the design
   needs a divider. This replaces generic spacing/shadow dividers and is
   the one recurring brand mark across the whole site. See .clasp-line.
   ========================================================================== */

:root {
  --color-ink: #1c1a18;
  --color-bone: #f7f3ec;
  --color-gold: #c9a24b;
  --color-taupe: #8b7355;
  --color-hairline: #3d3835;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bone);
  color: var(--color-ink);
}

/* Respect users who've asked for reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   Signature: the Clasp Line
   A horizontal rule that tapers toward the center, evoking a jewelry clasp.
   Usage: <div class="clasp-line"></div>  or with a label:
   <div class="clasp-line" data-label="Est. Lahore"></div>
   -------------------------------------------------------------------------- */
.clasp-line {
  position: relative;
  height: 1px;
  width: 100%;
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--color-gold) 50%,
    transparent 100%
  );
  margin: 2.5rem 0;
}

.clasp-line::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--color-gold);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.clasp-line[data-label]::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-bone);
  padding: 0 1rem;
  font-family: "Inter", sans-serif;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-taupe);
  white-space: nowrap;
}

.clasp-line--dark[data-label]::after {
  background: var(--color-ink);
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav-link {
  position: relative;
  padding-bottom: 0.35rem;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 1px;
  background-color: var(--color-gold);
  transition: width 0.35s ease;
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Product Card — quiet gold hairline reveal instead of a heavy zoom/shadow
   -------------------------------------------------------------------------- */
.product-card .product-frame {
  position: relative;
  overflow: hidden;
}

.product-card .product-frame::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--color-gold);
  opacity: 0;
  transition: opacity 0.5s ease, inset 0.5s ease;
  pointer-events: none;
}

.product-card:hover .product-frame::after {
  opacity: 1;
  inset: 16px;
}

.product-card img {
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-card:hover img {
  transform: scale(1.045);
}

.product-card .quick-add {
  transform: translateY(8px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.product-card:hover .quick-add {
  transform: translateY(0);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn-gold {
  position: relative;
  overflow: hidden;
  transition: color 0.4s ease, border-color 0.4s ease;
  z-index: 0;
}

.btn-gold::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: -1;
}

.btn-gold:hover::before {
  transform: scaleX(1);
}

.btn-gold:hover {
  color: var(--color-bone);
}

/* --------------------------------------------------------------------------
   WhatsApp persistent CTA — subtle breathing hover, no garish bounce
   -------------------------------------------------------------------------- */
.whatsapp-fab {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 20px rgba(28, 26, 24, 0.25);
}

.whatsapp-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(28, 26, 24, 0.32);
}

.whatsapp-fab:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Hero text-plate (engraved-plate feel for the overlaid hero text)
   -------------------------------------------------------------------------- */
.hero-plate {
  backdrop-filter: blur(2px);
  background: rgba(28, 26, 24, 0.55);
}

/* --------------------------------------------------------------------------
   Mobile menu transition
   -------------------------------------------------------------------------- */
#mobile-menu {
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

/* Utility: number labels for process/steps (used sparingly, only where
   sequence is real — e.g. the Contact page's order steps) */
.step-mark {
  font-family: "Cormorant Garamond", serif;
  color: var(--color-gold);
}
