/* ============================================================
   CAPRICORN SYSTEMS INC. — DESIGN SYSTEM
   Design: Refined Corporate-Tech | Dark Navy + Electric Blue
   Fonts: Playfair Display (headings) + DM Sans (body)
   ============================================================ */

/* ── Custom Properties ───────────────────────────────────── */
:root {
  --navy:        #0B1D4B;
  --navy-light:  #0d2665;
  --blue:        #164ac8;
  --blue-bright: #2563eb;
  --blue-glow:   rgba(22,74,200,0.18);
  --white:       #ffffff;
  --off-white:   #f8f9fc;
  --slate:       #64748b;
  --slate-light: #94a3b8;
  --text:        #1e293b;
  --text-light:  #475569;
  --border:      rgba(15,30,80,0.10);
  --border-light:rgba(255,255,255,0.12);
  --shadow-sm:   0 1px 3px rgba(11,29,75,0.08), 0 1px 2px rgba(11,29,75,0.06);
  --shadow-md:   0 4px 16px rgba(11,29,75,0.10), 0 2px 4px rgba(11,29,75,0.06);
  --shadow-lg:   0 20px 48px rgba(11,29,75,0.14), 0 8px 16px rgba(11,29,75,0.08);
  --radius:      8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --max-w:       1200px;
  --transition:  0.22s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset & Base ────────────────────────────────────────── */
*, *::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: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img, video { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
h4 { font-size: 1.1rem; }
p  { color: var(--text-light); line-height: 1.75; }
.lead { font-size: 1.15rem; color: var(--text-light); line-height: 1.8; }

/* ── Layout Helpers ─────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section   { padding: 96px 0; }
.section-sm{ padding: 64px 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.text-center { text-align: center; }

/* ── Section Label ──────────────────────────────────────── */
.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 0.925rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(22,74,200,0.35);
}
.btn-primary:hover {
  background: var(--blue-bright);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(22,74,200,0.45);
}
.btn-outline {
  border: 1.5px solid var(--blue);
  color: var(--blue);
  background: transparent;
}
.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-1px);
}
.btn-white {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.btn-white:hover {
  background: var(--off-white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}
.btn svg, .btn i { font-size: 1rem; transition: transform var(--transition); }
.btn:hover svg, .btn:hover i { transform: translateX(3px); }

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(22,74,200,0.2);
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--blue-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--blue);
  font-size: 1.4rem;
  flex-shrink: 0;
}
.card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.card p  { font-size: 0.925rem; }

/* ── HEADER ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo img { height: 44px; width: auto; }

/* Nav */
.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
  position: relative;
}
.nav-link:hover { color: var(--blue); background: var(--blue-glow); }
.nav-link.active { color: var(--blue); font-weight: 600; }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}
.header-phone i { color: var(--blue); }

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 6px;
  transition: background var(--transition);
}
.nav-toggle:hover { background: var(--blue-glow); }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 72px 0 0;
  background: var(--white);
  z-index: 800;
  padding: 24px;
  border-top: 1px solid var(--border);
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav .nav-link {
  display: block;
  padding: 14px 16px;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--border);
}

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, #0d2665 50%, #112277 100%);
  padding: 120px 0 96px;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(22,74,200,0.35) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37,99,235,0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(22,74,200,0.25);
  border: 1px solid rgba(22,74,200,0.4);
  color: #93c5fd;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 span { color: #60a5fa; }
.hero .lead { color: rgba(255,255,255,0.75); margin-bottom: 36px; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
  flex-wrap: wrap;
}
.hero-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.55); letter-spacing: 0.05em; }
/* Hero visual panel */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-card-float {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: 24px;
  color: var(--white);
}
.hero-card-float h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 12px; }
.service-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(22,74,200,0.3);
  border: 1px solid rgba(22,74,200,0.5);
  color: #93c5fd;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 100px;
  margin: 4px 4px 4px 0;
}
.hero-card-float .stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
}
.hero-card-float .stat-row:last-child { border-bottom: none; }
.hero-card-float .stat-row strong { color: var(--white); }
.dot-green { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; }

