/* ================================================================
   GODAVARI JEWELLERS — PIXEL-PERFECT STYLESHEET v4
   Matched EXACTLY to Figma design PNG screenshots
   ================================================================ */

:root {
  --gold: #E5B842;
  --gold-dark: #D4A63E;
  --gold-light: #FFF8E1;
  --gold-bg: #FFF8E1;
  --gold-border: #E5B842;
  --green: #21A675;
  /* Adjusted to match screenshot's vivid green */
  --red: #FF4D4D;
  /* Adjusted to match screenshot's vivid red */
  --text-primary: #1A1A1A;
  --text-secondary: #333333;
  --text-hint: #888888;
  --border: #E8E8E8;
  --border-light: #F0F0F0;
  --white: #FFFFFF;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w: 1200px;
  --radius: 6px;
  --radius-pill: 4px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.5;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font);
}

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

/* ================================================================
   1. HEADER
   ================================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--gold);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 64px;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-placeholder {
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-gj {
  width: 44px;
  height: 44px;
  background: var(--gold);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}

.logo-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.15;
}

.logo-sub {
  font-size: 10px;
  font-weight: 700;
  color: #555;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.logo-img {
  height: 48px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
  margin-right: 24px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color .2s;
}

.nav-link:hover {
  color: var(--gold-dark);
}

/* Rounded square phone button */
.phone-btn {
  width: 40px;
  height: 40px;
  background: var(--gold);
  color: #000;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s;
}

.phone-btn:hover {
  background: var(--gold-dark);
}

.phone-btn svg {
  width: 20px;
  height: 20px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 24px;
  flex-shrink: 0;
  margin-left: 12px;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}

/* ================================================================
   2. MARQUEE
   ================================================================ */
.marquee-bar {
  background: #D6A848;
  overflow: hidden;
  padding: 10px 0;
  width: 100%;
  box-sizing: border-box;
  position: sticky;
  top: 66px;
  z-index: 99;
}

/* Container with fixed height so the bar doesn't collapse */
.marquee-inner {
  position: relative;
  height: 24px;
  /* matches one line of 15px/600 text */
  overflow: hidden;
}

/* Each span is absolutely positioned; JS moves them independently */
.marquee-item {
  position: absolute;
  top: 50%;
  left: 0;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
  color: #111;
  transform: translateY(-50%);
  /* vertical centre — JS only sets translateX */
  will-change: transform;
}

@keyframes marquee-scroll {
  /* kept so no old references break */
}

/* ================================================================
   3. PRICE TILES
   ================================================================ */
.tiles-section {
  padding: 24px 0 16px;
  background: var(--white);
}

.tiles-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tile {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  text-align: center;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08); /* 3D effect */
}

.tile__label {
  background: var(--gold);
  padding: 8px 0;
  font-size: 14px;
  font-weight: 700;
  color: #000;
}

.tile__price {
  padding: 16px 8px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.tile__sym {
  font-size: 18px;
  font-weight: 700;
}

.tile__val {
  font-size: 24px;
  font-weight: 700;
}

.tile--gold .tile__sym,
.tile--gold .tile__val {
  color: var(--text-primary);
}

.tile--silver .tile__sym,
.tile--silver .tile__val {
  color: var(--text-primary);
}

.tile--inr .tile__sym,
.tile--inr .tile__val {
  color: var(--text-primary);
}

@keyframes flash-up {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0.4
  }
}

@keyframes flash-down {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0.4
  }
}

.flash-up {
  animation: flash-up .5s ease;
}

.flash-down {
  animation: flash-down .5s ease;
}

/* ================================================================
   4. RATE TABS
   ================================================================ */
.rates-section {
  padding: 8px 0 40px;
  background: var(--white);
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.tab {
  padding: 12px 8px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  background: #FCFAEF;
  border: 1px solid #EBE4D5;
  border-radius: var(--radius);
  text-align: center;
  transition: background .2s;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08); /* 3D effect */
}

.tab:hover {
  background: var(--gold-light);
}

.tab--active {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
  font-weight: 700;
}

.tab-panel {
  display: none;
}

.tab-panel--active {
  display: block;
}

/* ================================================================
   COINS PROMO
   ================================================================ */
.coins-promo-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
  margin-top: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-bottom: 2px solid var(--gold);
}

.coins-promo-title {
  color: var(--gold);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.coins-promo-desc {
  color: var(--text-light);
  font-size: 15px;
  margin-bottom: 24px;
  line-height: 1.5;
}

.coins-promo-btn {
  display: inline-block;
  background: var(--gold);
  color: #000;
  padding: 12px 24px;
  font-weight: 700;
  border-radius: 4px;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 14px;
  transition: all 0.3s ease;
}

.coins-promo-btn:hover {
  background: #C49A40;
  transform: translateY(-2px);
}

/* ================================================================
   RATE TABLE
   ================================================================ */
.rate-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px;
  /* Gap between cards */
  /* removed outer border and overflow hidden to allow individual card shadows/borders */
}

