/* ════════════════════════════════════════════════════════════
   GovRFP Strategic Solutions — Master Stylesheet
   Primary: #1C3461  |  Action: #C8102E  |  © 2025
════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── TOKENS ──────────────────────────────────────────────── */
:root {
  --navy:        #1C3461;
  --navy-dark:   #101E36;
  --navy-mid:    #24407A;
  --navy-light:  #2D528F;
  --red:         #C8102E;
  --red-dark:    #A00C24;
  --red-glow:    rgba(200,16,46,0.25);
  --white:       #FFFFFF;
  --off-white:   #F6F8FC;
  --cool-gray:   #EDF0F7;
  --border:      #D4DAEA;
  --border-dark: #C0CADA;
  --text-h:      #0E1E3A;
  --text-body:   #3A4D70;
  --text-muted:  #6478A2;
  --shadow-xs:   0 1px 4px rgba(28,52,97,0.07);
  --shadow-sm:   0 2px 10px rgba(28,52,97,0.09);
  --shadow-md:   0 6px 30px rgba(28,52,97,0.13);
  --shadow-lg:   0 16px 56px rgba(28,52,97,0.18);
  --shadow-xl:   0 28px 80px rgba(28,52,97,0.22);
  --radius:      0px; /* Sharp corners — gov/corporate */
  --nav-h:       80px;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ── LAYOUT ──────────────────────────────────────────────── */
.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 1024px) { .container { padding: 0 3rem; } }

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
h1,h2,h3,h4,h5 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--text-h);
}
h1 { font-size: clamp(2.6rem, 5.5vw, 5rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.9rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); }
p  { color: var(--text-body); line-height: 1.78; }

/* ── SECTION ─────────────────────────────────────────────── */
.section      { padding: 6rem 0; }
.section-sm   { padding: 3.5rem 0; }
.bg-white     { background: var(--white); }
.bg-gray      { background: var(--off-white); }
.bg-coolgray  { background: var(--cool-gray); }
.bg-navy      { background: var(--navy); }
.bg-navy-dark { background: var(--navy-dark); }

/* ── INLINE SVG LOGO (shared across all pages) ───────────── */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
}
.logo-icon svg { flex-shrink: 0; }
.logo-text-wrap { display: flex; flex-direction: column; }
.logo-name {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--navy);
  line-height: 1;
}
.logo-name strong { color: var(--red); font-weight: 900; }
.logo-sub {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.2rem;
}
/* Inverted logo for dark backgrounds */
.logo-inverted .logo-name { color: var(--white); }
.logo-inverted .logo-name strong { color: #ff8096; }
.logo-inverted .logo-sub { color: rgba(255,255,255,0.45); }

/* ── NAVIGATION ──────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.35s ease, border-color 0.35s;
}
.navbar.scrolled {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-center {
  display: none;
  align-items: center;
  gap: 2.5rem;
}
@media (min-width: 900px) { .nav-center { display: flex; } }

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.25s ease;
}
.nav-link:hover { color: var(--navy); }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: var(--navy); font-weight: 700; }
.nav-link.active::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 0.75rem; }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}
@media (min-width: 900px) { .hamburger { display: none; } }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--navy); transition: all 0.3s; }

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 999;
  padding: 2rem 1.5rem;
  overflow-y: auto;
  border-top: 3px solid var(--red);
}
.mobile-nav.open { display: block; }
.mobile-nav .nav-link {
  display: block;
  font-size: 1.2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--navy);
}
.mobile-nav .nav-link::after { display: none; }
.mobile-nav .btn { margin-top: 1.5rem; width: 100%; justify-content: center; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.78rem 1.6rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn svg { flex-shrink: 0; transition: transform 0.2s; }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  box-shadow: 0 8px 24px var(--red-glow);
  transform: translateY(-1px);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  box-shadow: 0 8px 24px rgba(28,52,97,0.3);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
}
.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }
.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.8rem; }

/* ── LABELS & BADGES ─────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}
.eyebrow.center::before { display: none; }
.eyebrow.center { justify-content: center; margin-bottom: 0.75rem; }

.divider { width: 40px; height: 3px; background: var(--red); margin: 1rem 0 1.75rem; }
.divider.center { margin: 0.75rem auto 1.75rem; }

/* ── PAGE HERO (inner pages) ─────────────────────────────── */
.page-hero {
  margin-top: var(--nav-h);
  background: var(--navy);
  padding: 5.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--red), transparent);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.page-hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,16,46,0.1) 0%, transparent 70%);
  top: -200px; right: -100px;
  pointer-events: none;
}
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,0.65); max-width: 580px; font-size: 1.1rem; margin-top: 1rem; }
.page-hero-content { position: relative; z-index: 1; }

