/* =========================================================
   Union Solutions — Mobile-First Design System
   Primary : #1e40af  (Royal Blue)
   Secondary: #f59e0b (Amber Gold)
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@600;700;800&display=swap');

/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
  /* Brand colours */
  --primary:        #1e3a8a; /* Slightly deeper blue for a premium feel */
  --primary-dark:   #172554;
  --primary-light:  #2563eb;
  --primary-subtle: rgba(30,58,138,0.05);
  --primary-border: rgba(30,58,138,0.12);

  --accent:         #f59e0b;
  --accent-dark:    #b45309;
  --accent-light:   #fbbf24;
  --accent-subtle:  rgba(245,158,11,0.08);
  --accent-border:  rgba(245,158,11,0.20);

  /* Backgrounds */
  --bg:             #f8fafc;
  --bg2:            #f1f5f9;
  --surface:        #ffffff;
  --surface-hover:  #f8fafc;

  /* Borders */
  --border:         #e2e8f0;
  --border-light:   #f1f5f9;

  /* Text */
  --text:           #0f172a;
  --text-muted:     #475569;
  --text-light:     #94a3b8;
  --white:          #ffffff;

  /* Feedback */
  --success:        #10b981;
  --error:          #ef4444;

  /* Typography */
  --font-body:      'Inter', system-ui, -apple-system, sans-serif;
  --font-heading:   'Poppins', system-ui, sans-serif;

  --text-xs:        0.75rem;
  --text-sm:        0.875rem;
  --text-base:      1rem;
  --text-md:        1.125rem;
  --text-lg:        1.25rem;
  --text-xl:        1.5rem;
  --text-2xl:       2rem;
  --text-3xl:       2.5rem;
  --text-4xl:       3.5rem;

  --weight-normal:  400;
  --weight-medium:  500;
  --weight-semi:    600;
  --weight-bold:    700;
  --weight-black:   800;

  --leading-tight:  1.25;
  --leading-snug:   1.35;
  --leading-normal: 1.65;
  --leading-loose:  1.80;

  --tracking-tight:   -0.01em;
  --tracking-normal:   0;
  --tracking-wide:     0.02em;
  --tracking-wider:    0.05em;
  --tracking-widest:   0.1em;

  /* Spacing */
  --space-1:   4px;
  --space-2:   8px;
  --space-3:   12px;
  --space-4:   16px;
  --space-5:   20px;
  --space-6:   24px;
  --space-8:   32px;
  --space-10:  40px;
  --space-12:  48px;
  --space-16:  64px;
  --space-20:  80px;
  --space-24:  96px;

  /* Radius */
  --radius-xs:   6px;
  --radius-sm:   10px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-xl:   32px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-xs:    0 2px 4px rgba(15,23,42,0.03);
  --shadow-sm:    0 4px 12px rgba(15,23,42,0.05);
  --shadow-card:  0 10px 30px -5px rgba(15,23,42,0.08);
  --shadow-hover: 0 20px 40px -10px rgba(15,23,42,0.12);


  /* Transitions */
  --transition:      0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.38s cubic-bezier(0.4, 0, 0.2, 1);

  /* Header heights */
  --topbar-h:  0px;   /* hidden on mobile */
  --navbar-h:  75px;
  --header-h:  calc(var(--topbar-h) + var(--navbar-h));
}

/* Topbar visible on md+ */
@media (min-width: 768px) {
  :root {
    --topbar-h:  36px;
    --navbar-h:  80px;
  }
}

/* =========================================================
   UTILITIES & BASE
   ========================================================= */
.bg-white { background: var(--white); }
.bg-light-grey { background: var(--bg2); }
.bg-soft-blue { background: rgba(30,64,175,0.03); }

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  background: var(--bg);
  color: var(--text);
  line-height: var(--leading-normal);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text);
  line-height: var(--leading-tight);
  margin-bottom: 0.65rem;
}

h1 {
  font-size: clamp(2rem, 5vw + 1rem, 3.5rem);
  letter-spacing: var(--tracking-tight);
}

h2 {
  font-size: clamp(1.75rem, 4vw + 1rem, 2.5rem);
  letter-spacing: var(--tracking-tight);
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: color var(--transition);
}
a:hover { color: var(--accent-dark); }

ul { list-style: none; }

