/* ═══════════════════════════════════════════════════════════════════════
   भवरिलाल जुगराज फुलफगर सराफ & ज्वेलर्स — Core stylesheet
   Ported 1:1 from the approved design's tokens (formerly src/index.css).
   Tailwind utility classes are compiled offline into css/tailwind.css (see
   css/tailwind-input.css) — no CDN/build step needed at runtime — so every
   existing className string from the approved design keeps working exactly
   as before. This file only holds the custom tokens/components Tailwind
   doesn't know about, plus the self-hosted webfonts.
   ═══════════════════════════════════════════════════════════════════════ */

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/fraunces-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/fraunces-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/fraunces-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/fraunces-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/manrope-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Serif Devanagari"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/noto-serif-devanagari-devanagari-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Serif Devanagari"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/noto-serif-devanagari-devanagari-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Serif Devanagari"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/noto-serif-devanagari-devanagari-600-normal.woff2") format("woff2"); }

/* ── Golden typography glow — subtle antique-gold illumination on display
   headings only; body text is untouched so readability never suffers. ── */
h1.font-display, h2.font-display,
.gold-glow {
  text-shadow: 0 0 18px rgba(203, 170, 108, 0.22), 0 0 2px rgba(203, 170, 108, 0.18);
}
@media (max-width: 640px) {
  h1.font-display, h2.font-display, .gold-glow {
    text-shadow: 0 0 10px rgba(203, 170, 108, 0.16);
  }
}

/* ── Brand lockup (logo + two-line Marathi wordmark), used in header/footer ── */
.brand-lockup { display: flex; align-items: center; gap: 0.6rem; line-height: 1.15; }
.brand-mark { display: block; width: auto; object-fit: contain; }
.brand-text-1 { font-family: var(--font-display); letter-spacing: 0.01em; color: var(--color-ink); }
.brand-text-2 { font-family: var(--font-display); letter-spacing: 0.02em; color: var(--color-gold); }
footer .brand-text-1 { color: var(--color-ivory); }

/* ── Floating mobile CTA stack (MR. CHATBOT / Quick Call / WhatsApp) ── */
.fab-stack {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.fab-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(34, 27, 20, 0.28);
  transition: transform 0.25s cubic-bezier(0.22,1,0.36,1), box-shadow 0.25s ease;
  border: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.fab-btn:active { transform: scale(0.92); }
.fab-btn svg { width: 24px; height: 24px; }
.fab-chatbot { background: var(--color-ink); color: var(--color-gold-soft); border: 1px solid rgba(203,170,108,0.4); }
.fab-call { background: linear-gradient(135deg, var(--color-gold-soft), var(--color-gold)); color: var(--color-ink); }
.fab-whatsapp {
  background: linear-gradient(145deg, #2CE065, #1FAF53);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55), 0 8px 20px rgba(34,27,20,0.25);
  animation: waPulse 2.6s ease-out infinite;
}
.fab-whatsapp:hover { transform: translateY(-2px) scale(1.04); }
@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55), 0 8px 20px rgba(34,27,20,0.25); }
  70% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0), 0 8px 20px rgba(34,27,20,0.25); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 8px 20px rgba(34,27,20,0.25); }
}
@media (prefers-reduced-motion: reduce) { .fab-whatsapp { animation: none; } }
.fab-btn:hover { transform: translateY(-2px); }

@keyframes fabBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.fab-chatbot { animation: fabBreathe 3.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .fab-chatbot { animation: none; } }

@media (min-width: 1280px) {
  .fab-stack { right: 24px; bottom: 24px; }
}

/* ── Our Story hero CTA — gentle, subtle breathing motion (never flashy) ── */
/* ── MR. CHATBOT hint bubble — position set dynamically by hint-bubble.js;
   this just defines its look and the show/hide transition. ── */
.mrchat-hint {
  position: fixed;
  z-index: 998;
  max-width: 200px;
  background: var(--color-ink);
  color: var(--color-ivory);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(203,170,108,0.4);
  box-shadow: 0 10px 24px rgba(34,27,20,0.3);
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}
.mrchat-hint.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.hero-story-cta { animation: heroStoryBreathe 3.4s ease-in-out infinite; }
@keyframes heroStoryBreathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .hero-story-cta { animation: none; } }

/* ── Subtle gold particle drift around the Our Story CTA ── */
.gold-particle {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFF3D6 0%, #CBAA6C 70%, transparent 100%);
  box-shadow: 0 0 4px 1px rgba(203,170,108,0.6);
  opacity: 0;
  pointer-events: none;
  animation: goldParticleDrift 4.5s ease-in-out infinite;
}
.gp1 { left: -14px; top: 6px; animation-delay: 0s; }
.gp2 { right: -10px; top: -4px; animation-delay: 1.2s; }
.gp3 { left: 30%; top: -10px; animation-delay: 2.4s; }
.gp4 { right: 20%; bottom: -8px; animation-delay: 3.2s; }
@keyframes goldParticleDrift {
  0% { opacity: 0; transform: translateY(0) scale(0.6); }
  15% { opacity: 0.9; }
  70% { opacity: 0.5; }
  100% { opacity: 0; transform: translateY(14px) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .gold-particle { display: none; } }

:root {
  --color-ivory: #F7F1E4;
  --color-paper: #FBF8F1;
  --color-ink: #221B14;
  --color-ink-soft: #3A3025;
  --color-gold: #A67C3D;
  --color-gold-soft: #CBAA6C;
  --color-gold-light: #E7D3A6;
  --color-oxblood: #6B1E2C;
  --color-oxblood-soft: #8A2E3D;
  --color-taupe: #8A7C68;
  --color-line: #E2D6BF;

  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-sans: "Manrope", "Segoe UI", sans-serif;
  --font-mr: "Noto Serif Devanagari", "Fraunces", serif;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--color-ivory);
  color: var(--color-ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--color-gold-light); color: var(--color-ink); }

