/* ==========================================================================
   National Soft Systems Inc (NSS) - Modern Enterprise Design System 2026
   Brand Identity: Crimson Red (#BA1B24) & Deep Navy Blue (#1E2B4D)
   ========================================================================== */

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

:root {
  /* Brand Palette Matching Original Logo */
  --brand-red: #BA1B24;
  --brand-red-light: #EF4444;
  --brand-red-glow: #F43F5E;
  --brand-red-subtle: rgba(186, 27, 36, 0.08);
  --brand-navy: #1E2B4D;
  --brand-navy-deep: #0A1128;
  --brand-blue: #2563EB;
  --brand-cyan: #06B6D4;
  
  /* Modern UI Tokens */
  --primary: #1E2B4D;
  --primary-accent: #BA1B24;
  --primary-light: #EFF6FF;
  --secondary: #2563EB;
  
  /* Neutral Palette */
  --bg-main: #FFFFFF;
  --bg-subtle: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-alt: #F1F5F9;
  --text-main: #0F172A;
  --text-muted: #475569;
  --text-light: #94A3B8;
  
  /* Borders & Dividers */
  --border-light: #E2E8F0;
  --border-subtle: #F1F5F9;
  --border-focus: #BA1B24;
  
  /* Dark Section Colors */
  --dark-bg: #0A1128;
  --dark-card: #111C3A;
  --dark-border: #1E293B;
  --dark-text: #F8FAFC;
  --dark-muted: #94A3B8;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Elevation & Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 25px rgba(186, 27, 36, 0.25);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-main);
  background-color: var(--bg-main);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

/* Ensure global containers never cause horizontal overflow */
.container,
.site-header,
.hero-section,
.page-header,
.section,
.site-footer {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-red);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: #991B1B;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--brand-navy);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.2rem; }

p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Page Scroll Progress Bar */
#pageProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-red), #F43F5E, var(--brand-blue));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ==========================================================================
   Navigation Header & Perfect Logo Alignment
   ========================================================================== */

.site-header {
  position: static;
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  z-index: 100;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

/* Centered Logo Container */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  height: 52px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.brand-logo:hover {
  transform: scale(1.02);
}

.brand-logo img,
.brand-logo svg {
  height: 48px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  display: block;
  vertical-align: middle;
}

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

.nav-link {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0.25rem;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-red);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2.5px;
  background: linear-gradient(90deg, var(--brand-red), var(--brand-navy));
  border-radius: var(--radius-full);
  transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--brand-navy);
}

.mobile-toggle svg {
  width: 28px;
  height: 28px;
}

