/* ============================================
   CIVIL BUILDERS ENGINEERING SERVICES, P.C.
   cbespc.com — Global Stylesheet
   Premium engineering firm design system
   ============================================ */

/* --- FONTS (self-hosted for performance) --- */
@font-face {
  font-family: 'Montserrat';
  font-display: swap;
  src: url('/fonts/montserrat-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Inter';
  font-display: swap;
  src: url('/fonts/inter-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Inter';
  font-display: swap;
  src: url('/fonts/inter-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
}

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: #2D3748;
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul, ol { list-style: none; }

/* --- DESIGN TOKENS --- */
:root {
  /* Primary — Civil Builders Navy + Silver */
  --navy-deep: #0A1F3D;
  --navy: #1a365d;
  --navy-mid: #2c5282;
  --blue-bright: #3182ce;
  --blue-light: #EBF4FB;

  /* Silver / Neutrals */
  --silver-dark: #5A6675;
  --silver: #8E9BA8;
  --silver-light: #B8C4CE;
  --silver-bg: #E8ECF1;

  --slate: #2D3748;
  --gray-700: #374151;
  --gray-600: #4A5568;
  --gray-400: #718096;
  --gray-300: #A0AEC0;
  --gray-200: #E2E8F0;
  --gray-100: #EDF2F7;
  --off-white: #F7F9FC;
  --white: #FFFFFF;

  /* Accent — subtle gold for trust signals (awards, credentials) */
  --gold: #C9A961;
  --gold-light: #F5EFE0;

  /* Semantic */
  --success: #10B981;
  --success-light: #ECFDF5;

  /* Layout */
  --container: 1200px;
  --container-wide: 1320px;
  --section-pad: 100px;
  --section-pad-mobile: 60px;

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Shadows — layered for depth */
  --shadow-sm: 0 2px 8px rgba(10, 31, 61, 0.06);
  --shadow-md: 0 4px 16px rgba(10, 31, 61, 0.08);
  --shadow-lg: 0 12px 40px rgba(10, 31, 61, 0.12);
  --shadow-xl: 0 20px 60px rgba(10, 31, 61, 0.18);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  /* Transitions */
  --t-fast: 0.2s ease;
  --t-base: 0.3s ease;
  --t-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy-deep);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.55rem); letter-spacing: -0.01em; }
h4 { font-size: 1.15rem; }
p { margin-bottom: 1rem; }
.text-muted { color: var(--gray-400); }
.text-accent { color: var(--blue-bright); }
.text-gold { color: var(--gold); }
.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; letter-spacing: 0.08em; }

/* --- LAYOUT --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-wide {
  max-width: var(--container-wide);
}
.section {
  padding: var(--section-pad) 0;
  position: relative;
}
.section--dark {
  background: var(--navy-deep);
  color: var(--white);
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--white);
}
.section--navy {
  background: var(--navy);
  color: var(--white);
}
.section--navy h1,
.section--navy h2,
.section--navy h3 {
  color: var(--white);
}
.section--alt {
  background: var(--off-white);
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-transform: uppercase;
}
.btn--primary {
  background: var(--blue-bright);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(49, 130, 206, 0.35);
}
.btn--primary:hover {
  background: var(--navy);
  box-shadow: 0 6px 20px rgba(26, 54, 93, 0.45);
  transform: translateY(-1px);
}
.btn--secondary {
  background: var(--white);
  color: var(--navy-deep);
  border: 2px solid var(--navy-deep);
}
.btn--secondary:hover {
  background: var(--navy-deep);
  color: var(--white);
}
.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.35);
}
.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}
.btn--gold {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn--gold:hover {
  background: #b8984f;
}
.btn svg { width: 18px; height: 18px; margin-left: 8px; }

/* --- HEADER / NAV --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 31, 61, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 130px;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 32px;
}
.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.header__logo img {
  height: 108px;
  width: auto;
  display: block;
}
.header__nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.header__nav a {
  color: rgba(255,255,255,0.78);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.header__nav a:hover,
.header__nav a.active {
  color: var(--white);
}
.header__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
}
.header__phone svg { width: 18px; height: 18px; }
.header__phone:hover { color: var(--blue-bright); }

/* Mobile menu toggle */
.header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.header__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--navy-deep);
  overflow: hidden;
  padding-top: 130px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background:
    radial-gradient(circle at 20% 30%, var(--blue-bright) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, var(--navy-mid) 0%, transparent 50%),
    radial-gradient(circle at 50% 100%, var(--silver-dark) 0%, transparent 60%);
}
.hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image:
    linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero__content {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  z-index: 2;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.hero__eyebrow::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--gold);
}
.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
}
.hero h1 span {
  color: var(--blue-bright);
  display: block;
}
.hero__sub {
  font-size: 1.15rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.75);
  margin-bottom: 40px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
  justify-content: center;
}

