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

@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:      8px; /* Slightly softened for modern B2B look */
  --radius-lg:   16px;
  --nav-h:       90px;
}

/* ── MOBILE NAV HEIGHT OVERRIDE ──────────────────────────── */
@media (max-width: 640px) { :root { --nav-h: 74px; } }

/* ── 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;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
svg { display: inline-block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ── CONTAINER ──────────────────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 640px)  { .container { padding: 0 2rem; } }
@media (min-width: 1024px) { .container { padding: 0 3rem; } }

/* ── GLOBAL SVG ICON DEFAULTS ───────────────────────────── */
/* Prevents bare SVGs from stretching to full width on mobile */
.trust-item svg,
.card-icon svg,
.card ul li svg,
.pricing-card ul li svg,
.industry-tag svg,
.mockup-icon svg,
.faq-question svg,
.process-step svg,
.footer-links svg,
.hamburger span + svg {
  display: inline-block;
  width: 18px;
  height: 18px;
  min-width: 18px;
  max-width: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

/* ── 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(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.75rem); }
p  { font-size: clamp(0.92rem, 2vw, 1rem); line-height: 1.78; }

.gradient-text {
  background: linear-gradient(135deg, #00d2ff, var(--red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* ── LOGO ───────────── */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
  white-space: nowrap;
}
.logo-icon {
  width: 40px; height: 40px;
  background: var(--red);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.logo-icon svg { stroke: var(--white); fill: none; stroke-width: 2; width: 24px; height: 24px; }
.logo-text-wrap { display: flex; flex-direction: column; }
.logo-name {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1.1;
}
.logo-name strong { color: var(--red); font-weight: 900; }
.logo-sub {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.1rem;
}
.logo-inverted .logo-name { color: var(--white); }
.logo-inverted .logo-name strong { color: var(--red); }
.logo-inverted .logo-sub { color: rgba(255,255,255,0.6); }

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

.nav-link {
  font-size: 0.9rem;
  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: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.25s ease;
  border-radius: 2px;
}
.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;
  z-index: 1001; /* Ensure hamburger stays clickable on top of mobile-nav */
}
@media (min-width: 900px) { .hamburger { display: none; } }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); transition: all 0.3s; border-radius: 2px; }

/* Hamburger 'X' animation */
.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 {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  z-index: 999;
  padding: 2.5rem 2rem;
  overflow-y: auto;
  border-top: 1px solid var(--border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}
.mobile-nav.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mobile-nav .nav-link {
  display: block;
  font-size: 1.1rem;
  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;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  border-radius: var(--radius);
}
.btn svg { flex-shrink: 0; transition: transform 0.2s; }
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  box-shadow: 0 4px 12px var(--red-glow);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  box-shadow: 0 6px 20px rgba(200,16,46,0.35);
  transform: translateY(-2px);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  box-shadow: 0 4px 12px rgba(28,52,97,0.2);
}
.btn-navy:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  box-shadow: 0 6px 20px rgba(28,52,97,0.3);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(28,52,97,0.15);
}
.btn-outline-white {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(5px);
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.85rem; }

/* ── LABELS & BADGES ─────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  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: 4px; background: var(--red); margin: 1.25rem 0 1.75rem; border-radius: 2px; }
.divider.center { margin: 1.25rem auto 1.75rem; }

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

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: transparent;
  transition: background 0.3s;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(200,16,46,0.15);
  border-color: var(--red);
}
.card:hover::before { background: var(--red); }

.card-icon {
  width: 56px; height: 56px;
  background: var(--off-white);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.75rem;
  color: var(--navy);
  transition: background 0.3s, color 0.3s;
}
.card:hover .card-icon { background: var(--navy); color: var(--white); }
.card-icon svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.card h3 { margin-bottom: 1rem; font-size: 1.3rem; }
.card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1.5rem; }
.card ul { margin-bottom: 1.5rem; }
.card ul li { font-size: 0.9rem; color: var(--text-body); display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.5rem; }
.card ul li svg { width: 16px; height: 16px; stroke: var(--red); fill: none; stroke-width: 2; margin-top: 3px; flex-shrink: 0; }

/* ── PRICING CARDS ───────────────────────────────────────── */
.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
}
.pricing-card:hover { 
  transform: translateY(-5px); 
  box-shadow: var(--shadow-lg), 0 0 25px rgba(200,16,46,0.15); 
  border-color: var(--red); 
}
.pricing-card.popular { border-color: var(--navy); box-shadow: var(--shadow-md); }
.pricing-card.popular .popular-badge {
  position: absolute; top: 0; right: 2rem;
  background: var(--red); color: var(--white);
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.4rem 1rem; border-radius: 0 0 8px 8px;
}
.pricing-card h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.pricing-card .best-for { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; min-height: 2.5rem; }
.pricing-card .price { font-size: 2rem; font-weight: 900; color: var(--navy); margin-bottom: 0.25rem; }
.pricing-card .price span { font-size: 1rem; color: var(--text-muted); font-weight: 500; }
.pricing-card .price-sub { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 2rem; }
.pricing-card .btn { width: 100%; justify-content: center; margin-bottom: 2rem; }
.pricing-card ul { flex-grow: 1; }
.pricing-card ul li { font-size: 0.9rem; margin-bottom: 0.8rem; display: flex; align-items: flex-start; gap: 0.5rem; }
.pricing-card ul li svg { width: 18px; height: 18px; stroke: var(--red); fill: none; stroke-width: 2; margin-top: 2px; flex-shrink: 0; }