/* Mobile Drawer - Full Viewport Overlay */
.mobile-nav-drawer {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: calc(100vh - 72px);
  background-color: #FFFFFF;
  z-index: 999999;
  padding: 1.75rem 1.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateY(-120%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.35s;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-drawer.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-list .nav-link {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--brand-navy);
  display: block;
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.mobile-nav-list .nav-link:hover,
.mobile-nav-list .nav-link.active {
  color: var(--brand-red);
  padding-left: 0.5rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-red) 0%, #DC2626 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(186, 27, 36, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #991B1B 0%, #7F1D1D 100%);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(186, 27, 36, 0.55);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--brand-navy);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--brand-navy);
  color: var(--brand-red);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #FFFFFF;
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

/* ==========================================================================
   Vibrant Hero Section with Rich Gradient & Glass Card
   ========================================================================== */

.hero-section {
  position: relative;
  padding: 5.5rem 0 6.5rem;
  /* Rich Enterprise Ambient Gradient */
  background: radial-gradient(circle at 85% 20%, rgba(186, 27, 36, 0.3) 0%, transparent 45%),
              radial-gradient(circle at 15% 85%, rgba(37, 99, 235, 0.28) 0%, transparent 50%),
              linear-gradient(135deg, #0A1128 0%, #111D42 50%, #0D1630 100%);
  color: #FFFFFF;
  overflow: hidden;
}

/* Subtle tech grid background on hero */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-title {
  color: #FFFFFF;
  line-height: 1.15;
}

.hero-title .hero-highlight {
  background: linear-gradient(135deg, #F87171 0%, #F43F5E 50%, #FB923C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #CBD5E1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

/* Hero Glassmorphic Media Card */
.hero-glass-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5), 0 0 40px rgba(186, 27, 36, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  transition: transform var(--transition-smooth);
}

.hero-glass-card:hover {
  transform: translateY(-8px);
}

.hero-glass-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.hero-card-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 17, 40, 0.95) 40%, #0A1128 100%);
  padding: 2rem 1.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #FFFFFF;
}

.hero-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(186, 27, 36, 0.25);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #FECDD3;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Page Headers (Inner Pages) with Gradient
   ========================================================================== */

.page-header {
  padding: 5rem 0 4rem;
  /* Rich Corporate Dark Gradient Banner */
  background: radial-gradient(circle at 80% 20%, rgba(186, 27, 36, 0.25) 0%, transparent 40%),
              linear-gradient(135deg, #0A1128 0%, #16244A 55%, #111D42 100%);
  color: #FFFFFF;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-header h1 {
  margin-bottom: 0.85rem;
  color: #FFFFFF;
}

.page-header p {
  font-size: 1.2rem;
  max-width: 680px;
  margin: 0 auto;
  color: #CBD5E1;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.92rem;
  color: #94A3B8;
}

.breadcrumb-nav a {
  color: #E2E8F0;
  font-weight: 600;
}

.breadcrumb-nav a:hover {
  color: var(--brand-red-light);
}

/* ==========================================================================
   Sections & Cards
   ========================================================================== */

.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-alt {
  background-color: var(--bg-subtle);
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

/* Section Image Cards (Home Page & Overview) */
.section-image-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  transition: all var(--transition-smooth);
}

.section-image-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.16);
  border-color: rgba(186, 27, 36, 0.35);
}

.section-image-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.section-image-card:hover img {
  transform: scale(1.05);
}

.section-image-content {
  padding: 1.75rem 2rem;
}

/* Service Deep-Dive Row Layout with Images */
.service-split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3.5rem;
  margin-bottom: 5rem;
  padding: 2.75rem;
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.service-split-row:hover {
  border-color: rgba(186, 27, 36, 0.3);
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.12);
}

.service-split-row:last-child {
  margin-bottom: 0;
}

.service-split-row.reverse {
  direction: rtl;
}

.service-split-row.reverse > * {
  direction: ltr;
}

.service-media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.service-media-frame img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-smooth);
}

.service-media-frame:hover img {
  transform: scale(1.05);
}

.service-floating-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(10, 17, 40, 0.88);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Feature Card */
.feature-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-red), var(--brand-navy));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(186, 27, 36, 0.25);
}

.feature-card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: var(--brand-red-subtle);
  color: var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
}

.feature-card h3 {
  margin-bottom: 0.85rem;
  font-size: 1.35rem;
}

.feature-card p {
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.feature-list {
  list-style: none;
  margin: 1rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.feature-list li svg {
  width: 18px;
  height: 18px;
  color: var(--brand-red);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Grids - Fluid & Auto-Fitting Without Horizontal Overflow */
.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.75rem;
}

.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 2rem;
}

.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 2.25rem;
}