/* --- CREDENTIALS BAR (below hero) --- */
.credentials-bar {
  position: relative;
  z-index: 2;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.credentials-bar__label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}
.credentials-bar__items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.credentials-bar__badge {
  display: flex;
  align-items: center;
  gap: 14px;
}
.credentials-bar__badge img {
  height: 72px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.35));
}
.credentials-bar__badge-label {
  color: rgba(255,255,255,0.9);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
  max-width: 110px;
}
.credentials-bar__badge-label span {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
  letter-spacing: 0.04em;
}
.credentials-bar__text {
  color: rgba(255,255,255,0.85);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 18px 24px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display: inline-flex;
  align-items: center;
}
.credentials-bar__text strong {
  color: var(--gold);
  font-weight: 700;
}

/* --- CERT BADGE CARDS (About page / Certifications page) --- */
.cert-badge-card {
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  transition: all 0.3s;
}
.cert-badge-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(201,169,97,0.3);
  transform: translateY(-3px);
}
.cert-badge-card__badge {
  height: 120px;
  width: auto;
  margin: 0 auto 24px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.25));
}
.cert-badge-card__icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.cert-badge-card__icon svg {
  width: 52px;
  height: 52px;
  color: var(--gold);
}
.cert-badge-card h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.cert-badge-card p {
  color: rgba(255,255,255,0.7);
  font-size: 0.93rem;
  line-height: 1.65;
  margin: 0;
}

/* --- FOOTER BADGES STRIP --- */
.footer__badges {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.footer__badges img {
  height: 52px;
  width: auto;
  opacity: 0.9;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

/* --- SECTION HEADERS --- */
.section__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.section__header p {
  color: var(--gray-600);
  font-size: 1.1rem;
  margin-top: 18px;
  line-height: 1.7;
}
.section--dark .section__header p,
.section--navy .section__header p {
  color: rgba(255,255,255,0.7);
}
.section__eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 14px;
}
.section--dark .section__eyebrow,
.section--navy .section__eyebrow {
  color: var(--gold);
}

/* --- SERVICE CARDS --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--blue-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}
.service-card:hover::before {
  transform: scaleX(1);
}
.service-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.service-card__icon svg {
  width: 28px;
  height: 28px;
  color: var(--blue-bright);
}
.service-card h3 {
  margin-bottom: 12px;
}
.service-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 20px;
}
.service-card__link {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--blue-bright);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-card__link:hover { color: var(--navy); }
.service-card__link svg { width: 16px; height: 16px; transition: transform 0.2s; }
.service-card:hover .service-card__link svg { transform: translateX(4px); }

/* --- MARKET TILES (projects by sector) --- */
.markets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.market-tile {
  padding: 40px 28px;
  border-radius: var(--radius-lg);
  background: var(--navy);
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}
.market-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(49,130,206,0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.market-tile:hover::after { opacity: 1; }
.market-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(10, 31, 61, 0.5);
  border-color: var(--blue-bright);
}
.market-tile__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}
.market-tile__icon svg { width: 32px; height: 32px; color: var(--blue-bright); }
.market-tile h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.market-tile p {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  margin: 0;
  position: relative;
  z-index: 1;
}

.market-tile--coming-soon {
  opacity: 0.7;
  cursor: default;
  position: relative;
}
.market-tile--coming-soon:hover {
  transform: none;
}
.coming-soon-badge {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 16px;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 4px;
  position: relative;
  z-index: 1;
}

