:root {
  --gold: #C8922A;
  --gold-light: #F0B429;
  --gold-pale: #FFF8E7;
  --silver: #9BA8B4;
  --silver-light: #CBD5E0;
  --dark: #12100A;
  --dark2: #1E1A10;
  --dark3: #2A2416;
  --text: #1A1208;
  --muted: #7A6A50;
  --green: #1A7A4A;
  --red: #B83232;
  --bg: #FDFAF3;
  --card: #FFFFFF;
  --border: #E8DCC0;
  --shadow: 0 4px 24px rgba(0,0,0,0.07);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ── NAVBAR ─────────────────────────────── */
.navbar {
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1.5px solid var(--gold);
  gap: 1rem;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-decoration: none;
}
.logo-tamil {
  font-family: 'Noto Sans Tamil', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.04em;
}
.logo-en {
  font-size: 0.55rem;
  color: var(--muted);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}
.nav-link {
  font-family: 'Noto Sans Tamil', sans-serif;
  font-size: 0.9rem;
  color: #A0906E;
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-link:hover, .nav-link.active {
  color: var(--gold-light);
  border-bottom-color: var(--gold-light);
}

.nav-badge {
  background: var(--green);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ── HERO ────────────────────────────────── */
.hero {
  position: relative;
  background: var(--dark);
  padding: 3.5rem 2rem 3rem;
  overflow: hidden;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 0%, rgba(200,146,42,0.18) 0%, transparent 65%),
              radial-gradient(ellipse at 10% 100%, rgba(200,146,42,0.08) 0%, transparent 55%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}
.hero-date {
  font-family: 'Noto Sans Tamil', sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  color: var(--gold-light);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
}
.hero-sub {
  font-size: 0.9rem;
  color: #A0906E;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.status-badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.status-badge.live {
  background: rgba(26,122,74,0.2);
  color: #4ADE80;
  border: 1px solid rgba(74,222,128,0.3);
}
.status-badge.warning {
  background: rgba(200,146,42,0.15);
  color: var(--gold-light);
  border: 1px solid rgba(200,146,42,0.3);
}

/* ── CONTAINER ───────────────────────────── */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* ── METAL SECTION ───────────────────────── */
.metal-section {
  margin-bottom: 1rem;
  animation: fadeUp 0.5s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.metal-section:nth-child(3) { animation-delay: 0.15s; }

.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.section-icon {
  font-size: 2rem;
  line-height: 1;
}
.section-title {
  font-family: 'Noto Sans Tamil', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.1;
}
.section-subtitle {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

.change-badge {
  margin-left: auto;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.change-badge.up {
  background: rgba(26,122,74,0.1);
  color: var(--green);
  border: 1px solid rgba(26,122,74,0.2);
}
.change-badge.down {
  background: rgba(184,50,50,0.1);
  color: var(--red);
  border: 1px solid rgba(184,50,50,0.2);
}

/* ── RATES GRID ──────────────────────────── */
.rates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.rate-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.rate-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--border);
  transition: background 0.2s;
}
.rate-card.highlight::before {
  background: var(--gold);
}
.rate-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.rate-label {
  font-family: 'Noto Sans Tamil', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.rate-label-en {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}
.rate-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.01em;
  line-height: 1;
}
.rate-value.silver-val {
  color: var(--silver);
}

.updated-at {
  font-family: 'Noto Sans Tamil', sans-serif;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: right;
  margin-top: 0.75rem;
}

/* ── DIVIDER ─────────────────────────────── */
.divider {
  text-align: center;
  margin: 2.5rem 0;
  color: var(--gold);
  font-size: 1.2rem;
  position: relative;
}
.divider::before, .divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 2rem);
  height: 1px;
  background: var(--border);
}
.divider::before { left: 0; }
.divider::after  { right: 0; }

/* ── INFO BOX ────────────────────────────── */
.info-box {
  background: var(--gold-pale);
  border: 1px solid #E8D8A0;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-top: 2rem;
}
.info-box h3 {
  font-family: 'Noto Sans Tamil', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--dark2);
}
.info-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.info-box li {
  font-family: 'Noto Sans Tamil', sans-serif;
  font-size: 0.85rem;
  color: #5A4A20;
  padding-left: 1rem;
  position: relative;
  line-height: 1.6;
}
.info-box li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ── FOOTER ─────────────────────────────── */
.footer {
  background: var(--dark);
  border-top: 1px solid var(--dark3);
  padding: 2rem;
}
.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-brand .logo-tamil {
  font-family: 'Noto Sans Tamil', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-light);
  display: block;
  margin-bottom: 0.5rem;
}
.footer-brand p {
  font-family: 'Noto Sans Tamil', sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
}
.footer-note {
  flex: 1;
  max-width: 500px;
}
.footer-note p {
  font-family: 'Noto Sans Tamil', sans-serif;
  font-size: 0.78rem;
  color: #60503A;
  line-height: 1.6;
  margin-bottom: 0.4rem;
}
.footer-copy {
  color: #40342A !important;
  margin-top: 0.5rem !important;
}

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 600px) {
  .navbar { padding: 0 1rem; }
  .nav-links { display: none; }
  .hero { padding: 2.5rem 1rem 2rem; }
  .rates-grid { grid-template-columns: 1fr 1fr; }
  .rate-value { font-size: 1.5rem; }
  .change-badge { font-size: 0.75rem; }
  .footer-inner { flex-direction: column; }
}

/* ── LOGO IMAGE ──────────────────────────── */
.logo-img {
  height: 44px;
  width: auto;
  display: block;
}
.hero-logo {
  height: 90px;
  width: auto;
  display: block;
  margin: 0 auto 1.2rem;
  filter: drop-shadow(0 4px 24px rgba(200,146,42,0.6));
}
.footer-logo-img {
  height: 36px;
  width: auto;
  display: block;
  margin-bottom: 0.5rem;
  filter: brightness(0.85);
}
