/* ============================================================
   CoreConduit Consulting — Shared Stylesheet v2.1
   Fonts: Exo 2 (display) · Plus Jakarta Sans (body) · IBM Plex Mono (code)
   Colors: Navy #0d1421 · Blue #2b7de9 · Orange #e07018
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

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

:root {
  --navy:        #0d1421;
  --navy-mid:    #111c2e;
  --navy-light:  #172035;
  --navy-border: #1e2d47;
  --silver:      #c8d4e0;
  --silver-dim:  #8499b0;
  --white:       #f0f4f8;
  --blue:        #2b7de9;
  --blue-bright: #4a94ff;
  --blue-dim:    #1a4f99;
  --orange:      #e07018;
  --orange-bright:#f08530;
  --orange-dim:  #a04e10;
  --green:       #2eb87a;
  --red:         #e04040;

  --font-display: 'Exo 2', sans-serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  --radius:    6px;
  --radius-lg: 12px;
  --shadow:    0 4px 24px rgba(0,0,0,0.4);
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.3);
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--silver);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--white);
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

p { color: var(--silver); margin-bottom: 1rem; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-bright); }

code, pre {
  font-family: var(--font-mono);
  background: rgba(43,125,233,0.08);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius);
}
code { padding: 0.15em 0.4em; font-size: 0.88em; color: var(--blue-bright); }
pre { padding: 1.25rem; overflow-x: auto; line-height: 1.6; }

/* ---------- Layout Utilities ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.text-center { text-align: center; }
.text-orange { color: var(--orange); }
.text-blue { color: var(--blue); }
.text-mono { font-family: var(--font-mono); }
.text-dim { color: var(--silver-dim); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* ---------- Topbar / Nav ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(13, 20, 33, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--navy-border);
  height: 60px;
  display: flex; align-items: center;
}

.topbar-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 1.5rem;
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}

.logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  color: var(--white); text-decoration: none;
}

.logo-mark {
  width: 32px; height: 32px;
  background: var(--blue);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 800;
  color: white;
  flex-shrink: 0;
}

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

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

.nav-links a {
  color: var(--silver-dim);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.nav-links a.active { color: var(--white); }

.nav-pill {
  background: var(--blue) !important;
  color: white !important;
  padding: 0.35rem 1rem !important;
}
.nav-pill:hover { background: var(--blue-bright) !important; }

.nav-pill-orange {
  background: var(--orange) !important;
  color: white !important;
  padding: 0.35rem 1rem !important;
}

/* Section labels */
.section-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--blue);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding: 0.3rem 0.75rem;
  background: rgba(43,125,233,0.1);
  border: 1px solid rgba(43,125,233,0.2);
  border-radius: 20px;
}
.section-label.orange {
  color: var(--orange);
  background: rgba(224,112,24,0.1);
  border-color: rgba(224,112,24,0.2);
}
.section-label.green {
  color: var(--green);
  background: rgba(46,184,122,0.1);
  border-color: rgba(46,184,122,0.2);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600; font-size: 0.95rem;
  cursor: pointer; border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary { background: var(--blue); color: white; }
.btn-primary:hover { background: var(--blue-bright); color: white; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(43,125,233,0.35); }

.btn-orange { background: var(--orange); color: white; }
.btn-orange:hover { background: var(--orange-bright); color: white; transform: translateY(-1px); }

.btn-ghost {
  background: transparent; color: var(--silver);
  border: 1px solid var(--navy-border);
}
.btn-ghost:hover { border-color: var(--silver-dim); color: var(--white); background: rgba(255,255,255,0.04); }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--navy-mid);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  opacity: 0;
  transition: opacity var(--transition);
}
.card:hover { border-color: rgba(43,125,233,0.3); transform: translateY(-2px); }
.card:hover::before { opacity: 1; }

.card-grid {
  display: grid;
  gap: 1.25rem;
}
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ---------- Hero ---------- */
.hero {
  padding: 9rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(43,125,233,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(224,112,24,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(43,125,233,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43,125,233,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* ---------- Divider ---------- */
.divider {
  border: none;
  border-top: 1px solid var(--navy-border);
  margin: 0;
}

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(43,125,233,0.12);
  color: var(--blue-bright);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(43,125,233,0.2);
}
.badge-orange { background: rgba(224,112,24,0.12); color: var(--orange-bright); border-color: rgba(224,112,24,0.2); }
.badge-green { background: rgba(46,184,122,0.12); color: var(--green); border-color: rgba(46,184,122,0.2); }

/* ---------- Sub-section banners ---------- */
.subsection-banner {
  background: var(--navy-light);
  border-top: 1px solid var(--navy-border);
  border-bottom: 1px solid var(--navy-border);
  padding: 0.75rem 0;
}
.subsection-banner .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-mid);
  border-top: 1px solid var(--navy-border);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand p { font-size: 0.875rem; color: var(--silver-dim); margin-top: 0.75rem; }
.footer-col h4 { color: var(--white); font-size: 0.85rem; margin-bottom: 0.75rem; letter-spacing: 0.05em; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul a { color: var(--silver-dim); font-size: 0.875rem; }
.footer-col ul a:hover { color: var(--silver); }

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--navy-border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.75rem;
}
.footer-bottom p { font-size: 0.8rem; color: var(--silver-dim); margin: 0; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.85rem; color: var(--silver-dim); margin-bottom: 0.4rem; font-weight: 500; }
.form-control {
  width: 100%;
  background: var(--navy);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius);
  padding: 0.65rem 0.9rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--blue); }
.form-control::placeholder { color: var(--silver-dim); opacity: 0.5; }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--navy-border); }
table { width: 100%; border-collapse: collapse; }
thead th {
  background: var(--navy-light);
  padding: 0.85rem 1.1rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--silver-dim);
  text-align: left;
  border-bottom: 1px solid var(--navy-border);
}
tbody td {
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid rgba(30,45,71,0.5);
  font-size: 0.9rem;
  vertical-align: top;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(255,255,255,0.02); }

/* ---------- Hamburger (mobile) ---------- */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--silver); border-radius: 2px;
  transition: all 0.3s;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute; top: 60px; left: 0; right: 0;
    background: var(--navy-mid);
    border-bottom: 1px solid var(--navy-border);
    padding: 1rem;
    flex-direction: column; align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 0.6rem 0.75rem; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .section { padding: 3.5rem 0; }
  .hero { padding: 7rem 0 3.5rem; }
}

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}

.animate-fade-up { animation: fadeUp 0.6s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