/* ── CARDS ───────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1.5px solid var(--border);
  padding: 2.25rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
  position: relative;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--navy);
}
.card:hover::before { background: var(--red); }

.card-icon {
  width: 52px; height: 52px;
  background: var(--cool-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--red);
  transition: background 0.25s, border-color 0.25s;
}
.card:hover .card-icon { background: rgba(200,16,46,0.08); }
.card-icon svg {
  width: 22px; height: 22px;
  stroke: var(--navy); fill: none;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke 0.25s;
}
.card:hover .card-icon svg { stroke: var(--red); }
.card h3 { margin-bottom: 0.75rem; }
.card p { font-size: 0.9rem; }

/* ── GRIDS ───────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px)  { .grid-2 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 640px)  { .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3,1fr); } }

/* ── STATS STRIP ─────────────────────────────────────────── */
.stats-strip { background: var(--navy); padding: 3rem 0; }
.stats-row {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 0;
}
@media (min-width: 768px) { .stats-row { grid-template-columns: repeat(4,1fr); } }
.stat-cell {
  text-align: center;
  padding: 1.5rem 1rem;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-cell:last-child { border-right: none; }
.stat-value {
  font-size: clamp(2rem,4vw,3rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat-value .red { color: var(--red); }
.stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: 0.5rem;
}

/* ── PROCESS STEPS ───────────────────────────────────────── */
.steps-row {
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
}
@media (min-width: 768px) { .steps-row { grid-template-columns: repeat(4,1fr); } }
.step {
  padding: 2.25rem 1.75rem;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-right: none;
  position: relative;
  transition: background 0.25s;
}
.step:last-child { border-right: 1px solid var(--border); }
.step:hover { background: var(--off-white); }
.step-n {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 900;
  background: var(--navy); color: var(--white);
  margin: 0 auto 1.25rem;
  letter-spacing: -0.02em;
  transition: background 0.25s;
}
.step:last-child .step-n { background: var(--red); }
.step:hover .step-n { background: var(--navy-mid); }
.step:last-child:hover .step-n { background: var(--red-dark); }
.step h4 { font-size: 0.95rem; font-weight: 700; color: var(--text-h); margin-bottom: 0.5rem; }
.step p  { font-size: 0.82rem; color: var(--text-muted); line-height: 1.65; }

/* ── MARQUEE ─────────────────────────────────────────────── */
.marquee-bar { background: var(--navy-dark); padding: 0; overflow: hidden; border-top: 3px solid var(--red); }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.marquee-inner { display: flex; width: max-content; animation: marquee 35s linear infinite; padding: 0.9rem 0; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0 2.75rem;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); white-space: nowrap;
}
.marquee-dot { color: var(--red); font-size: 8px; }

/* ── FORM ────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-h);
  margin-bottom: 0.5rem;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: inherit; font-size: 0.9rem;
  color: var(--text-h);
  background: var(--white);
  border: 1.5px solid var(--border);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(28,52,97,0.1);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); font-weight: 400; }
.form-textarea { resize: vertical; min-height: 140px; line-height: 1.65; }
.form-select-wrap { position: relative; }
.form-select-wrap::after { content: '▾'; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; font-size: 0.8rem; }

/* ── CONTACT INFO ────────────────────────────────────────── */
.contact-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-item:last-child { border-bottom: none; }
.contact-item-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  background: var(--cool-gray);
  display: flex; align-items: center; justify-content: center;
  border-left: 3px solid var(--navy);
}
.contact-item-icon svg { width: 20px; height: 20px; stroke: var(--navy); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.contact-item-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.25rem; }
.contact-item-value { font-size: 0.95rem; font-weight: 600; color: var(--text-h); }
.contact-item-value a { color: var(--navy); transition: color 0.2s; }
.contact-item-value a:hover { color: var(--red); }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer { background: var(--navy-dark); border-top: 4px solid var(--red); padding: 4rem 0 1.75rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; margin-bottom: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-desc { font-size: 0.875rem; color: rgba(255,255,255,0.45); line-height: 1.75; max-width: 300px; margin-top: 1.25rem; }
.footer-col-title { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 1.25rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a { font-size: 0.875rem; color: rgba(255,255,255,0.58); transition: color 0.2s, padding-left 0.2s; }
.footer-links a:hover { color: var(--white); padding-left: 4px; }
.footer-bar {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.75rem;
  display: flex; flex-direction: column; align-items: center;
  gap: 0.5rem; text-align: center;
}
@media (min-width: 640px) { .footer-bar { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-bar p { font-size: 0.78rem; color: rgba(255,255,255,0.3); margin: 0; }
.footer-bar a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-bar a:hover { color: var(--white); }

/* ── SCROLL TO TOP ───────────────────────────────────────── */
#back-top {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 46px; height: 46px;
  background: var(--navy); color: var(--white);
  border: none; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: all 0.3s; z-index: 800;
}
#back-top.show { opacity: 1; pointer-events: all; }
#back-top:hover { background: var(--red); transform: translateY(-2px); }

/* ── REVEAL ANIMATIONS ───────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.up { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }

/* ── SHARED SECTION HEADER ───────────────────────────────── */
.sec-header { margin-bottom: 3.5rem; }
.sec-header.c { text-align: center; }
.sec-header.c .s-sub { margin: 0 auto; }
.sec-title { color: var(--text-h); }
.s-sub { font-size: 1rem; color: var(--text-muted); line-height: 1.8; max-width: 560px; margin-top: 0.75rem; }

/* ── NAV CTA HIDE ON SMALL ───────────────────────────────── */
.nav-cta { display: none; }
@media (min-width: 640px) { .nav-cta { display: inline-flex; } }
