/* ═══════════════════════════════════════════════════════════════════
   Upper Harbour · Shared Design System
   Include on every page: <link rel="stylesheet" href="/assets/site.css">
   ═══════════════════════════════════════════════════════════════════ */

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

/* ── Tokens ─────────────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg: #06090E;
  --surface: #0C1219;
  --surface-2: #111A24;

  /* Accents */
  --teal: #3CB8B0;
  --teal-deep: #2A8A84;
  --teal-dim: rgba(60,184,176,0.08);
  --teal-deep-dim: rgba(42,138,132,0.08);
  --gold: #C9A84C;
  --gold-dim: rgba(201,168,76,0.08);
  --red: #E06050;
  --red-dim: rgba(224,96,80,0.08);

  /* Text */
  --ice: #EAF0F4;
  --slate: #8A9DB0;
  --muted: #566778;

  /* Borders */
  --border: rgba(234,240,244,0.06);
  --border-md: rgba(234,240,244,0.1);

  /* Typography */
  --display: 'Newsreader', Georgia, serif;
  --body: 'DM Sans', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', monospace;

  /* Legacy aliases (for pages still using old variable names) */
  --midnight: var(--bg);
  --navy: var(--surface);
  --serif: var(--display);
  --font: var(--body);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ice);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ────────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 52px; height: 66px;
  background: rgba(10,16,24,0.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.nav-upper { font-size: 17px; font-weight: 400; color: var(--slate); letter-spacing: -0.2px; font-family: var(--body); }
.nav-harbour { font-size: 17px; font-weight: 800; color: var(--ice); letter-spacing: -0.8px; margin-left: 4px; font-family: var(--body); }
.nav-links { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav-link { font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none; transition: color 0.2s; font-family: var(--body); }
.nav-link:hover { color: var(--ice); }
.nav-link.active { color: var(--teal); }
.nav-cta {
  font-size: 13px; font-weight: 800; color: var(--bg); background: var(--teal);
  padding: 11px 26px; border-radius: 5px; text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s; font-family: var(--body);
  box-shadow: 0 0 16px rgba(60,184,176,0.25), 0 1px 3px rgba(0,0,0,0.3);
  letter-spacing: 0.01em;
}
.nav-cta:hover { background: #47cec5; box-shadow: 0 0 24px rgba(60,184,176,0.35), 0 2px 6px rgba(0,0,0,0.3); }

/* Hamburger */
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-hamburger svg { display: block; }

/* Mobile menu */
.nav-mobile-menu {
  display: none; position: fixed; top: 66px; right: 0; bottom: 0; width: 280px; z-index: 101;
  background: var(--surface); border-left: 1px solid var(--border);
  padding: 32px 28px; flex-direction: column; gap: 8px; overflow-y: auto;
}
.nav-mobile-menu a {
  display: block; font-size: 15px; font-weight: 500; color: var(--slate); text-decoration: none;
  padding: 14px 0; border-bottom: 1px solid var(--border); transition: color 0.2s;
}
.nav-mobile-menu a:last-child { border-bottom: none; }
.nav-mobile-menu a:hover { color: var(--ice); }
.nav-mobile-menu .mobile-cta {
  display: block; margin-top: 16px; font-size: 14px; font-weight: 700;
  color: var(--bg); background: var(--teal); padding: 14px 24px;
  border-radius: 4px; text-align: center; text-decoration: none; border-bottom: none;
}
.nav-mobile-menu .mobile-cta:hover { background: #47cec5; color: var(--bg); }
.nav-mobile-open .nav-mobile-menu { display: flex; }

/* ── Footer ─────────────────────────────────────────────────────── */
footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 48px;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
}
.footer-logo { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.footer-desc { font-size: 13px; color: var(--muted); line-height: 1.7; max-width: 250px; }
.footer-col-title { font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; color: var(--slate); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--teal); }
.footer-bottom {
  max-width: 1120px; margin: 32px auto 0; padding: 20px 48px 0;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.footer-copy { font-size: 11px; color: var(--muted); }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 0 16px; }
  .nav-link { font-size: 11px; }
  .nav-cta { font-size: 11px; padding: 9px 18px; }
  .nav-links { gap: 14px; }
  .footer-inner { grid-template-columns: 1fr; padding: 0 20px; }
  .footer-bottom { padding: 20px 20px 0; flex-direction: column; }
}
@media (max-width: 540px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
}
@media (max-width: 480px) {
  .nav-upper, .nav-harbour { display: none; }
}

/* ── Common article styles ──────────────────────────────────────── */
.article-hero { padding: 140px 52px 32px; max-width: 820px; margin: 0 auto; }
.article-breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 24px; }
.article-breadcrumb a { color: var(--teal); text-decoration: none; }
.article-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.article-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-deep); background: var(--teal-deep-dim); border: 1px solid rgba(42,138,132,0.22); padding: 4px 10px; border-radius: 3px; }
.article-date { font-size: 12px; color: var(--muted); }
.article-h1 { font-family: var(--display); font-size: clamp(32px, 5vw, 48px); font-weight: 900; color: var(--ice); line-height: 1.1; letter-spacing: -0.5px; margin-bottom: 20px; }
.article-h1 em { font-style: italic; font-weight: 700; color: var(--teal-deep); }
.article-intro { font-size: 17px; color: var(--slate); line-height: 1.72; margin-bottom: 24px; max-width: 660px; }
.article-author { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.article-author a { color: var(--teal); text-decoration: none; }

.article-body { max-width: 820px; margin: 0 auto; padding: 0 52px 80px; }
.article-body h2 { font-family: var(--display); font-size: 28px; font-weight: 700; color: var(--ice); margin: 32px 0 16px; line-height: 1.2; }
.article-body p { font-size: 15px; color: var(--slate); line-height: 1.8; margin-bottom: 20px; }
.article-body strong { color: var(--ice); font-weight: 600; }
.article-body a { color: var(--teal); text-decoration: none; border-bottom: 1px solid rgba(60,184,176,0.3); }

/* ── Callout boxes ──────────────────────────────────────────────── */
.callout { background: var(--surface); border: 1px solid var(--border-md); border-left: 3px solid var(--teal-deep); border-radius: 0 6px 6px 0; padding: 24px 28px; margin: 32px 0; }
.callout-label { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-deep); margin-bottom: 8px; }
.callout p { font-size: 14px; color: var(--slate); line-height: 1.7; margin-bottom: 0; }
.callout a { color: var(--teal); text-decoration: none; border-bottom: 1px solid rgba(60,184,176,0.3); font-family: 'DM Sans', sans-serif; }
.callout a:hover { border-color: var(--teal); }
.callout-links { display: flex; gap: 20px; margin-top: 14px; flex-wrap: wrap; }
.callout-links a { font-size: 13px; font-weight: 600; color: var(--teal); text-decoration: none; border-bottom: 1px solid rgba(60,184,176,0.3); font-family: 'DM Sans', sans-serif; }

