/* ═══════════════════════════════════════════════════════
   CIN — Shared Navigation + Mobile Responsive
   /assets/css/cin-nav.css
   All pages link to this ONE file.
   ═══════════════════════════════════════════════════════ */

/* ── NAV (Desktop default) ── */
.nav {
  position: fixed !important; top: 0; left: 0; right: 0; z-index: 9000 !important;
  background: rgba(15,23,42,0.95);
  /* backdrop-filter removed — causes click-through bug in Chrome */
  border-bottom: 1px solid rgba(200,151,42,0.12);
  overflow: visible; will-change: transform;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 68px; display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: #fff;
}
.nav-brand img { height: 42px; width: auto; }
.nav-brand-text {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 22px; letter-spacing: -0.02em;
}
.nav-links {
  display: flex; align-items: center; gap: 28px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a, .nav-links .nav-link {
  color: #94a3b8; text-decoration: none;
  font-size: 14px; font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 10px;
  font-size: 15px; font-weight: 600;
  text-decoration: none; transition: all 0.25s;
  border: none; cursor: pointer;
  font-family: 'DM Sans', system-ui, sans-serif;
}
.btn-gold { background: #c8972a; color: #fff !important; }
.btn-gold:hover { background: #dab662; transform: translateY(-1px); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.25); }
.btn-outline:hover { border-color: #c8972a; color: #c8972a; }
.btn-outline-gold { background: transparent; border: 1.5px solid #c8972a; color: #c8972a; }
.btn-outline-gold:hover { background: #c8972a; color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 13px; border-radius: 8px; }
.nav-btn {
  background: #c8972a !important; color: #fff !important;
  padding: 9px 18px !important; border-radius: 8px !important;
  font-size: 13px !important; font-weight: 600 !important;
}

/* ── Hamburger (hidden on desktop) ── */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none;
  cursor: pointer; padding: 8px; z-index: 9002;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: #fff; border-radius: 2px; transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Footer ── */
.footer { background: #0f172a; color: #64748b; padding: 48px 24px; }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: flex-start; flex-wrap: wrap; gap: 32px;
}
.footer a { color: #94a3b8; text-decoration: none; }
.footer a:hover { color: #c8972a; }


/* ═══════════════════════════════════════════════════════
   MOBILE — 768px and below
   ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Nav */
  .hamburger { display: flex; }
  .nav-inner { height: 60px; }
  .nav-brand img { height: 36px; }
  .nav-brand-text { font-size: 17px; }
  .nav-links {
    display: none !important;
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    right: 0 !important;
    height: calc(100vh - 60px) !important;
    height: calc(100dvh - 60px) !important;
    background: #0f172a !important;
    flex-direction: column;
    padding: 32px 24px;
    gap: 0;
    z-index: 9001 !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links.open { display: flex !important; }
  .nav-links a, .nav-links .nav-link {
    font-size: 18px; padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: block;
  }
  .nav-links .btn, .nav-links .nav-btn {
    margin-top: 16px; text-align: center;
    justify-content: center; display: block;
    padding: 14px 28px; font-size: 16px;
    border-bottom: none;
  }

  /* Hero */
  .hero { padding: 100px 20px 60px; }
  .hero h1 { font-size: 26px; }
  .hero p, .hero-sub { font-size: 15px; }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .hero-stat-num { font-size: 22px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
  .brief-preview { display: none; }

  /* Sections */
  .section { padding: 48px 20px; }
  .section-title { font-size: 22px; }
  .section-sub { font-size: 14px; margin-bottom: 28px; }

  /* Grids → single column */
  .layers-grid { grid-template-columns: 1fr !important; gap: 16px; }
  .diff-grid { grid-template-columns: 1fr !important; gap: 16px; }
  .insights-grid { grid-template-columns: 1fr !important; gap: 16px; }
  .how-grid { grid-template-columns: 1fr !important; gap: 16px; }
  .articles-grid { grid-template-columns: 1fr !important; gap: 16px; }
  .benefits-grid { grid-template-columns: 1fr !important; gap: 12px; }
  .region-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Cards */
  .layer-card { padding: 24px 20px; }
  .layer-card h3 { font-size: 17px; }
  .layer-card p { font-size: 15px; }
  .diff-card { padding: 24px 20px; }
  .diff-card h3 { font-size: 17px; }
  .diff-card p { font-size: 15px; }
  .founding-card { padding: 28px 20px; }
  .founding-name { font-size: 22px; }

  /* CTA */
  .cta-section { padding: 48px 20px; }
  .cta-section h2 { font-size: 22px; }
  .join-title { font-size: 22px; }

  /* Articles */
  .article-hero { padding: 100px 20px 40px; }
  .article-hero h1 { font-size: 24px; }
  .article-body { padding: 32px 20px 60px; }
  .article-body p { font-size: 16px; }
  .article-body h2 { font-size: 20px; }
  .article-meta-bar { flex-wrap: wrap; gap: 10px; }

  /* Footer */
  .footer-inner { flex-direction: column; }
}