/* --- STATS STRIP --- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 60px 0;
}
.stat {
  text-align: center;
}
.stat__value {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.stat__label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}

/* --- ABOUT SPOTLIGHT --- */
.spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.spotlight__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4/5;
  background: var(--silver-bg);
}
.spotlight__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.spotlight__image--logo {
  aspect-ratio: auto;
  box-shadow: none;
  background: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  border-radius: var(--radius-lg);
}
.spotlight__image--logo img {
  width: 80%;
  height: auto;
  object-fit: contain;
}
.spotlight__text .section__eyebrow {
  margin-bottom: 16px;
}
.spotlight__text h2 {
  margin-bottom: 24px;
}
.spotlight__text p {
  color: var(--gray-600);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}
.spotlight__list {
  margin: 28px 0;
}
.spotlight__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--gray-700);
  font-size: 0.95rem;
}
.spotlight__list li::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue-light);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%233182ce'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- PROCESS STEPS --- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: rgba(255,255,255,0.15);
  z-index: 0;
}
.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.process-step__num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--blue-bright);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(49, 130, 206, 0.35);
  border: 3px solid var(--navy-deep);
}
.process-step h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.process-step p {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0;
}

/* --- CTA BAND --- */
.cta-band {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 50%, rgba(49,130,206,0.15) 0%, transparent 45%),
    radial-gradient(circle at 85% 50%, rgba(201,169,97,0.1) 0%, transparent 45%);
}
.cta-band__inner {
  position: relative;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.cta-band h2 {
  color: var(--white);
  margin-bottom: 20px;
}
.cta-band p {
  color: rgba(255,255,255,0.75);
  font-size: 1.15rem;
  margin-bottom: 36px;
}
.cta-band__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- FOOTER --- */
.footer {
  background: #060F1F;
  color: rgba(255,255,255,0.6);
  padding: 80px 0 40px;
  font-size: 0.9rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}
.footer__brand {
  margin-bottom: 24px;
}
.footer__brand img {
  height: 72px;
  width: auto;
  display: block;
}
.footer__about {
  font-size: 0.92rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}
.footer__credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.footer__credential {
  font-size: 0.72rem;
  padding: 5px 12px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  color: var(--gold);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 22px;
}
.footer__links li {
  margin-bottom: 12px;
}
.footer__links a {
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
  font-size: 0.92rem;
}
.footer__links a:hover {
  color: var(--blue-bright);
}
.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  color: rgba(255,255,255,0.55);
  font-size: 0.92rem;
  line-height: 1.55;
}
.footer__contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--blue-bright);
  margin-top: 3px;
  flex-shrink: 0;
}
.footer__contact-item a:hover { color: var(--white); }
.footer__bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}
.footer__bottom a:hover { color: var(--blue-bright); }
.footer__legal {
  display: flex;
  gap: 24px;
}

/* --- INTERIOR PAGE HEADER --- */
.page-header {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 210px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background:
    radial-gradient(circle at 30% 40%, var(--blue-bright) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, var(--gold) 0%, transparent 45%);
}
.page-header__inner {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.page-header .section__eyebrow {
  color: var(--gold);
}
.page-header h1 {
  color: var(--white);
  margin-bottom: 20px;
}
.page-header p {
  font-size: 1.15rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.75);
  margin: 0;
}
.breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}
.breadcrumb a { color: var(--blue-bright); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,0.35); }

/* --- CONTENT (interior pages) --- */
.content {
  padding: 80px 0;
}
.content__body {
  max-width: 760px;
}
.content__body h2 {
  margin: 48px 0 20px;
}
.content__body h3 {
  margin: 36px 0 16px;
}
.content__body p {
  color: var(--gray-700);
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 18px;
}
.content__body ul {
  margin: 20px 0 24px 20px;
}
.content__body ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: var(--gray-700);
  line-height: 1.7;
}
.content__body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--blue-bright);
  border-radius: 50%;
}

