/* ============================================================
   Core Communications — design system
   Humanist sans (Inter Tight) · Navy primary + magenta/orange
   ============================================================ */

:root {
  /* Ink / navy scale */
  --ink-900: #0A1A35;
  --ink-800: #142745;
  --ink-700: #1E3358;
  --ink-600: #2D4070;
  --ink-500: #455A85;

  /* Slate neutrals */
  --slate-700: #3A4A6B;
  --slate-500: #6B7A95;
  --slate-400: #93A0B8;
  --slate-300: #C2CAD9;

  /* Surfaces */
  --cream: #FBF9F6;
  --cream-2: #F4F1EC;
  --paper: #FFFFFF;
  --line: #E5E7EE;
  --line-soft: #EFF1F6;

  /* Brand accents (logo-derived) */
  --magenta: #E5288D;
  --magenta-600: #C81B79;
  --orange: #F26B3A;
  --orange-600: #DC5520;
  --purple: #8A2B8C;

  /* Status */
  --success: #1F8A5B;

  /* Gradient */
  --gradient-brand: linear-gradient(135deg, #8A2B8C 0%, #E5288D 45%, #F26B3A 100%);
  --gradient-brand-soft: linear-gradient(135deg, rgba(138,43,140,.12) 0%, rgba(229,40,141,.12) 50%, rgba(242,107,58,.12) 100%);

  /* Type */
  --font-sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Radius / shadow */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(10,26,53,.06), 0 1px 3px rgba(10,26,53,.04);
  --shadow-md: 0 1px 2px rgba(10,26,53,.06), 0 8px 24px rgba(10,26,53,.05);
  --shadow-lg: 0 2px 4px rgba(10,26,53,.06), 0 20px 48px rgba(10,26,53,.08);

  /* Layout */
  --maxw: 1240px;
  --pad-x: clamp(20px, 4vw, 56px);
}

/* Theme variants ------------------------------------------------ */
:root[data-palette="gradient"] {
  /* Lead more with gradient on hero / accents */
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink-900);
  font-family: var(--font-sans);
  font-feature-settings: 'ss01', 'cv01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ===== Typography utilities ===== */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--magenta);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1.5px;
  background: var(--magenta);
  display: inline-block;
}
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
  color: var(--ink-900);
}
h1 { font-size: clamp(40px, 5.6vw, 72px); font-weight: 600; line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 3.6vw, 48px); font-weight: 600; line-height: 1.08; letter-spacing: -0.028em; }
h3 { font-size: clamp(20px, 1.7vw, 24px); font-weight: 600; line-height: 1.2; }
h4 { font-size: 16px; font-weight: 600; line-height: 1.3; }
p { margin: 0; line-height: 1.55; color: var(--slate-700); text-wrap: pretty; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--slate-700); }
.meta { font-size: 13px; color: var(--slate-500); }
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0; }

/* ===== Layout ===== */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
section { padding: clamp(72px, 9vw, 120px) 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 18px; font-size: 18px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); }
.btn .arrow {
  width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center;
  transition: transform .2s ease;
}
.btn:hover .arrow { transform: translate(2px, -2px); }

.btn-primary {
  background: var(--ink-900);
  color: var(--paper);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--ink-800); box-shadow: var(--shadow-md); }

.btn-accent {
  background: var(--magenta);
  color: var(--paper);
  box-shadow: 0 1px 2px rgba(229,40,141,.2), 0 8px 20px rgba(229,40,141,.25);
}
.btn-accent:hover { background: var(--magenta-600); box-shadow: 0 1px 2px rgba(229,40,141,.25), 0 14px 28px rgba(229,40,141,.32); }

.btn-ghost {
  background: transparent;
  color: var(--ink-900);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--paper); border-color: var(--ink-900); }

.btn-ghost-light {
  background: rgba(255,255,255,.06);
  color: var(--paper);
  border-color: rgba(255,255,255,.18);
}
.btn-ghost-light:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.32); }

.btn-link {
  background: none;
  color: var(--ink-900);
  padding: 0;
  font-weight: 600;
  font-size: 14px;
}
.btn-link:hover { color: var(--magenta); }

/* ===== Top nav ===== */
.topnav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 249, 246, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.topnav-inner {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 36px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.topnav .logo {
  display: flex;
  align-items: center;
  gap: 0;
}
.topnav .logo img { height: 38px; width: auto; max-width: none; flex-shrink: 0; }
.topnav nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.topnav nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--slate-700);
  position: relative;
  padding: 6px 0;
}
.topnav nav a:hover { color: var(--ink-900); }
.topnav nav a.active { color: var(--ink-900); }
.topnav nav a.active::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--magenta);
  border-radius: 2px;
}
.topnav .spacer { flex: 1; }
.topnav .nav-cta {
  display: flex; gap: 10px; align-items: center;
}
.topnav .phone {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--slate-700); font-weight: 500;
  white-space: nowrap;
}
.topnav .phone svg { width: 14px; height: 14px; }
@media (max-width: 900px) {
  .topnav nav, .topnav .phone { display: none; }
}

/* ===== Footer ===== */
.footer {
  background: var(--ink-900);
  color: var(--slate-300);
  padding: 80px 0 32px;
  margin-top: 80px;
}
.footer .wrap { color: var(--slate-300); }
.footer h4 { color: var(--paper); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; font-weight: 600;}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand img { height: 42px; width: auto; max-width: none; filter: brightness(0) invert(1) opacity(.95); margin-bottom: 18px; }
.footer-brand p { color: var(--slate-400); font-size: 14px; max-width: 280px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer ul a { color: var(--slate-300); font-size: 14px; transition: color .15s; }
.footer ul a:hover { color: var(--paper); }
.footer-bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--slate-400);
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== Cards ===== */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #DCE0EA;
}

/* ===== Pill / badge ===== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-700);
  background: var(--paper);
  border: 1px solid var(--line);
}
.pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--magenta);
}

/* ===== Reusable: stats inline ===== */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.kpi {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
}
.kpi:last-child { border-right: 0; }
.kpi .num {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink-900);
  line-height: 1;
}
.kpi .num .sym { color: var(--magenta); }
.kpi .lbl {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--slate-500);
  line-height: 1.4;
}
@media (max-width: 800px) {
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .kpi:nth-child(2) { border-right: 0; }
  .kpi:nth-child(1), .kpi:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* ===== Section with dark surface ===== */
.dark-surface {
  background: var(--ink-900);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.dark-surface h2, .dark-surface h3, .dark-surface .eyebrow { color: var(--paper); }
.dark-surface .eyebrow { color: #FF9DC4; }
.dark-surface .eyebrow::before { background: #FF9DC4; }
.dark-surface p { color: var(--slate-300); }

/* ===== Forms ===== */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink-800); }
.field input, .field textarea, .field select {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-900);
  transition: border-color .15s, box-shadow .15s;
  resize: vertical;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--magenta);
  box-shadow: 0 0 0 4px rgba(229,40,141,.12);
}

/* ===== Marquee / logo strip ===== */
.logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px;
  align-items: center;
}
.logo-ph {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-400);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  opacity: .8;
}
@media (max-width: 800px) {
  .logos { grid-template-columns: repeat(3, 1fr); }
}

/* Utility */
.muted { color: var(--slate-500); }
.center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
