/* ═══════════════════════════════════════════════════════════════
   LISTEDCOMPANIES.IN — MASTER STYLESHEET
   Corporate Professionals · R3 Practice
   Brand colors: Red #C8102E · Navy #1F2D5C
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* CP Brand Colors */
  --cp-red: #C8102E;
  --cp-red-dark: #A00D26;
  --cp-red-soft: #FBE9EC;
  --cp-navy: #1F2D5C;
  --cp-navy-dark: #0F1B3D;
  --cp-navy-soft: #E8EBF2;

  /* Neutrals */
  --ink: #14182B;
  --ink-2: #3A3F55;
  --ink-3: #6B7180;
  --ink-4: #9AA0AE;
  --line: #E5E5E5;
  --line-soft: #F0F0F0;
  --bg: #FFFFFF;
  --bg-soft: #F8F8F8;
  --bg-cream: #FAF7F2;
  --bg-deep: #0F1B3D;

  /* Status colors */
  --emerald: #047857;
  --amber: #D97706;
  --orange: #EA580C;
  --crimson: #991B1B;

  /* Fonts */
  --display: 'Fraunces', 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', monospace;

  /* Spacing */
  --container: 1240px;
  --nav-h: 80px;
}

/* ─── RESET ─── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ─── CONTAINER ─── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  height: var(--nav-h);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-mark {
  width: 40px;
  height: 40px;
  background: var(--cp-red);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.04em;
  border-radius: 2px;
}
.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-brand-text strong {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  color: var(--cp-navy);
  letter-spacing: -0.01em;
}
.nav-brand-text span {
  font-size: 10px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 2px;
  font-weight: 500;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.18s;
  position: relative;
}
.nav-menu a:hover, .nav-menu a.active {
  color: var(--cp-red);
}
.nav-menu a.active::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -2px;
  height: 2px;
  background: var(--cp-red);
}

.nav-cta {
  background: var(--cp-navy);
  color: #fff;
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 2px;
  letter-spacing: 0.01em;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-cta:hover {
  background: var(--cp-red);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 8px;
  color: var(--cp-navy);
}

@media (max-width: 1100px) {
  .nav-menu { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: 16px 0; align-items: stretch; }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 14px 32px; border-bottom: 1px solid var(--line-soft); }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   HERO PATTERNS
   ═══════════════════════════════════════════════════════════════ */
.hero {
  padding: 80px 0 100px;
  background: var(--bg-cream);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200, 16, 46, 0.06), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
}
.hero-eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--cp-red);
  padding: 8px 16px;
  border: 1px solid var(--cp-red);
  border-radius: 2px;
  margin-bottom: 28px;
  font-weight: 500;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(38px, 5.6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--cp-navy);
  margin-bottom: 24px;
  max-width: 14ch;
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--cp-red);
}
.hero-lede {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 56ch;
  margin-bottom: 36px;
}
.hero-lede strong { color: var(--ink); font-weight: 600; }

.hero-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 16px 28px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 2px;
}
.btn-arrow { display: inline-block; transition: transform 0.2s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--cp-red);
  color: #fff;
}
.btn-primary:hover { background: var(--cp-red-dark); }
.btn-navy {
  background: var(--cp-navy);
  color: #fff;
}
.btn-navy:hover { background: var(--cp-red); }
.btn-outline {
  border: 1px solid var(--cp-navy);
  color: var(--cp-navy);
}
.btn-outline:hover {
  background: var(--cp-navy);
  color: #fff;
}
.btn-ghost {
  color: var(--cp-red);
  padding: 16px 0;
}
.btn-ghost:hover { color: var(--cp-red-dark); }

