/* ============================================================
   Grainger Contracting & Services — Premium Stylesheet
   Colors: Navy #1C2D6E | Red #BF0A30 | White #FFFFFF
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Barlow+Condensed:wght@600;700&family=Barlow:wght@400;500;600;700&display=swap');

:root {
  --navy:       #1C2D6E;
  --navy-dark:  #0F1A45;
  --navy-light: #2A3E8A;
  --red:        #BF0A30;
  --red-dark:   #9E0826;
  --white:      #ffffff;
  --off-white:  #F4F6FB;
  --light-gray: #ECEEF5;
  --border:     #DDE1EE;
  --text:       #0D1B3E;
  --text-muted: #5C6B8A;
  --shadow-sm:  0 1px 4px rgba(15,26,69,0.07), 0 1px 2px rgba(15,26,69,0.04);
  --shadow:     0 4px 16px rgba(15,26,69,0.09), 0 2px 6px rgba(15,26,69,0.05);
  --shadow-md:  0 8px 28px rgba(15,26,69,0.11), 0 3px 10px rgba(15,26,69,0.06);
  --shadow-lg:  0 20px 52px rgba(15,26,69,0.15), 0 8px 20px rgba(15,26,69,0.08);
  --shadow-xl:  0 32px 72px rgba(15,26,69,0.20), 0 12px 28px rgba(15,26,69,0.10);
  --radius:     6px;
  --radius-lg:  12px;
  --radius-xl:  24px;
  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --max-w:      1200px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  line-height: 1.12;
  color: var(--navy);
}
h1 { font-size: clamp(2.6rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
h4 { font-size: 1.1rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Layout ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}
.section    { padding: 6rem 0; }
.section-sm { padding: 3.5rem 0; }
.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}
.text-center .section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.text-center .section-label::before,
.text-center .section-label::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--red);
  opacity: 0.5;
}
.section-title   { margin-bottom: 0.85rem; }
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.75;
}
.red-bar {
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--red-dark));
  margin: 1rem 0 1.75rem;
  border-radius: 2px;
  box-shadow: 0 1px 6px rgba(191,10,48,0.35);
}
.red-bar.center { margin-left: auto; margin-right: auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.025em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  box-shadow: 0 4px 14px rgba(191,10,48,0.22);
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}
.btn-primary:hover::after { left: 160%; }
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(191,10,48,0.38);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
  backdrop-filter: blur(4px);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.15);
}
.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(15,26,69,0.2);
}
.btn-lg {
  padding: 1.05rem 2.5rem;
  font-size: 0.98rem;
  min-width: 210px;
  justify-content: center;
}

/* ── Phosphor Icon sizing ── */
.ph, .ph-duotone {
  font-size: inherit;
  line-height: 1;
  vertical-align: middle;
}

/* ── HEADER ── */
.header .container {
  max-width: 1280px;
}
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #ffffff;
  border-bottom: 3px solid var(--red);
  box-shadow: 0 2px 20px rgba(15,26,69,0.07);
  transition: box-shadow var(--transition), height var(--transition);
}
.header.scrolled {
  box-shadow: 0 4px 28px rgba(15,26,69,0.12);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 195px;
  transition: height var(--transition);
}
.header.scrolled .header-inner { height: 130px; }

.header-logo img {
  height: 162px;
  width: auto;
  transition: height var(--transition), opacity var(--transition);
  filter: none;
}
.header.scrolled .header-logo img { height: 118px; }
.header-logo:hover img { opacity: 0.85; }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex-wrap: nowrap;
  flex-shrink: 0;
}
.nav-link {
  font-weight: 500;
  font-size: 0.97rem;
  color: var(--text);
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  transition: color var(--transition);
  position: relative;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform var(--transition);
  border-radius: 2px;
}
.nav-link:hover { color: var(--navy); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active::after { transform: scaleX(1); }
.nav-cta { margin-left: 0.75rem; white-space: nowrap; }

/* On scroll, the CTA button stays solid */
.nav-cta .btn-primary {
  box-shadow: 0 4px 14px rgba(191,10,48,0.28);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  border: none;
  background: none;
  z-index: 210;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--navy);
  transition: all 0.3s ease;
  border-radius: 2px;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--navy-dark);
  z-index: 205;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-nav.open { opacity: 1; pointer-events: all; }
