/* ============================================
   TATVA CIRCULAR — Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --navy-950: #060e1a;
  --navy-900: #0a1929;
  --navy-800: #0f2138;
  --navy-700: #16304f;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --green-500: #3fae55;
  --green-400: #6cc26f;
  --leaf-gradient: linear-gradient(90deg, #3fae55, #2fa6a0, #2f8fe0);
  --silver-200: #e6e9ee;
  --silver-400: #b7c0cc;
  --ink-900: #0f1720;
  --ink-700: #33404f;
  --ink-500: #63707e;
  --paper-0: #ffffff;
  --paper-50: #f6f7f9;
  --paper-100: #eef0f3;
  --line: #e2e6eb;
  --line-dark: rgba(255,255,255,0.12);

  /* Type */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1180px;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--paper-0);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-500);
  margin-bottom: 14px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--ink-900);
}

.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }

.accent-dot { color: var(--green-400); }

p { margin: 0 0 16px; color: var(--ink-500); }
.on-dark p { color: #b9c4d1; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 2px; }

.btn-primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 6px 18px rgba(37,99,235,0.28);
}
.btn-primary:hover { background: #1e56d6; }

.btn-gradient {
  background: linear-gradient(90deg, var(--green-500), var(--blue-500));
  color: #fff;
  width: 100%;
  padding: 16px 26px;
  font-size: 15.5px;
}
.btn-gradient:hover { filter: brightness(1.06); }

.btn-icon { font-size: 18px; line-height: 1; transform: translateY(-1px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-900);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { height: 34px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text .t1 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
  background: linear-gradient(90deg, #4d7fd9 0%, #3fb0c7 55%, #4fbf6a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-text .t2 {
  font-size: 10.5px;
  letter-spacing: 0.32em;
  color: #8a97a8;
  margin-top: 2px;
  text-transform: lowercase;
}

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  color: #cdd6e2;
  font-size: 15px;
  font-weight: 500;
  padding: 6px 2px;
  position: relative;
}
.main-nav a:hover { color: #fff; }
.main-nav a.active { color: #fff; }
.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -12px;
  height: 2px;
  background: var(--green-400);
}
.has-dropdown { position: relative; }
.dropdown-toggle { display: inline-flex; align-items: center; gap: 5px; }
.caret { font-size: 10px; transition: transform .18s ease; }
.has-dropdown:hover .caret { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy-800);
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  min-width: 190px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity .16s ease, transform .16s ease;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}
.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14.5px;
}
.dropdown-menu a:hover { background: rgba(255,255,255,0.06); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: '';
  position: absolute;
  left: 8px; right: 8px;
  height: 2px;
  background: #fff;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span { top: 19px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy-900);
  overflow: hidden;
  padding: 78px 0 64px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(680px 420px at 8% 30%, rgba(63,174,85,0.10), transparent 60%),
    radial-gradient(900px 600px at 15% 55%, rgba(59,130,246,0.10), transparent 60%);
  pointer-events: none;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-copy h1 { font-size: 44px; color: #fff; }
.hero-copy h1 .dot { color: var(--green-400); }
.hero-copy p { font-size: 16.5px; max-width: 480px; }

.ingot-art { position: relative; }
.ingot-svg { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,0.45)); }

/* ---------- Market ticker ---------- */
.ticker {
  background: var(--navy-950);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  position: relative;
  z-index: 3;
}
.ticker .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  padding: 16px 24px;
  color: #cfd8e3;
  font-size: 14px;
}
.ticker .live {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #97a3b3;
  font-weight: 700;
}
.dot-live {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-400);
  box-shadow: 0 0 0 0 rgba(108,194,111,0.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(108,194,111,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(108,194,111,0); }
  100% { box-shadow: 0 0 0 0 rgba(108,194,111,0); }
}
.ticker .label { color: #8b97a7; }
.ticker .price { font-size: 19px; font-weight: 700; color: #fff; }
.ticker .price small { font-size: 12px; font-weight: 500; color: #8b97a7; }
.ticker .change { font-weight: 700; }
.ticker .change.up { color: #57cf74; }
.ticker .change.down { color: #f2685c; }
.ticker .asof { color: #6f7c8d; font-size: 12.5px; }
.ticker .spacer { flex: 1; }
.ticker .view-lme { font-weight: 600; color: #cfe0ff; display: inline-flex; align-items: center; gap: 6px; }
.ticker .view-lme:hover { color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-tight { padding: 64px 0; }
.section-alt { background: var(--paper-50); }
.section-navy { background: var(--navy-900); }
.section-navy-deep { background: var(--navy-950); }

.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head h2 { font-size: 34px; }
.section-head p { font-size: 16px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.two-col {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

/* Trade cards */
.trade-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.trade-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
.trade-card:hover { box-shadow: 0 18px 40px rgba(15,23,32,0.08); transform: translateY(-2px); }
.trade-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 14px;
}
.trade-card-head .icon-badge { color: var(--blue-600); }
.trade-card-head h3 { margin: 0; font-size: 18px; font-family: var(--font-body); font-weight: 700; color: var(--ink-900); }
.trade-card .art { height: 150px; margin: 0 20px 16px; border-radius: 8px; overflow: hidden; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 20px; }
.tag {
  font-size: 12.5px;
  font-weight: 600;
  background: var(--paper-100);
  color: var(--ink-700);
  padding: 6px 12px;
  border-radius: 999px;
}

/* Compliance badges */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.badge-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: center;
}
.badge-card .mark {
  width: 52px; height: 52px;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--paper-50);
  color: var(--blue-600);
}
.badge-card .name { font-weight: 700; font-size: 15px; color: var(--ink-900); }
.badge-card .status { font-size: 13px; color: var(--green-500); font-weight: 600; margin-top: 2px; }

/* Focus / values cards (Company page) */
.focus-grid, .card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.focus-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.focus-card .ic {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--paper-50);
  color: var(--green-500);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.focus-card h3 { font-family: var(--font-body); font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.focus-card .rule { width: 30px; height: 2px; background: var(--green-500); margin-bottom: 14px; }
.focus-card p { font-size: 14.5px; margin: 0; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}
.value-item { text-align: center; }
.value-item .ic {
  width: 60px; height: 60px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 1.5px solid #d7e4d9;
  color: var(--green-500);
  display: flex; align-items: center; justify-content: center;
}
.value-item h4 { font-family: var(--font-body); font-size: 15.5px; font-weight: 700; margin-bottom: 8px; }
.value-item p { font-size: 13.5px; margin: 0; }

/* RFQ / message section */
.rfq {
  color: #fff;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.rfq-perks {
  display: flex;
  gap: 26px;
  margin-top: 30px;
}
.perk { text-align: left; }
.perk .ic { color: var(--green-400); margin-bottom: 10px; }
.perk span { display: block; font-size: 13.5px; font-weight: 600; color: #d7dee8; }

.form-card {
  background: var(--navy-800);
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  padding: 30px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; }
.field label { display: none; }
.field input, .field select, .field textarea {
  background: var(--navy-700);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14.5px;
  font-family: inherit;
  width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: #90a0b4; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%2390a0b4' stroke-width='2' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green-400);
  box-shadow: 0 0 0 3px rgba(108,194,111,0.18);
}
.field textarea { resize: vertical; min-height: 96px; }
.form-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #93a0b1;
  margin-top: 14px;
}
.form-note .ic { color: var(--green-400); }
.form-status { font-size: 14px; margin-top: 14px; min-height: 20px; }
.form-status.ok { color: #6cc26f; }
.form-status.err { color: #f2685c; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 0.65fr 1.35fr; gap: 24px; margin-bottom: 56px; }
.info-cards { display: flex; flex-direction: column; gap: 18px; }
.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.info-card .ic {
  width: 44px; height: 44px; flex: none;
  border-radius: 10px;
  background: #eaf6ec;
  color: var(--green-500);
  display: flex; align-items: center; justify-content: center;
}
.info-card h4 { margin: 0 0 4px; font-family: var(--font-body); font-size: 15.5px; font-weight: 700; color: var(--ink-900); }
.info-card p { margin: 0; font-size: 14.5px; }
.info-card a { color: var(--ink-700); }
.info-card a:hover { color: var(--blue-600); }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 340px;
  background: var(--paper-100);
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

.message-card {
  background: var(--paper-50);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 34px;
}
.message-grid { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: 40px; }
.message-grid .field input, .message-grid .field textarea, .message-grid .field select {
  background: #fff;
  color: var(--ink-900);
  border: 1px solid #d7dce2;
}
.message-grid .field input::placeholder, .message-grid .field textarea::placeholder { color: #93a0b1; }
.message-grid .form-note { color: var(--ink-500); }
.message-grid .btn-gradient { width: auto; padding: 14px 30px; }

/* Footer */
.site-footer {
  background: var(--navy-950);
  padding: 26px 0;
  border-top: 1px solid var(--line-dark);
}
.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { height: 26px; }
.footer-brand .t1 { font-weight: 800; font-size: 17px; background: linear-gradient(90deg,#4d7fd9,#3fb0c7,#4fbf6a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-brand .t2 { font-size: 9px; letter-spacing: 0.28em; color: #8a97a8; }
.copyright { font-size: 13.5px; color: #8b97a7; }
.footer-links { display: flex; gap: 22px; font-size: 13.5px; color: #b7c0cc; }
.footer-links a:hover { color: #fff; }

/* Utility */
.icon { width: 22px; height: 22px; }
.center-text { text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .ingot-art { order: -1; max-width: 420px; margin: 0 auto; }
  .two-col { grid-template-columns: 1fr; }
  .trade-grid { grid-template-columns: 1fr; }
  .badge-grid { grid-template-columns: repeat(2, 1fr); }
  .focus-grid, .card-grid-3 { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .rfq { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .message-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-nav { position: fixed; top: 78px; left: 0; right: 0; background: var(--navy-900); flex-direction: column; align-items: flex-start; padding: 18px 24px 26px; gap: 4px; border-bottom: 1px solid var(--line-dark); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease; }
  .main-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .main-nav a { width: 100%; padding: 12px 0; }
  .main-nav a.active::after { display: none; }
  .has-dropdown { width: 100%; }
  .dropdown-menu { position: static; transform: none; opacity: 1; visibility: visible; display: none; box-shadow: none; border: none; background: transparent; padding: 0 0 0 12px; }
  .has-dropdown.open .dropdown-menu { display: block; }
  .nav-toggle { display: block; }
  .header-actions .btn-primary span.btn-label { display: none; }
  .hero-copy h1 { font-size: 32px; }
  .section { padding: 56px 0; }
  .section-head h2 { font-size: 27px; }
  .form-row { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .rfq-perks { flex-wrap: wrap; gap: 20px; }
}

@media (max-width: 480px) {
  .badge-grid { grid-template-columns: 1fr 1fr; }
  .ticker .wrap { gap: 14px; }
}
