/* =========================================================
   PAVASKAR JEWELLERS — stylesheet
   Design language: hairline "engraved plate" elegance.
   Ivory & charcoal grounds, antique gold linework, a fine
   serif wordmark paired with tracked inscriptional caps.
   ========================================================= */

:root {
  --ivory: #faf7f1;
  --paper: #fdfbf7;
  --ink: #1b1812;
  --charcoal: #211d17;
  --charcoal-2: #17140f;
  --gold: #ad8a3d;
  --gold-light: #d9c48b;
  --gold-glow: #f3e7c6;
  --stone: #ddd3c0;
  --stone-dark: #3a3427;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-padding-top: 96px;
}

body {
  background: var(--ivory);
}

/* ---------- Type ---------- */

.font-display {
  font-family: "Cormorant Garamond", serif;
}

.font-signature {
  font-family: "Cinzel", serif;
}

.font-body {
  font-family: "Jost", sans-serif;
}

.tracked-caps {
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.tracked-wide {
  letter-spacing: 0.08em;
}

/* ---------- Texture ---------- */

.bg-grain {
  position: relative;
}

.bg-grain::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Nav ---------- */

.nav-link {
  position: relative;
  padding-bottom: 4px;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95rem 2.1rem;
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: all 0.4s var(--ease);
  white-space: nowrap;
}

.btn-solid {
  background: var(--ink);
  color: var(--gold-glow);
  border: 1px solid var(--ink);
}

.btn-solid:hover {
  background: transparent;
  color: var(--ink);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--gold);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--gold-glow);
  border-color: var(--ink);
}

.btn-outline-light {
  background: transparent;
  color: var(--gold-glow);
  border: 1px solid var(--gold);
}

.btn-outline-light:hover {
  background: var(--gold);
  color: var(--charcoal-2);
}

.btn-solid-light {
  background: var(--gold);
  color: var(--charcoal-2);
  border: 1px solid var(--gold);
}

.btn-solid-light:hover {
  background: transparent;
  color: var(--gold-glow);
}

/* ---------- Section labels & dividers ---------- */

.eyebrow {
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.divider-sprig {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.divider-sprig .line {
  height: 1px;
  width: 44px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ---------- Hero medallion ---------- */

.medallion-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.medallion-glow {
  position: absolute;
  width: 120%;
  height: 120%;
  border-radius: 999px;
  background: radial-gradient(circle, var(--gold-glow) 0%, rgba(243, 231, 198, 0) 68%);
  filter: blur(4px);
}

.medallion-ring {
  position: relative;
  width: min(78vw, 420px);
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--stone);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 30px 60px -25px rgba(27, 24, 18, 0.25);
  animation: float 7s ease-in-out infinite;
}

.medallion-ring::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 999px;
  border: 1px solid var(--gold-light);
}

.medallion-ring img {
  width: 62%;
  height: auto;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
}

/* ---------- Ambient watermark rings ---------- */

.watermark-ring {
  position: absolute;
  border-radius: 999px;
  border: 1px solid var(--gold);
  opacity: 0.14;
  pointer-events: none;
}

.watermark-ring.dark {
  border-color: var(--gold-light);
  opacity: 0.1;
}

/* ---------- Collection cards ---------- */

.collection-card {
  position: relative;
  padding: 2.2rem 1.4rem 1.8rem;
  background: var(--paper);
  border: 1px solid var(--stone);
  text-align: center;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.collection-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 24px 40px -28px rgba(27, 24, 18, 0.35);
}

.collection-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--stone);
  transition: border-color 0.45s var(--ease), background 0.45s var(--ease);
}

.collection-card:hover .collection-icon {
  border-color: var(--gold);
  background: var(--gold-glow);
}

.collection-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--ink);
  transition: stroke 0.4s var(--ease);
}

.collection-card:hover .collection-icon svg {
  stroke: var(--gold);
}

/* ---------- Why choose us ---------- */

.value-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--gold);
}

/* ---------- Heritage plaque (About section) ---------- */

.plaque {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.plaque-rings {
  position: relative;
  width: 78%;
  aspect-ratio: 1/1;
  border-radius: 999px;
  border: 1px solid var(--stone-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.plaque-rings::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  opacity: 0.55;
}

.plaque-rings::after {
  content: "";
  position: absolute;
  inset: 34px;
  border-radius: 999px;
  border: 1px solid var(--stone-dark);
}

.plaque-year {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(3.2rem, 7vw, 5.2rem);
  color: var(--gold-glow);
  line-height: 1;
}

/* ---------- Map ---------- */

.map-frame {
  position: relative;
  width: 100%;
  padding-top: 66%;
  box-shadow: 0 30px 60px -25px rgba(27, 24, 18, 0.35);
  background: var(--charcoal);
}

.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: grayscale(0.25) contrast(1.05);
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .medallion-ring {
    animation: none;
  }
}

/* ---------- Mobile menu ---------- */

#mobile-menu {
  transition: max-height 0.4s var(--ease), opacity 0.3s ease;
}

/* ---------- Misc ---------- */

.text-balance {
  text-wrap: balance;
}

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