.mobile-nav .nav-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
}
.mobile-nav .nav-link::after { display: none; }
.mobile-nav .btn { margin-top: 0.75rem; }

/* ── CREDENTIALS STRIP ── */
.agency-strip {
  background: var(--off-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
}
.agency-strip-label {
  text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.agency-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem 3rem;
}
.agency-logo img {
  height: 64px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}
.agency-logo img:hover {
  transform: scale(1.08);
}

.credentials-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.credential-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-right: 1px solid var(--border);
  transition: color var(--transition), background var(--transition);
  text-align: center;
}
.credential-badge:last-child { border-right: none; }
.credential-badge:hover { color: var(--navy); background: var(--off-white); }
.credential-badge i {
  font-size: 1.1rem;
  color: var(--red);
  flex-shrink: 0;
}

/* ── PROCESS SECTION ── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}
.process-grid::before {
  content: '';
  position: absolute;
  top: 2.8rem;
  left: calc(12.5% + 1rem);
  right: calc(12.5% + 1rem);
  height: 2px;
  background: linear-gradient(90deg, var(--border), var(--red), var(--border));
  z-index: 0;
}
.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.process-number {
  font-family: 'DM Serif Display', serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}
.process-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.8rem;
  color: var(--navy);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.process-step:hover .process-icon {
  border-color: var(--red);
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.process-step h3 { font-size: 1rem; margin-bottom: 0.65rem; }
.process-step p  { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; margin: 0; }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(42,62,138,0.6) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(191,10,48,0.08) 0%, transparent 50%),
    linear-gradient(165deg, var(--navy-dark) 0%, var(--navy) 50%, #1e347a 100%);
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  transition: none;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10, 22, 60, 0.84) 0%,
    rgba(28, 45, 110, 0.74) 60%,
    rgba(10, 22, 60, 0.83) 100%
  );
  z-index: 1;
}
.hero-blueprint {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
  z-index: 2;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      -55deg,
      transparent,
      transparent 50px,
      rgba(255,255,255,0.012) 50px,
      rgba(255,255,255,0.012) 100px
    );
  pointer-events: none;
  z-index: 2;
}
.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(42,62,138,0.5) 0%, transparent 70%);
  pointer-events: none;
  z-index: 2;
}
.hero-red-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red-dark), var(--red), var(--red-dark));
  z-index: 3;
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 15rem 0 7rem;
  max-width: 1050px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-logo {
  display: none;
}
.hero-logo img {
  height: 140px;
  width: auto;
  filter: brightness(0) invert(1);
}
.hero-divider { display: none; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: heroFadeUp 0.9s cubic-bezier(0.16,1,0.3,1) 0.35s forwards;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--red);
}
.hero h1 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 5.5vw, 5.2rem);
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 32px rgba(0,0,0,0.25);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  opacity: 0;
  animation: heroFadeUp 0.9s cubic-bezier(0.16,1,0.3,1) 0.45s forwards;
}
.hero-sub {
  color: #ffffff;
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 580px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.7);
  margin-bottom: 3rem;
  opacity: 0;
  animation: heroFadeUp 0.9s cubic-bezier(0.16,1,0.3,1) 0.55s forwards;
}
.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  opacity: 0;
  animation: heroFadeUp 0.9s cubic-bezier(0.16,1,0.3,1) 0.65s forwards;
}

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero-scroll-cue {
  margin-top: 2.5rem;
  color: rgba(255,255,255,0.7);
  animation: scrollBounce 2s ease-in-out infinite;
  cursor: pointer;
}
.hero-scroll-cue svg { display: block; }
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0);   opacity: 0.6; }
  50%       { transform: translateY(8px); opacity: 0.9; }
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: linear-gradient(140deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 0;
  min-height: 300px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red-dark), var(--red), var(--red-dark));
}
.page-hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      -55deg, transparent, transparent 50px,
      rgba(255,255,255,0.012) 50px,
      rgba(255,255,255,0.012) 100px
    );
  pointer-events: none;
}
.page-hero .container { width: 100%; padding-top: 12rem; padding-bottom: 3rem; }
.page-hero-content { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; width: 100%; }
.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.breadcrumb { justify-content: center; }
.breadcrumb {
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
}
.breadcrumb a { color: rgba(255,255,255,0.5); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .sep { margin: 0 0.5rem; color: var(--red); }
.breadcrumb .current { color: rgba(255,255,255,0.85); }

/* ── STATS STRIP ── */
.stats-strip {
  background: var(--navy-dark);
  padding: 0;
  position: relative;
  z-index: 2;
  border-top: 3px solid var(--red);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  text-align: center;
  padding: 2rem 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.08);
  position: relative;
  transition: background var(--transition);
}
.stat-item:hover { background: rgba(255,255,255,0.04); }
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: 'DM Serif Display', serif;
  font-size: 3.2rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.stat-number em { color: inherit; font-style: normal; }