img, svg {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Touch-friendly minimum tap target */
a, button, [role="button"] {
  min-height: 44px;
  min-width: 44px;
}

/* =========================================================
   LAYOUT
   ========================================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 640px)  { .container { padding: 0 var(--space-6); } }
@media (min-width: 1024px) { .container { padding: 0 var(--space-8); } }

/* Section spacing — mobile first, scale up */
.section    { padding: var(--space-12) 0; }
.section-sm { padding: var(--space-10) 0; }

@media (min-width: 768px) {
  .section    { padding: var(--space-16) 0; }
  .section-sm { padding: var(--space-12) 0; }
}
@media (min-width: 1024px) {
  .section    { padding: 120px 0; }
  .section-sm { padding: 80px 0; }
}

/* =========================================================
   SECTION HEADER
   ========================================================= */
.section-header {
  text-align: center;
  margin-bottom: var(--space-8);
}
@media (min-width: 768px) {
  .section-header { margin-bottom: var(--space-12); }
}

.section-header .tag,
.tag {
  display: inline-block;
  background: var(--primary-subtle);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
}

.section-header h2 {
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  color: var(--text);
}

.section-header p {
  color: var(--text-muted);
  font-size: var(--text-base);
  max-width: 560px;
  margin: var(--space-3) auto 0;
  line-height: var(--leading-loose);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: var(--weight-semi);
  font-size: var(--text-sm);
  padding: 13px var(--space-6);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1;
  text-decoration: none;
}

.btn::after {
  content: "→";
  display: inline-block;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width 0.3s ease, opacity 0.3s ease, margin-left 0.3s ease;
  vertical-align: middle;
  white-space: nowrap;
}

.btn:hover::after {
  max-width: 20px;
  opacity: 1;
  margin-left: 8px;
}

/* Primary */
.btn-primary {
  background: var(--primary);
  color: var(--white) !important;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

/* Accent */
.btn-accent {
  background: var(--accent);
  color: var(--white) !important;
  box-shadow: var(--shadow-sm);
}
.btn-accent:hover {
  background: var(--accent-dark);
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

/* Outline */
.btn-outline {
  background: var(--white);
  color: var(--primary) !important;
  border: 1.5px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

/* CTA banner outline (dark on light bg) */
.cta-banner .btn-outline {
  background: transparent;
  color: var(--primary) !important;
  border-color: var(--primary);
}
.cta-banner .btn-outline:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white) !important;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
}
.badge-accent  { background: var(--accent-subtle); color: var(--accent-dark); border: 1px solid var(--accent-border); }
.badge-primary { background: var(--primary-subtle); color: var(--primary); border: 1px solid var(--primary-border); }

/* =========================================================
   HEADER — TOP BAR + MAIN NAV (mobile-first)
   ========================================================= */
#siteHeader {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: box-shadow var(--transition);
  will-change: box-shadow;
}
#siteHeader.scrolled { box-shadow: var(--shadow-card); }
#siteHeader.scrolled .navbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* TOP BAR — hidden on mobile, shown md+ */
.topbar {
  display: none;
  background: var(--primary);
  height: var(--topbar-h);
  align-items: center;
}
@media (min-width: 768px) { .topbar { display: flex; } }

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
}

.topbar-contact {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.topbar-contact a {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: rgba(255,255,255,0.82);
  letter-spacing: var(--tracking-wide);
  transition: color var(--transition);
  min-height: auto;
  min-width: auto;
}
.topbar-contact a:hover { color: var(--white); }
.topbar-contact .tb-icon { width: 13px; height: 13px; opacity: 0.75; flex-shrink: 0; }

.topbar-divider { width: 1px; height: 12px; background: rgba(255,255,255,0.20); flex-shrink: 0; }

.topbar-social { display: flex; align-items: center; gap: var(--space-2); }
.topbar-social a {
  width: 24px; height: 24px;
  border-radius: var(--radius-xs);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.75);
  font-size: 0.7rem;
  transition: all var(--transition);
  min-height: unset; min-width: unset;
}
.topbar-social a:hover {
  background: rgba(255,255,255,0.22);
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}

/* MAIN NAVBAR */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--navbar-h);
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
  display: flex;
  align-items: center;
  position: relative;
  transition: all var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  color: var(--text) !important;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 38px; height: 38px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: var(--weight-black);
  color: var(--white);
  flex-shrink: 0;
  letter-spacing: 0;
  min-height: unset; min-width: unset;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-name {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--text);
  letter-spacing: var(--tracking-tight);
}
@media (min-width: 480px) { .logo-name { font-size: var(--text-lg); } }

.logo-tagline {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

/* Desktop nav links — hidden on mobile */
.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-2);
  height: 100%;
  list-style: none;
}
@media (min-width: 768px) { .nav-links { display: flex; } }

.nav-links li { height: 100%; display: flex; align-items: center; }

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: var(--weight-semi);
  color: var(--text-muted);
  padding: 0 var(--space-5);
  border-radius: var(--radius-full);
  letter-spacing: 0.3px;
  transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  min-height: unset;
  min-width: unset;
  z-index: 1;
}

.nav-links a::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--primary-subtle);
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}

.nav-links a:hover {
  color: var(--primary-dark);
}

.nav-links a:hover::before {
  opacity: 1;
  transform: scale(1);
}

.nav-links a.active {
  color: var(--primary);
}

.nav-links a.active::before {
  opacity: 1;
  transform: scale(1);
  background: rgba(30, 64, 175, 0.06);
}

