/* ════════════════════════════════════════════
   KOTHARI GOLD · SILVER  — Light Theme
   Fully Responsive: Mobile · Tablet · Laptop · Desktop
   ════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=Cinzel:wght@400;600;700&family=Raleway:wght@300;400;500&display=swap');

/* ── Design Tokens — Light Theme ── */
:root {
  /* Gold palette — deeper/richer for light backgrounds */
  --gold-100: #fdf6e3;
  --gold-200: #f0d48a;
  --gold-300: #c9921a;
  --gold-400: #b07d10;
  --gold-500: #8a5f08;
  --gold-600: #6b4906;
  --gold-glow: rgba(176, 125, 16, 0.18);

  /* Silver palette */
  --silver-100: #f0f2f5;
  --silver-300: #8a96a8;
  --silver-400: #5e6b7a;
  --silver-500: #3d4a57;
  --silver-glow: rgba(94, 107, 122, 0.15);

  /* Backgrounds — warm ivory/cream */
  --bg-page:        #faf7f2;
  --bg-warm:        #f5f0e8;
  --bg-card:        #ffffff;
  --bg-card-2:      #fdfaf5;
  --bg-header:      rgba(255, 253, 248, 0.96);
  --bg-footer:      #f0ebe0;
  --bg-silver-card: #f7f8fa;

  /* Text */
  --text-heading: #1a1208;
  --text-body:    #3d3220;
  --text-muted:   #7a6840;
  --text-dimmed:  #b0a080;

  /* Borders */
  --border-gold:   rgba(176, 125, 16, 0.35);
  --border-subtle: rgba(176, 125, 16, 0.12);
  --border-card:   rgba(176, 125, 16, 0.2);
  --border-silver: rgba(94, 107, 122, 0.3);

  /* Fonts */
  --font-display: 'Cinzel', 'Palatino Linotype', Georgia, serif;
  --font-serif:   'Cormorant Garamond', 'Times New Roman', serif;
  --font-sans:    'Raleway', 'Helvetica Neue', sans-serif;

  --header-h: 68px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  background-color: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-width: 320px;
}

/* ── Grain ── */
.grain-overlay {
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px;
}

/* ── Particles ── */
.particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.particle {
  position: absolute;
  bottom: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-300), transparent 70%);
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.5; }
  90%  { opacity: 0.2; }
  100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

/* ══════════════════════════
   HEADER
══════════════════════════ */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: var(--bg-header);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 1px 24px rgba(139, 95, 8, 0.07);
  transition: height 0.4s var(--ease-out), box-shadow 0.4s;
}

header.scrolled {
  height: 52px;
  box-shadow: 0 2px 32px rgba(139, 95, 8, 0.12);
  border-bottom-color: var(--border-card);
}

.header-inner {
  max-width: 1280px; margin: 0 auto; height: 100%;
  padding: 0 clamp(14px, 4vw, 56px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}

.logo-group { display: flex; align-items: center; gap: 12px; flex-shrink: 0; min-width: 0; }

.logo-emblem {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--border-gold);
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold-100), #fff);
  box-shadow: 0 2px 12px var(--gold-glow);
  flex-shrink: 0; overflow: hidden;
  transition: width 0.4s, height 0.4s, box-shadow 0.3s;
}

header.scrolled .logo-emblem { width: 32px; height: 32px; }

.company-logo { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.logo-text { display: flex; flex-direction: column; line-height: 1; min-width: 0; }

.company-title {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 2.2vw, 1.3rem);
  font-weight: 600; letter-spacing: 0.18em;
  color: var(--gold-400); text-transform: uppercase; white-space: nowrap;
  transition: font-size 0.4s;
}

header.scrolled .company-title { font-size: clamp(0.8rem, 1.8vw, 1rem); }

.company-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(0.6rem, 1vw, 0.75rem); font-weight: 300;
  letter-spacing: 0.22em; color: var(--text-muted);
  text-transform: uppercase; margin-top: 3px; white-space: nowrap;
}

.header-nav { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }

.nav-link {
  font-family: var(--font-display);
  font-size: clamp(0.6rem, 1vw, 0.72rem); letter-spacing: 0.18em;
  color: var(--text-muted); text-decoration: none; text-transform: uppercase;
  padding: 6px 12px; border: 1px solid transparent; border-radius: 2px;
  transition: color 0.3s, border-color 0.3s, background 0.3s; white-space: nowrap;
}

