/* ===== TradeAzimuth — Compass/Navigation Theme ===== */
/* Colors: Dark #0a0808, Primary #d97706, Secondary #166534, Accent #f5f5f4 */

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

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark: #0a0808;
  --dark-light: #151212;
  --dark-card: #1a1616;
  --primary: #d97706;
  --primary-hover: #f59e0b;
  --primary-dark: #b45309;
  --secondary: #166534;
  --secondary-light: #22c55e;
  --accent: #f5f5f4;
  --text: #d4d0cc;
  --text-muted: #8a8580;
  --border: #2a2525;
  --font-heading: 'Lexend', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --max-width: 1200px;
  --radius: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--accent);
  line-height: 1.25;
  font-weight: 700;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-hover); }

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

ul, ol { padding-left: 1.4em; }

/* ---------- Utility ---------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary-light); }
.text-accent { color: var(--accent); }
.text-center { text-align: center; }

/* ---------- Compass Rose Decorative Element ---------- */
.compass-rose {
  position: relative;
  width: 60px;
  height: 60px;
  margin: 0 auto 24px;
}

.compass-rose::before,
.compass-rose::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
}

.compass-rose::before {
  width: 48px;
  height: 48px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.compass-rose::after {
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 22px solid var(--primary);
  transform: translate(-50%, -80%);
}

.compass-rose-sm {
  width: 32px;
  height: 32px;
  display: inline-block;
  position: relative;
}

.compass-rose-sm::before {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.compass-rose-sm::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 14px solid var(--primary);
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
}

/* ---------- Directional Divider ---------- */
.divider-compass {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 40px 0;
}

.divider-compass::before,
.divider-compass::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.divider-compass span {
  font-family: var(--font-heading);
  color: var(--primary);
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

/* ---------- Cardinal Point Markers ---------- */
.cardinal-marker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

.cardinal-marker::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--primary);
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 8, 8, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}

.site-header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
}

.logo-icon {
  width: 36px;
  height: 36px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 14px solid var(--primary);
  position: absolute;
  top: 4px;
}

.logo span { color: var(--primary); }

.nav-menu { display: flex; align-items: center; gap: 28px; list-style: none; padding: 0; }

.nav-menu a {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 4px;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width .3s;
}

.nav-menu a:hover { color: var(--primary); }
.nav-menu a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--accent);
  transition: .3s;
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
  overflow: hidden;
  background: radial-gradient(ellipse at 30% 20%, rgba(217,119,6,0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(22,101,52,0.06) 0%, transparent 50%),
              var(--dark);
}