/* Nav CTA */
.nav-links .nav-cta {
  display: inline-flex;
  height: auto;
  margin-left: var(--space-3);
  padding: var(--space-2) var(--space-5);
  background: var(--primary);
  color: var(--white) !important;
  border-radius: var(--radius-md);
  font-weight: var(--weight-semi);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  box-shadow: var(--shadow-sm);
  letter-spacing: var(--tracking-wide);
  transition: all var(--transition);
  white-space: nowrap;
  min-height: unset; min-width: unset;
  align-items: center;
}
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover {
  background: var(--primary-dark);
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

/* Hamburger — visible on mobile only */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  transition: background var(--transition);
  flex-shrink: 0;
  min-height: unset; min-width: unset;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle:hover { opacity: 0.8; }
.nav-toggle span {
  display: block;
  width: 28px; height: 3px;
  background: var(--text);
  border-radius: 3px;
  transition: all var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
@media (min-width: 768px) { .nav-toggle { display: none; } }

/* Mobile dropdown nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(241, 245, 249, 0.8);
  border-bottom: 2px solid var(--primary);
  box-shadow: var(--shadow-card);
}
.mobile-nav.open { display: flex; }

.mobile-nav a {
  position: relative;
  display: flex;
  align-items: center;
  padding: var(--space-4) var(--space-6);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: var(--weight-semi);
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s ease;
  min-height: 52px;
}
.mobile-nav a::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--primary);
  transform: scaleY(0);
  transition: transform 0.3s ease;
  transform-origin: center;
}
.mobile-nav a:last-child { border-bottom: none; }

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--primary);
  background: rgba(30, 64, 175, 0.04);
  padding-left: calc(var(--space-6) + 6px);
}
.mobile-nav a.active::before,
.mobile-nav a:hover::before {
  transform: scaleY(1);
}

.mobile-nav .nav-cta {
  margin: var(--space-4) var(--space-6) var(--space-5);
  justify-content: center;
  border-bottom: none;
  background: var(--primary);
  color: var(--white) !important;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: var(--weight-semi);
  padding-left: var(--space-6) !important;
}
.mobile-nav .nav-cta::before { display: none; }
.mobile-nav .nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* =========================================================
   HERO SLIDER — mobile-first
   ========================================================= */

/* Outer wrapper — fixes position for stat bar absolute */
.hero-slider {
  position: relative;
  width: 100%;
  background: var(--text);          /* fallback while images load */
  overflow: hidden;
}

/* ---- Slide Track (CSS scroll-snap for touch) ---- */
.slider-track {
  display: flex;
  width: 100%;
  transition: transform 0.65s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}

/* ---- Individual Slide ---- */
.slider-slide {
  flex: 0 0 100%;
  width: 100%;
  position: relative;
  min-height: 700px;
  height: max-content;
  display: flex;
  align-items: center;
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
}
@media (min-width: 768px) {
  .slider-slide { min-height: 650px; padding-top: 0; padding-bottom: 0; }
}

/* ---- Background image + overlay ---- */
.slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.slide-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.02);
  transition: transform 10s ease-out;
}
.slider-slide.is-active .slide-bg img {
  transform: scale(1.1);
}
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15,23,42,0.85) 0%,
    rgba(15,23,42,0.60) 40%,
    rgba(15,23,42,0.35) 100%
  );
}

/* ---- Slide content ---- */
.slide-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: var(--space-8) 0 calc(var(--space-8) + 80px);   /* leave room for stats bar */
}
@media (min-width: 768px) {
  .slide-content { padding: var(--space-16) 0 calc(var(--space-8) + 80px); }
}

.slide-inner {
  max-width: 680px;
}

/* Override hero-tag colours for dark slide background */
.slider-slide .hero-tag {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
  color: var(--white);
}

/* White heading on slides */
.slider-slide h1 {
  color: var(--white);
  font-size: clamp(1.75rem, 5.5vw, 3.4rem);
  line-height: 1.10;
  margin-bottom: var(--space-5);
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.slider-slide .accent-word { color: var(--accent-light); }

.slider-slide .hero-desc {
  color: rgba(255,255,255,0.85);
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  max-width: 560px;
  margin-bottom: var(--space-8);
  line-height: var(--leading-loose);
  text-shadow: 0 1px 6px rgba(0,0,0,0.20);
}

.slider-slide .hero-actions { flex-wrap: wrap; gap: var(--space-3); }

/* ---- Trust Badges under CTA ---- */
.hero-trust-badges {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}
.slider-slide.is-active .hero-trust-badges {
  opacity: 1;
  transform: translateY(0);
}
.hero-trust-badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: var(--weight-medium);
  letter-spacing: 0.2px;
}
.hero-trust-badges svg {
  width: 16px;
  height: 16px;
  color: var(--accent-light);
}

