/* PBM JEWELLER'S — Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Cinzel:wght@400;500;600;700;900&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Noto+Sans+Devanagari:wght@300;400;500;600;700&display=swap');

:root {
  --gold-deep:     #8B6914;
  --gold-primary:  #C8960C;
  --gold-bright:   #E8B923;
  --gold-light:    #F5D98B;
  --gold-pale:     #FDF3D0;
  --gold-shine:    #FFE88A;
  --maroon-deep:   #2D0A0A;
  --maroon-primary:#6B1A1A;
  --maroon-mid:    #8B2A2A;
  --maroon-light:  #C04040;
  --ivory-deep:    #E8DCC8;
  --ivory-mid:     #F2EAD8;
  --ivory-light:   #FAF5EA;
  --ivory-white:   #FFFDF5;
  --dark-bg:       #0D0805;
  --dark-card:     #1A100A;
  --dark-section:  #140C08;
  --dark-border:   #2A1A10;
  --text-primary:  #1A0E08;
  --text-secondary:#4A3020;
  --text-muted:    #8B7355;
  --text-gold:     #C8960C;
  --text-light:    #FAF5EA;
  /* Silver text for dark backgrounds */
  --text-silver:   #C8C0B0;
  --text-silver-bright: #E8E0D0;
  --gradient-gold:       linear-gradient(135deg, #8B6914 0%, #C8960C 30%, #E8B923 50%, #C8960C 70%, #8B6914 100%);
  --gradient-gold-shine: linear-gradient(90deg, transparent, rgba(232,185,35,0.4), transparent);
  --gradient-maroon:     linear-gradient(135deg, #2D0A0A 0%, #6B1A1A 50%, #2D0A0A 100%);
  --gradient-dark:       linear-gradient(180deg, #0D0805 0%, #1A100A 100%);
  --gradient-section:    linear-gradient(180deg, #FAF5EA 0%, #F2EAD8 50%, #E8DCC8 100%);
  --gradient-hero:       linear-gradient(180deg, rgba(13,8,5,0.7) 0%, rgba(13,8,5,0.3) 50%, rgba(13,8,5,0.8) 100%);
  --shadow-gold:   0 4px 30px rgba(200,150,12,0.3);
  --shadow-deep:   0 20px 60px rgba(0,0,0,0.5);
  --shadow-card:   0 8px 32px rgba(139,105,20,0.15);
  --shadow-hover:  0 16px 48px rgba(139,105,20,0.35);
  --font-display:  'Cinzel', serif;
  --font-heading:  'Cormorant Garamond', serif;
  --font-body:     'EB Garamond', serif;
  --font-hindi:    'Noto Sans Devanagari', sans-serif;
  --section-pad:   100px 0;
  --container-max: 1320px;
  --border-radius: 4px;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast:   all 0.2s ease;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* FIX: white vertical line on right - prevent horizontal overflow */
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-primary);
  background-color: var(--ivory-white);
  /* FIX: white line on right side */
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark-bg); }
::-webkit-scrollbar-thumb { background: var(--gold-primary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-bright); }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; outline: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; outline: none; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  /* FIX: prevent container overflow */
  width: 100%;
}

@media (max-width: 768px) { .container { padding: 0 16px; } }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.25;
  color: var(--maroon-deep);
}

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

/* ── DARK BG TEXT COLORS (Silver+Gold combination) ─────── */
/* On dark/brown backgrounds use silver text + gold accents */
.dark-section-text,
.dark-section-text p,
.dark-section-text span:not(.section-label):not(.gold-text) {
  color: var(--text-silver);
}
.dark-section-text h1,
.dark-section-text h2,
.dark-section-text h3,
.dark-section-text h4 {
  color: var(--ivory-mid);
}

/* ── SECTION TITLES ─────────────────────────────────────── */
.section-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-primary);
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 500;
  color: var(--maroon-deep);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-title em { font-style: italic; color: var(--gold-deep); }

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.8;
}

.section-header { text-align: center; margin-bottom: 64px; }
.section-header .section-subtitle { margin: 0 auto; }