/* ── PROCESS STEPS ───────────────────────────────────────── */
.process-row { display: grid; grid-template-columns: 1fr; gap: 1rem; position: relative; }
@media (min-width: 768px) { .process-row { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; } }
.process-step {
  text-align: center; padding: 2rem 1.5rem;
  background: var(--off-white); border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all 0.3s;
  position: relative;
}
.process-step:hover { background: var(--white); box-shadow: var(--shadow-md); transform: translateY(-5px); border-color: var(--navy); }
.process-num {
  width: 48px; height: 48px;
  background: var(--navy); color: var(--white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 800; margin: 0 auto 1.25rem;
  box-shadow: 0 4px 12px rgba(28,52,97,0.2);
  transition: background 0.3s;
}
.process-step:hover .process-num { background: var(--red); }
.process-step h4 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.process-step p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

/* ── FAQ ACCORDION ───────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-question {
  width: 100%; text-align: left; padding: 1.25rem 1.5rem;
  background: transparent; border: none; outline: none;
  font-size: 1.05rem; font-weight: 700; color: var(--text-h);
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; transition: background 0.2s;
}
.faq-question:hover { background: var(--off-white); }
.faq-question svg { width: 20px; height: 20px; transition: transform 0.3s; stroke: var(--red); }
.faq-item.active .faq-question { border-bottom: 1px solid var(--border); }
.faq-item.active .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  background: var(--off-white);
}
.faq-answer-inner { padding: 1.25rem 1.5rem; font-size: 0.95rem; color: var(--text-body); }

/* ── INDUSTRY TAGS ───────────────────────────────────────── */
.industry-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.industry-tag {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 100px; font-size: 0.9rem; font-weight: 600; color: var(--navy);
  transition: all 0.3s; cursor: default;
  box-shadow: var(--shadow-xs);
}
.industry-tag:hover { background: var(--navy); color: var(--white); border-color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.industry-tag svg { width: 18px; height: 18px; stroke: var(--red); fill: none; stroke-width: 2; transition: stroke 0.3s; }
.industry-tag:hover svg { stroke: var(--white); }

/* ── MOCKUP DELIVERABLES ─────────────────────────────────── */
.mockup-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .mockup-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .mockup-grid { grid-template-columns: repeat(3,1fr); } }
.mockup-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: all 0.3s;
}
.mockup-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--navy); background: var(--white); }
.mockup-icon { width: 64px; height: 64px; background: var(--white); border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; box-shadow: var(--shadow-sm); }
.mockup-icon svg { width: 32px; height: 32px; stroke: var(--navy); fill: none; stroke-width: 1.5; }
.mockup-card h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }

/* ── 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.8rem; font-weight: 700;
  color: var(--text-h); margin-bottom: 0.5rem;
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 0.9rem 1rem;
  font-family: inherit; font-size: 1rem; /* Prevents iOS auto-zoom on focus */
  color: var(--text-h);
  background: var(--off-white); border: 1.5px solid var(--border);
  border-radius: var(--radius); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  background: var(--white); 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: 120px; line-height: 1.6; }