/* Hero proof strip */
.hero-proof {
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.proof-stat .num {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 400;
  color: var(--cp-navy);
  line-height: 1;
  letter-spacing: -0.02em;
}
.proof-stat .num em { font-style: italic; color: var(--cp-red); }
.proof-stat .lbl {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 8px;
  line-height: 1.4;
}
@media (max-width: 720px) {
  .hero-proof { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .proof-stat .num { font-size: 32px; }
}

/* ═══════════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════════ */
section {
  padding: 100px 0;
}
@media (max-width: 720px) {
  section { padding: 64px 0; }
}
.section-soft { background: var(--bg-soft); }
.section-cream { background: var(--bg-cream); }
.section-dark { background: var(--cp-navy-dark); color: #fff; }
.section-dark h2 { color: #fff !important; }

.section-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--cp-red);
  font-weight: 500;
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--cp-navy);
  margin-bottom: 20px;
  max-width: 22ch;
}
.section-title em { font-style: italic; color: var(--cp-red); }
.section-lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 64ch;
  margin-bottom: 56px;
}
.section-head { margin-bottom: 56px; }
.section-head.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-head.centered .section-title,
.section-head.centered .section-lede { margin-left: auto; margin-right: auto; }

/* ═══════════════════════════════════════════════════════════════
   R3 VERTICAL CARDS
   ═══════════════════════════════════════════════════════════════ */
.r3-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 900px) {
  .r3-grid { grid-template-columns: 1fr; }
}
.r3-card {
  background: #fff;
  padding: 40px;
  transition: background 0.25s, transform 0.25s;
  position: relative;
}
.r3-card:hover {
  background: var(--bg-cream);
}
.r3-card .num {
  font-family: var(--display);
  font-style: italic;
  font-size: 64px;
  font-weight: 300;
  color: var(--cp-red);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  opacity: 0.85;
}
.r3-card h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 28px;
  color: var(--cp-navy);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.r3-card .sub {
  font-size: 13px;
  color: var(--cp-red);
  margin-bottom: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.r3-card p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.r3-card ul {
  list-style: none;
  margin-bottom: 28px;
}
.r3-card ul li {
  padding-left: 18px;
  position: relative;
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 8px;
  line-height: 1.45;
}
.r3-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 1px;
  background: var(--cp-red);
}
.r3-card .more {
  font-size: 13px;
  color: var(--cp-red);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ═══════════════════════════════════════════════════════════════
   CATEGORY CARDS
   ═══════════════════════════════════════════════════════════════ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}
