/* Degular self-hosted font */
@font-face {
  font-family: 'Degular';
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/Degular-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Degular';
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/Degular-Semibold.ttf') format('truetype');
}

/* === TOKENS === */
:root {
  --bg:          #020617;
  --bg-card:     #071630;
  --bg-card2:    #0c1e3d;
  --blue:        #002190;
  --blue-mid:    #1a56db;
  --blue-light:  #3b82f6;
  --blue-glow:   rgba(0, 33, 144, 0.25);
  --white:       #ffffff;
  --gray-100:    #e0e0e0;
  --gray-300:    #9e9e9e;
  --gray-500:    #616161;
  --border:      rgba(255,255,255,0.08);
  --radius:      12px;
  --radius-lg:   20px;
  --transition:  0.25s ease;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Degular', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  background: var(--bg);
  color: var(--gray-100);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  color: var(--white);
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p { color: var(--gray-100); }

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 80px 0; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 50px;
  font-family: 'Degular', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.btn-primary {
  background: var(--blue-mid);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-light); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--blue-light); color: var(--blue-light); }
.btn-white {
  background: var(--white);
  color: var(--blue);
}
.btn-white:hover { background: var(--gray-100); }

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 70px;
}
.logo img { height: 36px; width: auto; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  color: var(--gray-100);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  transition: var(--transition);
  cursor: pointer;
}
.nav-link:hover, .nav-item:hover .nav-link { color: var(--white); background: rgba(255,255,255,0.06); }
.nav-link svg { width: 14px; height: 14px; transition: transform 0.2s; }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: #0c1e3d;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s ease;
  z-index: 200;
}
.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--gray-100);
  transition: var(--transition);
}
.nav-dropdown a:hover { background: rgba(255,255,255,0.06); color: var(--white); }
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  font-size: 0.85rem;
}
.header-right a { color: var(--gray-100); transition: color var(--transition); }
.header-right a:hover { color: var(--white); }
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* === EYEBROW LABELS === */
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 12px;
}

/* === HERO === */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,33,144,0.3) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; text-align: center; max-width: 820px; margin: 0 auto; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.82rem;
  color: var(--gray-100);
  margin-bottom: 28px;
}
.hero h1 { margin-bottom: 20px; }
.hero p { font-size: 1.1rem; color: var(--gray-300); max-width: 620px; margin: 0 auto 36px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.hero-stat-num { font-size: 2rem; font-weight: 600; color: var(--white); }
.hero-stat-label { font-size: 0.82rem; color: var(--gray-300); margin-top: 4px; }

/* === SERVICE GRID === */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.service-card:hover {
  border-color: rgba(59,130,246,0.4);
  background: var(--bg-card2);
  transform: translateY(-3px);
}
.service-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0,33,144,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-light);
}
.service-card-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.1rem; }
.service-card p { font-size: 0.9rem; color: var(--gray-300); }
.service-card a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue-light);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  transition: gap var(--transition);
}
.service-card a:hover { gap: 8px; }

/* === TESTIMONIAL SLIDER === */
.testimonial-section { overflow: hidden; }
.testimonial-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.testimonial-track::-webkit-scrollbar { display: none; }
.testimonial-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.testimonial-quote {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--gray-100);
  margin-bottom: 20px;
  line-height: 1.6;
}
.testimonial-quote::before { content: '"'; }
.testimonial-quote::after { content: '"'; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial-name { font-weight: 600; font-size: 0.95rem; color: var(--white); }
.testimonial-company { font-size: 0.82rem; color: var(--gray-300); }

/* === BLOG CARDS === */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.blog-card:hover { border-color: rgba(59,130,246,0.3); transform: translateY(-3px); }
.blog-card-img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-body { padding: 24px; }
.blog-card-date { font-size: 0.8rem; color: var(--gray-300); margin-bottom: 10px; }
.blog-card-title { font-size: 1rem; font-weight: 600; color: var(--white); line-height: 1.4; margin-bottom: 10px; }
.blog-card-excerpt { font-size: 0.88rem; color: var(--gray-300); line-height: 1.6; }

/* === PAGE HERO (sub-pages) === */
.page-hero {
  padding: 100px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 0%, rgba(0,33,144,0.25) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 { max-width: 800px; margin: 0 auto 20px; }
.page-hero p { max-width: 640px; margin: 0 auto; color: var(--gray-300); font-size: 1.05rem; }

/* === TWO-COL === */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.two-col-text h2 { margin-bottom: 16px; }
.two-col-text p { color: var(--gray-300); margin-bottom: 14px; }

/* === CHECK LIST === */
.check-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--gray-100);
}
.check-list li::before {
  content: '';
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 50%;
  background: rgba(59,130,246,0.15);
  border: 1.5px solid var(--blue-light);
  margin-top: 3px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 5l2.5 2.5L8 3' stroke='%233b82f6' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 10px;
  background-position: center;
  background-repeat: no-repeat;
}