.stat-label {
  color: rgba(255,255,255,0.5);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ── CPARS Grid ── */
.cpars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* ── Homepage strip CTAs ── */
.cpars-cta-btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  background: #BF0A30;
  padding: 0.5rem 1.1rem;
  border-radius: 4px;
  transition: background 0.2s;
}
.cpars-cta-btn:hover { background: #a00824; }

.numbers-cta-btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 4px;
  transition: all 0.2s;
  background: rgba(255,255,255,0.12);
}
.numbers-cta-btn:hover { background: #BF0A30; border-color: #BF0A30; }

/* ── ABOUT SECTION (homepage) ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.about-image-wrap {
  position: relative;
  aspect-ratio: 5 / 7;
  width: 420px;
  margin: 0 auto;
}
.about-image-wrap > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}
.about-img-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(
      45deg,
      rgba(28,45,110,0.04) 0px,
      rgba(28,45,110,0.04) 1px,
      transparent 1px,
      transparent 12px
    ),
    linear-gradient(135deg, #d4d9ed 0%, #bcc5df 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px dashed rgba(28,45,110,0.15);
}
.about-img-placeholder img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.about-img-placeholder .img-placeholder-label {
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.4;
}
.about-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--red);
  color: var(--white);
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  text-align: center;
}
.about-badge strong {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  line-height: 1;
  display: block;
  font-weight: 400;
}
.about-badge span { font-size: 0.68rem; opacity: 0.88; letter-spacing: 0.06em; text-transform: uppercase; }

.differentiators { margin-top: 2rem; display: grid; gap: 0.85rem; }
.diff-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.diff-item strong { color: var(--text); }
.diff-dot {
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.48rem;
}

/* ── PROJECTS GRID ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.project-img {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #c0cbe6 0%, #a3b2d3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.project-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent 55%, rgba(8, 18, 36, 0.28) 100%),
    radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, 0.12) 100%);
  pointer-events: none;
  z-index: 1;
}
.project-card:hover .project-img img { transform: scale(1.06); }
.project-img-icon {
  font-size: 3.5rem;
  opacity: 0.35;
  color: var(--navy);
}
.project-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.project-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.65rem;
}
.project-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.project-location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.83rem;
  margin-bottom: 0.9rem;
}
.project-location i { font-size: 1rem; color: var(--red); }
.project-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
  flex: 1;
}
.project-value {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  width: 100%;
}
.project-value::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── SERVICES GRID ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--red-dark));
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.service-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 60px; height: 60px;
  border-radius: var(--radius-lg);
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  color: var(--navy);
  font-size: 1.75rem;
  transition: all var(--transition);
}
.service-card:hover .service-icon {
  background: var(--navy);
  color: var(--white);
  transform: scale(1.08) rotate(-4deg);
}
.service-card h3 { font-size: 1.08rem; margin-bottom: 0.75rem; }
.service-card p  { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; margin: 0; }

/* ── VALUES ── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.value-card {
  text-align: center;
  padding: 2.5rem 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
}
.value-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.value-icon {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.4rem;
  color: var(--navy);
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.value-card:hover .value-icon {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(15,26,69,0.2);
}
.value-card h3 { font-size: 1.08rem; margin-bottom: 0.7rem; }
.value-card p  { font-size: 0.88rem; color: var(--text-muted); margin: 0; line-height: 1.7; }

/* ── PARTNER CTA BAND ── */
.cta-band {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(42,62,138,0.5) 0%, transparent 60%),
    linear-gradient(165deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      -55deg, transparent, transparent 50px,
      rgba(255,255,255,0.014) 50px,
      rgba(255,255,255,0.014) 100px
    );
  pointer-events: none;
}
.cta-band::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}
.cta-band-content { position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); margin-bottom: 1rem; }
.cta-band p {
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
}
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Partner Section ── */
.partner-section {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(42,62,138,0.5) 0%, transparent 60%),
    linear-gradient(165deg, var(--navy-dark) 0%, var(--navy) 100%);
  position: relative;
  overflow: hidden;
}
.partner-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      -55deg, transparent, transparent 50px,
      rgba(255,255,255,0.014) 50px,
      rgba(255,255,255,0.014) 100px
    );
  pointer-events: none;
}
.partner-section::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}
.partner-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 600px;
}
.partner-copy {
  padding: 5rem 4rem 5rem 5vw;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.partner-copy h2 { color: var(--white); margin-bottom: 1rem; }
.partner-copy p  { color: rgba(255,255,255,0.75); line-height: 1.8; margin-bottom: 1rem; }
.partner-form-wrap {
  background: var(--white);
  padding: 5rem 5vw 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.partner-form-card h3 { color: var(--navy); margin-bottom: 0.4rem; font-size: 1.5rem; }
.partner-form-card > p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.75rem; }

/* ── FAQ ── */
.faq-wrap { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  gap: 1rem;
  transition: color var(--transition);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: 'Barlow', sans-serif;
}
.faq-question:hover { color: var(--navy); }
.faq-toggle {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition), color var(--transition);
  color: var(--navy);
}
.faq-item.open .faq-toggle {
  background: var(--navy);
  color: var(--white);
  transform: rotate(45deg);
}
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}
.faq-answer-inner {
  padding-bottom: 1.5rem;
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.95rem;
}
.faq-item.open .faq-answer { max-height: 400px; }

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: start;
}
.contact-info-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  border: 1px solid var(--border);
}
.contact-info-card h3 { margin-bottom: 0.5rem; }
.contact-info-card > p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 2.25rem; }
.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.6rem;
}
.contact-detail:last-child { margin-bottom: 0; }
.contact-detail-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.contact-detail-text strong { display: block; font-weight: 600; margin-bottom: 0.2rem; }
.contact-detail-text a,
.contact-detail-text span { color: var(--text-muted); font-size: 0.95rem; transition: color var(--transition); }
.contact-detail-text a:hover { color: var(--navy); }

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  box-shadow: var(--shadow-md);
}
.contact-form-card h3 { margin-bottom: 0.5rem; }
.contact-form-card > p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 2.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  letter-spacing: 0.01em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(28,45,110,0.08);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235C6B8A' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  padding-right: 2.5rem;
}
.form-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.75rem; }