/* Outline button variant for dark slide background */
.btn-slide-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: var(--weight-semi);
  font-size: var(--text-sm);
  padding: 13px var(--space-6);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1;
  background: rgba(255,255,255,0.10);
  border: 1.5px solid rgba(255,255,255,0.55);
  color: var(--white) !important;
  backdrop-filter: blur(6px);
}
.btn-slide-outline:hover {
  background: rgba(255,255,255,0.20);
  border-color: var(--white);
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255,255,255,0.15);
}

.slider-slide .btn-accent {
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}
.slider-slide .btn-accent:hover {
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}

/* ---- Slide content entry animation ---- */
.slide-inner {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}
.slider-slide.is-active .slide-inner {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Prev / Next Arrows ---- */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.28);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  backdrop-filter: blur(6px);
}
.slider-arrow:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-50%) scale(1.08);
}
.slider-prev { left: var(--space-4); }
.slider-next { right: var(--space-4); }

@media (min-width: 768px) {
  .slider-arrow { width: 52px; height: 52px; }
  .slider-prev { left: var(--space-6); }
  .slider-next { right: var(--space-6); }
}

/* Hide arrows on tiny mobile (dots are enough) */
@media (max-width: 400px) { .slider-arrow { display: none; } }

/* ---- Dot navigation ---- */
.slider-dots {
  position: absolute;
  bottom: calc(var(--space-4) + 72px);   /* above stats bar */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-2);
  z-index: 10;
}
@media (min-width: 768px) {
  .slider-dots { bottom: calc(var(--space-6) + 72px); }
}

.slider-dot {
  width: 8px; height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.40);
  border: none;
  cursor: pointer;
  transition: all 0.35s ease;
  min-height: unset; min-width: unset;
  padding: 0;
}
.slider-dot.active {
  background: var(--white);
  width: 28px;
}
.slider-dot:hover { background: rgba(255,255,255,0.75); }

/* ---- Scroll Indicator ---- */
.hero-scroll-indicator {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: var(--white);
  opacity: 0.6;
  animation: scroll-bounce 2s infinite;
  display: none;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  transition: opacity 0.3s ease, background 0.3s ease;
}
@media (min-width: 768px) { .hero-scroll-indicator { display: flex; } }
.hero-scroll-indicator:hover {
  opacity: 1;
  background: rgba(255,255,255,0.15);
}
@keyframes scroll-bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-8px) translateX(-50%); }
  60% { transform: translateY(-4px) translateX(-50%); }
}

/* ---- Stats bar ---- */
.hero-stats-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 10;
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.15);
}

.stats-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: var(--space-3) 0;
}

.stat-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-2) var(--space-5);
  flex: 1 1 auto;
  min-width: 80px;
}

.stat-bar-sep {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.20);
  flex-shrink: 0;
}
/* Hide separators on very small screens */
@media (max-width: 400px) { .stat-bar-sep { display: none; } }

.hero-stats-bar .hero-stat-num {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: var(--weight-black);
  color: var(--white);
  display: block;
  line-height: 1;
}
.hero-stats-bar .hero-stat-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.70);
  letter-spacing: var(--tracking-wide);
  font-weight: var(--weight-medium);
  margin-top: 3px;
  display: block;
  white-space: nowrap;
}



/* =========================================================
   SERVICE CARDS
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 480px)  { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  background: var(--white);
  border: 1px solid rgba(241, 245, 249, 0.8);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
  cursor: default;
}
@media (min-width: 1024px) { .service-card { padding: var(--space-8); } }

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.service-card:hover {
  background-color: var(--primary);
  border-color: transparent;
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.service-card:hover::before { transform: scaleX(1); }

.service-card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: var(--space-4);
  flex-shrink: 0;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}
.service-card:hover .service-card-icon {
  background-color: rgba(255, 255, 255, 0.15);
  transform: scale(1.1) rotate(5deg);
}
.icon-purple { background: rgba(30,64,175,0.10); }
.icon-teal   { background: rgba(245,158,11,0.12); }
.icon-orange { background: rgba(30,64,175,0.07); }

.service-card h3 { font-size: var(--text-base); margin-bottom: var(--space-2); color: var(--text); transition: color 0.3s ease; }
.service-card p  { color: var(--text-muted); font-size: var(--text-sm); line-height: var(--leading-loose); transition: color 0.3s ease; }

.service-card:hover h3,
.service-card:hover p,
.service-card:hover .svc-link {
  color: var(--white);
}

.card-glow {
  position: absolute;
  top: -40px; right: -40px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(30,64,175,0.06);
  transition: background var(--transition);
  pointer-events: none;
}
.service-card:hover .card-glow { background: rgba(30,64,175,0.10); }

/* =========================================================
   FEATURES GRID
   ========================================================= */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 560px)  { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  align-items: flex-start;
  box-shadow: var(--shadow-xs);
}
.feature-item:hover {
  background: var(--surface-hover);
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.feature-item:hover .feature-icon {
  transform: scale(1.1);
}
.feature-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  background: var(--primary-subtle);
  transition: transform 0.3s ease;
}
.feature-item h4 { font-size: var(--text-base); margin-bottom: var(--space-1); color: var(--text); }
.feature-item p  { font-size: var(--text-sm); color: var(--text-muted); line-height: var(--leading-loose); }