/* --- FORM --- */
.form-field {
  margin-bottom: 24px;
}
.form-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 8px;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--slate);
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 4px rgba(49, 130, 206, 0.1);
}
.form-field textarea {
  min-height: 140px;
  resize: vertical;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field--full {
  grid-column: 1 / -1;
}
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* --- RESPONSIVE --- */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .markets-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .spotlight { grid-template-columns: 1fr; gap: 40px; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root {
    --section-pad: 70px;
  }
  .header__inner { height: 88px; padding: 0 20px; }
  .header__logo img { height: 60px; }
  .header__nav { display: none; }
  .header__phone span { display: none; }
  .header__toggle { display: flex; }
  .hero { min-height: 80vh; padding-top: 88px; }
  .hero h1 { font-size: 2.2rem; }
  .services-grid { grid-template-columns: 1fr; }
  .markets-grid { grid-template-columns: 1fr; gap: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 24px; }
  .process-steps { grid-template-columns: 1fr; gap: 24px; }
  .stats-strip { grid-template-columns: 1fr 1fr; gap: 24px; padding: 40px 0; }
  .credentials-bar__items { gap: 20px; }
  .footer__grid { grid-template-columns: 1fr; gap: 40px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .btn { padding: 14px 28px; font-size: 0.85rem; }
  .cta-band__ctas { flex-direction: column; align-items: stretch; }
  .cta-band__ctas .btn { width: 100%; }
}

/* --- UTILITIES --- */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-4 { margin-top: 40px; }
.mb-4 { margin-bottom: 40px; }

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* ========================================
   CAPABILITIES STATEMENT PAGE
   ======================================== */

.capabilities-header-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.identifier-card {
  background: var(--white);
  border: 1px solid var(--silver-light);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  box-shadow: var(--shadow-xl);
  max-width: 960px;
  margin: 0 auto;
  border-left: 6px solid var(--navy-deep);
}
.identifier-card__title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  color: var(--navy-deep);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  font-weight: 700;
}
.identifier-card__subtitle {
  color: var(--silver-dark);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 32px;
  font-weight: 600;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--silver-bg);
}
.identifier-card__grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px 28px;
  margin: 0;
}
.identifier-card__label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--silver-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-top: 4px;
}
.identifier-card__value {
  font-size: 0.98rem;
  color: var(--navy-deep);
  line-height: 1.55;
  font-weight: 500;
}
.identifier-card__value strong {
  color: var(--navy);
  font-weight: 700;
}

/* Core Competencies — compact grid */
.competency-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 960px;
  margin: 0 auto;
}
.competency-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  background: var(--silver-bg);
  border-radius: 8px;
  border-left: 3px solid var(--gold);
  font-size: 0.92rem;
  color: var(--navy-deep);
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: background 0.2s, border-left-color 0.2s, transform 0.2s;
}
.competency-item::after {
  content: "→";
  color: var(--gold);
  font-weight: 700;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s, transform 0.2s;
}
.competency-item:hover {
  background: #fff;
  border-left-color: var(--navy);
  transform: translateX(2px);
  color: var(--navy-deep);
}
.competency-item:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* Differentiator cards */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.diff-card {
  padding: 32px 28px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--silver-light);
  border-top: 4px solid var(--gold);
  box-shadow: 0 2px 10px rgba(10,31,61,0.06);
}
.diff-card__num {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.diff-card h3 {
  font-size: 1.05rem;
  color: var(--navy-deep);
  margin: 0 0 12px;
  line-height: 1.3;
}
.diff-card p {
  font-size: 0.9rem;
  color: var(--silver-dark);
  margin: 0;
  line-height: 1.6;
}

/* Certification table */
.cert-table-wrap {
  max-width: 1040px;
  margin: 0 auto;
  overflow-x: auto;
}
.cert-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.cert-table thead {
  background: var(--navy-deep);
}
.cert-table th {
  text-align: left;
  padding: 18px 22px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--white);
}
.cert-table td {
  padding: 18px 22px;
  font-size: 0.92rem;
  border-top: 1px solid var(--silver-bg);
  color: var(--navy-deep);
  vertical-align: top;
}
.cert-table tbody tr:hover {
  background: var(--silver-bg);
}
.cert-table td:first-child {
  font-weight: 700;
  white-space: nowrap;
}
.cert-table .placeholder {
  color: var(--silver);
  font-style: italic;
  font-weight: 400;
}