/* Dark background section title/subtitle overrides */
.on-dark .section-title { color: var(--ivory-mid); }
.on-dark .section-subtitle { color: var(--text-silver); }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.btn::after { content:''; position:absolute; inset:0; background:var(--gradient-gold-shine); transform:translateX(-100%); transition:transform 0.6s ease; }
.btn:hover::after { transform:translateX(100%); }
.btn-primary { background:var(--gradient-gold); color:var(--maroon-deep); border:1px solid var(--gold-bright); box-shadow:var(--shadow-gold); }
.btn-primary:hover { transform:translateY(-2px); box-shadow:var(--shadow-hover); }
.btn-outline { background:transparent; color:var(--gold-light); border:1px solid var(--gold-primary); }
.btn-outline:hover { background:var(--gradient-gold); color:var(--maroon-deep); border-color:var(--gold-bright); transform:translateY(-2px); }
.btn-dark { background:var(--maroon-deep); color:var(--gold-light); border:1px solid var(--maroon-mid); }
.btn-dark:hover { background:var(--maroon-primary); transform:translateY(-2px); }
.btn-sm { padding:10px 24px; font-size:0.625rem; }
.btn-lg { padding:18px 48px; font-size:0.75rem; }

/* ── DIVIDERS ────────────────────────────────────────────── */
.jewel-divider {
  display:flex; align-items:center; justify-content:center;
  padding:0; margin:0; overflow:hidden; position:relative; line-height:0;
  /* FIX: no overflow */
  width:100%; max-width:100vw;
}
.jewel-divider svg { width:100%; max-width:100%; height:auto; display:block; }