/* ── Data tables ────────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 13px; }
.data-table th { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); text-align: left; padding: 10px 12px; border-bottom: 2px solid var(--border-md); }
.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--slate); }
.data-table tr:hover td { background: rgba(60,184,176,0.03); }

/* ── Stat grid ──────────────────────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 32px 0; }
.stat-box { background: var(--surface); border: 1px solid var(--border-md); border-radius: 8px; padding: 24px; text-align: center; }
.stat-num { font-size: 36px; font-weight: 800; color: var(--teal-deep); line-height: 1; margin-bottom: 6px; }
.stat-num.gold { color: var(--gold); }
.stat-num.red { color: var(--red); }

/* ── FAQ section ────────────────────────────────────────────────── */
.faq-section { max-width: 820px; margin: 0 auto; padding: 0 52px 60px; }
.faq-section h2 { font-family: var(--display); font-size: 28px; font-weight: 700; color: var(--ice); margin: 0 0 24px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-size: 15px; font-weight: 700; color: var(--ice); margin-bottom: 8px; }
.faq-a { font-size: 14px; color: var(--slate); line-height: 1.75; }

/* ── CTA section ────────────────────────────────────────────────── */
.cta-section { background: var(--surface); border-top: 1px solid var(--border-md); padding: 64px 52px; text-align: center; }
.cta-section h2 { font-family: var(--display); font-size: 32px; font-weight: 700; color: var(--ice); margin-bottom: 12px; }
.cta-section p { font-size: 15px; color: var(--muted); margin-bottom: 28px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-btn { display: inline-block; font-size: 13px; font-weight: 800; color: var(--bg); background: var(--teal); padding: 16px 32px; border-radius: 4px; text-decoration: none; transition: background 0.2s, transform 0.15s; }
.cta-btn:hover { background: #47cec5; transform: translateY(-1px); }

@media (max-width: 768px) {
  .article-hero { padding: 100px 20px 40px; }
  .article-body { padding: 0 20px 60px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-section { padding: 0 20px 60px; }
  .cta-section { padding: 48px 20px; }
}
@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
}
