/* ============================================================
   Baldwin Terney Consulting — site styles
   All colors/fonts are CSS variables here — edit these to re-theme.
   ============================================================ */

:root {
  /* Palette — dark navy / security-tech */
  --bg: #070c16;
  --bg-alt: #0c1526;
  --bg-card: #101c31;
  --bg-card-hover: #142238;
  --border: #1f2f47;
  --border-light: #2a3d59;

  --text: #e8edf5;
  --text-muted: #9fb0c9;
  --text-faint: #6b7d99;

  --accent: #35c4e8;       /* cyan-steel, primary accent */
  --accent-strong: #5ee0ff;
  --accent-dim: rgba(53, 196, 232, 0.12);
  --gold: #d4a94f;         /* small premium accent for badges */

  --success: #4ade80;

  --font-heading: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35);
  --max-width: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: #fff;
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--text-muted); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #04121a;
  padding: 10px 16px;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { left: 8px; top: 8px; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 12, 22, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  font-size: 1.05rem;
  white-space: nowrap;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #1a6d8a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #04121a;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.brand small {
  display: block;
  font-weight: 500;
  font-size: 0.68rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
}
.main-nav a:hover { color: #fff; background: var(--bg-card); }
.main-nav a.active { color: var(--accent); }
.header-cta {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-light);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 1.1rem;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #04121a;
}
.btn-primary:hover { background: var(--accent-strong); color: #04121a; }
.btn-outline {
  background: transparent;
  border-color: var(--border-light);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 64px;
  background:
    radial-gradient(ellipse 60% 60% at 80% -10%, rgba(53, 196, 232, 0.14), transparent),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-dim);
  border: 1px solid rgba(53, 196, 232, 0.3);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero .lead { font-size: 1.12rem; color: var(--text-muted); max-width: 54ch; }
.hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-meta {
  display: flex;
  gap: 22px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.hero-meta div { font-size: 0.85rem; color: var(--text-faint); }
.hero-meta strong { display: block; color: #fff; font-size: 1.3rem; font-family: var(--font-heading); }

.hero-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.hero-panel h3 { font-size: 1.05rem; margin-bottom: 14px; }
.hero-panel ul { margin: 0; padding: 0; list-style: none; }
.hero-panel li {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.92rem;
}
.hero-panel li:last-child { border-bottom: none; }
.hero-panel li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 800;
  flex-shrink: 0;
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; max-width: var(--max-width); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section.alt { background: var(--bg-alt); max-width: none; padding-left: 0; padding-right: 0; }
.section.alt > .wrap { padding-top: 72px; padding-bottom: 72px; }
.section.tight { padding-top: 40px; padding-bottom: 40px; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-head p { max-width: 60ch; margin: 0; }

/* ---------- Grids & Cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.15s, transform 0.15s;
}
.card:hover { border-color: var(--border-light); }
.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: 0.94rem; }
.card ul { margin: 14px 0 0; padding-left: 18px; color: var(--text-muted); font-size: 0.9rem; }
.card ul li { margin-bottom: 6px; }

.audience-card {
  border-top: 3px solid var(--accent);
}

/* ---------- Package cards ---------- */
.package-group { margin-bottom: 56px; }
.package-group:last-child { margin-bottom: 0; }
.package-group-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.package-group-head .tag-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.package-group-head h2 { margin-bottom: 2px; }
.package-group-head p { margin: 0; font-size: 0.92rem; }

.package-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.package-card .package-name { font-size: 1.1rem; color: #fff; font-family: var(--font-heading); font-weight: 700; margin-bottom: 6px; }
.package-card .package-tagline { font-size: 0.86rem; color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.package-card ul { list-style: none; margin: 0 0 20px; padding: 0; flex-grow: 1; }
.package-card ul li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 7px 0;
  border-bottom: 1px dashed var(--border);
  display: flex;
  gap: 8px;
}
.package-card ul li:last-child { border-bottom: none; }
.package-card ul li::before { content: "▸"; color: var(--accent); flex-shrink: 0; }
.package-card .package-format {
  font-size: 0.78rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

/* ---------- Stats / logos strip ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding: 40px 0;
}
.stat-strip div { text-align: center; }
.stat-strip strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--accent);
}
.stat-strip span { font-size: 0.85rem; color: var(--text-faint); }

/* ---------- Bio ---------- */
.bio-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 44px;
  align-items: start;
}
.bio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
}
.bio-avatar {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  margin: 0 auto 18px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent), #17495e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.1rem;
  color: #04121a;
}
.bio-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bio-card h3 { margin-bottom: 2px; }
.bio-card .role { color: var(--accent); font-size: 0.88rem; font-weight: 600; margin-bottom: 18px; }
.bio-links { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.bio-links a {
  display: block;
  font-size: 0.88rem;
  padding: 9px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text);
}
.bio-links a:hover { border-color: var(--accent); color: var(--accent); }

.timeline { margin-top: 8px; }
.timeline-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-item .period { color: var(--accent); font-weight: 700; font-size: 0.86rem; }
.timeline-item h4 { margin-bottom: 4px; font-size: 1.02rem; }
.timeline-item p { margin: 0; font-size: 0.92rem; }

/* ---------- Books strip ---------- */
.book-card {
  display: flex;
  gap: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  align-items: center;
}
.book-cover {
  width: 64px;
  height: 88px;
  flex-shrink: 0;
  border-radius: 6px;
  background: linear-gradient(160deg, var(--gold), #6b5222);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}
.book-card h4 { margin-bottom: 4px; }
.book-card p { margin-bottom: 10px; font-size: 0.88rem; }

/* ---------- Books & Articles page ---------- */
.news-issue-list { display: flex; flex-direction: column; gap: 16px; }
.book-card.news-issue { align-items: center; }
.book-thumb {
  width: 76px;
  height: 122px;
  flex-shrink: 0;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}
.book-thumb-lg { width: 132px; height: 211px; }
.issue-tag {
  font-size: 0.76rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.latest-pill {
  background: var(--accent);
  color: #04121a;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.book-card.news-issue h4 { margin-bottom: 6px; }
.media-card .media-kind {
  font-size: 0.76rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.media-card h3 { font-size: 1.05rem; margin-bottom: 8px; }

@media (max-width: 640px) {
  .book-card.news-issue { flex-direction: column; align-items: flex-start; }
  .book-thumb, .book-thumb-lg { width: 96px; height: 154px; }
}

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}
.process-step {
  position: relative;
  padding: 26px 20px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.process-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -14px;
  left: 20px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #04121a;
  font-weight: 800;
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.process-step h4 { margin: 10px 0 8px; font-size: 1rem; }
.process-step p { font-size: 0.88rem; margin: 0; }

/* ---------- Contact box ---------- */
.contact-box {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-alt));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
}
.contact-box h2 { margin-bottom: 10px; }
.contact-box p { max-width: 56ch; margin: 0 auto 26px; }
.contact-methods {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-detail {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.contact-detail:last-child { border-bottom: none; }
.contact-detail .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.contact-detail h4 { margin-bottom: 3px; font-size: 0.98rem; }
.contact-detail p { margin: 0; font-size: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 28px;
  background: var(--bg-alt);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); font-size: 0.88rem; }
.footer-links a:hover { color: var(--accent); }
.footer-note { color: var(--text-faint); font-size: 0.82rem; margin: 0; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-lg { margin-top: 40px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .bio-layout { grid-template-columns: 1fr; }
  .grid, .grid-2, .grid-4, .process-grid, .stat-strip, .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-cta .btn span.long { display: none; }
  .grid, .grid-2, .grid-4, .process-grid, .stat-strip, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 40px; }
  .section { padding: 52px 0; }
  .section.alt > .wrap { padding-top: 52px; padding-bottom: 52px; }
  .timeline-item { grid-template-columns: 1fr; gap: 4px; }
  .contact-box { padding: 30px 22px; }
}

.main-nav.open {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  padding: 10px 24px 18px;
}