/* ── SCROLL REVEAL ───────────────────────────────────────── */
[data-reveal] { opacity:0; transition:opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
[data-reveal="up"]    { transform:translateY(50px); }
[data-reveal="down"]  { transform:translateY(-50px); }
[data-reveal="left"]  { transform:translateX(-60px); }
[data-reveal="right"] { transform:translateX(60px); }
[data-reveal="scale"] { transform:scale(0.85); }
[data-reveal="fade"]  { transform:none; }
[data-reveal].revealed { opacity:1; transform:none; }
[data-reveal-delay="100"] { transition-delay:0.1s; }
[data-reveal-delay="200"] { transition-delay:0.2s; }
[data-reveal-delay="300"] { transition-delay:0.3s; }
[data-reveal-delay="400"] { transition-delay:0.4s; }
[data-reveal-delay="500"] { transition-delay:0.5s; }

/* ── GOLD SHIMMER ────────────────────────────────────────── */
.gold-text { background:var(--gradient-gold); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.gold-shimmer { background:linear-gradient(90deg,#8B6914 0%,#C8960C 25%,#F5D98B 50%,#C8960C 75%,#8B6914 100%); background-size:200% auto; -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; animation:shimmer 3s linear infinite; }
@keyframes shimmer { 0%{background-position:200% center} 100%{background-position:-200% center} }

/* ── DECORATIVE ──────────────────────────────────────────── */
.ornament { display:flex; align-items:center; gap:16px; justify-content:center; margin:20px 0; }
.ornament::before,.ornament::after { content:''; flex:1; height:1px; background:var(--gradient-gold); max-width:120px; }
.ornament-dot { width:8px; height:8px; background:var(--gold-primary); transform:rotate(45deg); }

/* ── TOAST ───────────────────────────────────────────────── */
.toast-container { position:fixed; top:100px; right:24px; z-index:10000; display:flex; flex-direction:column; gap:10px; }
.toast { padding:14px 20px; background:var(--dark-card); border:1px solid var(--gold-primary); color:var(--gold-light); font-family:var(--font-display); font-size:0.7rem; letter-spacing:0.1em; border-radius:var(--border-radius); box-shadow:var(--shadow-deep); transform:translateX(120%); transition:transform 0.4s cubic-bezier(0.34,1.56,0.64,1); }
.toast.show { transform:translateX(0); }
.toast.success { border-color:#4CAF50; }
.toast.error { border-color:#f44336; }

/* ── PAGE LOADER ─────────────────────────────────────────── */
.page-loader { position:fixed; inset:0; background:var(--dark-bg); display:flex; flex-direction:column; align-items:center; justify-content:center; z-index:99999; transition:opacity 0.6s ease, visibility 0.6s ease; }
.page-loader.hidden { opacity:0; visibility:hidden; pointer-events:none; }
.loader-logo { font-family:var(--font-display); font-size:1.5rem; letter-spacing:0.3em; color:var(--gold-primary); margin-bottom:32px; animation:pulse-gold 1.5s ease infinite; }
.loader-bar { width:200px; height:2px; background:var(--dark-border); position:relative; overflow:hidden; }
.loader-bar::after { content:''; position:absolute; top:0; left:-100%; width:100%; height:100%; background:var(--gradient-gold); animation:loading 1.5s ease infinite; }
@keyframes loading { 0%{left:-100%} 100%{left:100%} }
@keyframes pulse-gold { 0%,100%{opacity:1} 50%{opacity:0.5} }

body.lang-hi, body.lang-mr { font-family:var(--font-hindi), var(--font-body); }

/* ── WHATSAPP FLOAT — Official icon style ──────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5), 0 0 0 0 rgba(37,211,102,0.4);
  z-index: 9999;
  transition: var(--transition-bounce);
  animation: wa-pulse 2.5s ease infinite;
}
@keyframes wa-pulse {
  0%  { box-shadow: 0 4px 20px rgba(37,211,102,0.5), 0 0 0 0 rgba(37,211,102,0.4); }
  70% { box-shadow: 0 4px 20px rgba(37,211,102,0.5), 0 0 0 14px rgba(37,211,102,0); }
  100%{ box-shadow: 0 4px 20px rgba(37,211,102,0.5), 0 0 0 0 rgba(37,211,102,0); }
}
.whatsapp-float:hover { transform:scale(1.12); box-shadow:0 8px 30px rgba(37,211,102,0.6); animation:none; }
/* Official WhatsApp SVG logo */
.whatsapp-float svg { width:34px; height:34px; fill:white; }

/* ── BACK TO TOP ─────────────────────────────────────────── */
.back-to-top { position:fixed; bottom:104px; right:32px; width:46px; height:46px; background:var(--gradient-gold); border:none; border-radius:50%; display:flex; align-items:center; justify-content:center; z-index:9998; opacity:0; transform:translateY(20px); transition:var(--transition-smooth); cursor:pointer; box-shadow:var(--shadow-gold); }
.back-to-top.visible { opacity:1; transform:translateY(0); }
.back-to-top:hover { transform:translateY(-4px); }
.back-to-top svg { width:18px; height:18px; stroke:var(--maroon-deep); fill:none; stroke-width:2.5; }

/* ── RATES POPUP (₹ toggle) ─────────────────────────────── */
.rates-popup-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid rgba(200,150,12,0.4);
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  background: rgba(200,150,12,0.08);
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
}
.rates-popup-btn:hover { border-color:var(--gold-primary); background:rgba(200,150,12,0.15); }
.rates-popup-btn .rupee-symbol { font-size:0.85rem; font-weight:700; color:var(--gold-bright); }

.rates-popup-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  background: var(--dark-card);
  border: 1px solid rgba(200,150,12,0.35);
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
  z-index: 500;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition-smooth);
  overflow: hidden;
}
.rates-popup-panel.open { opacity:1; visibility:visible; transform:translateY(0); }

.rates-popup-header {
  padding: 14px 18px;
  background: var(--dark-section);
  border-bottom: 1px solid rgba(200,150,12,0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rates-popup-header h4 {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-primary);
}
.rates-popup-time {
  font-family: var(--font-display);
  font-size: 0.55rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}
.rates-popup-body { padding: 8px 0; }
.rates-popup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
}
.rates-popup-row:last-child { border-bottom: none; }
.rates-popup-row:hover { background: rgba(200,150,12,0.05); }
.rates-popup-metal {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--text-silver);
}
.rates-popup-metal span {
  display: block;
  font-size: 0.52rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-top: 2px;
}
.rates-popup-price {
  text-align: right;
}
.rates-popup-price strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--gold-bright);
  letter-spacing: 0.06em;
}
.rates-popup-price em {
  font-style: normal;
  font-size: 0.52rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.rates-popup-footer {
  padding: 10px 18px;
  background: var(--dark-section);
  border-top: 1px solid rgba(200,150,12,0.15);
}
.rates-popup-footer p {
  font-family: var(--font-display);
  font-size: 0.52rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  line-height: 1.5;
}
.rates-popup-wrap { position: relative; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
.hide-mobile { }
.show-mobile { display:none !important; }
@media (max-width: 768px) {
  .hide-mobile { display:none !important; }
  .show-mobile { display:block !important; }
  html { font-size:15px; }
  :root { --section-pad:64px 0; }
  .section-title { font-size:clamp(1.75rem,6vw,2.5rem); }
  .section-header { margin-bottom:40px; }
  .btn { padding:12px 28px; }
  .btn-lg { padding:14px 36px; }
  .whatsapp-float { bottom:20px; right:20px; width:52px; height:52px; }
  .back-to-top { bottom:86px; right:20px; }
  .rates-popup-panel { width:290px; right:-10px; }
}
@media (max-width: 480px) {
  html { font-size:14px; }
  .container { padding:0 14px; }
}