/* =========================================================
   CTA BANNER
   ========================================================= */
.cta-banner {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-10) var(--space-6);
  text-align: center;
  box-shadow: var(--shadow-card);
}
@media (min-width: 768px) {
  .cta-banner { border-radius: var(--radius-xl); padding: var(--space-16) var(--space-12); }
}

.cta-banner h2 { font-size: clamp(1.4rem, 4vw, 2.2rem); margin-bottom: var(--space-3); color: var(--text); }
.cta-banner p  { color: var(--text-muted); max-width: 500px; margin: 0 auto var(--space-8); font-size: var(--text-base); }
.cta-actions   { display: flex; justify-content: center; gap: var(--space-3); flex-wrap: wrap; }

/* =========================================================
   PAGE HERO (inner pages)
   ========================================================= */
.page-hero {
  padding: calc(var(--header-h) + var(--space-10)) 0 var(--space-10);
  text-align: center;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
}
@media (min-width: 768px) {
  .page-hero { padding: calc(var(--header-h) + var(--space-12)) 0 var(--space-12); }
}

.page-hero .tag { margin-bottom: var(--space-3); }
.page-hero h1 { font-size: clamp(1.6rem, 5vw, 2.8rem); margin-bottom: var(--space-3); color: var(--text); }
.page-hero p  { color: var(--text-muted); font-size: var(--text-base); max-width: 580px; margin: 0 auto; line-height: var(--leading-loose); }

/* =========================================================
   ABOUT PAGE — Full Design System
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: start;
}
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1fr; gap: var(--space-12); } }

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.value-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  transition: all var(--transition);
}
.value-card:hover {
  border-color: var(--primary-border);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.value-card .val-icon { font-size: 1.6rem; margin-bottom: var(--space-2); }
.value-card h4 { font-size: var(--text-sm); margin-bottom: var(--space-1); color: var(--text); }
.value-card p  { font-size: var(--text-xs); color: var(--text-muted); line-height: var(--leading-loose); }

.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-xs);
}
@media (min-width: 640px) { .team-card { padding: var(--space-8); } }
.team-card h3 { margin-bottom: var(--space-5); }

.highlight-list { display: flex; flex-direction: column; gap: var(--space-3); }
.highlight-item { display: flex; align-items: flex-start; gap: var(--space-3); font-size: var(--text-sm); line-height: var(--leading-loose); }
.check-icon {
  width: 22px; height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent-subtle);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-dark);
  font-size: 0.65rem;
  font-weight: var(--weight-bold);
  margin-top: 2px;
}

/* ---- About Hero ---- */
.about-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 60%, #f0f9ff 100%);
  padding: calc(var(--header-h) + var(--space-16)) 0 var(--space-16);
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}
@media (min-width: 768px) {
  .about-hero { padding: calc(var(--header-h) + var(--space-20)) 0 var(--space-20); }
}

.about-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}
.about-hero-inner .tag { margin-bottom: var(--space-4); }
.about-hero-inner h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--text);
  line-height: 1.1;
  margin-bottom: var(--space-5);
}
.about-hero-inner p {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-muted);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-8);
}
.about-hero-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* Decorative blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
}
.hero-blob-1 {
  width: 400px; height: 400px;
  background: rgba(30, 58, 138, 0.07);
  top: -100px; left: -100px;
}
.hero-blob-2 {
  width: 350px; height: 350px;
  background: rgba(245, 158, 11, 0.06);
  bottom: -80px; right: -80px;
}

/* ---- About Stats Bar ---- */
.about-stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-6) 0;
  box-shadow: var(--shadow-sm);
}
.about-stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.about-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-3) var(--space-6);
  flex: 1 1 auto;
  min-width: 100px;
}
.about-stat-num {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: var(--weight-black);
  color: var(--primary);
  line-height: 1;
}
.about-stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  margin-top: 4px;
  white-space: nowrap;
}
.about-stat-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}
@media (max-width: 480px) { .about-stat-sep { display: none; } }

/* ---- Who We Are: Split Grid ---- */
.about-split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: start;
}
@media (min-width: 960px) {
  .about-split-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: var(--space-16);
  }
}

.about-story .tag { margin-bottom: var(--space-4); }
.about-story h2 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  color: var(--text);
  line-height: 1.15;
  margin-bottom: var(--space-5);
}
.about-story > p {
  color: var(--text-muted);
  font-size: var(--text-base);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-4);
}

/* Vision / Mission Row */
.about-vision-mission {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-8);
}
@media (min-width: 540px) {
  .about-vision-mission { grid-template-columns: 1fr 1fr; }
}

.vm-card {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-xs);
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
}
.vm-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: transparent;
}