/* Two-column responsive form row */
.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {
  .form-row-2col {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
  gap: 2.25rem;
}

/* ==========================================================================
   Section Transition Animations & Micro-Interactions
   ========================================================================== */

.fade-in-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.appear {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-in-left.appear {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-in-right.appear {
  opacity: 1;
  transform: translateX(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Section pulse highlight on anchor navigation */
@keyframes sectionHighlightPulse {
  0% { box-shadow: 0 0 0 0 rgba(186, 27, 36, 0.45); }
  70% { box-shadow: 0 0 0 16px rgba(186, 27, 36, 0); }
  100% { box-shadow: 0 0 0 0 rgba(186, 27, 36, 0); }
}

.highlight-pulse {
  animation: sectionHighlightPulse 1.8s ease-out;
}

/* Section Quick Tabs for Services */
.services-subnav {
  position: sticky;
  top: 88px;
  z-index: 900;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 0.85rem 0;
  margin-bottom: 3.5rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.subnav-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.subnav-pill {
  padding: 0.55rem 1.35rem;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.subnav-pill:hover,
.subnav-pill.active {
  background: var(--brand-red);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(186, 27, 36, 0.35);
}

/* ==========================================================================
   Trust / Clients Section
   ========================================================================== */

.trust-section {
  padding: 3.5rem 0;
  background-color: #FFFFFF;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.trust-heading {
  text-align: center;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-light);
  font-weight: 700;
  margin-bottom: 2rem;
}

.clients-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}

.client-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #64748B;
  transition: all var(--transition-normal);
  filter: grayscale(100%);
  opacity: 0.75;
}

.client-item:hover {
  filter: grayscale(0%);
  opacity: 1;
  color: var(--brand-red);
  transform: translateY(-2px);
}

/* ==========================================================================
   Stats Banner
   ========================================================================== */

.stats-banner {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--brand-navy) 0%, #0F172A 100%);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--brand-red-light);
  margin-bottom: 0.35rem;
  font-family: var(--font-heading);
}

.stat-item p {
  color: #E2E8F0;
  font-size: 1.05rem;
  font-weight: 500;
}

/* ==========================================================================
   Careers Section & Job Accordion
   ========================================================================== */

.job-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  background: #FFFFFF;
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.filter-btn {
  padding: 0.5rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--bg-alt);
  color: var(--text-muted);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--brand-red);
  color: #FFFFFF;
}

.job-search-box {
  position: relative;
  min-width: 280px;
}

.job-search-input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.4rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.job-search-input:focus {
  border-color: var(--brand-red);
}

.job-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  width: 18px;
  height: 18px;
}

/* Job Card */
.job-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  overflow: hidden;
}

.job-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(186, 27, 36, 0.3);
}

.job-header {
  padding: 1.75rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  cursor: pointer;
}

.job-info h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--brand-navy);
}

.job-meta-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.job-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--bg-alt);
  color: var(--text-muted);
}

.job-pill.salary {
  background: #DCFCE7;
  color: #166534;
}

.job-pill.code {
  background: var(--brand-red-subtle);
  color: var(--brand-red);
}

.job-pill.location {
  background: #EFF6FF;
  color: #1E40AF;
}

.job-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--brand-red);
  font-weight: 600;
  font-size: 0.95rem;
}

.job-toggle-icon {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-normal);
}

.job-card.expanded .job-toggle-icon {
  transform: rotate(180deg);
}

.job-details {
  display: none;
  padding: 0 2rem 2rem;
  border-top: 1px solid var(--border-light);
  margin-top: 0.5rem;
}

.job-card.expanded .job-details {
  display: block;
}

.job-duty-block {
  margin-top: 1.5rem;
}

.job-duty-block h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--brand-navy);
}

.job-duty-block p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.job-apply-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border-light);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ==========================================================================
   Locations & Contact
   ========================================================================== */

.location-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--brand-red);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
}

.location-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(186, 27, 36, 0.3);
}

.location-card-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.location-card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex-grow: 1;
}

.location-card h3 {
  font-size: 1.4rem;
  color: var(--brand-navy);
}

.contact-meta-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 1rem;
  color: var(--text-muted);
}

.contact-meta-item svg {
  width: 22px;
  height: 22px;
  color: var(--brand-red);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Direct Channels Cards (Contact Page - Perfectly Centered) */
.direct-channels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
  margin-bottom: 1.5rem;
  width: 100%;
}

.direct-channel-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--brand-red);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all var(--transition-normal);
}

.direct-channel-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(186, 27, 36, 0.35);
}

.channel-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.direct-channel-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--brand-navy);
  text-align: center;
}

.direct-channel-card a {
  color: var(--brand-red);
  font-weight: 700;
  font-size: 1rem;
  display: block;
  margin-bottom: 0.35rem;
  text-align: center;
  word-break: break-all;
}