@media (max-width: 1000px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .cat-grid { grid-template-columns: 1fr; }
}
.cat-card {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  background: #fff;
  transition: background 0.2s;
  position: relative;
}
.cat-card:last-child { border-right: none; }
@media (max-width: 1000px) {
  .cat-card { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
}
.cat-card:hover {
  background: var(--cp-navy);
  color: #fff;
}
.cat-card:hover .cat-icon-circle {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}
.cat-card:hover .cat-icon-circle svg path { stroke: #fff; }
.cat-card:hover h4 { color: #fff; }
.cat-card:hover .cat-desc { color: rgba(255,255,255,0.7); }
.cat-card:hover .cat-link { color: #fff; }

.cat-icon-circle {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: var(--bg-cream);
  transition: all 0.2s;
}
.cat-card h4 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 18px;
  color: var(--cp-navy);
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}
.cat-desc {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.5;
  margin-bottom: 16px;
}
.cat-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--cp-red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ═══════════════════════════════════════════════════════════════
   TOOLS PANEL
   ═══════════════════════════════════════════════════════════════ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
@media (max-width: 800px) {
  .tools-grid { grid-template-columns: 1fr; }
}
.tool-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 36px;
  position: relative;
  transition: border-color 0.2s;
}
.tool-card:hover { border-color: var(--cp-navy); }
.tool-card.featured {
  background: var(--cp-navy-dark);
  color: #fff;
  border-color: var(--cp-navy-dark);
}
.tool-card.featured h3 { color: #fff; }
.tool-card.featured p { color: rgba(255,255,255,0.7); }
.tool-card.featured .tool-tag { background: var(--cp-red); color: #fff; border-color: var(--cp-red); }

.tool-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 4px 10px;
  border: 1px solid var(--line);
  color: var(--ink-3);
  margin-bottom: 20px;
}
.tool-tag.live { background: var(--cp-red); color: #fff; border-color: var(--cp-red); }
.tool-card h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 26px;
  color: var(--cp-navy);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.tool-card p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
  margin-bottom: 24px;
}
.tool-features {
  list-style: none;
  margin-bottom: 28px;
}
.tool-features li {
  font-size: 13px;
  color: var(--ink-3);
  padding-left: 22px;
  position: relative;
  margin-bottom: 8px;
}
.tool-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--cp-red);
  font-weight: 700;
}
.tool-card.featured .tool-features li { color: rgba(255,255,255,0.7); }

/* ═══════════════════════════════════════════════════════════════
   LOGO STRIP
   ═══════════════════════════════════════════════════════════════ */
.logo-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 900px) {
  .logo-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 500px) {
  .logo-strip { grid-template-columns: repeat(2, 1fr); }
}
.logo-cell {
  background: #fff;
  padding: 32px 16px;
  display: grid;
  place-items: center;
  min-height: 110px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  color: var(--cp-navy);
  text-align: center;
  letter-spacing: -0.005em;
  line-height: 1.2;
  transition: background 0.2s;
}
.logo-cell:hover { background: var(--bg-cream); color: var(--cp-red); }
.logo-cell small {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-4);
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   WHY-US SECTION
   ═══════════════════════════════════════════════════════════════ */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
}
.why-points {
  list-style: none;
}
.why-points li {
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 24px;
  align-items: start;
}
.why-points li:last-child { border-bottom: none; }
.why-num {
  font-family: var(--display);
  font-size: 22px;
  color: var(--cp-red);
  font-style: italic;
  font-weight: 500;
}
.why-text strong {
  display: block;
  font-family: var(--display);
  font-size: 20px;
  color: #fff;
  margin-bottom: 6px;
  font-weight: 500;
}
.why-text span {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════════════
   CTA BAND
   ═══════════════════════════════════════════════════════════════ */
.cta-band {
  background: var(--cp-navy);
  color: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--cp-red);
}
.cta-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 800px) {
  .cta-inner { grid-template-columns: 1fr; gap: 32px; }
}
.cta-inner h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.cta-inner h2 em { font-style: italic; color: var(--cp-red); }
.cta-inner p {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  line-height: 1.55;
}
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ═══════════════════════════════════════════════════════════════
   CONTENT PAGE LAYOUTS
   ═══════════════════════════════════════════════════════════════ */
.page-hero {
  background: var(--bg-cream);
  padding: 80px 0 80px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--cp-navy);
  margin-bottom: 20px;
  max-width: 18ch;
}
.page-hero h1 em { font-style: italic; color: var(--cp-red); }
.page-hero-lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 64ch;
}

.breadcrumb {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--cp-red); }
.breadcrumb .sep { margin: 0 10px; opacity: 0.5; }

/* Content sections */
.content-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) {
  .content-grid-2 { grid-template-columns: 1fr; gap: 40px; }
}
.content-h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 28px;
  color: var(--cp-navy);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.content-h3 em { font-style: italic; color: var(--cp-red); }
.content-p {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 16px;
}
.content-p strong { color: var(--ink); font-weight: 600; }

.bullet-list {
  list-style: none;
  margin: 20px 0;
}
.bullet-list li {
  padding-left: 24px;
  position: relative;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 10px;
}
.bullet-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--cp-red);
  font-weight: 600;
}

/* Issue/Solution cards */
.issue-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 32px 0;
}
@media (max-width: 700px) {
  .issue-grid { grid-template-columns: 1fr; }
}
.issue-card {
  background: var(--cp-red-soft);
  padding: 24px 28px;
  border-left: 3px solid var(--cp-red);
}
.issue-card h5 {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  color: var(--cp-navy);
  margin-bottom: 8px;
}
.issue-card p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
}