.nav-link:hover {
  color: var(--gold-400); border-color: var(--border-gold);
  background: rgba(176, 125, 16, 0.06);
}

.nav-divider { width: 1px; height: 14px; background: var(--border-subtle); flex-shrink: 0; }

.header-gold-line {
  position: absolute; bottom: 0; left: 0; right: 0; height: 1.5px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-400) 30%, var(--gold-200) 50%, var(--gold-400) 70%, transparent 100%);
  opacity: 0; transition: opacity 0.4s;
}

header.scrolled .header-gold-line { opacity: 1; }

/* ══════════════════════════
   MAIN
══════════════════════════ */
main { padding-top: var(--header-h); position: relative; z-index: 1; }

.section-header {
  display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 8px;
}

.ornament { font-size: 0.65rem; color: var(--gold-300); opacity: 0.8; flex-shrink: 0; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3.5vw, 2rem); font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-400); text-align: center;
}

/* ══════════════════════════
   RATES SECTION
══════════════════════════ */
#rates-section {
  padding: clamp(36px, 7vw, 80px) clamp(14px, 4vw, 56px);
  max-width: 1280px; margin: 0 auto;
}

.section-date {
  text-align: center; font-family: var(--font-serif);
  font-size: clamp(0.78rem, 1.5vw, 0.92rem);
  color: var(--text-muted); letter-spacing: 0.1em;
  margin-bottom: clamp(24px, 4vw, 48px); font-style: italic;
}

.rates-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2.5vw, 28px); margin-bottom: 28px;
}

.rate-card {
  position: relative;
  background: linear-gradient(145deg, var(--bg-card-2), var(--bg-card));
  border: 1px solid var(--border-card); border-radius: 4px;
  padding: clamp(20px, 3.5vw, 44px) clamp(12px, 2.5vw, 32px);
  text-align: center; overflow: hidden; cursor: default;
  box-shadow: 0 2px 16px rgba(139,95,8,0.06), 0 1px 4px rgba(0,0,0,0.04);
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out), box-shadow 0.4s, border-color 0.4s;
}

.rate-card.visible { opacity: 1; transform: translateY(0); }

.rate-card:hover {
  box-shadow: 0 8px 40px var(--gold-glow), 0 2px 12px rgba(0,0,0,0.08);
  border-color: var(--border-gold);
}

.card-shine {
  position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent 0%, rgba(255,215,80,0.08) 50%, transparent 100%);
  transform: skewX(-20deg); transition: left 0.8s ease; pointer-events: none;
}

.rate-card:hover .card-shine { left: 160%; }

.card-top-border {
  position: absolute; top: 0; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-300), var(--gold-200), var(--gold-300), transparent);
}

.card-bottom-accent {
  position: absolute; bottom: 0; left: 25%; right: 25%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
}

.card-icon {
  color: var(--gold-300); margin-bottom: 12px;
  display: flex; justify-content: center; opacity: 0.9;
}

.card-icon svg { width: clamp(20px, 3vw, 28px); height: clamp(20px, 3vw, 28px); }

.card-label {
  font-family: var(--font-display); font-size: clamp(0.65rem, 1.2vw, 0.88rem);
  letter-spacing: 0.22em; color: var(--gold-500); font-weight: 600; margin-bottom: 4px;
}

.card-purity {
  font-family: var(--font-serif); font-size: clamp(0.72rem, 1.2vw, 0.84rem);
  color: var(--text-muted); font-style: italic; letter-spacing: 0.06em;
  margin-bottom: clamp(12px, 2vw, 20px);
}

.card-rate-wrap {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 3px; line-height: 1; margin-bottom: 8px;
}

.currency {
  font-family: var(--font-serif); font-size: clamp(1rem, 2vw, 1.5rem);
  color: var(--gold-400); margin-top: 5px; font-weight: 400;
}

.card-rate {
  font-family: var(--font-serif); font-size: clamp(1.8rem, 4.5vw, 3.4rem);
  font-weight: 600; color: var(--text-heading); letter-spacing: -0.02em;
}

.card-unit {
  font-family: var(--font-sans); font-size: clamp(0.62rem, 0.9vw, 0.72rem);
  letter-spacing: 0.18em; color: var(--text-dimmed); text-transform: uppercase;
}