/* ── FOOTER ── */
.footer {
  background: #0F1A45;
  color: rgba(255,255,255,0.6);
  padding: 0;
}
.footer-logo-img {
  height: 140px;
  width: auto;
  display: block;
  margin-bottom: 1.5rem;
}
.footer-brand p {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.55);
  max-width: 320px;
}
.footer-address {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 3rem;
  padding: 5rem 0 4.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition), padding-left var(--transition);
}
.footer-links a:hover { color: var(--white); padding-left: 4px; }
.footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
  font-size: 1rem;
}
.footer-contact-row i { flex-shrink: 0; font-size: 1.1rem; opacity: 0.55; margin-top: 1px; }
.footer-contact-row a { color: rgba(255,255,255,0.55); transition: color var(--transition); }
.footer-contact-row a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.35);
}
.footer-bottom a { color: rgba(255,255,255,0.32); transition: color var(--transition); }
.footer-bottom a:hover { color: rgba(255,255,255,0.65); }

/* ── Scroll Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }
.reveal-delay-6 { transition-delay: 0.48s; }

/* Legacy fade-up support */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.in { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ── Background variants ── */
.bg-off-white  { background: var(--off-white); }
.bg-light      { background: var(--light-gray); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .partner-grid  { grid-template-columns: 1fr; }
  .partner-copy  { padding: 4rem 2rem; }
  .partner-form-wrap { padding: 4rem 2rem; }
  .about-grid    { grid-template-columns: 1fr; gap: 4rem; }
  .values-grid   { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-logo-img { height: 120px; }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid rgba(255,255,255,0.08); }
  .process-grid  { grid-template-columns: repeat(2, 1fr); }
  .process-grid::before { display: none; }
  .credentials-grid { justify-content: flex-start; }
}

@media (max-width: 900px) {
  .cred-top { grid-template-columns: 1fr !important; }
  .cpars-grid { grid-template-columns: 1fr !important; }
  .projects-grid[style*="repeat(3"] { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 600px) {
  .projects-grid[style*="repeat(3"] { grid-template-columns: 1fr !important; }
}

@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .header-inner { height: 96px; }
  .header.scrolled .header-inner { height: 72px; }
  .header-logo img { height: 78px; }
  .header.scrolled .header-logo img { height: 58px; }
  .credentials-grid { grid-template-columns: repeat(2, 1fr); }
  .credential-badge:nth-child(2) { border-right: none; }
  .credential-badge:nth-child(3) { border-top: 1px solid var(--border); border-right: 1px solid var(--border); }
  .credential-badge:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }
  .credential-badge:nth-child(5) { border-top: 1px solid var(--border); border-right: none; grid-column: 1 / -1; }
  .nav-desktop { display: none; }
  .hamburger   { display: flex; }
  .mobile-nav  { display: flex; }
  .hero { min-height: 85vh; }
  .hero-content { padding: 8rem 0 3rem; }
  .hero-scroll-cue { margin-top: 1.5rem; }
  .hero-sub { font-size: 0.92rem; line-height: 1.65; margin-bottom: 2rem; }
  .hero-scroll-cue { margin-top: 1rem; }
  .credential-badge { padding: 0.85rem 1.25rem; font-size: 0.76rem; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid::before { display: none; }
  .projects-grid  { grid-template-columns: 1fr; }
  .services-grid  { grid-template-columns: 1fr 1fr; }
  .contact-grid   { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid    { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom  { flex-direction: column; gap: 0.5rem; text-align: center; }
  .footer-logo-img { height: 110px; }
  .footer-brand p { max-width: 100%; }
  .form-row       { grid-template-columns: 1fr; }
  .page-hero      { padding: 6rem 0 3rem; }
}

@media (max-width: 640px) {
  .cred-naics-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 540px) {
  .container { padding: 0 1.25rem; }
  .services-grid { grid-template-columns: 1fr; }
  .values-grid   { grid-template-columns: 1fr; }
  .hero-actions  { flex-direction: column; align-items: center; }
  .cta-actions   { flex-direction: column; align-items: center; }
  .process-grid  { grid-template-columns: 1fr; }
  .credential-badge { border-right: none; border-bottom: 1px solid var(--border); width: 100%; justify-content: center; }
  .credentials-grid { grid-template-columns: 1fr; }
  .stat-number   { font-size: 2.6rem; }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .about-badge   { bottom: 0.5rem; right: 0.5rem; padding: 1.25rem 1.5rem; }
  .about-badge strong { font-size: 2.4rem; }
  .hero-divider  { display: none; }
  .perf-intro-grid { grid-template-columns: 1fr !important; }
  .perf-cards-grid { grid-template-columns: 1fr !important; }
  .cta-band h2 { font-size: 1.6rem; overflow-wrap: break-word; word-break: break-word; }
  .chart-card { overflow: hidden; }
}