.vm-icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
}
.vm-body h3 {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--text);
  margin-bottom: var(--space-2);
}
.vm-body p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-loose);
}

/* Why Choose Us Card */
.about-why-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  position: sticky;
  top: calc(var(--header-h) + var(--space-6));
}
@media (max-width: 959px) { .about-why-card { position: static; } }

.about-why-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.about-why-icon {
  width: 36px; height: 36px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.about-why-header h3 {
  font-size: var(--text-lg);
  color: var(--text);
  margin: 0;
}

.about-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}
.about-checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text);
  line-height: var(--leading-loose);
}
.about-check {
  width: 22px; height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.10);
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  display: flex; align-items: center; justify-content: center;
  color: #10b981;
  margin-top: 3px;
}
.about-why-cta { width: 100%; }

/* Core Values Grid */
.about-values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 480px) { .about-values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .about-values-grid { grid-template-columns: repeat(4, 1fr); } }

.about-value-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
}
.about-value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}
.about-value-icon {
  font-size: 2.4rem;
  display: block;
  margin-bottom: var(--space-4);
  transition: transform 0.3s ease;
}
.about-value-card:hover .about-value-icon {
  transform: scale(1.15) rotate(5deg);
}
.about-value-card h3 {
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  color: var(--text);
  margin-bottom: var(--space-3);
}
.about-value-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-loose);
  margin: 0;
}

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: start;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.6fr; } }

.contact-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-xs);
}
@media (min-width: 640px) { .contact-info-card { padding: var(--space-8); } }
.contact-info-card h3 { margin-bottom: var(--space-6); }

.contact-info-item { display: flex; gap: var(--space-4); margin-bottom: var(--space-5); align-items: flex-start; }
.contact-info-item:last-child { margin-bottom: 0; }
.ci-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  background: var(--primary-subtle);
}
.ci-label { font-size: var(--text-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: var(--tracking-wider); margin-bottom: 3px; font-weight: var(--weight-semi); }
.ci-value { font-size: var(--text-sm); color: var(--text); line-height: var(--leading-loose); }
.ci-value a { color: var(--text); }
.ci-value a:hover { color: var(--primary); }

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-xs);
}
@media (min-width: 640px) { .contact-form-card { padding: var(--space-8); } }
.contact-form-card h3 { margin-bottom: var(--space-6); }

.form-group { margin-bottom: var(--space-5); }
.form-row { display: grid; grid-template-columns: 1fr; gap: var(--space-5); }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-group label {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-2);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px var(--space-4);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  transition: all var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-light); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(30,64,175,0.10);
}
.form-group textarea { resize: vertical; min-height: 120px; }

#formStatus {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  display: none;
}
#formStatus.success { background: rgba(22,163,74,0.08); color: var(--success); border: 1px solid rgba(22,163,74,0.22); display: block; }
#formStatus.error   { background: rgba(220,38,38,0.08); color: var(--error);   border: 1px solid rgba(220,38,38,0.22); display: block; }
#formStatus.loading { background: var(--bg2); color: var(--text-muted); border: 1px solid var(--border); display: block; }

/* =========================================================
   CAREERS PAGE
   ========================================================= */
.job-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}
@media (min-width: 640px) { .job-card { align-items: center; } }

.job-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.job-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: var(--primary-border);
}

.job-card-info h3 { 
  font-size: 1.35rem; 
  font-weight: 700; 
  margin-bottom: var(--space-3); 
  color: var(--text); 
  letter-spacing: -0.02em;
}

.job-meta { 
  display: flex; 
  gap: var(--space-3); 
  flex-wrap: wrap; 
  font-size: 0.85rem; 
  color: var(--text-muted); 
}

.job-meta-item { 
  display: flex; 
  align-items: center; 
  gap: 6px; 
  background: #f1f5f9; 
  padding: 6px 12px; 
  border-radius: 20px;
  font-weight: 500;
  color: #475569;
}
.job-meta-item i {
  color: var(--primary);
}

#jobListings { display: flex; flex-direction: column; gap: var(--space-4); }

/* Job Details */
.job-details-hero {
  padding: calc(var(--header-h) + var(--space-10)) 0 var(--space-10);
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
}

.back-link {
  display: inline-flex; align-items: center; gap: var(--space-2);
  color: var(--text-muted); font-size: var(--text-sm);
  margin-bottom: var(--space-6); transition: color var(--transition);
  min-height: unset;
}
.back-link:hover { color: var(--primary); }

.job-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: start;
}
@media (min-width: 900px) {
  .job-detail-grid { grid-template-columns: 1.5fr 1fr; }
}

.job-detail-main, .job-detail-sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-xs);
}
@media (min-width: 640px) {
  .job-detail-main { padding: var(--space-10); }
  .job-detail-sidebar { padding: var(--space-8); }
}
.job-detail-main h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); margin-bottom: var(--space-4); }

