/* ============================================================
   CITIUS TRUST — shared.css
   Common styles used across all pages.
   Page-specific styles remain inline in each HTML file.
   ============================================================ */

/* ── CSS VARIABLES ── */
:root {
  --blue-primary: #147DC0;
  --blue-mid: #398AC8;
  --blue-light: #8BB0DA;
  --dark-bg: #06090c;
  --dark-card: #0a0f14;
  --dark-border: rgba(20,125,192,0.15);
  --text-primary: #f0f4f8;
  --text-secondary: rgba(240,244,248,0.80);
  --text-muted: rgba(240,244,248,0.50);
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

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

/* ── BASE ── */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html { overflow-x: hidden; }

body {
  background: var(--dark-bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

p {
  text-align: justify;
  hyphens: auto;
}

/* ── NOISE TEXTURE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

/* ── NAVIGATION ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 28px 60px;
  height: 80px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #06090c;
  border-bottom: 1px solid rgba(20,125,192,0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-dots {
  height: 14px;
  width: auto;
  margin-right: 10px;
  vertical-align: middle;
  opacity: 0.9;
}

.nav-wordmark {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
  color: var(--text-primary);
}

.nav-wordmark em {
  font-style: normal;
  color: var(--blue-primary);
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 48px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text-primary); }

.nav-cta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dark-bg) !important;
  background: var(--blue-primary);
  padding: 10px 24px !important;
  border-radius: 2px;
  transition: background-color 0.3s, color 0.3s !important;
}

.nav-cta:hover {
  background: var(--blue-mid) !important;
  color: var(--dark-bg) !important;
}

/* ── HAMBURGER & MOBILE MENU ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 200;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  transition: background-color 0.3s;
}

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(6,9,12,0.98);
  z-index: 150;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.nav-mobile-menu.open { display: flex; }

.nav-mobile-menu a {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
}

.nav-mobile-menu a.active,
.nav-mobile-menu a:hover { color: var(--text-primary); }

.nav-mobile-close {
  position: absolute;
  top: 28px; right: 24px;
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

/* ── FOOTER ── */
footer {
  padding: 16px 60px;
  border-top: 1px solid var(--dark-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-nav-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
}

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

.footer-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--text-secondary); }

.footer-copy {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.footer-bottom {
  width: 100%;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--dark-border);
  margin-top: 8px;
}

.footer-dots-right {
  display: flex;
  gap: 7px;
  align-items: center;
  opacity: 0.8;
}

.footer-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.footer-icpac {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  opacity: 0.85;
  line-height: 1.6;
}

.footer-group {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-group a {
  color: var(--text-muted);
  text-decoration: none;
  opacity: 0.7;
}

.footer-group a:hover {
  color: var(--blue-light);
  opacity: 1;
}

/* ── SECTION COMMON ── */
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--blue-primary);
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.section-title em {
  font-style: italic;
  color: var(--blue-light);
}

/* ── PAGE HERO (shared across inner pages) ── */
.page-hero {
  padding: 180px 60px 100px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20,125,192,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,125,192,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
}

.hero-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-primary) 0%, var(--blue-mid) 40%, var(--blue-light) 70%, transparent 100%);
}

.hero-glow {
  position: absolute;
  top: 10%; right: -5%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(20,125,192,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.page-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--blue-primary);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.2s;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 300;
  line-height: 1.07;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  max-width: 820px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.4s;
}

.page-title em { font-style: italic; color: var(--blue-light); }

.page-intro {
  font-size: 18px;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.75;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.6s;
}

/* ── CTA SECTION (shared) ── */
.cta-section {
  text-align: center;
  padding: 140px 60px;
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(20,125,192,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 300;
  line-height: 1.12;
  color: var(--text-primary);
  max-width: 680px;
  margin: 0 auto 24px;
}

.cta-title em { font-style: italic; color: var(--blue-light); }

.cta-email {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--blue-primary);
  text-decoration: none;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(20,125,192,0.3);
  padding-bottom: 4px;
  transition: color 0.3s, border-color 0.3s;
}

.cta-email:hover {
  color: var(--blue-light);
  border-color: var(--blue-light);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes expandLine {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ── RESPONSIVE — TABLET (641px–820px) ── */
@media (max-width: 820px) and (min-width: 641px) {
  nav { padding: 0 28px; }
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 10px; letter-spacing: 0.10em; white-space: nowrap; }
  .nav-cta { padding: 8px 14px !important; font-size: 10px; }
  .page-hero { padding: 150px 40px 80px; }
  footer { padding: 40px; }
  .footer-links { gap: 24px; }
}

/* ── RESPONSIVE — MOBILE (≤640px) ── */
@media (max-width: 640px) {
  nav { padding: 0 20px; height: 64px; }
  .nav-hamburger { display: flex; }
  .nav-links { display: none; }
  .nav-wordmark { font-size: 18px; letter-spacing: 0.05em; }
  .nav-dots { height: 12px; margin-right: 8px; }
  .page-hero { padding: 110px 20px 56px; }
  .page-title { font-size: clamp(30px, 9vw, 46px); line-height: 1.1; }
  .page-intro { font-size: 15px; max-width: 100%; }
  .cta-section { padding: 72px 20px; }
  .cta-title { font-size: clamp(28px, 8vw, 44px); }
  footer { flex-direction: column; align-items: center; gap: 20px; padding: 32px 20px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .footer-copy { display: none; }
  .footer-dots-right { justify-content: center; }
}

/* ── SMALL PHONES (≤390px) ── */
@media (max-width: 390px) {
  .page-title { font-size: 28px; }
  .nav-wordmark { font-size: 18px; }
}