.solution-card {
  background: var(--cp-navy-soft);
  padding: 24px 28px;
  border-left: 3px solid var(--cp-navy);
}
.solution-card h5 {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  color: var(--cp-navy);
  margin-bottom: 8px;
}
.solution-card p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════════ */
.form-block {
  background: #fff;
  border: 1px solid var(--line);
  padding: 48px;
}
@media (max-width: 600px) { .form-block { padding: 28px; } }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}
.form-field label .req { color: var(--cp-red); }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--sans);
  font-size: 15px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink);
  transition: all 0.2s;
  border-radius: 2px;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--cp-navy);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-hint {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 6px;
}

/* ═══════════════════════════════════════════════════════════════
   KNOWLEDGE HUB
   ═══════════════════════════════════════════════════════════════ */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 900px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .article-grid { grid-template-columns: 1fr; } }

.article-card {
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, border-color 0.25s;
}
.article-card:hover {
  transform: translateY(-3px);
  border-color: var(--cp-navy);
}
.article-thumb {
  height: 180px;
  background: linear-gradient(135deg, var(--cp-navy), var(--cp-navy-dark));
  position: relative;
  overflow: hidden;
}
.article-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(200, 16, 46, 0.4), transparent 60%);
}
.article-thumb .topic {
  position: absolute;
  bottom: 16px;
  left: 20px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #fff;
  background: rgba(255,255,255,0.15);
  padding: 5px 10px;
  backdrop-filter: blur(4px);
  z-index: 2;
}
.article-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.article-body h4 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 19px;
  color: var(--cp-navy);
  line-height: 1.3;
  margin-bottom: 10px;
  letter-spacing: -0.005em;
  flex: 1;
}
.article-body .meta {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
}
.article-body .meta .read-link {
  color: var(--cp-red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
footer {
  background: var(--cp-navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .nav-brand-text strong { color: #fff; }
.footer-brand .nav-brand-text span { color: rgba(255,255,255,0.5); }
.footer-brand p {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
  max-width: 30ch;
}

.footer-col h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #fff;
  margin-bottom: 20px;
  font-weight: 600;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--cp-red); }

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--cp-red); }

/* ═══════════════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════════════ */
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.text-center { text-align: center; }

/* Reveal animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { animation: fadeUp 0.6s ease both; }
.reveal-d1 { animation-delay: 0.1s; }
.reveal-d2 { animation-delay: 0.2s; }
.reveal-d3 { animation-delay: 0.3s; }

/* ═══════════════════════════════════════════════════════════
   ARTICLE PAGES (Knowledge Hub article detail)
   ═══════════════════════════════════════════════════════════ */
.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.article-page { background: #fff; }

.article-header {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--line);
}
.article-topic {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--cp-red);
  padding: 8px 16px;
  border: 1px solid var(--cp-red);
  margin: 0 0 28px;
}
.article-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--cp-navy-dark);
  margin-bottom: 24px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.article-meta .dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--ink-4);
}
.article-summary {
  font-family: 'Fraunces', serif;
  font-size: 19px;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink-2);
  padding-left: 20px;
  border-left: 3px solid var(--cp-red);
}

.article-body-section {
  padding: 64px 0 80px;
}
.article-body p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 22px;
}
.article-body h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.015em;
  color: var(--cp-navy-dark);
  margin: 48px 0 18px;
  line-height: 1.25;
}
.article-body h2:first-child { margin-top: 0; }
.article-body strong { color: var(--cp-navy-dark); font-weight: 600; }

.article-cta {
  margin-top: 64px;
  padding: 40px;
  background: var(--bg-cream);
  border-left: 4px solid var(--cp-red);
}
.article-cta-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--cp-red);
  margin-bottom: 10px;
}
.article-cta h3 {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--cp-navy-dark);
  margin-bottom: 12px;
  font-weight: 500;
}
.article-cta p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 24px;
}