/* Silver card */
.rate-card.silver {
  border-color: var(--border-silver);
  background: linear-gradient(145deg, #f2f4f7, var(--bg-silver-card));
}

.rate-card.silver:hover {
  box-shadow: 0 8px 40px var(--silver-glow), 0 2px 12px rgba(0,0,0,0.06);
  border-color: var(--silver-400);
}

.silver-border {
  background: linear-gradient(90deg, transparent, var(--silver-400), var(--silver-100), var(--silver-400), transparent) !important;
}

.silver-icon     { color: var(--silver-400) !important; }
.card-label.silver-label   { color: var(--silver-500) !important; }
.card-purity.silver-purity { color: var(--silver-400) !important; }
.currency.silver-currency  { color: var(--silver-400) !important; }
.card-rate.silver-rate     { color: var(--silver-500) !important; }
.card-bottom-accent.silver-accent {
  background: linear-gradient(90deg, transparent, var(--silver-300), transparent) !important;
}

.flashing { animation: goldPulse 3s ease-in-out infinite; }

@keyframes goldPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.72; }
}

.rates-disclaimer {
  text-align: center; font-family: var(--font-serif);
  font-size: clamp(0.75rem, 1.2vw, 0.84rem);
  color: var(--text-dimmed); font-style: italic; letter-spacing: 0.04em;
}

/* ══════════════════════════
   VIDEO
══════════════════════════ */
.video-wrapper {
  padding: 0 clamp(14px, 4vw, 56px) clamp(28px, 5vw, 64px);
  max-width: 1000px; margin: 0 auto;
}

.video-frame {
  position: relative; border-radius: 6px; overflow: hidden;
  border: 1px solid var(--border-card);
  box-shadow: 0 4px 32px rgba(139,95,8,0.10), 0 1px 8px rgba(0,0,0,0.06);
}

.video-frame video { width: 100%; height: auto; display: block; }

.video-overlay-top, .video-overlay-bottom {
  position: absolute; left: 0; right: 0; height: 60px; pointer-events: none;
}

.video-overlay-top    { top: 0;    background: linear-gradient(180deg, var(--bg-page), transparent); }
.video-overlay-bottom { bottom: 0; background: linear-gradient(0deg,   var(--bg-page), transparent); }

/* ══════════════════════════
   CONTACT
══════════════════════════ */
#contact-section {
  padding: clamp(36px, 7vw, 80px) clamp(14px, 4vw, 56px);
  max-width: 1280px; margin: 0 auto;
}

.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 4vw, 56px); align-items: start;
  margin-top: clamp(24px, 3.5vw, 44px);
}

.map-card {
  border-radius: 6px; overflow: hidden;
  border: 1px solid var(--border-card);
  box-shadow: 0 4px 24px rgba(139,95,8,0.08), 0 1px 6px rgba(0,0,0,0.04);
  height: clamp(240px, 35vw, 380px);
}

.map-card iframe {
  width: 100%; height: 100%; border: none; display: block;
  filter: saturate(0.85) brightness(1.02);
}

.contact-details {
  display: flex; flex-direction: column; gap: clamp(20px, 2.5vw, 32px); padding: 4px 0;
}

.contact-block { display: flex; gap: 14px; align-items: flex-start; }

.contact-icon-wrap {
  width: 34px; height: 34px; border: 1.5px solid var(--border-gold);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--gold-400); flex-shrink: 0; background: var(--gold-100);
}

.contact-icon-wrap svg { width: 16px; height: 16px; }

.contact-label {
  font-family: var(--font-display); font-size: clamp(0.58rem, 0.9vw, 0.65rem);
  letter-spacing: 0.22em; color: var(--gold-500);
  text-transform: uppercase; margin-bottom: 5px;
}

.contact-value {
  font-family: var(--font-serif); font-size: clamp(0.9rem, 1.8vw, 1.12rem);
  color: var(--text-body); text-decoration: none; line-height: 1.55; transition: color 0.3s;
}

.contact-value:hover { color: var(--gold-400); }

.social-row { display: flex; gap: 12px; flex-wrap: wrap; }

.social-btn {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--border-gold); background: var(--gold-100);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-decoration: none;
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.social-btn img { width: 22px; height: 22px; object-fit: contain; transition: transform 0.3s; }

