/* ============================================================
   BASTION POLICY PARTNERS — Design System
   Aesthetic: serious boutique advisory firm, NOT cybersecurity
   freelancer. Think McKinsey meets a policy institute.
   ============================================================ */

:root {
  --navy:         #1a2332;
  --navy-mid:     #243044;
  --navy-light:   #344a62;
  --accent:       #4a7c9e;
  --accent-hover: #3a6585;
  --cream:        #e9d7bf;
  --cream-alt:    #dfc9a8;
  --off-white:    #e9d7bf;
  --white:        #ffffff;
  --text:         #222831;
  --text-mid:     #444e5a;
  --muted:        #596270;
  --border:       #d8d2c8;
  --border-light: #e8e2d6;

  --font-serif: Georgia, 'Times New Roman', Times, serif;
  --font-sans:  'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  --max-w: 1140px;
  --col-gap: 2rem;

  --radius: 3px;
  --radius-lg: 6px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow:    0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: normal;
  line-height: 1.25;
  color: var(--navy);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); margin-bottom: 0.5rem; }
h4 { font-size: 1rem; font-family: var(--font-sans); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.5rem; }
p  { margin-bottom: 1.25rem; color: var(--text-mid); }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; color: var(--text); }

/* ---- Layout ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section {
  padding: 5rem 0;
}
.section--tight {
  padding: 3rem 0;
}
.section--dark {
  background: var(--navy);
  color: var(--off-white);
}
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--off-white); }
.section--dark p { color: rgba(255,255,255,0.75); }
.section--grey {
  background: var(--white);
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--col-gap);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--col-gap);
}

/* ---- Skip link (keyboard accessibility) ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1.2rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 9999;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; outline: none; }

/* ---- Navigation ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(26,35,50,0.07);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  line-height: 1;
  color: var(--navy);
}
.nav-logo-img {
  height: 52px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
  letter-spacing: 0.02em;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a.active { color: var(--navy); font-weight: 600; }
.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.85rem !important;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--navy-light) !important; color: var(--white) !important; }

/* Hamburger — mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ---- Hero ---- */
.hero {
  background: var(--navy);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  right: -10%;
  top: 10%;
  width: 40%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(74,124,158,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.hero h1 {
  color: var(--off-white);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  max-width: 720px;
}
.hero-sub {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  line-height: 1.75;
  margin-bottom: 0;
}

/* ---- Practice Cards ---- */
.practice-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 2.5rem;
  transition: box-shadow 0.2s, border-color 0.2s;
  text-decoration: none;
  display: block;
}
.practice-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--accent);
  color: inherit;
}
.practice-card .label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.practice-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--navy);
}
.practice-card p {
  font-size: 0.95rem;
  color: var(--text-mid);
  margin-bottom: 1.25rem;
}
.practice-card .arrow {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}

/* ---- Blockquote / Pull quotes ---- */
blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-mid);
  font-size: 1.05rem;
}

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

/* ---- Framework entries ---- */
.framework {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}
.framework:first-of-type { border-top: none; }
.framework-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.framework h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}
.framework-meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.25rem;
}
.framework-meta-item h4 {
  font-size: 0.7rem;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.framework-meta-item p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ---- Team ---- */
.team-card {
  text-align: center;
}
.team-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--border-light);
  margin: 0 auto 1.25rem;
  object-fit: cover;
  border: 3px solid var(--off-white);
  box-shadow: var(--shadow-sm);
}
.team-photo-placeholder {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--navy-light);
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(255,255,255,0.3);
}
.team-name {
  font-size: 1.15rem;
  font-family: var(--font-serif);
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.team-title {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}
.team-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

/* ---- Credentials sidebar ---- */
.credential-sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  font-size: 0.9rem;
}
.credential-sidebar h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.75rem;
  margin-top: 1.25rem;
}
.credential-sidebar h4:first-child { margin-top: 0; }
.credential-sidebar ul {
  list-style: none;
  padding: 0;
}
.credential-sidebar ul li {
  font-size: 0.875rem;
  color: var(--text-mid);
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--border);
}
.credential-sidebar ul li:last-child { border-bottom: none; }

/* ---- Bio layout ---- */
.bio-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: start;
}
.bio-content p { font-size: 1.05rem; line-height: 1.8; }

/* ---- Contact form ---- */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74,124,158,0.25);
}
.form-field textarea { resize: vertical; min-height: 140px; }
.btn {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s;
}
.btn:hover { background: var(--navy-light); }
.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.75rem;
}
.form-note a { color: var(--muted); text-decoration: underline; }

/* ---- Insight cards ---- */
.insight-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: box-shadow 0.2s;
}
.insight-card:hover { box-shadow: var(--shadow); }
.insight-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.insight-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.insight-card p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  padding: 3.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--off-white);
  margin-bottom: 0.75rem;
}
.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0;
  font-style: italic;
}
.footer-col h4 {
  font-size: 0.7rem;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.15s;
}
.footer-col ul li a:hover { color: var(--off-white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}
.footer-bottom a { color: rgba(255,255,255,0.35); }
.footer-bottom a:hover { color: rgba(255,255,255,0.65); }

/* ---- Placeholder banner (Jessica content) ---- */
.placeholder-banner {
  background: #fffbeb;
  border: 1px dashed #d4a820;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: #7a5c00;
  margin-bottom: 2rem;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .grid-2, .grid-3, .footer-grid, .bio-layout {
    grid-template-columns: 1fr;
  }
  .framework-meta { grid-template-columns: 1fr; }
  .bio-layout { gap: 2.5rem; }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
    gap: 1.25rem;
    box-shadow: var(--shadow);
    z-index: 99;
  }
  .nav-toggle { display: flex; }
  .section { padding: 3rem 0; }
  .hero { padding: 4rem 0 3rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