.direct-channel-card p {
  font-size: 0.88rem;
  margin: 0;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

.priority-routing-box {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(30, 43, 77, 0.15);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

@media (max-width: 640px) {
  .direct-channels-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

.contact-form-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.35rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--text-main);
  background-color: #FFFFFF;
  outline: none;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(186, 27, 36, 0.12);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-feedback {
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-top: 1rem;
  display: none;
  font-size: 0.95rem;
}

.form-feedback.success {
  display: block;
  background-color: #DCFCE7;
  color: #166534;
  border: 1px solid #86EFAC;
}

.form-feedback.error {
  display: block;
  background-color: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

.map-wrapper {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.map-wrapper iframe {
  width: 100%;
  height: 380px;
  border: none;
  display: block;
}

/* ==========================================================================
   Call to Action (CTA) Banner
   ========================================================================== */

.cta-banner {
  padding: 5rem 0;
  background: radial-gradient(circle at 85% 20%, rgba(186, 27, 36, 0.3) 0%, transparent 50%),
              linear-gradient(135deg, var(--brand-navy) 0%, #0F172A 60%, #1E3A8A 100%);
  color: #FFFFFF;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: #E2E8F0;
  font-size: 1.2rem;
  max-width: 680px;
  margin: 0 auto 2.25rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: var(--dark-bg);
  color: var(--dark-text);
  padding: 5rem 0 2rem;
  border-top: 1px solid var(--dark-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2.5px;
  background-color: var(--brand-red-light);
}

.footer-logo {
  display: inline-block;
  margin-bottom: 1.25rem;
}

.footer-logo img {
  height: 48px;
  width: auto;
}

.footer-desc {
  color: var(--dark-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--dark-muted);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a:hover {
  color: var(--brand-red-light);
  transform: translateX(4px);
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--dark-muted);
  font-size: 0.95rem;
}

.footer-contact-item svg {
  width: 20px;
  height: 20px;
  color: var(--brand-red-light);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--dark-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--dark-muted);
}

/* ==========================================================================
   Responsive Utilities
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .service-split-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .service-split-row.reverse {
    direction: ltr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .desktop-nav,
  .nav-cta {
    display: none;
  }
  .navbar-inner {
    height: 72px;
  }
  .brand-logo img,
  .brand-logo svg {
    height: 40px;
    max-width: 240px;
  }
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .mobile-toggle.active svg {
    stroke: var(--brand-red);
  }

  /* Centered Hero Section on Mobile */
  .hero-section {
    padding: 3rem 0 4rem;
    text-align: center;
  }
  .hero-content {
    text-align: center;
    align-items: center;
  }
  .hero-title {
    text-align: center;
    font-size: 2.1rem;
    line-height: 1.25;
  }
  .hero-desc {
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 0 auto;
    max-width: 520px;
  }
  .hero-actions {
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-direction: column;
    gap: 0.85rem;
  }
  .hero-actions .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    text-align: center;
  }
  .hero-glass-card {
    margin: 0 auto;
    width: 100%;
    max-width: 500px;
  }
  .hero-card-footer {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
  }

  /* Centered Enterprise Trust Bar */
  .trust-section {
    text-align: center;
  }
  .trust-heading {
    text-align: center;
  }
  .clients-grid {
    justify-content: center;
    gap: 0.85rem;
  }

  /* Centered Section Headers & Descriptions */
  .section-header {
    text-align: center;
    margin: 0 auto 2.5rem;
  }
  .section-header h2,
  .section-header p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  /* Centered Service Split Rows */
  .service-split-row {
    text-align: center;
  }
  .service-split-row > div:not(.service-media-frame) {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .service-split-row h2 {
    text-align: center;
  }
  .service-split-row p {
    text-align: center;
  }
  .service-split-row .btn {
    margin: 0 auto;
    display: inline-flex;
    justify-content: center;
  }
  .service-media-frame {
    margin: 0 auto;
    width: 100%;
    max-width: 500px;
  }
  .feature-list {
    text-align: left;
    margin: 0 auto 1.5rem;
    max-width: 440px;
    width: 100%;
  }

  /* Centered Service Image Cards & Feature Cards */
  .section-image-card {
    text-align: center;
    margin: 0 auto;
    max-width: 500px;
  }
  .section-image-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .section-image-content .btn {
    margin: 0 auto;
    max-width: 280px;
  }
  .feature-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    max-width: 500px;
    width: 100%;
  }
  .feature-card .card-icon {
    margin: 0 auto 1rem;
  }

  /* Centered 2-column Content Grids (e.g. About Preview, Contact Channels) */
  .cards-grid-2 > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .cards-grid-2 h2 {
    text-align: center;
  }
  .cards-grid-2 p {
    text-align: center;
  }
  .cards-grid-2 .btn {
    margin: 0 auto;
  }

  /* Centered Location Cards */
  .location-card {
    margin: 0 auto;
    max-width: 500px;
    width: 100%;
    text-align: center;
  }
  .location-card-body {
    text-align: center;
    align-items: center;
  }
  .contact-meta-list {
    text-align: left;
    margin: 0 auto;
    max-width: 360px;
    width: 100%;
  }
  .location-card .btn {
    margin: 0 auto;
    max-width: 320px;
  }

  /* Centered CTA Banners */
  .cta-banner {
    text-align: center;
  }
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
  }
  .cta-buttons .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    text-align: center;
  }

  /* Centered Stats Banner */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: center;
  }
  .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  /* Centered Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-col {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-logo {
    justify-content: center;
  }
  .footer-contact-list {
    align-items: center;
  }
  .footer-contact-item {
    justify-content: center;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .cards-grid-2,
  .cards-grid-3,
  .cards-grid-4 {
    grid-template-columns: 1fr;
  }

  /* ========================================================================
     Strict Horizontal Overflow & Touch Prevention
     ======================================================================== */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative;
  }

  .container {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
    max-width: 100%;
    overflow-x: clip;
  }

  /* Prevent side animations from extending viewport horizontally on mobile */
  .slide-in-left,
  .slide-in-right {
    transform: translateY(20px) !important;
    max-width: 100%;
  }
  .slide-in-left.appear,
  .slide-in-right.appear {
    transform: translateY(0) !important;
  }

  /* Contact Form Mobile Optimization */
  /* Direct Channels Cards (Contact Page - Perfectly Centered) */