.social-btn:hover {
  transform: translateY(-4px); border-color: var(--gold-300);
  background: var(--gold-200); box-shadow: 0 6px 20px var(--gold-glow);
}

.social-btn:hover img { transform: scale(1.15); }

/* ══════════════════════════
   FOOTER
══════════════════════════ */
.site-footer {
  text-align: center; padding: clamp(24px, 3.5vw, 44px) 24px;
  border-top: 1px solid var(--border-subtle); background: var(--bg-footer);
}

.footer-ornament {
  font-family: var(--font-display); font-size: clamp(0.65rem, 1vw, 0.75rem);
  letter-spacing: 0.28em; color: var(--gold-400); text-transform: uppercase; margin-bottom: 6px;
}

.footer-sub {
  font-family: var(--font-serif); font-size: clamp(0.78rem, 1.2vw, 0.85rem);
  color: var(--text-muted); font-style: italic; letter-spacing: 0.06em;
}

/* ════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
════════════════════════════════════════════ */

@media (max-width: 479px) {
  :root { --header-h: 54px; }
  .company-subtitle { display: none; }
  .nav-divider { display: none; }
  .logo-emblem { width: 32px; height: 32px; }
  .company-title { font-size: 0.8rem; letter-spacing: 0.12em; }
  .nav-link { font-size: 0.6rem; letter-spacing: 0.1em; padding: 5px 8px; }

  .rates-grid { grid-template-columns: 1fr; gap: 14px; }
  .rate-card { padding: 22px 20px; display: flex; flex-direction: row; align-items: center; text-align: left; gap: 14px; }
  .card-icon { margin-bottom: 0; flex-shrink: 0; }
  .card-icon svg { width: 22px; height: 22px; }
  .card-info { flex: 1; min-width: 0; }
  .card-label { font-size: 0.7rem; margin-bottom: 2px; }
  .card-purity { font-size: 0.7rem; margin-bottom: 6px; }
  .card-rate { font-size: 1.9rem; }
  .currency { font-size: 1rem; margin-top: 4px; }
  .card-unit { font-size: 0.6rem; }
  .card-rate-wrap { justify-content: flex-start; }
  .card-top-border { left: 0; right: 0; }
  .card-bottom-accent { display: none; }

  .contact-grid { grid-template-columns: 1fr; gap: 20px; }
  .map-card { height: 200px; }
  .social-btn { width: 42px; height: 42px; }
  .social-btn img { width: 20px; height: 20px; }
}

@media (min-width: 480px) and (max-width: 639px) {
  :root { --header-h: 58px; }
  .company-subtitle { display: none; }
  .rates-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .rate-card.silver { grid-column: 1 / -1; max-width: 340px; margin: 0 auto; width: 100%; }
  .card-rate { font-size: clamp(1.8rem, 6vw, 2.4rem); }
  .contact-grid { grid-template-columns: 1fr; gap: 20px; }
  .map-card { height: 220px; }
}

@media (min-width: 480px) {
  .rate-card { flex-direction: column; }
  .card-rate-wrap { justify-content: center; }
}

@media (min-width: 640px) and (max-width: 767px) {
  :root { --header-h: 60px; }
  .rates-grid { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
  .card-rate { font-size: clamp(1.6rem, 4vw, 2.2rem); }
  .contact-grid { grid-template-columns: 1fr; gap: 22px; }
  .map-card { height: 250px; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  :root { --header-h: 64px; }
  .rates-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .card-rate { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .map-card { height: 280px; }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  :root { --header-h: 68px; }
  .rates-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .map-card { height: 320px; }
}

@media (min-width: 1280px) {
  :root { --header-h: 72px; }
  .rates-grid { gap: 28px; }
  .contact-grid { gap: 56px; }
  .map-card { height: 360px; }
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold-300);
  outline-offset: 3px; border-radius: 2px;
}

@media (hover: none) {
  .rate-card:hover { box-shadow: 0 2px 16px rgba(139,95,8,0.06); border-color: var(--border-card); }
  .rate-card.silver:hover { box-shadow: 0 2px 16px rgba(94,107,122,0.06); border-color: var(--border-silver); }
  .social-btn:hover { transform: none; box-shadow: none; background: var(--gold-100); }
}