/* Federal Registration block - reuses identifier-card */
.naics-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.naics-list li {
  font-size: 0.92rem;
  color: var(--navy-deep);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  padding: 4px 0;
}
.naics-list li strong {
  color: var(--navy);
  font-weight: 700;
  font-family: var(--font-heading);
}
.naics-list .primary-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* Past performance cards */
.perf-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1040px;
  margin: 0 auto;
}
.perf-card {
  padding: 28px 28px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--silver-light);
  border-left: 4px solid var(--navy);
  box-shadow: 0 2px 10px rgba(10,31,61,0.05);
}
.perf-card__type {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  color: var(--navy-deep);
  margin: 0 0 6px;
  font-weight: 700;
  line-height: 1.3;
}
.perf-card__meta {
  color: var(--silver-dark);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
  font-weight: 600;
}
.perf-card__scope {
  color: var(--navy);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}
.perf-note {
  max-width: 900px;
  margin: 0 auto 32px;
  padding: 16px 24px;
  background: rgba(201,169,97,0.08);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  color: var(--navy);
  font-size: 0.88rem;
  font-style: italic;
  line-height: 1.55;
}

/* Key Personnel */
.personnel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
.personnel-card {
  background: var(--silver-bg);
  padding: 32px;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--navy-deep);
}
.personnel-card h3 {
  font-size: 1.15rem;
  color: var(--navy-deep);
  margin: 0 0 6px;
}
.personnel-card .credentials {
  color: var(--navy);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 14px;
  font-family: var(--font-heading);
}
.personnel-card p {
  color: var(--navy-deep);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

/* Bonding & Insurance grid */
.bonding-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.bonding-item {
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--silver-light);
  border-radius: 8px;
  border-top: 3px solid var(--navy);
}
.bonding-item__label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--silver-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.bonding-item__value {
  font-size: 1rem;
  color: var(--navy-deep);
  font-weight: 600;
  line-height: 1.4;
}
.bonding-item__value.placeholder {
  color: var(--silver);
  font-style: italic;
  font-weight: 500;
  font-size: 0.88rem;
}

/* Download PDF button */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  border-radius: 8px;
  border: 2px solid var(--gold);
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  font-family: var(--font-body);
}
.btn-download:hover {
  background: #d6b771;
  border-color: #d6b771;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(201,169,97,0.35);
  color: var(--navy-deep);
}
.btn-download svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

/* Download section — final CTA before footer */
.download-section {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(180deg, var(--silver-bg) 0%, var(--white) 100%);
}
.download-section h2 {
  color: var(--navy-deep);
  margin-bottom: 12px;
}
.download-section p {
  max-width: 640px;
  margin: 0 auto 32px;
  color: var(--silver-dark);
  font-size: 1rem;
  line-height: 1.6;
}

/* Capabilities page-header download button alignment */
.page-header--capabilities .capabilities-header-actions {
  margin-top: 32px;
}

/* Responsive for capabilities page */
@media (max-width: 960px) {
  .identifier-card { padding: 32px 28px; }
  .identifier-card__grid {
    grid-template-columns: 1fr;
    gap: 4px 0;
  }
  .identifier-card__label {
    padding-top: 0;
    margin-top: 12px;
    margin-bottom: -4px;
  }
  .identifier-card__label:first-child { margin-top: 0; }
  .competency-grid,
  .diff-grid,
  .personnel-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .perf-grid { grid-template-columns: 1fr; }
  .bonding-grid { grid-template-columns: 1fr; }
  .naics-list li { grid-template-columns: 72px 1fr; }
}
@media (max-width: 720px) {
  .competency-grid,
  .diff-grid,
  .personnel-grid {
    grid-template-columns: 1fr;
  }
  .identifier-card { padding: 24px 20px; }
  .identifier-card__title { font-size: 1.5rem; }
  .cert-table th,
  .cert-table td { padding: 12px 14px; font-size: 0.82rem; }
}

