/* ==========================================================================
   Nawabi Meats — custom styles
   Tailwind (CDN) handles layout & spacing; this file holds the brand details
   Tailwind can't express cleanly: textures, gradients, arches, motion.
   ========================================================================== */

:root {
  --gold-200: #f0da9e;
  --gold-300: #eac76e;
  --gold-400: #e2b64f;
  --gold-500: #d4a039;
  --gold-600: #b5832a;
  --char-950: #0f0e0d;
  --char-900: #161413;
  --char-800: #1e1b19;
  --walnut-800: #2f1d14;
  --walnut-600: #553522;
  --cream-100: #f5eee2;
  --header-h: 80px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) - 8px);
}

body {
  background: var(--char-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--gold-400);
  color: var(--char-900);
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--gold-400);
  color: var(--char-900);
  font-weight: 600;
  border-radius: 2px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 3px;
}

/* ---------- Textures (stone wall, walnut slats) ---------- */
.texture-stone {
  background-color: var(--char-800);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .92 0 0 0 0 .8 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #24201d 0%, #1a1715 100%);
}

/* Soft ceiling "downlights", like the spotlights over the brand wall */
.downlights {
  background-image:
    radial-gradient(ellipse 22% 55% at 18% -8%, rgba(242, 196, 110, 0.18), transparent 70%),
    radial-gradient(ellipse 22% 55% at 50% -8%, rgba(242, 196, 110, 0.16), transparent 70%),
    radial-gradient(ellipse 22% 55% at 82% -8%, rgba(242, 196, 110, 0.18), transparent 70%);
}

.texture-walnut {
  background-color: var(--walnut-800);
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0, rgba(0, 0, 0, 0.55) 3px, transparent 3px),
    linear-gradient(90deg, #3d2619 0%, #4a2f1f 35%, #3a2418 70%, #4d3122 100%);
  background-size: 26px 100%, 26px 100%;
}

/* ---------- Gold ---------- */
.text-gold-gradient {
  background: linear-gradient(180deg, #f6dc8f 0%, #e2b64f 45%, #b5832a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gold-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
}

/* "— MEATS —" style eyebrow, echoing the logo's flanking bars */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: "Cinzel", serif;
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
  opacity: 0.85;
}
.eyebrow--left::after { display: none; }

/* LED-backlit glow, like the halo behind the wall sign */
.glow-gold {
  box-shadow:
    0 0 0 1px rgba(226, 182, 79, 0.55),
    0 0 28px -4px rgba(226, 182, 79, 0.45),
    0 0 90px -20px rgba(226, 182, 79, 0.35);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.75rem;
  font-family: "Jost", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 2px;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn svg { width: 1.05rem; height: 1.05rem; flex-shrink: 0; }

.btn-gold {
  color: var(--char-900);
  background: linear-gradient(180deg, #f0d483 0%, #e2b64f 50%, #c9952f 100%);
  box-shadow: 0 10px 30px -12px rgba(226, 182, 79, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
/* Shine sweep on hover */
.btn-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
}
.btn-gold:hover { box-shadow: 0 16px 38px -12px rgba(226, 182, 79, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.4); transform: translateY(-2px); }
.btn-gold:hover::after { transform: translateX(120%); }

.btn-outline {
  color: var(--gold-300);
  border: 1px solid rgba(226, 182, 79, 0.6);
  background: rgba(15, 14, 13, 0.25);
}
.btn-outline:hover { background: var(--gold-400); color: var(--char-900); border-color: var(--gold-400); transform: translateY(-2px); }

.btn-dark {
  color: var(--gold-300);
  background: var(--char-900);
  border: 1px solid var(--char-900);
}
.btn-dark:hover { background: #000; transform: translateY(-2px); }

.btn-sm { padding: 0.7rem 1.15rem; font-size: 0.72rem; letter-spacing: 0.14em; }

/* ---------- Header ---------- */
.site-header {
  transition: background-color 0.35s ease, box-shadow 0.35s ease, height 0.35s ease, backdrop-filter 0.35s ease;
}
.site-header.is-scrolled {
  background: rgba(18, 16, 15, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(226, 182, 79, 0.18), 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

.nav-link {
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold-400);
  transition: width 0.3s ease, left 0.3s ease;
}
.nav-link:hover,
.nav-link.is-active { color: var(--gold-300); }
.nav-link:hover::after,
.nav-link.is-active::after { width: 100%; left: 0; }

/* Mobile drawer */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.77, 0, 0.18, 1);
}
.mobile-menu.is-open { transform: translateX(0); }
.menu-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.menu-overlay.is-open { opacity: 1; pointer-events: auto; }
body.menu-open { overflow: hidden; }

/* ---------- Arch frames (Mughal-inspired) ---------- */
.arch {
  border-radius: 999px 999px 4px 4px / 46% 46% 4px 4px;
  overflow: hidden;
}
.arch-outline {
  position: absolute;
  inset: -14px;
  border: 1px solid rgba(226, 182, 79, 0.55);
  border-radius: 999px 999px 6px 6px / 46% 46% 6px 6px;
  pointer-events: none;
}

/* ---------- Product cards ---------- */
.product-card { transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.35s ease; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -28px rgba(30, 20, 10, 0.55); }
.product-card img { transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.product-card:hover img { transform: scale(1.07); }
.product-card.is-hidden { display: none; }
.product-card.is-filtering { opacity: 0; transform: translateY(10px); }

.filter-btn {
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}
.filter-btn[aria-pressed="true"] {
  background: var(--char-900);
  color: var(--gold-300);
  border-color: var(--char-900);
}

/* ---------- Icon diamond (why choose us) ---------- */
.icon-diamond {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
}
.icon-diamond::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(226, 182, 79, 0.6);
  transform: rotate(45deg);
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}
.feature:hover .icon-diamond::before {
  background: rgba(226, 182, 79, 0.12);
  box-shadow: 0 0 24px -4px rgba(226, 182, 79, 0.55);
}
.icon-diamond svg { position: relative; }

/* ---------- Toast ---------- */
.toast {
  transform: translate(-50%, calc(100% + 3rem));
  visibility: hidden;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0.45s;
}
.toast.is-visible { transform: translate(-50%, 0); visibility: visible; transition-delay: 0s; }

/* ---------- Floating buttons ---------- */
.to-top {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.25s ease;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--gold-400);
  animation: pulse-ring 2.8s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.7; }
  70%, 100% { transform: scale(1.45); opacity: 0; }
}

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Hero entrance */
.js .hero-in {
  opacity: 0;
  transform: translateY(22px);
  animation: hero-in 1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: var(--delay, 0s);
}
@keyframes hero-in { to { opacity: 1; transform: none; } }

.float-slow { animation: float 7s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal, .js .hero-in { opacity: 1; transform: none; }
}

/* Revealed product cards: keep hover lift & filter fade working over .reveal's transform reset */
.js .product-card.is-visible {
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.4s ease, opacity 0.6s ease;
}
.js .product-card.is-visible:hover { transform: translateY(-6px); }
.js .product-card.is-visible.is-filtering { opacity: 0; transform: translateY(10px); }
