/* ========== RESET & BASE ========== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg-main: #ffffff;
  --bg-alt: #f5f5f8;
  --bg-card: #ffffff;

  --accent-rose: #8b1f2f;      /* main rose red */
  --accent-rose-soft: #fbecef;
  --accent-rose-dark: #5c101d;

  --text-main: #17171c;
  --text-muted: #72727f;
  --border-subtle: #e4e4ee;

  --radius-lg: 18px;
  --radius-md: 12px;

  --shadow-soft: 0 10px 30px rgba(15, 15, 30, 0.08);
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

/* Simple container */

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ========== TOP SPOT BAR ========== */

.spot-bar {
  background: #fafafa;
  border-bottom: 1px solid #e6e6ee;
  color: #262631;
  font-size: 13px;
}

.spot-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
}

.spot-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.spot-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e2e2ec;
  box-shadow: 0 4px 14px rgba(12, 12, 35, 0.04);
}

.spot-item[data-metal="gold"] {
  border-color: #f2c24b;
}

.spot-item[data-metal="silver"] {
  border-color: #c0c6d6;
}

.spot-item[data-metal="platinum"] {
  border-color: #a3c4f5;
}

.spot-label {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--accent-rose-dark);
}

.spot-price {
  font-weight: 600;
}

.spot-change,
.spot-change-pct {
  font-size: 11px;
}

.spot-change.up,
.spot-change-pct.up {
  color: #118a37;
}

.spot-change.down,
.spot-change-pct.down {
  color: #c62828;
}

.spot-source {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ========== UTILITY BAR ========== */

.utility-bar {
  background: #ffffff;
  border-bottom: 1px solid #ebebf2;
  color: var(--text-muted);
  font-size: 13px;
}

.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
}

.utility-left a {
  color: var(--accent-rose-dark);
  text-decoration: none;
}

.utility-left a:hover {
  text-decoration: underline;
}

.utility-label {
  font-weight: 600;
  margin-right: 4px;
}

.utility-right {
  text-align: right;
}

.divider {
  opacity: 0.5;
  margin: 0 6px;
}

/* ========== HEADER / NAV ========== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #ebebf2;
  box-shadow: 0 6px 20px rgba(15, 15, 35, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.logo-img {
  height: 60px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-weight: 650;
  letter-spacing: 0.02em;
  font-size: 18px;
}

.logo-tagline {
  font-size: 11px;
  color: var(--text-muted);
}

/* Nav */

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.nav-links a:hover {
  color: var(--accent-rose-dark);
  border-color: var(--accent-rose);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #d0d0de;
  color: var(--text-main);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 18px;
  cursor: pointer;
}

/* ========== HERO ========== */

.hero {
  padding: 40px 0 32px;
  background: var(--bg-main);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.3fr);
  gap: 32px;
  align-items: center;
}

.hero-text h1 {
  font-size: 34px;
  margin: 0 0 10px;
}

.hero-text h1 span {
  color: var(--accent-rose-dark);
}

.hero-lead {
  margin: 0 0 18px;
  color: var(--text-muted);
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    transform 0.12s ease, box-shadow 0.12s ease;
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent-rose), var(--accent-rose-dark));
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 10px 26px rgba(139, 31, 47, 0.3);
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(139, 31, 47, 0.35);
}

.secondary-btn {
  background: #ffffff;
  color: var(--accent-rose-dark);
  border-color: #d7d7e5;
}

.secondary-btn:hover {
  border-color: var(--accent-rose);
}

.hero-note {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 480px;
}

/* Hero card */

.hero-card {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 20px 20px 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
}

.hero-card h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.hero-card ul {
  margin: 0 0 14px;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 14px;
}

.hero-card-note {
  font-size: 12px;
  color: var(--text-muted);
}

/* ========== CATEGORY STRIP ========== */

.category-strip {
  background: var(--bg-alt);
  border-top: 1px solid #e7e7f0;
  border-bottom: 1px solid #e7e7f0;
  padding: 24px 0 30px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.category-card {
  padding: 18px 18px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.category-card h3 {
  margin: 0 0 8px;
}

.category-card p {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.category-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ========== GENERIC SECTION STYLES ========== */

.section {
  padding: 34px 0 30px;
  background: var(--bg-main);
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  margin-bottom: 20px;
}

.section-header h2 {
  margin: 0 0 6px;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* ========== POSTS / UPDATES ========== */

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.post-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px 16px 14px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.post-tag {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #e1e1ef;
  font-size: 11px;
}

.post-tag-green {
  border-color: #91d5a6;
  color: #1f7a3b;
}

.post-tag-gold {
  border-color: #f6cf65;
  color: #8b6b16;
}

.post-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.post-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.how-to-add-posts {
  font-size: 13px;
  color: var(--text-muted);
}

.how-to-add-posts h3 {
  font-size: 14px;
  margin-bottom: 6px;
}

/* ========== CONTACT SECTION ========== */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.contact-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px 16px 14px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  font-size: 14px;
}

.contact-card h3 {
  margin: 0 0 8px;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  margin-bottom: 6px;
}

.contact-list a {
  color: var(--accent-rose-dark);
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

/* ========== FOOTER ========== */

.site-footer {
  border-top: 1px solid #e3e3ee;
  background: #fafafa;
}

.footer-inner {
  padding: 12px 0 16px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.footer-small {
  margin-top: 4px;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    order: -1;
  }

  .category-grid,
  .posts-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .utility-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .spot-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .utility-inner {
    align-items: flex-start;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    inset: 100% 0 auto 0;
    background: #ffffff;
    flex-direction: column;
    padding: 8px 16px 12px;
    border-bottom: 1px solid #e6e6f0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 0.18s ease, opacity 0.18s ease,
      transform 0.18s ease;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 8px 0;
  }

  .nav-links.nav-open {
    max-height: 260px;
    opacity: 1;
    transform: translateY(0);
  }

  .hero {
    padding-top: 26px;
  }

  .category-grid,
  .posts-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 28px;
  }

  .spot-items {
    width: 100%;
  }

  .spot-item {
    width: 100%;
    justify-content: space-between;
  }
}