/* ========================================
   PRINT STYLES — CAPABILITIES PAGE
   Triggers with Download PDF button → window.print()
   ======================================== */
@media print {
  @page {
    size: letter;
    margin: 0.5in;
  }
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  body {
    font-size: 9.5pt;
    color: #0A1F3D;
    background: #fff;
    font-family: 'Inter', sans-serif;
  }
  .header,
  .footer,
  .cta-band,
  .download-section,
  .capabilities-header-actions,
  .breadcrumb,
  .btn-download,
  .btn,
  .header__toggle {
    display: none !important;
  }
  .page-header,
  .section,
  .section--alt,
  .section--navy,
  .section--dark {
    background: #fff !important;
    padding: 14pt 0 8pt !important;
    page-break-inside: avoid;
  }
  .page-header::before { display: none !important; }
  .container {
    padding: 0 !important;
    max-width: 100% !important;
  }
  .section__header {
    margin-bottom: 10pt;
    text-align: left;
  }
  .section__header p {
    max-width: 100% !important;
    font-size: 9pt;
    color: #444 !important;
  }
  .section__eyebrow {
    font-size: 7pt;
    color: #888 !important;
    letter-spacing: 0.08em;
    margin-bottom: 4pt;
  }
  h1, .page-header h1 {
    font-size: 20pt;
    color: #0A1F3D !important;
    margin-bottom: 4pt;
    line-height: 1.15;
  }
  h2 {
    font-size: 13pt;
    color: #0A1F3D !important;
    margin: 0 0 6pt;
    line-height: 1.2;
  }
  h3 {
    font-size: 10pt;
    color: #0A1F3D !important;
    margin-bottom: 3pt;
  }
  p {
    font-size: 9pt;
    color: #0A1F3D;
    line-height: 1.4;
    margin-bottom: 4pt;
  }
  .identifier-card,
  .diff-card,
  .perf-card,
  .personnel-card,
  .bonding-item {
    box-shadow: none !important;
    border: 0.75pt solid #999 !important;
    padding: 8pt 10pt !important;
    page-break-inside: avoid;
    margin-bottom: 4pt;
    background: #fff !important;
  }
  .identifier-card__title { font-size: 14pt; }
  .identifier-card__subtitle {
    font-size: 7pt;
    padding-bottom: 6pt;
    margin-bottom: 10pt;
  }
  .identifier-card__grid {
    grid-template-columns: 130px 1fr !important;
    gap: 3pt 10pt !important;
  }
  .identifier-card__label { font-size: 6.5pt !important; }
  .identifier-card__value { font-size: 8.5pt; }
  .cert-table {
    box-shadow: none !important;
    font-size: 7.5pt;
    page-break-inside: avoid;
    border: 0.5pt solid #999;
  }
  .cert-table thead {
    background: #0A1F3D !important;
  }
  .cert-table th {
    color: #fff !important;
    padding: 5pt 7pt !important;
    font-size: 6.5pt !important;
  }
  .cert-table td {
    padding: 5pt 7pt !important;
    font-size: 7.5pt !important;
  }
  .diff-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 4pt !important;
  }
  .diff-card {
    padding: 6pt 8pt !important;
    border-top: 2pt solid #C9A961 !important;
  }
  .diff-card__num { font-size: 6pt; }
  .diff-card h3 { font-size: 8.5pt; margin-bottom: 3pt; }
  .diff-card p { font-size: 7.5pt; line-height: 1.3; }
  .perf-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 4pt !important;
  }
  .perf-card {
    padding: 6pt 8pt !important;
    border-left: 2pt solid #0A1F3D !important;
  }
  .perf-card__type { font-size: 9pt; }
  .perf-card__meta { font-size: 6pt; margin-bottom: 4pt; }
  .perf-card__scope { font-size: 7.5pt; line-height: 1.35; }
  .perf-note {
    background: #fff !important;
    padding: 4pt 8pt !important;
    font-size: 7.5pt !important;
    border-left: 1.5pt solid #C9A961 !important;
    margin-bottom: 6pt;
  }
  .competency-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 3pt !important;
  }
  .competency-item {
    padding: 4pt 6pt !important;
    font-size: 7.5pt !important;
    background: #fff !important;
    border-left: 1.5pt solid #C9A961 !important;
  }
  .personnel-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 4pt !important;
  }
  .personnel-card {
    background: #fff !important;
    border-left: 2pt solid #0A1F3D !important;
    padding: 6pt 8pt !important;
  }
  .personnel-card h3 { font-size: 9pt; }
  .personnel-card .credentials { font-size: 7pt; margin-bottom: 4pt; }
  .personnel-card p { font-size: 7.5pt; line-height: 1.35; }
  .bonding-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 3pt !important;
  }
  .bonding-item { padding: 4pt 8pt !important; }
  .bonding-item__label { font-size: 6pt; }
  .bonding-item__value { font-size: 8pt; }
  .naics-list li {
    font-size: 7.5pt;
    grid-template-columns: 60px 1fr;
    gap: 8pt;
    padding: 1pt 0;
  }
  a {
    color: #0A1F3D !important;
    text-decoration: none !important;
  }
  /* Print-only footer with firm identity */
  body::after {
    content: 'Civil Builders Engineering Services, P.C.  ·  714 Summit Avenue, Greensboro, NC 27405  ·  (336) 370-6289  ·  contact@cbespc.com  ·  cbespc.com';
    display: block;
    position: fixed;
    bottom: 0.25in;
    left: 0.5in;
    right: 0.5in;
    text-align: center;
    font-size: 7pt;
    color: #555;
    border-top: 0.5pt solid #ccc;
    padding-top: 4pt;
  }
}