.direct-channels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
  margin-bottom: 1.5rem;
  width: 100%;
}

.direct-channel-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--brand-red);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all var(--transition-normal);
}

.direct-channel-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(186, 27, 36, 0.35);
}

.channel-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.direct-channel-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--brand-navy);
  text-align: center;
}

.direct-channel-card a {
  color: var(--brand-red);
  font-weight: 700;
  font-size: 1rem;
  display: block;
  margin-bottom: 0.35rem;
  text-align: center;
  word-break: break-all;
}

.direct-channel-card p {
  font-size: 0.88rem;
  margin: 0;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

.priority-routing-box {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(30, 43, 77, 0.15);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

@media (max-width: 640px) {
  .direct-channels-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

.contact-form-card {
    padding: 1.5rem 1.15rem !important;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .form-row-2col {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .form-control {
    max-width: 100%;
  }

  /* Careers Job Cards Mobile Optimization */
  .job-card {
    border-radius: var(--radius-md);
    margin-bottom: 1.15rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .job-header {
    padding: 1.15rem 1rem !important;
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.75rem;
  }
  .job-info {
    width: 100%;
  }
  .job-info h3 {
    font-size: 1.2rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .job-meta-pills {
    gap: 0.35rem !important;
  }
  .job-pill {
    font-size: 0.76rem !important;
    padding: 0.22rem 0.5rem !important;
  }
  .job-toggle-btn {
    align-self: flex-start;
    font-size: 0.85rem;
  }
  .job-details {
    padding: 0 1rem 1.35rem !important;
  }
  .job-duty-block p,
  .job-duty-block strong {
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .job-apply-footer {
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: center;
    gap: 1rem !important;
  }
  .job-apply-footer .btn {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
  .job-filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .filter-buttons {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
  }
  .filter-btn {
    font-size: 0.82rem;
    padding: 0.4rem 0.75rem;
    flex: 1 1 auto;
    text-align: center;
  }
  .job-search-box {
    width: 100%;
  }

  /* Services Sticky Bar on Mobile */
  .services-subnav {
    top: 72px;
    margin-bottom: 2rem;
  }
  .subnav-tabs {
    gap: 0.4rem;
  }
  .subnav-pill {
    font-size: 0.82rem;
    padding: 0.4rem 0.85rem;
  }
}
