/* === Variables & Core === */
:root {
  --bg: #0b0f14;
  --panel: #121821;
  --text: #e7edf5;
  --muted: #a6b3c2;
  --brand: #d4af37;        /* Gold Brand Color */
  --brand-dim: #888;       /* Subtle Grey */
  --accent: #d4af37;       /* Unified Gold Accent */
  --ring: 0 0 0 4px rgba(212, 175, 55, 0.2);
}

* { box-sizing: border-box; }
html, body { height: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial;
  color: var(--text);
  background: 
    radial-gradient(1000px 500px at 0% 0%, rgba(212, 175, 55, 0.05), transparent 50%),
    var(--bg);
  line-height: 1.6;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* === Header & Navigation === */
.site-head {
  background: #0a0a0a;
  padding: 12px 0;
  border-bottom: 2px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center; /* Ensures brand and nav links are vertically centered */
}

/* Brand Logo & Text */
.brand-link {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.header-logo {
  height: 48px; /* Slightly increased for better visibility */
  width: auto;
  display: block;
  background: transparent;
  mix-blend-mode: lighten; /* Removes potential white-box artifacts from logo */
  transition: transform 0.3s ease;
}

.brand-link:hover .header-logo { transform: scale(1.05); }

.brand-text, .brand-text-wrapper {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.main-title, .brand-title {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.sub-title, .brand-tagline {
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 400;
}

/* Nav Links Alignment */
.links, .main-nav { 
  display: flex; 
  align-items: center; 
  gap: 1.2rem; 
}

.links a, .main-nav a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s;
}

.links a:hover, .links a.active { 
  color: var(--accent); 
  background: rgba(255,255,255,0.05); 
}

/* Refined Contact/CTA Button - Ghost Button Style */
.cta, .btn-contact, .cta-button {
  background: transparent !important;
  border: 1px solid var(--brand) !important;
  color: var(--brand) !important;
  padding: 10px 22px !important;
  border-radius: 6px;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease !important;
  display: inline-flex;
  align-items: center;
}

.cta:hover, .btn-contact:hover, .cta-button:hover { 
  background: var(--brand) !important; 
  color: #000 !important; 
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

/* === Hero & Content === */
.hero { padding: 80px 0 44px; }
h1 { font-size: clamp(28px, 4vw, 48px); line-height: 1.15; margin: 0.75rem 0; font-weight: 900; }
.lead { color: var(--muted); font-size: 1.2rem; max-width: 800px; }

/* === News & Grid === */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 25px;
  transition: border-color 0.3s;
}

.card:hover { border-color: var(--accent); }

/* === Form === */
.form label { display: block; margin-bottom: 15px; color: var(--text); }
.form input, .form textarea {
  width: 100%; padding: 12px; background: #000;
  border: 1px solid #333; border-radius: 6px; color: #fff; margin-top: 5px;
}
.form input:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }

/* === Footer === */
.site-foot { padding: 50px 0; text-align: center; color: var(--muted); font-size: 0.85rem; }

/* === Custom Ticker Styling === */
.gold-ticker-wrap {
    background: #050505;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding: 2px 0;
    overflow: hidden;
    box-shadow: inset 0 -10px 20px rgba(0,0,0,0.5);
}

.tradingview-widget-container {
    filter: sepia(20%) saturate(150%) hue-rotate(-10deg);
}

.ticker-bar { min-height: 40px; }
.tradingview-widget-container__widget { margin-top: -1px; }

/* === Mobile Responsiveness & Section Spacing === */
section[id] { scroll-margin-top: 100px; }

@media (max-width: 900px) {
  .nav-wrapper {
    flex-direction: column;
    gap: 15px;
    padding: 15px 10px;
  }

  .links, .main-nav {
    gap: 0.75rem;
    width: 100%;
    justify-content: center;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .links::-webkit-scrollbar { display: none; } /* Hide mobile scrollbar */
}

@media (max-width: 640px) {
  .g2, .g3 { grid-template-columns: 1fr; }
  .brand-text, .brand-text-wrapper { display: none; } /* Clearer UI for tiny screens */
  
  .header-logo { height: 40px; }

  /* News Search Stack */
  .search-form { flex-direction: column; gap: 8px; }
  .search-input, .search-form .btn { width: 100%; justify-content: center; }
  
  .cta, .cta-button {
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
  }
}