/* === SECTION DIVIDER === */
.section-dark { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-center { text-align: center; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.section-header .eyebrow { margin-bottom: 12px; }
.section-header p { color: var(--gray-300); font-size: 1.05rem; margin-top: 14px; }

/* === CTA BANNER === */
.cta-banner {
  background: linear-gradient(135deg, #001060 0%, #002190 50%, #0a0a6e 100%);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 0 24px;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 0%, rgba(255,255,255,0.05) 0%, transparent 60%);
}
.cta-banner .container { position: relative; }
.cta-banner h2 { color: var(--white); margin-bottom: 14px; }
.cta-banner p { color: rgba(255,255,255,0.8); margin-bottom: 32px; max-width: 580px; margin-left: auto; margin-right: auto; }

/* === CONTACT FORM === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
  align-items: start;
}
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: var(--white);
  font-family: 'Degular', sans-serif;
  font-size: 0.95rem;
  transition: border-color var(--transition);
  outline: none;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--blue-light); }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--gray-500); }
.contact-form textarea { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-info-item { display: flex; align-items: flex-start; gap: 14px; }
.contact-info-icon {
  width: 44px; height: 44px; min-width: 44px;
  border-radius: 10px;
  background: rgba(0,33,144,0.15);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-light);
}
.contact-info-icon svg { width: 20px; height: 20px; }
.contact-info-label { font-size: 0.82rem; color: var(--gray-300); margin-bottom: 4px; }
.contact-info-value { font-weight: 600; color: var(--white); }

/* === ACHIEVEMENTS GRID === */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.achievement-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.achievement-card:hover { border-color: rgba(59,130,246,0.3); transform: translateY(-3px); }
.achievement-card-img { width: 100%; height: 200px; object-fit: cover; }
.achievement-card-body { padding: 20px; }
.achievement-card-title { font-size: 1rem; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.achievement-card-desc { font-size: 0.85rem; color: var(--gray-300); margin-bottom: 14px; line-height: 1.5; }
.achievement-card a { font-size: 0.85rem; color: var(--blue-light); font-weight: 600; }

/* === FEATURES LIST === */
.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 14px;
}
.feature-icon {
  width: 40px; height: 40px; min-width: 40px;
  border-radius: 10px;
  background: rgba(0,33,144,0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-light);
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-title { font-weight: 600; font-size: 0.95rem; color: var(--white); margin-bottom: 4px; }
.feature-desc { font-size: 0.85rem; color: var(--gray-300); line-height: 1.5; }

/* === FOOTER === */
.site-footer {
  border-top: 1px solid var(--border);
  padding-top: 80px;
}
.footer-cta {
  text-align: center;
  padding: 60px 0 80px;
  border-bottom: 1px solid var(--border);
}
.footer-cta h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 14px; }
.footer-cta p { color: var(--gray-300); margin-bottom: 30px; max-width: 500px; margin-left: auto; margin-right: auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 60px 0;
}
.footer-brand .logo img { height: 30px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.88rem; color: var(--gray-300); line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-300);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.88rem; color: var(--gray-100); transition: color var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--gray-300);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-status { display: flex; align-items: center; gap: 6px; }
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* === FORM MESSAGE === */
.form-msg { padding: 12px 16px; border-radius: var(--radius); font-size: 0.9rem; display: none; }
.form-msg.success { display: block; background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: #22c55e; }
.form-msg.error { display: block; background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #ef4444; }

/* === MOBILE === */
@media (max-width: 768px) {
  section { padding: 60px 0; }
  .main-nav { display: none; }
  /* under the header, full screen height (absolute: the header blur makes it the frame of a "fixed" child) */
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: calc(100dvh - 70px);
    background: var(--bg);
    padding: 24px;
    overflow-y: auto;
    z-index: 99;
    gap: 8px;
  }
  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: var(--bg-card2);
    margin-top: 4px;
  }
  .menu-toggle { display: flex; }
  .header-right .contact-links { display: none; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 40px 24px; margin: 0; border-radius: 0; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
}