.form-select-wrap { position: relative; }
.form-select-wrap::after { content: ''; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 5px solid var(--text-muted); pointer-events: none; }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer { background: var(--navy-dark); padding: 5rem 0 2rem; position: relative; border-top: 4px solid var(--red); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; margin-bottom: 4rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-desc { font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.7; max-width: 320px; margin-top: 1.25rem; }
.footer-col-title { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); margin-bottom: 1.5rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-links a { font-size: 0.9rem; color: rgba(255,255,255,0.6); transition: color 0.2s, transform 0.2s; display: inline-block; }
.footer-links a:hover { color: var(--red); transform: translateX(4px); }
.footer-bar {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex; flex-direction: column; align-items: center;
  gap: 1rem; 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.85rem; color: rgba(255,255,255,0.5); margin: 0; }
.social-links { display: flex; gap: 1rem; }
.social-links a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.social-links a:hover { color: var(--white); }

/* ── REVEAL ANIMATIONS ───────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.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: 1.1rem; color: var(--text-muted); line-height: 1.7; max-width: 600px; margin-top: 1rem; }

.nav-cta { display: none; }
@media (min-width: 640px) { .nav-cta { display: inline-flex; } }

/* Hero specific */
.hero {
  margin-top: var(--nav-h);
  background: var(--navy-dark);
  color: var(--white);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}
.hero h1 {
  color: var(--white);
}
.hero p {
  color: rgba(255, 255, 255, 0.75) !important;
}
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: rgba(255, 255, 255, 0.08);
}
.hero-bg-shapes {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.hero-shape-1 {
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(28,52,97,0.05) 0%, transparent 70%);
  top: -100px; right: -100px;
  animation: float1 15s ease-in-out infinite;
}
.hero-shape-2 {
  position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,16,46,0.05) 0%, transparent 70%);
  bottom: -100px; left: -100px;
  animation: float2 18s ease-in-out infinite reverse;
}

@keyframes float1 {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(-30px, 40px) scale(1.05); }
  66%  { transform: translate(20px, -20px) scale(0.95); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes float2 {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(40px, -50px) scale(1.05); }
  66%  { transform: translate(-20px, 30px) scale(0.95); }
  100% { transform: translate(0, 0) scale(1); }
}
.hero-inner {
  display: grid; grid-template-columns: 1fr; gap: 4rem; align-items: center; position: relative; z-index: 1;
}
@media (min-width: 1024px) { .hero-inner { grid-template-columns: 1.1fr 0.9fr; } }
.hero-visual {
  position: relative;
}
.hero-image-wrap {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-xl); border: 1px solid rgba(255,255,255,0.5);
  background: var(--white); padding: 1rem;
}
.hero-image-wrap img { border-radius: var(--radius); width: 100%; height: auto; }
.hero-card-float {
  position: absolute; bottom: -2rem; left: -2rem;
  background: var(--white); padding: 1.5rem; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  display: flex; align-items: center; gap: 1rem;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* Trust Bar */
.trust-bar { background: var(--navy); padding: 1.5rem 0; }
.trust-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2rem; align-items: center; }
.trust-item { display: flex; align-items: center; gap: 0.75rem; color: var(--white); font-size: 0.9rem; font-weight: 600; }
.trust-item svg { width: 20px; height: 20px; stroke: var(--red); fill: none; stroke-width: 2.5; }

/* ── UTILITY & ADDITIONAL STYLES ─────────────────────────── */
.panel-box {
  padding: 3rem;
  border-radius: var(--radius-lg);
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.featured-list-icon {
  width: 18px;
  height: 18px;
  min-width: 18px;
  max-width: 18px;
  flex-shrink: 0;
  margin-top: 4px;
}

#back-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}
#back-top.show {
  opacity: 1;
  visibility: visible;
}
#back-top:hover {
  background: var(--red);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ── BACKGROUND GRAPHICS & EFFECTS ───────────────────────── */
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(28,52,97,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28,52,97,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center center;
  pointer-events: none;
  z-index: 0;
}
.grid-overlay-dark {
  background-image: 
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
}

.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
  mix-blend-mode: multiply; /* Blends beautifully with light backgrounds */
  pointer-events: none;
  z-index: 0;
}
.bg-navy .glow-blob, .footer .glow-blob {
  mix-blend-mode: screen; /* Blends beautifully with dark backgrounds */
  opacity: 0.15;
}
.glow-blob-navy {
  background: var(--navy-light);
  width: 450px;
  height: 450px;
  top: -10%;
  right: 5%;
  animation: floatBlob1 22s infinite ease-in-out;
}
.glow-blob-red {
  background: var(--red);
  width: 380px;
  height: 380px;
  bottom: -5%;
  left: -5%;
  animation: floatBlob2 26s infinite ease-in-out alternate;
}

@keyframes floatBlob1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 60px) scale(1.1); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes floatBlob2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, -40px) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

/* ── PREMIUM INLINE DASHBOARD WIDGET ─────────────────────── */
.dashboard-widget {
  background: rgba(16, 30, 54, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--red);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.75rem;
}
.dashboard-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.dashboard-badge {
  background: var(--red-glow);
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  animation: pulseLight 2s infinite;
}

