/* ==========================================================================
   Swarna Watch — Jewellery, Gold & Silver Coins, Market Trends
   Design system: Luxury / Elegant (black, gold, cream)
   ========================================================================== */

:root {
  --color-bg: #0e0d0b;
  --color-bg-alt: #17140f;
  --color-surface: #1e1a13;
  --color-border: #332c1e;

  --color-gold: #d4af37;
  --color-gold-light: #f1d489;
  --color-gold-dark: #a8842a;

  --color-cream: #f8f3e7;
  --color-cream-dim: #e7ddc4;

  --color-maroon: #7a1f1f;
  --color-maroon-light: #a83232;

  --color-text: #f3ede1;
  --color-text-dim: #b9ae97;
  --color-text-on-cream: #201c14;
  --color-text-on-cream-dim: #5c5341;

  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container-width: 1180px;
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;

  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.35);
  --transition: 0.25s ease;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}
/* Prevent grid/flex items from overflowing their track on narrow screens —
   grid/flex items default to min-width:auto, which lets long text content
   force the track wider than its container instead of wrapping. */
.split > *, .hero-grid > *, .grid > *, .footer-grid > *, .nav > * {
  min-width: 0;
}
section { padding: 84px 0; }
@media (max-width: 720px) {
  section { padding: 56px 0; }
}
.section-alt { background: var(--color-bg-alt); }
.section-cream {
  background: var(--color-cream);
  color: var(--color-text-on-cream);
}
.section-cream h1, .section-cream h2, .section-cream h3, .section-cream p { color: var(--color-text-on-cream); }
.section-cream .text-dim { color: var(--color-text-on-cream-dim); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 14px;
  font-weight: 600;
}
.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 14px; }
.section-head p { color: var(--color-text-dim); font-size: 1.05rem; }
.section-cream .section-head p { color: var(--color-text-on-cream-dim); }

.text-dim { color: var(--color-text-dim); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold-dark));
  color: #201a08;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(212, 175, 55, 0.25); }
.btn-outline {
  border: 1px solid var(--color-gold);
  color: var(--color-gold-light);
}
.btn-outline:hover { background: rgba(212, 175, 55, 0.12); }
.btn-dark {
  background: var(--color-bg);
  color: var(--color-gold-light);
  border: 1px solid var(--color-border);
}
.btn-dark:hover { background: var(--color-surface); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 13, 11, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-cream);
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}
.logo span { color: var(--color-gold); }
.logo small {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  font-weight: 500;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text-dim);
  transition: color var(--transition);
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--color-gold-light); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--color-gold);
}
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin: -10px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--color-cream); display: block; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .logo small { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--color-bg-alt);
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--color-border);
  }
}
@media (max-width: 420px) {
  .logo { font-size: 1.2rem; }
  .nav-cta { gap: 10px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 110px 0 90px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top right, rgba(212, 175, 55, 0.14), transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(122, 31, 31, 0.18), transparent 50%),
    var(--color-bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 48px 0 56px; }
  .hero-art { max-width: 340px; margin: 0 auto; }
}
@media (max-width: 480px) {
  .hero-stats { gap: 22px 28px; }
}
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal;
  color: var(--color-gold);
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--color-text-dim);
  max-width: 520px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hero-stats div strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--color-gold-light);
}
.hero-stats div span { font-size: 0.82rem; color: var(--color-text-dim); }

.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 30% 22%, rgba(241, 212, 137, 0.4), transparent 55%),
    radial-gradient(circle at 78% 85%, rgba(122, 31, 31, 0.22), transparent 55%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.015) 0px, rgba(255, 255, 255, 0.015) 1px, transparent 1px, transparent 7px),
    linear-gradient(155deg, #2a2313, #120f0a 70%);
  border: 1px solid var(--color-border);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art svg { width: 78%; height: 78%; }

/* ---------- Market rate widget ---------- */
.rates-strip {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.rates-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.rates-head h2 { font-size: 1.5rem; }
.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-dim);
}
.live-dot::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4caf50;
  box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.18);
}
.widget-frame {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #131110;
}
.rates-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--color-text-dim);
}

/* ---------- Cards: trends/articles ---------- */
.grid {
  display: grid;
  gap: 30px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); border-color: var(--color-gold-dark); }
.card-thumb {
  aspect-ratio: 16/10;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(241, 212, 137, 0.2), transparent 55%),
    radial-gradient(circle at 80% 85%, rgba(122, 31, 31, 0.16), transparent 50%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.015) 0px, rgba(255, 255, 255, 0.015) 1px, transparent 1px, transparent 7px),
    linear-gradient(135deg, #241f14, #14110c);
}
.card-thumb svg { width: 46%; height: 46%; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45)); }
.card-thumb .thumb-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(14, 13, 11, 0.75);
  color: var(--color-gold-light);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
}
.card-body { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.card-body .cat { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-gold); margin-bottom: 10px; }
.card-body h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card-body p { color: var(--color-text-dim); font-size: 0.94rem; flex: 1; margin-bottom: 16px; }
.card-body .read-more { font-size: 0.88rem; font-weight: 600; color: var(--color-gold-light); }
.card-meta { display: flex; gap: 14px; font-size: 0.78rem; color: var(--color-text-dim); margin-top: 4px; }

