/* ============================================
   OMEX Systems – Redesigned Theme
   Inspired by clean, structured presentation style
   ============================================ */

/* ── SPA page routing ── */
.page { display: none; }
.page.active { display: block; }

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

:root {
  --navy:       #0D1B2A;
  --navy-mid:   #1B2B3B;
  --teal:       #0E7C86;
  --teal-light: #12A3AF;
  --gold:       #C9A84C;
  --gold-light: #E8C96A;
  --white:      #FFFFFF;
  --off-white:  #F4F7FA;
  --light-gray: #E8EDF2;
  --mid-gray:   #8A9BB0;
  --text-dark:  #1A2535;
  --text-body:  #3D5068;
  --radius:     8px;
  --shadow-sm:  0 2px 8px rgba(13,27,42,.08);
  --shadow-md:  0 6px 24px rgba(13,27,42,.14);
  --shadow-lg:  0 16px 48px rgba(13,27,42,.2);
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--text-body);
  line-height: 1.7;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── NAVIGATION ─────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  border-bottom: 2px solid var(--teal);
  padding: 0 2rem;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo .logo-mark,
.nav-logo .logo-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-logo .logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
  letter-spacing: 0.5px;
}

.nav-logo .logo-sub {
  font-size: 0.6rem;
  color: var(--mid-gray);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: block;
  line-height: 1;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a,
.nav-links span {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #B0BEC9;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(14,124,134,.25);
}

.nav-links a.active {
  color: var(--teal-light);
}

.nav-cta {
  background: var(--teal) !important;
  color: var(--white) !important;
  padding: 0.45rem 1.2rem !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
}

.nav-cta:hover { background: var(--teal-light) !important; }

/* ── HERO ────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #122535 100%);
  position: relative;
  overflow: hidden;
  padding: 5rem 2rem 4rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(14,124,134,.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(201,168,76,.1) 0%, transparent 40%);
  pointer-events: none;
}

/* Grid lines effect */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14,124,134,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,124,134,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14,124,134,.2);
  border: 1px solid rgba(14,124,134,.4);
  color: var(--teal-light);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-light);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  max-width: 720px;
  margin-bottom: 1.5rem;
}

.hero h1 span {
  color: var(--teal-light);
}

.hero-desc {
  font-size: 1.05rem;
  color: #90A8BC;
  max-width: 640px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
}
.btn-primary:hover { background: var(--teal-light); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(14,124,134,.4); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.3);
}
.btn-outline:hover { border-color: var(--teal-light); color: var(--teal-light); }

/* Feature pills */
.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  color: #90A8BC;
}

.feature-pill svg {
  width: 14px;
  height: 14px;
  color: var(--teal-light);
  flex-shrink: 0;
}

/* ── SECTION GENERIC ────────────────────────── */
.section {
  padding: 5rem 2rem;
}

.section-alt {
  background: var(--off-white);
}

.section-dark {
  background: var(--navy);
  color: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.section-dark .section-label { color: var(--teal-light); }

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-dark .section-title { color: var(--white); }

.section-sub {
  font-size: 1rem;
  color: var(--text-body);
  max-width: 580px;
  line-height: 1.7;
}

.section-dark .section-sub { color: #90A8BC; }

.section-header {
  margin-bottom: 3rem;
}

/* ── CARDS GRID ─────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 12px;
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(14,124,134,.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--teal);
}

.card-icon svg { width: 22px; height: 22px; }

.card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.65;
}

/* Dark card variant */
.card-dark {
  background: var(--navy-mid);
  border-color: rgba(255,255,255,.08);
}
.card-dark h3 { color: var(--white); }
.card-dark p { color: #90A8BC; }
.card-dark .card-icon { background: rgba(14,124,134,.2); }

/* ── TWO-COL LAYOUT ──────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
}

/* ── PAGE HERO (inner pages) ─────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 4rem 2rem 3rem;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14,124,134,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,124,134,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--mid-gray);
  margin-bottom: 1.25rem;
}

.breadcrumb a { color: var(--teal-light); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: var(--mid-gray); }

.page-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: #90A8BC;
  font-size: 1rem;
  max-width: 560px;
}

/* ── CONTENT BLOCK ───────────────────────────── */
.content-block {
  max-width: 800px;
}

.content-block p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 1.25rem;
}

.content-block h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 2rem 0 0.75rem;
}

.content-block strong { color: var(--text-dark); }

/* ── CONTACT INFO ────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 12px;
  padding: 2rem;
}

.contact-card .contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(14,124,134,.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  margin-bottom: 1.25rem;
}

.contact-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.contact-card p, .contact-card a {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.7;
  display: block;
}

.contact-card a:hover { color: var(--teal); }

/* ── KNOWLEDGE CENTER ───────────────────────── */
.kc-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.kc-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  transition: all var(--transition);
}

.kc-item:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.kc-icon {
  width: 40px;
  height: 40px;
  background: rgba(14,124,134,.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 2px;
}

.kc-icon svg { width: 18px; height: 18px; }

.kc-item h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}

.kc-item p {
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.6;
}

.kc-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal);
  margin-top: 0.6rem;
  transition: gap var(--transition);
}

.kc-link:hover { gap: 9px; color: var(--teal-light); }

/* ── CAREER ITEM ─────────────────────────────── */
.career-item {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--teal);
}

.career-item h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.career-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(14,124,134,.1);
  color: var(--teal);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.career-item p {
  font-size: 0.925rem;
  color: var(--text-body);
  line-height: 1.75;
}

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

/* ── FOOTER ──────────────────────────────────── */
.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 3.5rem 2rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-brand .logo-mark,
.footer-brand .logo-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: #6B7F8F;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  font-size: 0.85rem;
  color: #6B7F8F;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--teal-light); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.06);
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: #4A5E6E;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  font-size: 0.8rem;
  color: #4A5E6E;
  transition: color var(--transition);
}
.footer-bottom-links a:hover { color: var(--teal-light); }

/* ── STAT ROW ─────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  padding: 3rem 0;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin: 3rem 0;
}

.stat-item {
  text-align: center;
}

.stat-item .stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--teal-light);
  display: block;
  margin-bottom: 0.25rem;
}

.stat-item .stat-label {
  font-size: 0.8rem;
  color: #6B7F8F;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── HAMBURGER BUTTON ────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.nav-toggle:hover { background: rgba(255,255,255,.08); }
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 768px) {
  .section { padding: 3rem 1.25rem; }
  .hero { padding: 3.5rem 1.25rem 3rem; }
  .page-hero { padding: 3rem 1.25rem 2.5rem; }
  .site-nav { padding: 0 1.25rem; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,.08);
    border-bottom: 2px solid var(--teal);
    flex-direction: column;
    padding: 1rem 1.25rem 1.5rem;
    gap: 0;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a {
    display: block;
    padding: 0.85rem 0;
    font-size: 1rem;
  }
  .nav-links .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
    border-radius: var(--radius);
    padding: 0.75rem;
  }

  .cards-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .footer-bottom-links { flex-wrap: wrap; gap: 1rem; }
  .hero-features { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

/* ── UTILITY ─────────────────────────────────── */
.text-teal { color: var(--teal-light); }
.text-gold { color: var(--gold); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.gap-sm { gap: 0.5rem; }