@keyframes pulseLight {
  0% { opacity: 0.8; }
  50% { opacity: 1; box-shadow: 0 0 8px var(--red-glow); }
  100% { opacity: 0.8; }
}

.dashboard-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.dashboard-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.dashboard-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.15);
}
.item-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.item-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
}
.item-meta {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.meta-tag {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  padding: 0.05rem 0.3rem;
  border-radius: 3px;
  font-weight: 600;
}
.item-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.status-green { color: #10B981; }
.status-green .status-dot { background: #10B981; }
.status-amber { color: #F59E0B; }
.status-amber .status-dot { background: #F59E0B; }
.status-blue { color: #3B82F6; }
.status-blue .status-dot { background: #3B82F6; }

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 0.75rem;
  text-align: center;
}
.stat-val {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--white);
}
.stat-lbl {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
  text-transform: uppercase;
}

.compliance-progress {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.85rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.progress-bar-wrap {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.1);
  height: 8px;
  border-radius: 10px;
  overflow: hidden;
}
.progress-bar-fill {
  background: linear-gradient(90deg, var(--navy-light), var(--red));
  height: 100%;
  width: 92%;
  border-radius: 10px;
  animation: fillProgress 1.5s ease-out forwards;
}
@keyframes fillProgress {
  from { width: 0%; }
  to { width: 92%; }
}

/* ── MOBILE RESPONSIVE OVERRIDES ──────────────────────────── */
@media (max-width: 767px) {
  section { padding: 3.5rem 0; }
  .section { padding: 3.5rem 0; }
  .section-sm { padding: 2rem 0; }

  /* Panel box padding */
  .panel-box { padding: 1.75rem !important; }

  /* Trust bar item size */
  .trust-item { font-size: 0.8rem; }

  /* Back to top size */
  #back-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
  }

  /* Logo sizing on mobile */
  .site-logo img { height: 48px !important; }
  .site-logo span:first-of-type { font-size: 1.5rem !important; }
  .site-logo span:last-of-type  { font-size: 0.7rem !important; }

  /* Hero text */
  .hero { padding: 3rem 0; }
  .hero-inner { gap: 2rem; }
  .hero-card-float { display: none; }

  /* Grid columns go single on mobile */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 1.25rem; }

  /* Cards */
  .card { padding: 1.75rem; }
  .pricing-card { padding: 1.75rem; }

  /* Process steps horizontal scroll on mobile */
  .process-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  /* Sections with two-col layouts */
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }

  /* Section CTA bar */
  .cta-bar-inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; }

  /* Footer grid */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-desc { max-width: 100%; }

  /* Nav CTA button hidden on very small screens */
  .nav-cta { display: none !important; }

  /* Images fill container */
  img { max-width: 100%; height: auto; }

  /* Pricing grid */
  .pricing-grid { grid-template-columns: 1fr !important; }

  /* FAQ full width */
  .faq-grid { max-width: 100%; }

  /* Hide big decorative shapes */
  .hero-shape-1, .hero-shape-2 { display: none; }

  /* Section header spacing */
  .sec-header { margin-bottom: 2rem; }

  /* Mobile mockup grid */
  .mockup-grid { grid-template-columns: 1fr !important; }

  /* Stats bar */
  .stats-grid { grid-template-columns: repeat(2,1fr) !important; }

  /* Testimonials */
  .testimonial-grid { grid-template-columns: 1fr !important; }

  /* Industry tags wrap nicely */
  .industry-grid { gap: 0.5rem; }
  .industry-tag { padding: 0.6rem 1rem; font-size: 0.8rem; }

  /* Form rows single col */
  .form-row { grid-template-columns: 1fr !important; }

  /* Buttons full-width in mobile CTA contexts */
  .hero .btn { width: 100%; justify-content: center; }
  .hero-btns { display: flex; flex-direction: column; gap: 0.75rem; width: 100%; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.5rem; }
  .btn-lg { padding: 0.9rem 1.5rem; font-size: 0.95rem; }
}

/* ── PRELOADER & SETTLE ANIMATIONS ───────────────────────── */
.preloader {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: #101e36; /* Starts dark navy */
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  animation: preloaderBg 3s forwards;
}
.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Preloader Logo Container */
.preloader-logo-container {
  position: relative;
  width: 120px;
  height: 152px; /* 120 * (645/511) = 151.4 */
  display: flex;
  justify-content: center;
  align-items: center;
  animation: loaderPulse 1.8s infinite ease-in-out;
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease;
}

/* The neon SVG outline logo */
.neon-svg-logo {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 2;
  animation: preloaderStrokes 3s forwards;
}

.neon-svg-logo path.logo-stroke {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: drawStroke 2.0s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Set different animation delays to draw strokes sequentially */
.neon-svg-logo path.stroke-0 { animation-delay: 0.0s; }
.neon-svg-logo path.stroke-1 { animation-delay: 0.1s; }
.neon-svg-logo path.stroke-2 { animation-delay: 0.2s; }
.neon-svg-logo path.stroke-3 { animation-delay: 0.3s; }
.neon-svg-logo path.stroke-4 { animation-delay: 0.4s; }
.neon-svg-logo path.stroke-5 { animation-delay: 0.5s; }
.neon-svg-logo path.stroke-6 { animation-delay: 0.6s; }
.neon-svg-logo path.stroke-7 { animation-delay: 0.7s; }
.neon-svg-logo path.stroke-8 { animation-delay: 0.8s; }

/* The actual PNG logo */
.preloader-logo-png {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  z-index: 3;
  opacity: 0;
  animation: preloaderLogoPng 3s forwards;
}

/* Bright flash animation behind the logo */
.preloader-flash {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(0,210,255,0.8) 30%, rgba(16,30,54,0) 70%);
  border-radius: 50%;
  z-index: 1;
  opacity: 0;
  transform: scale(0);
  pointer-events: none;
  animation: preloaderFlash 3s forwards;
}

/* Preloader text animations matching bg change */
.preloader-text {
  color: #ffffff;
  animation: preloaderText 3s forwards;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.preloader-text-sub {
  color: rgba(255, 255, 255, 0.6);
  animation: preloaderSubtext 3s forwards;
}

/* Hidden state transition to navbar logo */
.preloader.hidden .preloader-logo-container {
  transform: translate(-40vw, -42vh) scale(0.6);
  opacity: 0;
}
@media (max-width: 767px) {
  .preloader.hidden .preloader-logo-container {
    transform: translate(-35vw, -45vh) scale(0.65);
  }
}
.preloader.hidden .preloader-text {
  opacity: 0;
  transform: translateY(15px);
}

/* Keyframes for drawing strokes */
@keyframes drawStroke {
  0% {
    stroke-dashoffset: 2000;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

/* Keyframes for preloader screen background (dark navy to white) */
@keyframes preloaderBg {
  0%, 55% { background: #101e36; }
  70%, 100% { background: #ffffff; }
}

/* Keyframes for strokes fading out */
@keyframes preloaderStrokes {
  0%, 55% { opacity: 1; filter: drop-shadow(0 0 8px rgba(0,210,255,0.8)); }
  65%, 100% { opacity: 0; filter: drop-shadow(0 0 2px rgba(0,210,255,0)); }
}

/* Keyframes for full-color logo fading in */
@keyframes preloaderLogoPng {
  0%, 55% { opacity: 0; transform: scale(0.85); }
  65% { opacity: 1; transform: scale(1.1); }
  75%, 100% { opacity: 1; transform: scale(1.0); }
}

/* Keyframes for lens flare flash */
@keyframes preloaderFlash {
  0%, 55% { opacity: 0; transform: scale(0); }
  62% { opacity: 1; transform: scale(1.3); }
  80%, 100% { opacity: 0; transform: scale(2.0); }
}

/* Keyframes for text color transition */
@keyframes preloaderText {
  0%, 55% { color: #ffffff; }
  70%, 100% { color: var(--navy); }
}
@keyframes preloaderSubtext {
  0%, 55% { color: rgba(255, 255, 255, 0.6); }
  70%, 100% { color: var(--navy-light); }
}

/* Page content settle animations */
.navbar, .svc-detail, .contact-layout {
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.navbar {
  transform: translateY(-40px);
  transition-delay: 0.1s;
}
.svc-detail, .contact-layout {
  transform: translateY(30px);
  transition-delay: 0.2s;
}

/* Staggered entrance cascade for hero content elements */
.hero-content-left .eyebrow,
.hero-content-left h1,
.hero-content-left p,
.hero-content-left .hero-btns {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-visual {
  opacity: 0;
  transform: translateY(30px) scale(0.96);
  transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Trigger transitions when body is loaded */
body.loaded .navbar {
  opacity: 1;
  transform: translateY(0);
}
body.loaded .svc-detail,
body.loaded .contact-layout {
  opacity: 1;
  transform: translateY(0);
}

body.loaded .hero-content-left .eyebrow {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.1s;
}
body.loaded .hero-content-left h1 {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.22s;
}
body.loaded .hero-content-left p {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.34s;
}
body.loaded .hero-content-left .hero-btns {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.46s;
}
body.loaded .hero-visual {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.5s;
}