.hero-bg-compass {
  position: absolute;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(217,119,6,0.07);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-bg-compass::before {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  border: 1px solid rgba(217,119,6,0.05);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-bg-compass::after {
  content: '';
  position: absolute;
  width: 650px;
  height: 650px;
  border: 1px solid rgba(217,119,6,0.04);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Directional Lines */
.hero-direction-n,
.hero-direction-s,
.hero-direction-e,
.hero-direction-w {
  position: absolute;
  background: rgba(217,119,6,0.08);
  pointer-events: none;
}

.hero-direction-n, .hero-direction-s {
  width: 1px;
  height: 80px;
  left: 50%;
  transform: translateX(-50%);
}

.hero-direction-n { top: 60px; }
.hero-direction-s { bottom: 20px; }

.hero-direction-e, .hero-direction-w {
  height: 1px;
  width: 80px;
  top: 50%;
  transform: translateY(-50%);
}

.hero-direction-e { right: 40px; }
.hero-direction-w { left: 40px; }

.hero-content { position: relative; z-index: 2; max-width: 780px; }

.hero-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 20px;
  padding: 8px 20px;
  border: 1px solid rgba(217,119,6,0.3);
  border-radius: 30px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero h1 .highlight { color: var(--primary); }

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all .25s;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 20px rgba(217,119,6,0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover), var(--primary));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(217,119,6,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-arrow::after {
  content: ' -->';
  font-family: monospace;
  transition: transform .2s;
}

/* ---------- Cards ---------- */
.card {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform .3s, border-color .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity .3s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(217,119,6,0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.card:hover::before { opacity: 1; }

.card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.card p { color: var(--text-muted); font-size: 15px; }

/* ---------- Section Styles ---------- */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Grid Layouts ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ---------- Feature Cards with Compass Motif ---------- */
.feature-card {
  text-align: center;
  padding: 40px 28px;
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary);
  position: relative;
}

.feature-icon::after {
  content: '';
  position: absolute;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(217,119,6,0.15);
  border-radius: 50%;
}

/* ---------- Articles / Blog Cards ---------- */
.article-card {
  display: flex;
  flex-direction: column;
}

.article-card .card-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.article-card h3 { margin-bottom: 12px; }

.article-card h3 a { color: var(--accent); }
.article-card h3 a:hover { color: var(--primary); }

.article-card .card-excerpt {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 20px;
  flex: 1;
}

.article-card .read-more {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-card .read-more::after {
  content: '-->';
  font-family: monospace;
  transition: transform .2s;
}

/* ---------- Broker Table ---------- */
.broker-table-wrap {
  overflow-x: auto;
  margin: 32px 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.broker-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.broker-table thead {
  background: var(--dark-card);
}

.broker-table th {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  padding: 16px 20px;
  text-align: left;
  white-space: nowrap;
}

.broker-table td {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  color: var(--text);
}

.broker-table tbody tr {
  transition: background .2s;
}

.broker-table tbody tr:hover {
  background: rgba(217,119,6,0.04);
}

.broker-table .highlight-row {
  background: rgba(217,119,6,0.06);
  border-left: 3px solid var(--primary);
}

.rating-stars { color: var(--primary); letter-spacing: 2px; }

/* ---------- Pros/Cons ---------- */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}

.pros-list, .cons-list {
  background: var(--dark-card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
}

.pros-list h4, .cons-list h4 {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.pros-list h4 { color: var(--secondary-light); }
.cons-list h4 { color: #ef4444; }

.pros-list li, .cons-list li {
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text);
}

.pros-list li::marker { color: var(--secondary-light); }
.cons-list li::marker { color: #ef4444; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, rgba(217,119,6,0.1) 0%, rgba(22,101,52,0.08) 100%);
  border: 1px solid rgba(217,119,6,0.2);
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(217,119,6,0.06);
  border-radius: 50%;
  top: -60px;
  right: -40px;
}

.cta-banner h3 {
  font-size: 28px;
  margin-bottom: 12px;
}

.cta-banner p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 16px;
}

/* ---------- Risk Disclaimer ---------- */
.risk-disclaimer {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 32px 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.risk-disclaimer strong {
  color: #ef4444;
}

/* ---------- Info Box ---------- */
.info-box {
  background: rgba(217,119,6,0.06);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 15px;
}

.info-box strong { color: var(--primary); }

/* ---------- Article Layout ---------- */
.article-hero {
  padding: 140px 20px 60px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(217,119,6,0.06) 0%, transparent 60%),
              var(--dark);
  border-bottom: 1px solid var(--border);
}

.article-hero .cardinal-marker { justify-content: center; }

.article-hero h1 {
  font-size: clamp(30px, 4vw, 48px);
  max-width: 800px;
  margin: 0 auto 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 16px;
}

.article-meta span { display: inline-flex; align-items: center; gap: 6px; }

.article-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 20px 80px;
}

.article-body h2 {
  font-size: 28px;
  margin-top: 48px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.article-body h3 {
  font-size: 22px;
  margin-top: 36px;
  margin-bottom: 14px;
}

.article-body p { margin-bottom: 18px; }

.article-body ul, .article-body ol {
  margin-bottom: 18px;
}

.article-body li { margin-bottom: 8px; }

/* ---------- TOC ---------- */
.toc {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 32px 0;
}

.toc h4 {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}

.toc ol { padding-left: 1.2em; }

.toc li {
  margin-bottom: 8px;
  font-size: 14px;
}

.toc a { color: var(--text); }
.toc a:hover { color: var(--primary); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark-light);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand .logo { margin-bottom: 16px; }

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; padding: 0; }

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-disclaimer {
  background: rgba(10, 8, 8, 0.5);
  border-top: 1px solid var(--border);
  padding: 20px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: center;
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all .3s;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(217,119,6,0.3);
}

.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); background: var(--primary-hover); }

/* ---------- Cookie Banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark-card);
  border-top: 1px solid var(--border);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 9999;
  font-size: 14px;
  color: var(--text-muted);
  transform: translateY(100%);
  transition: transform .4s;
}

.cookie-banner.show { transform: translateY(0); }

.cookie-banner button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 968px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-bg-compass { width: 350px; height: 350px; }
  .hero-direction-e, .hero-direction-w { display: none; }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--dark-light);
    flex-direction: column;
    padding: 80px 32px 40px;
    gap: 20px;
    transition: right .35s;
    border-left: 1px solid var(--border);
  }

  .nav-menu.active { right: 0; }

  .nav-toggle { display: flex; z-index: 1001; }

  .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .hero { min-height: 80vh; padding: 100px 20px 60px; }
  .hero p { font-size: 16px; }

  .section { padding: 60px 0; }

  .cta-banner { padding: 32px 20px; }
  .cta-banner h3 { font-size: 22px; }

  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .article-hero h1 { font-size: 26px; }
  .article-meta { flex-direction: column; gap: 8px; }
  .btn { padding: 12px 24px; font-size: 14px; }
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s, transform .6s;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Compass needle animation */
@keyframes rotate-slow {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.compass-animated::before {
  animation: rotate-slow 20s linear infinite;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
}

.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs span { margin: 0 6px; color: var(--border); }

/* ---------- Number Badges ---------- */
.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  margin-right: 12px;
}