.font-display { font-family: var(--font-display); }

[lang="mr"] {
  font-family: "Noto Serif Devanagari", "Fraunces", serif;
  letter-spacing: 0.01em;
}

.hairline {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold) 20%, var(--color-gold) 80%, transparent);
  opacity: 0.5;
}

.kicker {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--color-gold);
}

.gold-underline { position: relative; }
.gold-underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
.gold-underline:hover::after { transform: scaleX(1); }

.btn-primary {
  background: var(--color-ink); color: var(--color-ivory);
  font-family: var(--font-sans); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.02em;
  padding: 0.9rem 2rem; border: 1px solid var(--color-ink);
  transition: all 0.35s cubic-bezier(0.22,1,0.36,1);
  display: inline-block; cursor: pointer;
}
.btn-primary:hover { background: var(--color-ivory); color: var(--color-ink); }

.btn-outline {
  background: transparent; color: var(--color-ivory);
  font-family: var(--font-sans); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.02em;
  padding: 0.85rem 1.9rem; border: 1px solid rgba(247,241,228,0.55);
  transition: all 0.35s cubic-bezier(0.22,1,0.36,1);
  display: inline-block; cursor: pointer;
}
.btn-outline:hover { border-color: var(--color-ivory); background: rgba(247,241,228,0.08); }

.btn-dark-outline {
  background: transparent; color: var(--color-ink);
  font-family: var(--font-sans); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.02em;
  padding: 0.85rem 1.9rem; border: 1px solid var(--color-ink);
  transition: all 0.35s cubic-bezier(0.22,1,0.36,1);
  display: inline-block; cursor: pointer;
}
.btn-dark-outline:hover { background: var(--color-ink); color: var(--color-ivory); }

img { max-width: 100%; display: block; }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Scroll-reveal — replaces Framer Motion's whileInView with a plain
   IntersectionObserver + CSS transition (see js/reveal.js). */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

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

/* ── Preloader (adapted from the 7S reference project's loader logic:
   min-show + safety-timeout in js/loader.js) — deep premium red + antique
   gold, with the supplied brand mark and a two-line Marathi wordmark. ── */
.preloader {
  position: fixed; inset: 0;
  background: radial-gradient(120% 120% at 50% 20%, #4A0F1B 0%, #2B0810 55%, #1A0509 100%);
  z-index: 1000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px;
  padding: 24px;
  transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1), visibility 0s linear 0.6s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.pl-mark {
  width: 84px; height: auto;
  opacity: 0; transform: scale(0.88);
  animation: plSealIn 700ms cubic-bezier(0.22,1,0.36,1) 60ms forwards;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.35));
}
.pl-name-wrap { text-align: center; }
.pl-name {
  font-family: var(--font-mr, var(--font-display));
  font-size: clamp(1.15rem, 5vw, 1.55rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.35;
  background: linear-gradient(100deg, #E7D3A6 30%, #FFF3D6 45%, #CBAA6C 55%, #E7D3A6 70%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; transform: translateY(10px);
  animation: plUp 550ms cubic-bezier(0.22,1,0.36,1) 300ms forwards, plShimmer 2.6s linear 900ms infinite;
}
.pl-name-2 {
  display: block;
  font-size: clamp(0.95rem, 3.6vw, 1.15rem);
  margin-top: 0.15em;
  background: linear-gradient(100deg, #E7D3A6 30%, #FFF3D6 45%, #CBAA6C 55%, #E7D3A6 70%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; transform: translateY(8px);
  animation: plUp 500ms cubic-bezier(0.22,1,0.36,1) 460ms forwards, plShimmer 2.6s linear 1100ms infinite;
}
.pl-sub {
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase;
  color: #C9A98A;
  opacity: 0; transform: translateY(8px);
  animation: plUp 500ms cubic-bezier(0.22,1,0.36,1) 620ms forwards;
}
.pl-bar { width: 120px; height: 1px; background: rgba(247,241,228,0.15); overflow: hidden; opacity: 0; animation: plUp 400ms cubic-bezier(0.22,1,0.36,1) 700ms forwards; }
.pl-fill { width: 0; height: 100%; background: linear-gradient(90deg, var(--color-gold), var(--color-gold-soft)); animation: plFill 850ms cubic-bezier(0.22,1,0.36,1) 760ms forwards; }

@keyframes plSpin { to { transform: rotate(360deg); } }
@keyframes plSealIn { to { opacity: 1; transform: scale(1); } }
@keyframes plUp { to { opacity: 1; transform: translateY(0); } }
@keyframes plFill { to { width: 100%; } }
@keyframes plShimmer { from { background-position: 200% 0; } to { background-position: -20% 0; } }
@media (prefers-reduced-motion: reduce) {
  .pl-mark, .pl-name, .pl-name-2, .pl-sub, .pl-bar, .pl-fill {
    animation: none !important; opacity: 1 !important; transform: none !important; width: 100% !important;
    background-position: 0 0 !important;
  }
}