/* ========================================
   INSIGHTS LANDING + ARTICLE PAGES
   ======================================== */

/* Article card grid (landing page) */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.article-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--silver-light);
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 10px rgba(10,31,61,0.04);
}
.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(10,31,61,0.14);
  border-color: var(--blue-bright);
}
.article-card__image {
  height: 200px;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy), var(--navy-mid));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.article-card__image::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 30px 30px;
}
.article-card__image svg {
  width: 72px;
  height: 72px;
  color: rgba(255,255,255,0.22);
  position: relative;
  z-index: 1;
}
.article-card__body {
  padding: 28px 28px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-card__category {
  display: inline-block;
  background: var(--silver-bg);
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
  align-self: flex-start;
}
.article-card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--navy-deep);
  margin: 0 0 12px;
  line-height: 1.35;
  font-weight: 700;
}
.article-card__excerpt {
  color: var(--silver-dark);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 20px;
  flex: 1;
}
.article-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--silver-bg);
  padding-top: 16px;
  font-size: 0.78rem;
  color: var(--silver-dark);
}
.article-card__date { font-weight: 500; }
.article-card__read {
  color: var(--blue-bright);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Category filter bar */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 56px;
}
.category-filter a {
  padding: 10px 22px;
  background: var(--white);
  border: 1px solid var(--silver-light);
  color: var(--navy);
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.category-filter a:hover,
.category-filter a.active {
  background: var(--navy-deep);
  color: var(--white);
  border-color: var(--navy-deep);
}

/* Article hero (on individual article pages) */
.article-hero {
  padding: 160px 0 72px;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 50%, var(--navy-mid) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.6;
}
.article-hero .container { position: relative; z-index: 1; }
.article-hero .breadcrumb { margin-bottom: 32px; }
.article-hero .breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; }
.article-hero .breadcrumb a:hover { color: var(--white); }
.article-hero .breadcrumb span { color: rgba(255,255,255,0.5); }
.article-hero__category {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 4px;
  margin-bottom: 24px;
}
.article-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.2;
  margin-bottom: 28px;
  max-width: 920px;
  letter-spacing: -0.01em;
}
.article-hero__meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.8);
  font-size: 0.92rem;
  align-items: center;
  font-weight: 500;
}
.article-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.article-hero__meta svg { width: 16px; height: 16px; }