.rate-table thead tr {
  background: var(--gold-light);
}

.rate-table thead th {
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}

.rate-table thead th:first-child {
  border-left: 1px solid var(--gold);
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}

.rate-table thead th:last-child {
  border-right: 1px solid var(--gold);
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}

.rate-table th {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #000;
  text-align: center;
  /* removed bottom border here since it's applied per cell now */
}

.rate-table th:first-child {
  text-align: left;
}

.th-num {
  text-align: center;
  min-width: 150px;
  white-space: nowrap;
}

.rate-table tbody tr {
  position: relative;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

#panel-gold .rate-table tbody tr {
  background: linear-gradient(to bottom, #ffffff, #fff9e6);
}

#panel-silver .rate-table tbody tr {
  background: linear-gradient(to bottom, #ffffff, #f2f2f2);
}

/* Add borders to tbody cells to simulate a card border */
.rate-table tbody td {
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--gold);
  /* Gold bottom line */
}

.rate-table tbody td:first-child {
  border-left: 1px solid var(--border-light);
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}

.rate-table tbody td:last-child {
  border-right: 1px solid var(--border-light);
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}

/* Column vertical separator lines */
.rate-table th:not(:first-child),
.rate-table td:not(:first-child) {
  border-left: 1px solid #EBE4D5;
}

/* rate-table tbody tr:last-child rule removed as it's no longer needed */

.rate-table td {
  padding: 14px 16px;
  font-size: 14px;
  vertical-align: middle;
}

/* Gold left accent bar for live-rate rows */
.live-row td:first-child {
  position: relative;
  padding-left: 20px;
}

.live-row td:first-child::before {
  content: '';
  position: absolute;
  left: 10px;
  /* moved slightly inward to accommodate the cell border */
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 2px;
  background-color: var(--green);
  /* Default green for live rows, though overridden below */
}

/* Silver accent bar for silver panel rows */
#silver-rate-body .live-row td:first-child::before,
#silver-costing-body .live-row td:first-child::before {
  background-color: #A0A0A0;
}

.td-product {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 13px;
  word-break: break-word; /* Ensure long words wrap instead of pushing layout */
  white-space: normal;
}

.td-time {
  display: block;
  font-size: 10px;
  color: var(--text-hint);
  font-weight: 400;
  margin-top: 4px;
}

/* Numbers are centered */
.td-buy {
  text-align: center;
  font-weight: 600;
  font-size: 17px;
  color: var(--green);
  white-space: nowrap;
}

.td-sell {
  text-align: center;
  font-weight: 600;
  font-size: 17px;
  color: var(--red);
  white-space: nowrap;
}

.td-bid {
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  color: #111;
}

.td-ask {
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  color: #111;
}

.td-hl {
  display: block;
  font-size: 11px;
  font-weight: 500;
  margin-top: 4px;
}

.td-high {
  color: var(--green);
}

.td-low {
  color: var(--red);
}

.costing-table {
  margin-top: 24px;
}

.costing-table thead th {
  /* Costing table uses the same styling as the rest now */
}

.loading-cell {
  text-align: center;
  padding: 28px;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--gold-light);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ================================================================
   5. ABOUT SECTION
   ================================================================ */
.about-section {
  padding: 56px 0;
  background: var(--white);
  border-top: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

/* Gold gradient blob on the right side behind the product photo */
.about-section::after {
  content: '';
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(229, 184, 66, 0.25) 0%, rgba(229, 184, 66, 0.05) 60%, transparent 80%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.about-heading {
  font-size: 28px;
  font-weight: 700;
  color: #222;
  margin-bottom: 16px;
}

.about-desc {
  font-size: 16px;
  color: #555;
  margin-bottom: 24px;
  line-height: 1.6;
}

.about-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.about-list li {
  font-size: 15px;
  color: #333;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* SVG icon bullet */
.bullet-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--gold);
}

.btn-gold {
  display: inline-block;
  padding: 12px 32px;
  background: #DCA941;
  color: #000;
  font-size: 15px;
  font-weight: 700;
  border-radius: 6px;
  transition: background .2s, transform .1s;
}

.btn-gold:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
}

.about-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #FFF8E1 0%, #F5E6B0 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--gold-dark);
  font-size: 14px;
  font-weight: 600;
  border: 2px dashed var(--gold);
}

/* ================================================================
   6. GET IN TOUCH — Pale yellow cards
   ================================================================ */