.job-detail-sidebar {
  position: static;
}
@media (min-width: 900px) {
  .job-detail-sidebar { position: sticky; top: calc(var(--header-h) + 16px); }
}

.job-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin-bottom: var(--space-6); }
.job-meta-cell {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
}
.job-meta-cell .label { font-size: var(--text-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: var(--tracking-wider); margin-bottom: 2px; }
.job-meta-cell .value { font-size: var(--text-sm); font-weight: var(--weight-semi); color: var(--text); }

.section-divider { border: none; border-top: 1px solid var(--border-light); margin: var(--space-6) 0; }
.prose h3 { font-size: var(--text-md); margin: var(--space-6) 0 var(--space-3); color: var(--text); }
.prose p, .prose li { color: var(--text-muted); font-size: var(--text-sm); line-height: var(--leading-loose); }
.prose ul { list-style: disc; padding-left: var(--space-5); }
.prose li { margin-bottom: var(--space-2); }

#applicationFormContainer { margin-top: var(--space-8); }
#appFormStatus { margin-top: var(--space-4); font-size: var(--text-sm); font-weight: var(--weight-medium); }

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  background: var(--primary);
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: var(--space-10) 0 var(--space-6);
}
@media (min-width: 768px) { footer { padding: var(--space-16) 0 var(--space-8); } }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}
@media (min-width: 560px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px)  { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; gap: var(--space-12); } }

.footer-brand .logo { color: var(--white) !important; }
.footer-brand .logo-name { color: var(--white); }
.footer-brand .logo-tagline { color: rgba(255,255,255,0.55); }
.footer-brand .logo-icon { background: var(--accent); }
.footer-brand p { color: rgba(255,255,255,0.60); font-size: var(--text-sm); max-width: 300px; margin: var(--space-4) 0; line-height: var(--leading-loose); }

.footer-col h4 {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: rgba(255,255,255,0.45);
  margin-bottom: var(--space-4);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col ul li a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
  min-height: unset;
}
.footer-col ul li a:hover { color: var(--white); }
.footer-col ul li { color: rgba(255,255,255,0.60); font-size: var(--text-sm); line-height: var(--leading-loose); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.footer-bottom p { font-size: var(--text-xs); color: rgba(255,255,255,0.45); }
.footer-bottom a { color: rgba(255,255,255,0.50); font-size: var(--text-xs); transition: color var(--transition); min-height: unset; }
.footer-bottom a:hover { color: var(--white); }
.footer-links { display: flex; gap: var(--space-5); }

/* =========================================================
   LEGAL PAGES
   ========================================================= */
.legal-page { padding: calc(var(--header-h) + var(--space-10)) 0 var(--space-12); }
.legal-content {
  max-width: 800px; margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-xs);
}
@media (min-width: 640px) { .legal-content { padding: var(--space-12); } }
.legal-content h1 { font-size: clamp(1.4rem, 4vw, 2rem); margin-bottom: var(--space-2); }
.legal-content .meta { color: var(--text-muted); font-size: var(--text-sm); margin-bottom: var(--space-8); }
.legal-content h2 { font-size: var(--text-md); margin: var(--space-6) 0 var(--space-3); color: var(--text); }
.legal-content p, .legal-content li { color: var(--text-muted); font-size: var(--text-sm); line-height: var(--leading-loose); }
.legal-content ul { padding-left: var(--space-4); list-style: disc; }
.legal-content li { margin-bottom: var(--space-2); }

/* =========================================================
   UTILITIES
   ========================================================= */
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.mb-0  { margin-bottom: 0; }
.mb-2  { margin-bottom: var(--space-2); }
.mb-3  { margin-bottom: var(--space-3); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mt-auto { margin-top: auto; }
.w-full  { width: 100%; }

/* =========================================================
   PREMIUM ANIMATIONS (Intersection Observer)
   ========================================================= */
.fade-in, .fade-in-up, .fade-in-left, .fade-in-right, .scale-in {
  opacity: 0;
  will-change: opacity, transform;
}

.fade-in { transform: translateY(20px); 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 { transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-in-left { 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); }
.fade-in-right { 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); }
.scale-in { transform: scale(0.92); 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.visible, .fade-in-up.visible, .fade-in-left.visible, .fade-in-right.visible { opacity: 1; transform: translate(0, 0); }
.scale-in.visible { opacity: 1; transform: scale(1); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .fade-in, .fade-in-up, .fade-in-left, .fade-in-right, .scale-in { opacity: 1; transform: none !important; }
}

/* Staggered Children for grids */
.stagger-children > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.12s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.19s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.26s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.33s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.40s; }
.stagger-children > *:nth-child(7) { transition-delay: 0.47s; }
.stagger-children > *:nth-child(8) { transition-delay: 0.54s; }

/* =========================================================
   TRUST BAR
   ========================================================= */
.trust-bar {
  background: var(--white);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-4) 0;
}
.trust-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  text-align: center;
}
.trust-bar-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  white-space: nowrap;
}
.trust-bar-items {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  justify-content: center;
}
.trust-bar-items span {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: var(--weight-medium);
  white-space: nowrap;
}
.trust-sep {
  color: var(--border);
  font-size: 1rem;
  line-height: 1;
}
@media (max-width: 560px) { .trust-sep { display: none; } }