/* Article body */
.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 20px 40px;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--navy-deep);
}
.article-body > p:first-of-type {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 40px;
}
.article-body p { margin-bottom: 24px; }
.article-body h2 {
  font-size: 1.85rem;
  color: var(--navy-deep);
  margin: 56px 0 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-size: 1.3rem;
  color: var(--navy-deep);
  margin: 40px 0 14px;
  line-height: 1.3;
}
.article-body ul, .article-body ol {
  margin: 0 0 28px 24px;
  padding: 0;
}
.article-body li { margin-bottom: 12px; }
.article-body strong { color: var(--navy-deep); font-weight: 700; }
.article-body a {
  color: var(--blue-bright);
  border-bottom: 1px solid currentColor;
  transition: color 0.2s;
  text-decoration: none;
}
.article-body a:hover { color: var(--navy-deep); }
.article-body blockquote {
  margin: 36px 0;
  padding: 24px 32px;
  border-left: 4px solid var(--gold);
  background: var(--silver-bg);
  font-style: italic;
  color: var(--navy-deep);
  font-size: 1.12rem;
  line-height: 1.6;
}

.article-callout {
  margin: 36px 0;
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(49,130,206,0.07), rgba(49,130,206,0.02));
  border-left: 4px solid var(--blue-bright);
  border-radius: 0 8px 8px 0;
}
.article-callout h4 {
  font-size: 0.75rem;
  color: var(--blue-bright);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 12px;
  font-weight: 700;
}
.article-callout p:last-child { margin-bottom: 0; }

.article-takeaways {
  margin: 56px 0 0;
  padding: 40px 44px;
  background: var(--navy-deep);
  color: var(--white);
  border-radius: var(--radius-lg);
}
.article-takeaways h3 {
  color: var(--gold) !important;
  font-size: 0.78rem !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 24px !important;
  font-weight: 700;
}
.article-takeaways ul {
  margin: 0;
  list-style: none;
  padding: 0;
}
.article-takeaways li {
  padding: 14px 0 14px 28px;
  position: relative;
  color: var(--white);
  line-height: 1.55;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 0;
  font-size: 1rem;
}
.article-takeaways li:last-child { border-bottom: none; }
.article-takeaways li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

.article-byline {
  max-width: 760px;
  margin: 48px auto 0;
  padding: 32px 40px;
  background: var(--silver-bg);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--navy-deep);
}
.article-byline h4 {
  font-size: 1.05rem;
  color: var(--navy-deep);
  margin: 0 0 10px;
  font-family: var(--font-heading);
}
.article-byline p {
  font-size: 0.92rem;
  color: var(--silver-dark);
  margin: 0 0 8px;
  line-height: 1.65;
}
.article-byline p:last-child { margin-bottom: 0; }

@media (max-width: 960px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .article-hero { padding: 120px 0 56px; }
  .article-body { padding: 60px 20px 20px; font-size: 1rem; }
  .article-body h2 { font-size: 1.55rem; margin: 44px 0 16px; }
  .article-body h3 { font-size: 1.18rem; margin: 32px 0 12px; }
  .article-takeaways { padding: 32px; }
}
@media (max-width: 720px) {
  .article-grid { grid-template-columns: 1fr; }
  .article-hero { padding: 96px 0 44px; }
  .article-hero__meta { gap: 16px; font-size: 0.84rem; }
  .article-body h2 { font-size: 1.35rem; }
  .article-byline { padding: 24px; }
  .article-takeaways { padding: 24px 20px; }
  .article-takeaways li { font-size: 0.92rem; }
}

/* ========== Mobile nav open state (added 2026-04-24 with main.js) ========== */
@media (max-width: 900px) {
  .header__nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0A1F3D;
    padding: 20px 24px 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 24px rgba(0,0,0,0.28);
    z-index: 50;
  }
  .header__nav.is-open a {
    display: block;
    width: 100%;
    padding: 12px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .header__nav.is-open a:last-child {
    border-bottom: none;
  }
  .header__toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .header__toggle.is-open span:nth-child(2) {
    opacity: 0;
  }
  .header__toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}