/* ── PAGE HERO (inner pages) ─────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0d2665 60%, #112277 100%);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -5%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(22,74,200,0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,0.55); font-size: 0.875rem; transition: color var(--transition); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,0.35); font-size: 0.75rem; }
.breadcrumb .current { color: rgba(255,255,255,0.85); font-size: 0.875rem; font-weight: 500; }

/* ── DIVIDER ────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 0; }

/* ── FEATURE STRIP ──────────────────────────────────────── */
.feature-strip { background: var(--off-white); padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.strip-grid { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.strip-item { display: flex; align-items: center; gap: 12px; }
.strip-icon { color: var(--blue); font-size: 1.3rem; }
.strip-text { font-size: 0.875rem; font-weight: 600; color: var(--text); }

/* ── STATS BAND ─────────────────────────────────────────── */
.stats-band { background: var(--navy); padding: 80px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat-block {
  text-align: center;
  padding: 24px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-block:last-child { border-right: none; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-num span { color: #60a5fa; }
.stat-label { font-size: 0.875rem; color: rgba(255,255,255,0.55); letter-spacing: 0.04em; }

/* ── CTA BAND ───────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, #112277 100%);
  padding: 96px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(22,74,200,0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.cta-band-inner { position: relative; z-index: 2; }
.cta-label { color: #93c5fd; margin-bottom: 16px; }
.cta-label::before { background: #93c5fd; }
.cta-band h2 { color: var(--white); margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,0.65); max-width: 520px; margin: 0 auto 36px; }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer { background: #060d24; padding: 80px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand img { height: 44px; margin-bottom: 20px; }
.footer-brand p { font-size: 0.875rem; color: rgba(255,255,255,0.45); line-height: 1.7; margin-bottom: 24px; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  transition: all var(--transition);
}
.social-btn:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.footer-col h5 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 20px;
}
.footer-col ul li + li { margin-top: 10px; }
.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.825rem; color: rgba(255,255,255,0.3); }
.footer-bottom a { color: rgba(255,255,255,0.45); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--white); }
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.footer-contact-item i { color: var(--blue); font-size: 0.875rem; width: 16px; flex-shrink: 0; }
.footer-contact-item a { font-size: 0.875rem; color: rgba(255,255,255,0.55); transition: color var(--transition); }
.footer-contact-item a:hover { color: var(--white); }

/* ── FORM ───────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
input, textarea, select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.925rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22,74,200,0.12);
}
textarea { resize: vertical; min-height: 130px; }
input::placeholder, textarea::placeholder { color: var(--slate-light); }

/* ── PRODUCT / SERVICE CONTENT ───────────────────────────── */
.content-block { max-width: 780px; }
.content-block p + p { margin-top: 16px; }
.content-section { padding: 80px 0; }

/* ── CHECKLIST ──────────────────────────────────────────── */
.checklist { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.925rem;
  color: var(--text-light);
}
.checklist li i { color: var(--blue); margin-top: 3px; flex-shrink: 0; }

/* ── NAICS GRID ─────────────────────────────────────────── */
.naics-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px; }
.naics-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.875rem;
  color: var(--text);
}
.naics-item i { color: var(--blue); flex-shrink: 0; }

/* ── VIDEO EMBED ─────────────────────────────────────────── */
.video-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/9;
  background: var(--navy);
}
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

/* ── SCROLL ANIMATIONS ──────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }
.fade-up.delay-4 { transition-delay: 0.4s; }

/* ── ALERT / SUCCESS ────────────────────────────────────── */
.alert-success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: var(--radius);
  padding: 16px 20px;
  color: #166534;
  font-size: 0.9rem;
  display: none;
  margin-top: 16px;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-block:nth-child(2) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .container { padding: 0 16px; }
  .main-nav, .header-actions { display: none; }
  .nav-toggle { display: flex; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .naics-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .cta-actions { flex-direction: column; }
  .strip-grid { flex-direction: column; align-items: flex-start; gap: 16px; }
}