/* ---------- Product cards (coins) ---------- */
.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.product-thumb {
  aspect-ratio: 1/1;
  border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at 35% 30%, rgba(241, 212, 137, 0.35), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.015) 0px, rgba(255, 255, 255, 0.015) 1px, transparent 1px, transparent 7px),
    linear-gradient(160deg, #262010, #141109);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
}
.product-thumb svg { width: 62%; height: 62%; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5)); }
.product-thumb .ph-label {
  position: absolute;
}
.product-card h3 { font-size: 1.1rem; }
.product-price { font-family: var(--font-heading); font-size: 1.3rem; color: var(--color-gold-light); }
.product-price small { font-family: var(--font-body); font-size: 0.75rem; color: var(--color-text-dim); font-weight: 400; }
.product-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  color: var(--color-text-dim);
}

/* ---------- Placeholder image tile (for real product photos later) ---------- */
.img-placeholder {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-sm);
  background: repeating-linear-gradient(135deg, #201b10, #201b10 10px, #1a160d 10px, #1a160d 20px);
  border: 1px dashed var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-text-dim);
  font-size: 0.75rem;
  padding: 10px;
}

/* ---------- Two-column feature / editorial rows ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.split h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 18px; }
.split p { margin-bottom: 16px; }
.icon-list { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.icon-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.96rem; }
.icon-list li svg { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; color: var(--color-gold); }

.visual-panel {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.015) 0px, rgba(255, 255, 255, 0.015) 1px, transparent 1px, transparent 7px),
    linear-gradient(150deg, #241f13, #100d09 75%);
  border: 1px solid var(--color-border);
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.visual-panel svg { width: 62%; height: 62%; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5)); position: relative; z-index: 1; }
.visual-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(212, 175, 55, 0.25), transparent 60%);
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, #241a0d, #120f0a);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
@media (max-width: 600px) {
  .cta-banner { padding: 36px 24px; }
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 15%, rgba(212, 175, 55, 0.16), transparent 55%);
}
.cta-banner h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 14px; position: relative; }
.cta-banner p { color: var(--color-text-dim); max-width: 560px; margin: 0 auto 28px; position: relative; }
.cta-banner .hero-actions { justify-content: center; position: relative; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 44px;
}
@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .site-footer { padding: 48px 0 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; margin-bottom: 32px; }
}
.footer-grid h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 18px;
}
.footer-grid ul { display: flex; flex-direction: column; gap: 11px; }
.footer-grid a, .footer-grid p { color: var(--color-text-dim); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--color-gold-light); }
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--color-text-dim);
}
.footer-bottom a { color: var(--color-text-dim); }
.footer-bottom a:hover { color: var(--color-gold-light); }
.disclaimer-box {
  margin-top: 28px;
  padding: 16px 20px;
  background: rgba(122, 31, 31, 0.12);
  border: 1px solid rgba(122, 31, 31, 0.4);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--color-text-dim);
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
  padding: 64px 0 40px;
  background: linear-gradient(180deg, var(--color-bg-alt), var(--color-bg));
  border-bottom: 1px solid var(--color-border);
}
.breadcrumb { font-size: 0.82rem; color: var(--color-text-dim); margin-bottom: 16px; }
.breadcrumb a { color: var(--color-gold-light); }
.page-header h1 { font-size: clamp(2rem, 4vw, 2.8rem); max-width: 720px; }
.page-header p.lead { color: var(--color-text-dim); max-width: 620px; margin-top: 16px; font-size: 1.05rem; }

/* ---------- Article / prose ---------- */
.prose {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.05rem;
}
.prose h2 { font-size: 1.5rem; margin: 40px 0 16px; }
.prose h3 { font-size: 1.2rem; margin: 30px 0 12px; color: var(--color-gold-light); }
.prose p { margin-bottom: 20px; color: var(--color-text-dim); }
.prose ul, .prose ol { margin: 0 0 20px 22px; color: var(--color-text-dim); }
.prose li { margin-bottom: 8px; }
.prose blockquote {
  border-left: 3px solid var(--color-gold);
  padding: 4px 0 4px 20px;
  margin: 28px 0;
  font-style: italic;
  color: var(--color-cream-dim);
}
.table-scroll {
  overflow-x: auto;
  margin: 24px 0;
  -webkit-overflow-scrolling: touch;
}
.table-scroll table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 0;
}
@media (max-width: 500px) {
  .table-scroll table { font-size: 0.86rem; }
  .table-scroll th, .table-scroll td { white-space: nowrap; }
}
.prose .callout {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin: 30px 0;
}
.prose .callout strong { color: var(--color-gold-light); }
.article-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-text-dim);
  margin: 20px 0 40px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.article-meta .cat-pill {
  background: rgba(212, 175, 55, 0.12);
  color: var(--color-gold-light);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Simple content blocks: about/contact/disclosure ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) { .info-grid { grid-template-columns: 1fr; } }
.info-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 26px;
}
.info-card svg { width: 30px; height: 30px; color: var(--color-gold); margin-bottom: 14px; }
.info-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.info-card p { color: var(--color-text-dim); font-size: 0.92rem; }

.contact-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
@media (max-width: 600px) {
  .contact-panel { padding: 24px; }
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}
.contact-row:last-child { border-bottom: none; }
.contact-row svg { width: 22px; height: 22px; color: var(--color-gold); flex-shrink: 0; }
.contact-row a, .contact-row span { color: var(--color-text-dim); }
.contact-row a:hover { color: var(--color-gold-light); }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-gold);
  color: #201a08;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 90;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--color-border); margin: 60px 0; }
.center { text-align: center; }