/* =========================================================
   SERVICE CARD LINK
   ========================================================= */
.svc-link {
  display: inline-flex;
  align-items: center;
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  color: var(--primary);
  letter-spacing: var(--tracking-wide);
  transition: gap var(--transition), color var(--transition);
  gap: 4px;
  min-height: unset;
}
.svc-link:hover {
  color: var(--primary-dark);
  gap: 8px;
}

/* =========================================================
   FEATURE HEADING (h3 inside feature-item)
   ========================================================= */
.feature-h {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-2);
  color: var(--text);
}

/* =========================================================
   PROCESS STEPS
   ========================================================= */
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  list-style: none;
  counter-reset: none;
  position: relative;
}
@media (min-width: 560px)  { .process-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .process-steps { grid-template-columns: repeat(4, 1fr); } }

/* Connector line between steps on desktop */
@media (min-width: 1024px) {
  .process-steps {
    position: relative;
  }
  .process-steps::before {
    content: '';
    position: absolute;
    top: 36px;
    left: calc(12.5% + 24px);
    right: calc(12.5% + 24px);
    height: 2px;
    background: var(--border);
    z-index: 0;
  }
}

.process-step {
  background: var(--white);
  border: 1px solid rgba(241, 245, 249, 0.8);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
  z-index: 1;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.process-step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.step-num {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--weight-black);
  color: var(--primary-border);
  letter-spacing: var(--tracking-wide);
}
.step-icon {
  font-size: 2rem;
  margin-bottom: var(--space-4);
  display: block;
}
.process-step h3 {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-2);
  color: var(--text);
}
.process-step p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-loose);
}

/* =========================================================
   INDUSTRIES GRID
   ========================================================= */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
@media (min-width: 560px)  { .industries-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px)  { .industries-grid { grid-template-columns: repeat(4, 1fr); } }

.industry-chip {
  background: var(--white);
  border: 1px solid var(--border-light);
  padding: 10px var(--space-5);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  display: flex; align-items: center; gap: 8px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-xs);
  cursor: default;
}
.industry-chip:hover {
  border-color: transparent;
  color: var(--primary-dark);
  background: var(--surface-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}
.industry-chip span { font-size: 1.1rem; flex-shrink: 0; }

/* =========================================================
   MAP EMBED
   ========================================================= */
.map-embed {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  line-height: 0;
}
.map-embed iframe {
  width: 100%;
  height: 300px;
  border: 0;
  display: block;
}
@media (min-width: 640px)  { .map-embed iframe { height: 380px; } }
@media (min-width: 1024px) { .map-embed iframe { height: 440px; } }



/* =========================================================
   ABOUT PAGE REDESIGN STYLES
   ========================================================= */
.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.hover-zoom:hover {
  transform: scale(1.05);
}

.value-card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border-top: 4px solid transparent;
  position: relative;
}
.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-top-color: var(--primary);
}
.value-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 24px;
  display: inline-block;
  transition: transform 0.3s ease;
}
.value-card:hover .value-icon {
  transform: translateY(-4px);
}

@media (max-width: 768px) {
  .apple-gallery {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto !important;
  }
  .apple-gallery > div {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    height: 250px;
  }
}

/* Timeline */
.timeline-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding: 20px 0;
}
.timeline-line {
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
@media (min-width: 768px) {
  .timeline-line {
    left: 50%;
    transform: translateX(-50%);
  }
}
.timeline-item {
  position: relative;
  margin-bottom: 48px;
  display: flex;
  align-items: flex-start;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-dot {
  position: absolute;
  left: 11px;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--primary);
  z-index: 2;
}
@media (min-width: 768px) {
  .timeline-dot {
    left: 50%;
    transform: translateX(-50%);
  }
}
.timeline-content {
  margin-left: 60px;
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  width: calc(100% - 60px);
  transition: transform 0.3s ease;
}
.timeline-item:hover .timeline-content {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
@media (min-width: 768px) {
  .timeline-content {
    width: calc(50% - 40px);
    margin-left: 0;
  }
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
  }
  .timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
  }
}
.timeline-year {
  color: var(--primary);
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.timeline-title {
  margin-bottom: 8px;
}
.timeline-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---- Responsive Grid Classes ---- */
.service-split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
  margin-bottom: var(--space-12);
}
@media (min-width: 960px) {
  .service-split-left {
    grid-template-columns: 1fr 1.4fr;
  }
  .service-split-right {
    grid-template-columns: 1.4fr 1fr;
  }
  .service-split-grid {
    margin-bottom: var(--space-16);
  }
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}