.contact-section {
  padding: 56px 0;
  background: var(--white);
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: #222;
  margin-bottom: 32px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  grid-template-rows: auto auto;
}

.info-card {
  border: 1px solid #DDD0A8;
  border-radius: var(--radius);
  padding: 24px;
  background: #F5EDD5;
  /* slightly darker warm yellow */
}

#card-booking {
  grid-column: 1;
  grid-row: 1;
}

#card-hours {
  grid-column: 1;
  grid-row: 2;
}

.bank-card {
  grid-column: 2;
  grid-row: 1 / 3;
}

.card-heading {
  font-size: 16px;
  font-weight: 700;
  color: #222;
  margin-bottom: 20px;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #333;
}

/* Golden square icon badges with white icon inside */
.info-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  background: #DCA941;
  color: var(--white);
  border-radius: 4px;
  padding: 5px;
}

.info-link {
  color: #333;
}

.info-link:hover {
  text-decoration: underline;
  color: var(--gold-dark);
}

.bank-block {
  margin-bottom: 12px;
}

.bank-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bank-list li {
  font-size: 14px;
  color: #333;
  line-height: 1.5;
}

.bank-sep {
  height: 1px;
  background: #EBE4D5;
  margin: 16px 0;
}

.hours-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hours-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #333;
}

/* ================================================================
   7. DOWNLOAD APP
   ================================================================ */
.download-section {
  background: #CBA240;
  padding: 30px 0;
  position: relative;
  overflow: visible;
}

/* Soft gold gradient that bleeds upward above the download section */
.download-section::before {
  content: '';
  position: absolute;
  left: -80px;
  top: -100px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(203, 162, 64, 0.20) 0%, rgba(203, 162, 64, 0.06) 60%, transparent 80%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.download-eyebrow {
  font-size: 15px;
  font-weight: 500;
  color: #444;
  margin-bottom: 12px;
}

.download-heading {
  font-size: 36px;
  font-weight: 700;
  color: #111;
  line-height: 1.25;
  margin-bottom: 36px;
}

.store-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #FDF4D9;
  /* Creamy off-white from screenshot */
  color: #111;
  padding: 14px 28px;
  border-radius: 6px;
  transition: transform .15s;
}

.store-btn:hover {
  background: #F6E6B8;
  transform: translateY(-1px);
}

.store-text {
  display: flex;
  flex-direction: column;
}

.store-sub {
  font-size: 11px;
  color: #444;
  line-height: 1.2;
}

.store-name {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
}

.phones-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.phones-wrap img {
  width: 110%;
  height: auto;
  transform: translateY(30px);
  /* Adjust this value to move it up (negative) or down (positive) */
  position: relative;
  z-index: 2;
}

/* ================================================================
   8. FOOTER
   ================================================================ */
.footer {
  background: var(--white);
  padding: 48px 20px 32px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.social-btn {
  width: 40px;
  height: 40px;
  background: #DCA941;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  transition: transform .15s;
}

.social-btn svg {
  width: 18px;
  height: 18px;
}

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

.footer-copy {
  font-size: 14px;
  color: #555;
  margin-top: 8px;
}

/* ================================================================
   RESPONSIVE — TABLET
   ================================================================ */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-img-wrap {
    order: -1;
  }

  .download-grid {
    grid-template-columns: 1fr;
  }

  .phones-wrap {
    height: 260px;
    margin-top: 32px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  #card-booking,
  #card-hours,
  .bank-card {
    grid-column: 1;
    grid-row: auto;
  }
}

/* ================================================================
   RESPONSIVE — MOBILE
   ================================================================ */
@media (max-width: 540px) {
  .hamburger {
    display: flex;
    margin-left: auto;
  }

  .phone-btn {
    margin-left: auto;
    margin-right: 8px;
  }

  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    z-index: 99;
  }

  .nav.nav--open {
    display: flex;
  }

  .nav-link {
    padding: 14px 24px;
    border-bottom: 1px solid var(--border-light);
    width: 100%;
  }

  .tiles-row {
    gap: 8px;
  }

  .tile__val {
    font-size: 20px;
  }

  .tile__sym {
    font-size: 14px;
  }

  .tile__label {
    font-size: 12px;
    padding: 6px 0;
  }

  .tabs {
    gap: 8px;
  }

  .tab {
    font-size: 12px;
    padding: 10px 4px;
  }

  .about-heading,
  .section-title {
    font-size: 24px;
  }

  .download-heading {
    font-size: 24px;
  }

  .phone-mock {
    width: 120px;
    height: 230px;
  }

  .img-placeholder {
    aspect-ratio: 16/10;
  }
}
