/* ============================================
   NEXUS INTERNATIONAL CO. LTD — Design System
   Primary Navy: #0a2e5c | Brand Blue: #0454AB
   Accent Orange: #FE8B0E | Gray: #606062
   ============================================ */

:root {
  --navy: #0a2e5c;
  --navy-dark: #06203f;
  --blue: #0454AB;
  --orange: #FE8B0E;
  --orange-dark: #d9740a;
  --gray: #606062;
  --gray-light: #f4f6f9;
  --gray-border: #e3e8ef;
  --text-dark: #1c2530;
  --text-muted: #5b6776;
  --white: #ffffff;

  --font-heading: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;

  --shadow-sm: 0 2px 8px rgba(10, 46, 92, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 46, 92, 0.10);
  --shadow-lg: 0 16px 40px rgba(10, 46, 92, 0.14);

  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.65;
  background: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.25;
}

h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }

p { color: var(--text-muted); }

.section {
  padding: 80px 0;
}

.section-light {
  background: var(--gray-light);
}

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

.section-navy h2,
.section-navy h3,
.section-navy h4,
.section-navy p {
  color: var(--white);
}

.section-navy p {
  color: #c4d4ea;
}

/* ---------- Eyebrow / Section Heading ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--orange);
}

.section-head {
  max-width: 680px;
  margin-bottom: 48px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  font-family: var(--font-heading);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: var(--navy-dark);
}

.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.btn-outline-navy {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}

/* ============================================
   HEADER / NAVBAR
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.topbar {
  background: var(--navy-dark);
  color: #c4d4ea;
  font-size: 13px;
  padding: 8px 0;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.topbar-links {
  display: flex;
  gap: 24px;
}

.topbar-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #c4d4ea;
  transition: var(--transition);
}

.topbar-links a:hover {
  color: var(--orange);
}

.topbar-locations {
  font-weight: 500;
  letter-spacing: 0.5px;
}

.navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img, .navbar-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 15px;
  color: var(--navy);
  position: relative;
  padding: 6px 0;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--orange);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--orange);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   PAGE HERO (sub-pages)
   ============================================ */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 100px 0 70px;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(254,139,14,0.18) 0%, transparent 70%);
  border-radius: 50%;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 14px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #c4d4ea;
  margin-bottom: 16px;
}

.breadcrumb a:hover {
  color: var(--orange);
}

.page-hero p {
  max-width: 600px;
  font-size: 17px;
}

/* ============================================
   HOME HERO
   ============================================ */
.hero {
  overflow: hidden;
  position: relative;
  background: linear-gradient(120deg, var(--navy) 45%, var(--navy-dark) 100%);
  color: var(--white);
  overflow: hidden;
  padding: 80px 0 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -8%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(254,139,14,0.16) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(4,84,171,0.25) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 60px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(254,139,14,0.14);
  border: 1px solid rgba(254,139,14,0.35);
  color: var(--orange);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero h1 {
  color: var(--white);
  font-size: 52px;
  margin-bottom: 20px;
}

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

.hero p {
  font-size: 18px;
  color: #c4d4ea;
  max-width: 540px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-media {
  position: relative;
}

.hero-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  bottom: -28px;
  left: -28px;
  background: var(--white);
  color: var(--navy);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-badge .num {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--orange);
}

.hero-badge .lbl {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  background: var(--navy-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 36px 16px;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.stat-item:last-child {
  border-right: none;
}

.stat-item .stat-num {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 6px;
}

.stat-item .stat-lbl {
  font-size: 13px;
  color: #c4d4ea;
  letter-spacing: 0.5px;
}

/* ============================================
   CARDS — Services
   ============================================ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(254,139,14,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  font-size: 26px;
  color: var(--orange);
}

.service-card h3 {
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14.5px;
  margin-bottom: 16px;
}

.service-link {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.service-card:hover .service-link {
  gap: 10px;
  color: var(--orange);
}

/* ============================================
   ABOUT / SPLIT SECTIONS
   ============================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-media {
  position: relative;
}

.split-media img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 460px;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.split-media-stack {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}

.split-media-stack .tall img {
  height: 460px;
}

.split-media-stack .short-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.split-media-stack .short-stack img {
  height: 222px;
}

.split-content h2 {
  margin-bottom: 18px;
}

.split-content p {
  margin-bottom: 16px;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 24px 0;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-dark);
  font-weight: 500;
}

.check-list .check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(254,139,14,0.12);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================================
   VALUES / FEATURE GRID
   ============================================ */
.feature-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  border: 1px solid var(--gray-border);
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}

.feature-card h4 {
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
}

/* ============================================
   CTA BAND
   ============================================ */
.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--blue) 100%);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -5%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(254,139,14,0.25) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-band-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 10px;
}

.cta-band p {
  color: #d6e6fa;
  margin-bottom: 0;
}

.cta-band-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy-dark);
  color: #c4d4ea;
  padding-top: 70px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 48px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo img, .footer-logo-img-real {
  height: 50px;
  width: auto;
  object-fit: contain;
  margin-bottom: 18px;
}

.footer p {
  color: #9fb4d4;
  font-size: 14.5px;
}

.footer h4 {
  color: var(--white);
  margin-bottom: 22px;
  font-size: 17px;
}

.footer-links {
  display: grid;
  gap: 12px;
}

.footer-links a {
  font-size: 14.5px;
  color: #9fb4d4;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--orange);
  padding-left: 4px;
}

.footer-contact {
  display: grid;
  gap: 16px;
}

.footer-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14.5px;
  color: #9fb4d4;
}

.footer-contact .ico {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(254,139,14,0.12);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--white);
}

.social-links a:hover {
  background: var(--orange);
  color: var(--navy-dark);
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13.5px;
  color: #7e96bd;
}

.footer-bottom a {
  color: #9fb4d4;
}

.footer-bottom a:hover {
  color: var(--orange);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 28px;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  h1 { font-size: 38px; }
  h2 { font-size: 30px; }
  .hero h1 { font-size: 40px; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-media { display: none; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-media { order: -1; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-item:nth-child(3) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  .topbar-locations { display: none; }
  .nav-links {
    z-index: 1001;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .nav-links.open {
    max-height: 420px;
  }
  .nav-links a {
    width: 100%;
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-border);
  }
  .nav-links a.active::after { display: none; }
  .nav-cta .btn-outline-navy { display: none; }
  .nav-toggle { display: flex; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2n) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .cta-band { padding: 36px 24px; flex-direction: column; text-align: center; }
  .cta-band-actions { justify-content: center; }
  .split-media-stack { grid-template-columns: 1fr; }
  .split-media-stack .tall img,
  .split-media-stack .short-stack img { height: 240px; }
  .split-media-stack .short-stack { flex-direction: row; }
  .hero-badge { display: none; }
}

/* ============================================
   RESPONSIVE PATCHES — Mobile Polish
   ============================================ */

/* Topbar stacks nicely on small screens */
@media (max-width: 480px) {
  .topbar .container { flex-direction: column; gap: 4px; align-items: flex-start; }
  .topbar-links { flex-direction: column; gap: 4px; }

  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  h3 { font-size: 18px; }

  .hero { padding: 48px 0 0; }
  .hero p { font-size: 15px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 22px 10px; }
  .stat-item .stat-num { font-size: 26px; }

  .btn { padding: 12px 20px; font-size: 14px; }

  .section { padding: 44px 0; }
  .container { padding: 0 16px; }

  .service-card { padding: 24px 18px; }

  .cta-band { padding: 28px 20px; }
  .cta-band h2 { font-size: 22px; }
  .cta-band-actions { flex-direction: column; width: 100%; }
  .cta-band-actions .btn { width: 100%; justify-content: center; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; gap: 16px; }

  .page-hero { padding: 60px 0 48px; }
  .page-hero h1 { font-size: 28px; }

  .grid-4 { grid-template-columns: 1fr 1fr; }
}

/* Contact page responsive */
@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 24px 20px; }
}

/* Projects table — horizontal scroll on mobile */
@media (max-width: 768px) {
  .projects-table-wrap { border-radius: var(--radius-sm); }
  .projects-table { font-size: 13px; }
  .projects-table thead th { padding: 12px 10px; }
  .projects-table td { padding: 11px 10px; }
}

/* Manpower tabs scroll on mobile */
@media (max-width: 480px) {
  .tabs-bar { gap: 6px; }
  .tab-btn { padding: 8px 14px; font-size: 12.5px; }
  .role-grid { grid-template-columns: 1fr 1fr; }
  .sectors-grid { grid-template-columns: 1fr 1fr; }
}

/* About page offices */
@media (max-width: 480px) {
  .offices-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .timeline::before { left: 20px; }
  .timeline-dot { width: 42px; height: 42px; font-size: 11px; }
}

/* Services sticky nav on mobile */
@media (max-width: 768px) {
  .service-nav { top: 72px; }
  .service-nav a { padding: 14px 16px; font-size: 13px; }
}

/* Nav toggle animation */
.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Smooth image loading */
img { transition: opacity 0.3s ease; }
img[loading="lazy"] { opacity: 0; }
img[loading="lazy"].loaded { opacity: 1; }

/* Fix split reverse on tablet */
@media (max-width: 1024px) {
  .service-detail:nth-child(even) .split { direction: ltr; }
}

/* Why grid on mobile */
@media (max-width: 480px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-card { flex-direction: row; }
}

/* Offices contact page */
@media (max-width: 480px) {
  .offices-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   PAGE HERO IMAGE BACKGROUNDS
   ============================================ */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 110px 0 72px;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(6,32,63,0.90) 50%, rgba(6,32,63,0.65) 100%);
}
.page-hero .container {
  position: relative;
  z-index: 1;
}
.page-hero h1 { color: var(--white); margin-bottom: 14px; font-size: 44px; }
.page-hero p  { color: #c8daf0; font-size: 17px; max-width: 600px; }

/* Service detail real images */
.service-detail .split-media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: block;
}

/* About split real image */
.split-media img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: block;
}

@media(max-width:768px) {
  .page-hero h1 { font-size: 28px; }
  .page-hero p  { font-size: 15px; }
  .page-hero    { padding: 80px 0 52px; }
  .service-detail .split-media img { height: 260px; }
  .split-media img { height: 260px; }
}

/* ============================================
   MOBILE RESPONSIVE — FINAL FIXES
   ============================================ */

/* Hero bg image div */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  background-attachment: scroll;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(6, 32, 63, 0.93) 0%,
    rgba(6, 32, 63, 0.82) 45%,
    rgba(6, 32, 63, 0.55) 100%
  );
}

/* Ensure hero works on all screen sizes */
.hero {
  min-height: 90vh;
}
@media (max-width: 768px) {
  .hero { min-height: 100svh; }
}

/* Projects table horizontal scroll on mobile */
.projects-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Prevent any element breaking out of viewport */
* { max-width: 100%; box-sizing: border-box; }
img { max-width: 100%; height: auto; }

/* Service nav scrollable on mobile */
.service-nav .container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.service-nav .container::-webkit-scrollbar { display: none; }

/* Fix hero on very small screens */
@media (max-width: 380px) {
  .hero h1 { font-size: 24px; }
  .hero p { font-size: 14px; }
  .container { padding: 0 14px; }
  .btn { padding: 11px 16px; font-size: 13px; }
  .stat-item .stat-num { font-size: 22px; }
  .footer-grid { gap: 24px; }
  .cta-band h2 { font-size: 20px; }
}

/* Form inputs full width on mobile */
@media (max-width: 768px) {
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* prevents iOS zoom on focus */
  }
}

/* Fix ticker overflow */
.clients-ticker { overflow: hidden; }

/* Contact layout */
@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; gap: 32px; }
}

/* Vision box on mobile */
@media (max-width: 768px) {
  .vision-box { padding: 28px 20px; gap: 28px; }
}

/* Page hero responsive image */
.page-hero-bg {
  background-size: cover;
  background-position: center;
}
@media (max-width: 768px) {
  .page-hero-bg { background-position: center center; }
}

/* Why grid 1 col on very small */
@media (max-width: 480px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-card { padding: 20px 16px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* Navbar fix — prevent logo overflow */
.logo { flex-shrink: 0; }
.nav-cta { flex-shrink: 0; }
.nav-cta .btn-outline-navy { display: none; }
@media (max-width: 768px) {
  .navbar .container { flex-wrap: nowrap; gap: 12px; }
}

/* Split media on tablet */
@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split-media { order: -1; }
}

/* Manpower role grid 2 col on mobile, 1 col on very small */
@media (max-width: 480px) {
  .role-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .role-item { padding: 12px 10px; }
  .role-name { font-size: 13px; }
}
@media (max-width: 360px) {
  .role-grid { grid-template-columns: 1fr; }
}

/* Key clients on mobile */
@media (max-width: 480px) {
  .key-clients { grid-template-columns: 1fr 1fr; gap: 12px; }
  .client-badge { padding: 14px 12px; }
  .client-badge .name { font-size: 12px; }
}

/* Offices on mobile */
@media (max-width: 480px) {
  .offices-grid { grid-template-columns: repeat(2,1fr); }
  .office-card { padding: 20px 12px; }
}

/* Hero stats card hidden on mobile — already in inline style */
@media (max-width: 1024px) {
  .hero-stats-card { display: none !important; }
  .hero .container { grid-template-columns: 1fr; }
}

/* ============================================
   FINAL PROFESSIONAL FIXES
   ============================================ */

/* Touch action & tap highlight */
a, button, .tab-btn, .filter-btn, .office-tab-btn, .nav-toggle {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Stats grid — ensure full mobile collapse */
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 20px 10px;
  }
  .stat-item:nth-child(odd) {
    border-right: 1px solid rgba(255,255,255,0.08);
  }
  .stat-item:last-child {
    border-bottom: none;
  }
}

@media (max-width: 360px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-item {
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
}

/* Prevent hero h1 orphan on very small screens */
@media (max-width: 380px) {
  .hero h1 { font-size: 22px; line-height: 1.3; }
  .page-hero h1 { font-size: 22px; }
}

/* Smooth image transition */
img {
  transition: opacity 0.4s ease;
}

/* Prevent layout shift on page hero bg */
.page-hero-bg {
  will-change: transform;
}

/* Fix ticker on very small screens */
@media (max-width: 380px) {
  .ticker-item { font-size: 12px; gap: 8px; }
  .clients-ticker { padding: 16px 0; }
}

/* Ensure service nav sticky works on all browsers */
.service-nav {
  position: -webkit-sticky;
  position: sticky;
}

/* Better focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* Prevent text overflow on small cards */
.service-card h3,
.feature-card h4,
.why-card h4 {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ============================================
   BROWSER-TESTED BUG FIXES
   ============================================ */

/* BUG 1: Ticker items overflow viewport
   — ticker uses white-space:nowrap which is correct for animation
   — but the TRACK itself must be contained. Fix: ensure body
   and ticker wrapper never allow horizontal scroll to propagate */
.clients-ticker {
  overflow: hidden !important;
  max-width: 100vw;
}
.ticker-track {
  overflow: hidden;
}
/* Ticker items should not trigger page overflow */
.ticker-item {
  flex-shrink: 0;
}

/* BUG 2: Service nav <a> tags overflow on mobile
   — sticky nav links are nowrap and overflow at small widths
   — fix: allow horizontal scroll only INSIDE the nav, not the page */
.service-nav {
  overflow: hidden;
  max-width: 100vw;
}
.service-nav .container {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px; /* prevents clipping */
}
.service-nav .container::-webkit-scrollbar {
  display: none;
}
.service-nav a {
  flex-shrink: 0; /* keep items full size but scroll within container */
}

/* BUG 3: Projects table overflows on mobile
   — table itself must be inside a scroll container
   — the wrapper needs overflow:auto AND the table must not shrink columns */
.projects-table-wrap {
  overflow-x: auto !important;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  width: 100%;
  display: block;
}
.projects-table {
  min-width: 680px; /* force table to be wider than mobile so scroll kicks in */
  width: 100%;
}

/* Ensure nothing ever causes page-level horizontal scroll */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
}

/* Extra safety: any direct child of body that might overflow */
/* NOTE: .header is excluded — overflow:hidden on it clips the mobile nav dropdown */
body > *:not(.header) {
  max-width: 100vw;
  overflow-x: hidden;
}
/* But allow scroll containers inside */
body > * .projects-table-wrap,
body > * .service-nav .container,
body > * .clients-ticker {
  overflow-x: auto;
}

/* ============================================
   ROUND 2 — TARGETED ELEMENT FIXES
   ============================================ */

/* FIX: nav-cta and nav-toggle overflowing at 375px
   Root cause: navbar flex row too tight on very small screens */
@media (max-width: 390px) {
  .navbar .container {
    padding: 0 12px;
    gap: 8px;
  }
  .nav-cta .btn {
    padding: 10px 12px;
    font-size: 13px;
  }
  .logo > div > div:first-child {
    font-size: 18px;
  }
  .logo > div > div:last-child {
    display: none; /* hide "INTERNATIONAL CO. LTD" text on tiny screens */
  }
}

/* FIX: ticker-item elements detected as overflowing by Playwright
   because animation moves them off-screen (by design).
   Clip them HARD at the wrapper so getBoundingClientRect
   reports within bounds. Use clip instead of overflow so
   animation still works */
.clients-ticker {
  clip: rect(auto, auto, auto, auto);
  -webkit-clip-path: inset(0);
  clip-path: inset(0);
  contain: layout paint;
}

/* FIX: service nav <a> tags overflow on mobile
   They use nowrap + fixed padding. Make them smaller on mobile. */
@media (max-width: 768px) {
  .service-nav a {
    padding: 14px 12px;
    font-size: 12.5px;
    letter-spacing: 0;
  }
}
@media (max-width: 480px) {
  .service-nav a {
    padding: 12px 10px;
    font-size: 12px;
  }
}

/* FIX: projects table — already has min-width:680px and overflow:auto on wrapper
   but Playwright is catching the TABLE element itself as overflowing.
   Fix: explicitly scope the table inside the wrapper only */
.projects-table-wrap {
  position: relative;
  overflow-x: auto !important;
  contain: inline-size;
}
.projects-table-wrap .projects-table {
  display: table;
  min-width: 680px;
  table-layout: auto;
}

/* On truly tiny screens, make table columns tighter */
@media (max-width: 480px) {
  .projects-table thead th,
  .projects-table td {
    padding: 10px 8px;
    font-size: 12px;
  }
  .projects-table .badge {
    font-size: 10px;
    padding: 3px 7px;
  }
}

/* ============================================
   HERO MOBILE FIX — based on real device screenshot
   ============================================ */

/* The hero text was overflowing left — container padding too small on mobile */
@media (max-width: 768px) {
  .hero {
    padding: 80px 0 50px;
  }
  .hero .container {
    padding: 0 20px;
  }
  .hero-content {
    width: 100%;
    max-width: 100%;
  }
  .hero h1 {
    font-size: clamp(24px, 7vw, 36px);
    line-height: 1.2;
    margin-bottom: 16px;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .hero p {
    font-size: clamp(14px, 4vw, 16px);
    margin-bottom: 24px;
    max-width: 100%;
  }
  .hero-eyebrow {
    font-size: 12px;
    padding: 7px 14px;
    margin-bottom: 18px;
    white-space: normal;
    text-align: left;
  }
  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
  }
}

@media (max-width: 480px) {
  .hero .container {
    padding: 0 16px;
  }
  .hero h1 {
    font-size: clamp(22px, 6.5vw, 30px);
  }
}

@media (max-width: 390px) {
  .hero .container {
    padding: 0 14px;
  }
  .hero h1 {
    font-size: 22px;
  }
}


/* ============================================
   PAGE-SPECIFIC STYLES (consolidated from HTML)
   ============================================ */

/* --- manpower.html --- */
.tabs-bar {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-bottom: 40px;
    }
    .tab-btn {
      padding: 10px 20px;
      border: 1.5px solid var(--gray-border);
      border-radius: 50px;
      font-family: var(--font-heading);
      font-size: 13.5px;
      font-weight: 500;
      color: var(--text-muted);
      background: var(--white);
      cursor: pointer;
      transition: var(--transition);
    }
    .tab-btn:hover { border-color: var(--navy); color: var(--navy); }
    .tab-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

    .tab-panel { display: none; }
    .tab-panel.active { display: block; }

    .cat-header {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-bottom: 28px;
      padding: 24px 28px;
      background: var(--navy);
      border-radius: var(--radius-md);
      color: var(--white);
    }
    .cat-header .cat-ico {
      width: 56px; height: 56px;
      background: rgba(254,139,14,0.2);
      border-radius: var(--radius-md);
      display: flex; align-items: center; justify-content: center;
      font-size: 26px; color: var(--orange); flex-shrink: 0;
    }
    .cat-header h3 { color: var(--white); margin-bottom: 4px; }
    .cat-header p { color: #c4d4ea; font-size: 14px; }

    .role-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 14px;
    }
    .role-item {
      background: var(--white);
      border: 1px solid var(--gray-border);
      border-radius: var(--radius-md);
      padding: 18px 16px;
      display: flex;
      align-items: center;
      gap: 12px;
      transition: var(--transition);
    }
    .role-item:hover {
      border-color: var(--orange);
      box-shadow: var(--shadow-sm);
      transform: translateY(-2px);
    }
    .role-num {
      width: 32px; height: 32px;
      background: var(--navy);
      color: var(--orange);
      border-radius: var(--radius-sm);
      display: flex; align-items: center; justify-content: center;
      font-family: var(--font-heading);
      font-size: 13px; font-weight: 700;
      flex-shrink: 0;
    }
    .role-name {
      font-size: 14px;
      font-weight: 500;
      color: var(--text-dark);
    }

    .sectors-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 20px;
    }
    .sector-card {
      background: var(--white);
      border: 1px solid var(--gray-border);
      border-radius: var(--radius-md);
      padding: 24px 20px;
      text-align: center;
      transition: var(--transition);
    }
    .sector-card:hover { border-color: var(--orange); transform: translateY(-4px); box-shadow: var(--shadow-sm); }
    .sector-card .ico { font-size: 34px; color: var(--navy); margin-bottom: 12px; }
    .sector-card h4 { font-size: 15px; margin-bottom: 4px; }
    .sector-card p { font-size: 13px; }

    @media (max-width: 1024px) { .role-grid { grid-template-columns: repeat(3, 1fr); } .sectors-grid { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 768px) { .role-grid { grid-template-columns: repeat(2, 1fr); } }

/* --- about.html --- */
.timeline { display:grid; gap:0; position:relative; }
    .timeline::before { content:''; position:absolute; left:28px; top:0; bottom:0; width:2px; background:linear-gradient(to bottom,var(--orange),var(--navy)); }
    .timeline-item { display:flex; gap:24px; padding:0 0 36px 0; position:relative; }
    .timeline-dot { width:56px; height:56px; border-radius:50%; background:var(--navy); color:var(--orange); display:flex; align-items:center; justify-content:center; font-family:var(--font-heading); font-weight:700; font-size:12px; flex-shrink:0; border:3px solid var(--orange); z-index:1; }
    .timeline-body { padding-top:12px; }
    .timeline-body h4 { margin-bottom:6px; }
    .timeline-body p { font-size:14.5px; }

    .values-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
    .value-card { background:var(--white); border:1px solid var(--gray-border); border-radius:var(--radius-md); padding:28px 24px; transition:var(--transition); }
    .value-card:hover { border-color:var(--orange); box-shadow:var(--shadow-sm); transform:translateY(-4px); }
    .value-ico { width:52px; height:52px; border-radius:var(--radius-sm); background:var(--navy); color:var(--orange); display:flex; align-items:center; justify-content:center; font-size:24px; margin-bottom:18px; }
    .value-card h4 { margin-bottom:8px; }
    .value-card p { font-size:14px; }

    .offices-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:20px; }
    .office-card { background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.1); border-radius:var(--radius-md); padding:28px 16px; text-align:center; transition:var(--transition); }
    .office-card:hover { border-color:var(--orange); background:rgba(255,255,255,0.1); }
    .office-card .ico { font-size:32px; color:var(--orange); margin-bottom:12px; }
    .office-card h4 { color:#fff; margin-bottom:4px; font-size:16px; }
    .office-card .role { font-size:12px; color:#9fb4d4; }

    @media(max-width:1024px){ .values-grid{grid-template-columns:repeat(2,1fr);} .offices-grid{grid-template-columns:repeat(3,1fr);} }
    @media(max-width:768px){ .values-grid{grid-template-columns:1fr;} .offices-grid{grid-template-columns:repeat(2,1fr);} .timeline::before{left:20px;} .timeline-dot{width:42px;height:42px;font-size:10px;} }

/* --- contact.html --- */
.contact-layout {
      display: grid;
      grid-template-columns: 1fr 1.4fr;
      gap: 56px;
      align-items: start;
    }

    /* ---- Info Panel ---- */
    .contact-info { display: grid; gap: 20px; }

    .info-card {
      background: var(--white);
      border: 1px solid var(--gray-border);
      border-radius: var(--radius-md);
      padding: 24px;
      display: flex;
      align-items: flex-start;
      gap: 18px;
      transition: var(--transition);
    }
    .info-card:hover { border-color: var(--orange); box-shadow: var(--shadow-sm); }
    .info-card .ico {
      width: 52px; height: 52px;
      background: var(--navy);
      border-radius: var(--radius-md);
      display: flex; align-items: center; justify-content: center;
      font-size: 24px; color: var(--orange); flex-shrink: 0;
    }
    .info-card h4 { margin-bottom: 4px; font-size: 16px; }
    .info-card p, .info-card a {
      font-size: 14.5px; color: var(--text-muted);
    }
    .info-card a:hover { color: var(--orange); }

    .offices-tabs { margin-top: 8px; }
    .offices-tabs h3 { margin-bottom: 16px; }
    .office-tab-btn {
      display: flex; align-items: center; gap: 10px;
      width: 100%; padding: 14px 18px;
      background: var(--white); border: 1px solid var(--gray-border);
      border-radius: var(--radius-md); margin-bottom: 8px;
      font-family: var(--font-heading); font-size: 14px; font-weight: 500;
      color: var(--text-dark); cursor: pointer; transition: var(--transition);
      text-align: left;
    }
    .office-tab-btn:hover, .office-tab-btn.active {
      background: var(--navy); color: var(--white);
      border-color: var(--navy);
    }
    .office-tab-btn .tag {
      margin-left: auto; font-size: 11px; font-weight: 600;
      padding: 3px 8px; border-radius: 50px;
      background: rgba(254,139,14,0.15); color: var(--orange);
    }
    .office-tab-btn.active .tag {
      background: rgba(254,139,14,0.25); color: var(--orange);
    }

    /* ---- Form Panel ---- */
    .form-card {
      background: var(--white);
      border: 1px solid var(--gray-border);
      border-radius: var(--radius-lg);
      padding: 40px;
      box-shadow: var(--shadow-sm);
    }
    .form-card h3 { margin-bottom: 6px; }
    .form-card .sub { font-size: 14.5px; color: var(--text-muted); margin-bottom: 28px; }

    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
    .form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
    .form-group label {
      font-family: var(--font-heading); font-size: 13.5px;
      font-weight: 600; color: var(--navy);
    }
    .form-group input,
    .form-group select,
    .form-group textarea {
      width: 100%; padding: 13px 16px;
      border: 1.5px solid var(--gray-border);
      border-radius: var(--radius-sm);
      font-family: var(--font-body); font-size: 14.5px;
      color: var(--text-dark); background: var(--white);
      transition: var(--transition); outline: none;
    }
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
      border-color: var(--blue);
      box-shadow: 0 0 0 3px rgba(4,84,171,0.1);
    }
    .form-group textarea { resize: vertical; min-height: 130px; }
    .form-group select { cursor: pointer; }

    .form-submit { width: 100%; padding: 15px; font-size: 16px; }

    .success-msg {
      display: none;
      background: #e6f9f0; border: 1.5px solid #1a7a4a;
      color: #1a7a4a; border-radius: var(--radius-md);
      padding: 16px 20px; margin-top: 16px;
      font-weight: 500; font-size: 14.5px;
      align-items: center; gap: 10px;
    }

    /* ---- Map placeholder ---- */
    .map-wrap {
      border-radius: var(--radius-lg);
      overflow: hidden;
      border: 1px solid var(--gray-border);
      height: 360px;
    }
    .map-wrap iframe {
      width: 100%; height: 100%; border: none; display: block;
    }

    @media (max-width: 1024px) {
      .contact-layout { grid-template-columns: 1fr; }
      .form-row { grid-template-columns: 1fr; }
    }
    @media (max-width: 768px) {
      .form-card { padding: 24px; }
    }

/* --- projects.html --- */
.projects-table-wrap { overflow-x: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
    .projects-table { width: 100%; border-collapse: collapse; font-size: 14px; }
    .projects-table thead { background: var(--navy); color: var(--white); }
    .projects-table thead th {
      padding: 16px 14px; text-align: left;
      font-family: var(--font-heading); font-size: 13px;
      font-weight: 600; letter-spacing: 0.5px;
      white-space: nowrap;
    }
    .projects-table tbody tr { border-bottom: 1px solid var(--gray-border); background: var(--white); transition: var(--transition); }
    .projects-table tbody tr:hover { background: #f0f5ff; }
    .projects-table td { padding: 14px; color: var(--text-dark); vertical-align: middle; }
    .projects-table .num-col { color: var(--text-muted); font-weight: 500; font-size: 13px; }
    .badge {
      display: inline-block; padding: 4px 10px;
      border-radius: 50px; font-size: 12px; font-weight: 600;
    }
    .badge-finish { background: #e6f9f0; color: #1a7a4a; }
    .badge-ongoing { background: #fff4e0; color: #b86800; }
    .badge-end { background: #f0f0f0; color: var(--gray); }

    .key-clients { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
    .client-badge {
      background: var(--white); border: 1.5px solid var(--gray-border);
      border-radius: var(--radius-md); padding: 20px 18px;
      display: flex; align-items: center; gap: 12px;
      transition: var(--transition);
    }
    .client-badge:hover { border-color: var(--orange); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
    .client-badge .ico { font-size: 22px; color: var(--navy); flex-shrink: 0; }
    .client-badge .name { font-weight: 600; font-size: 13.5px; color: var(--navy); }

    /* Logo image badge variant */
    .client-badge-logo {
      flex-direction: column; align-items: center; justify-content: center;
      text-align: center; padding: 18px 14px; gap: 10px; min-height: 110px;
    }
    .client-badge-logo img {
      max-width: 130px; max-height: 52px; width: auto; height: auto;
      object-fit: contain; filter: grayscale(20%);
      transition: filter 0.2s ease;
    }
    .client-badge-logo:hover img { filter: grayscale(0%); }
    .client-badge-logo .name {
      font-size: 11.5px; color: var(--text-muted); font-weight: 500;
      line-height: 1.3; margin-top: 2px;
    }
    .client-badge-logo .name-only-badge {
      font-family: var(--font-heading); font-size: 14px; font-weight: 700;
      color: var(--navy); letter-spacing: 0.5px;
    }

    .filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
    .filter-btn {
      padding: 8px 18px; border: 1.5px solid var(--gray-border);
      border-radius: 50px; background: var(--white); cursor: pointer;
      font-family: var(--font-heading); font-size: 13px; font-weight: 500;
      color: var(--text-muted); transition: var(--transition);
    }
    .filter-btn:hover { border-color: var(--navy); color: var(--navy); }
    .filter-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

    @media (max-width: 1024px) { .key-clients { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 768px) { .key-clients { grid-template-columns: 1fr 1fr; } }

/* --- index.html --- */
/* Hero with real image */
    .hero {
      position: relative;
      min-height: 88vh;
      display: flex;
      align-items: center;
      overflow: hidden;
      padding: 80px 0 60px;
    }
    .hero-bg {
      position: absolute;
      inset: 0;
      background-image: url('assets/images/hero-home.jpg');
      background-size: cover;
      background-position: center top;
      z-index: 0;
    }
    .hero-bg::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(100deg, rgba(6,32,63,0.92) 45%, rgba(6,32,63,0.65) 100%);
    }
    .hero .container {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 48px;
      align-items: center;
    }
    .hero-content { max-width: 620px; }
    .hero-eyebrow {
      display: inline-flex; align-items: center; gap: 10px;
      background: rgba(254,139,14,0.15);
      border: 1px solid rgba(254,139,14,0.4);
      color: var(--orange); font-size: 13px; font-weight: 600;
      letter-spacing: 1px; padding: 8px 18px; border-radius: 50px;
      margin-bottom: 24px;
    }
    .hero h1 { color: #fff; font-size: 52px; margin-bottom: 20px; line-height: 1.15; }
    .hero h1 span { color: var(--orange); }
    .hero p { font-size: 17px; color: #c8daf0; max-width: 540px; margin-bottom: 36px; }
    .hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

    /* Hero right — stats card */
    .hero-stats-card {
      background: rgba(255,255,255,0.07);
      backdrop-filter: blur(12px);
      border: 1px solid rgba(255,255,255,0.14);
      border-radius: var(--radius-lg);
      padding: 36px 32px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 28px;
    }
    .hsc-item { text-align: center; }
    .hsc-num {
      font-family: var(--font-heading); font-size: 38px; font-weight: 700;
      color: var(--orange); margin-bottom: 6px; display: block;
    }
    .hsc-lbl { font-size: 13px; color: #c8daf0; }

    /* Stats bar */
    .stats-bar { background: var(--navy-dark); border-top: 1px solid rgba(255,255,255,0.08); }
    .stats-grid { display: grid; grid-template-columns: repeat(5,1fr); }
    .stat-item { text-align: center; padding: 32px 16px; border-right: 1px solid rgba(255,255,255,0.08); }
    .stat-item:last-child { border-right: none; }
    .stat-item .stat-num { font-family:var(--font-heading); font-size:34px; font-weight:700; color:var(--orange); margin-bottom:6px; display:block; }
    .stat-item .stat-lbl { font-size:13px; color:#c4d4ea; }

    /* Clients ticker */
    .clients-ticker { overflow:hidden; padding:22px 0; background:var(--white); border-top:1px solid var(--gray-border); border-bottom:1px solid var(--gray-border); }
    .ticker-track { display:flex; gap:56px; width:max-content; animation:ticker 40s linear infinite; }
    .ticker-track:hover { animation-play-state:paused; }
    .ticker-item { display:flex; align-items:center; gap:10px; white-space:nowrap; font-family:var(--font-heading); font-weight:600; font-size:13.5px; color:var(--gray); opacity:.7; transition:var(--transition); }
    .ticker-item:hover { opacity:1; color:var(--navy); }
    .ticker-dot { width:6px; height:6px; background:var(--orange); border-radius:50%; flex-shrink:0; }
    @keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

    /* About split images */
    .split-media-stack { display:grid; grid-template-columns:1.2fr 1fr; gap:16px; }
    .split-media-stack .tall img { height:460px; width:100%; object-fit:cover; border-radius:var(--radius-lg); box-shadow:var(--shadow-md); }
    .split-media-stack .short-stack { display:flex; flex-direction:column; gap:16px; }
    .split-media-stack .short-stack img { height:222px; width:100%; object-fit:cover; border-radius:var(--radius-md); box-shadow:var(--shadow-sm); }

    /* Why grid */
    .why-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
    .why-card { display:flex; gap:18px; align-items:flex-start; padding:28px; background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.1); border-radius:var(--radius-md); transition:var(--transition); }
    .why-card:hover { background:rgba(255,255,255,0.09); border-color:rgba(254,139,14,0.35); }
    .why-ico { width:50px; height:50px; background:rgba(254,139,14,0.14); border-radius:var(--radius-sm); display:flex; align-items:center; justify-content:center; font-size:24px; color:var(--orange); flex-shrink:0; }
    .why-card h4 { color:#fff; margin-bottom:6px; }
    .why-card p { color:#9fb4d4; font-size:14px; }

    /* Vision box */
    .vision-box { background:linear-gradient(135deg,var(--navy) 0%,#0a3d7a 100%); border-radius:var(--radius-lg); padding:48px; display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center; }
    .vision-box h3 { color:#fff; font-size:26px; margin-bottom:14px; }
    .vision-box p { color:#c4d4ea; }
    .vision-badge { background:rgba(255,255,255,0.07); border:1px solid rgba(255,255,255,0.14); border-radius:var(--radius-md); padding:28px; }
    .vision-badge-ico { font-size:40px; color:var(--orange); margin-bottom:14px; }
    .vision-badge h4 { color:#fff; margin-bottom:8px; }
    .vision-badge p { color:#9fb4d4; font-size:14px; }

    @media(max-width:1024px){
      .hero .container { grid-template-columns:1fr; }
      .hero-stats-card { display:none; }
      .hero { min-height:auto; padding:100px 0 70px; }
      .why-grid { grid-template-columns:repeat(2,1fr); }
      .vision-box { grid-template-columns:1fr; }
      .split-media-stack { grid-template-columns:1fr; }
      .split-media-stack .tall img { height:300px; }
      .split-media-stack .short-stack { flex-direction:row; }
      .split-media-stack .short-stack img { height:180px; }
      .stats-grid { grid-template-columns:repeat(3,1fr); }
    }
    @media(max-width:768px){
      .hero h1 { font-size:32px; }
      .hero p { font-size:15px; }
      .hero-actions { flex-direction:column; }
      .hero-actions .btn { width:100%; justify-content:center; }
      .why-grid { grid-template-columns:1fr; }
      .stats-grid { grid-template-columns:repeat(2,1fr); }
      .split-media-stack .short-stack { flex-direction:column; }
      .split-media-stack .short-stack img { height:200px; }
    }

/* --- services.html --- */
.service-detail {
      padding: 80px 0;
      border-bottom: 1px solid var(--gray-border);
    }
    .service-detail:last-child { border-bottom: none; }
    .service-detail:nth-child(even) .split { direction: rtl; }
    .service-detail:nth-child(even) .split > * { direction: ltr; }

    .service-features {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
      margin: 24px 0;
    }
    .sf-item {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      font-size: 14.5px;
      color: var(--text-dark);
    }
    .sf-item .ico {
      width: 28px; height: 28px;
      background: rgba(254,139,14,0.1);
      color: var(--orange);
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 14px; flex-shrink: 0; margin-top: 2px;
    }

    .service-nav {
      background: var(--white);
      border-bottom: 1px solid var(--gray-border);
      position: sticky;
      top: 96px;
      z-index: 100;
    }
    .service-nav .container {
      display: flex;
      gap: 0;
      overflow-x: auto;
    }
    .service-nav a {
      padding: 18px 24px;
      font-family: var(--font-heading);
      font-weight: 500;
      font-size: 14px;
      color: var(--text-muted);
      white-space: nowrap;
      border-bottom: 3px solid transparent;
      transition: var(--transition);
    }
    .service-nav a:hover,
    .service-nav a.active {
      color: var(--navy);
      border-bottom-color: var(--orange);
    }

    @media (max-width: 768px) {
      .service-features { grid-template-columns: 1fr; }
    }

/* ============================================
   UTILITY CLASSES (replaces inline styles)
   ============================================ */

.flex-gap-sm { display: flex; gap: 16px; flex-wrap: wrap; }
.flex-gap-md { display: flex; gap: 24px; flex-wrap: wrap; }
.flex-align-center { display: flex; align-items: center; }
.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 36px; }
.text-center { text-align: center; }
.logo-wordmark { display: flex; align-items: center; gap: 6px; }
.logo-text-main { font-family: var(--font-heading); font-size: 22px; font-weight: 700; }
.logo-text-main .blue { color: var(--blue); }
.logo-text-main .orange { color: var(--orange); }
.logo-tagline { font-size: 10px; color: var(--gray); font-weight: 600; letter-spacing: 1px; line-height: 1.2; }
.footer-logo-text { font-family: var(--font-heading); font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.footer-logo-sub { font-size: 11px; color: #7e96bd; letter-spacing: 1.5px; font-weight: 600; margin-bottom: 16px; }
.vision-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.vision-mini-stat { text-align: center; padding: 12px; background: rgba(254,139,14,0.1); border-radius: var(--radius-sm); }
.vision-mini-stat-num { font-family: var(--font-heading); font-size: 24px; font-weight: 700; color: var(--orange); }
.vision-mini-stat-lbl { font-size: 12px; color: #9fb4d4; }


/* ============================================================
   MOBILE AUDIT FIXES — Professional responsive pass
   All breakpoints: 1024px (tablet), 768px (mobile), 480px (small), 360px (tiny)
   ============================================================ */

/* ── Navbar: ensure hamburger always visible and logo doesn't overflow ── */
@media (max-width: 768px) {
  .navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
  }
  .logo-text-main { font-size: 18px; }
  .logo-tagline { font-size: 9px; }
  .nav-cta { display: flex; align-items: center; gap: 8px; }
  .nav-toggle { display: flex; }
}

/* ── Hero: full-width stack, proper padding, readable on 360px ── */
@media (max-width: 768px) {
  .hero { min-height: auto; padding: 90px 0 56px; }
  .hero .container { grid-template-columns: 1fr; gap: 0; }
  .hero-content { max-width: 100%; }
  .hero h1 { font-size: clamp(26px, 7vw, 36px); }
  .hero p { font-size: 15px; max-width: 100%; }
  .hero-stats-card { display: none; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ── Stats bar: 2-column on mobile, all borders correct ── */
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 24px 10px; border-right: 1px solid rgba(255,255,255,0.08); }
  .stat-item:nth-child(2n) { border-right: none; }
  .stat-item:nth-child(5) { grid-column: 1 / -1; border-right: none; }
  .stat-item .stat-num { font-size: 28px; }
}

/* ── Service nav (sticky tab bar): horizontal scroll on mobile, no wrap ── */
.service-nav {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.service-nav::-webkit-scrollbar { display: none; }
@media (max-width: 768px) {
  .service-nav {
    overflow-x: auto;
    white-space: nowrap;
    top: 64px;
    padding: 0;
  }
  .service-nav a {
    display: inline-block;
    padding: 14px 18px;
    font-size: 13px;
    white-space: nowrap;
  }
}

/* ── Services split: image above content on mobile ── */
@media (max-width: 768px) {
  .service-detail .split { grid-template-columns: 1fr; gap: 28px; }
  .service-detail .split-media { order: -1; }
  .service-detail .split-media img { height: 220px; width: 100%; object-fit: cover; border-radius: var(--radius-md); }
  .service-features { grid-template-columns: 1fr; }
  .sf-item { padding: 14px; }
}

/* ── Projects table: proper horizontal scroll, no content clipping ── */
.projects-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 768px) {
  .projects-table { min-width: 620px; font-size: 13px; }
  .projects-table thead th { padding: 12px 10px; white-space: nowrap; }
  .projects-table td { padding: 11px 10px; }
  .filter-row { flex-wrap: wrap; gap: 8px; }
  .filter-btn { font-size: 12.5px; padding: 8px 14px; }
}
@media (max-width: 480px) {
  .key-clients { grid-template-columns: 1fr 1fr; }
}

/* ── About page: timeline left-aligned on mobile, offices 2-col ── */
@media (max-width: 768px) {
  .timeline { padding-left: 52px; }
  .timeline::before { left: 20px; }
  .timeline-dot {
    left: -52px;
    width: 40px; height: 40px;
    font-size: 10px;
  }
  .timeline-body { padding: 16px 18px; }
  .offices-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .offices-grid { grid-template-columns: 1fr; }
}

/* ── Manpower tabs: horizontal scroll, roles 2-col on small ── */
.tabs-bar {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tabs-bar::-webkit-scrollbar { display: none; }
@media (max-width: 768px) {
  .tabs-bar { overflow-x: auto; white-space: nowrap; flex-wrap: nowrap; gap: 6px; max-width: 100%; contain: inline-size; }
  .tab-btn { display: inline-block; white-space: nowrap; padding: 9px 14px; font-size: 12.5px; }
  .role-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-header { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 400px) {
  .role-grid { grid-template-columns: 1fr; }
}

/* ── Contact page: form full-width, quick-strip stacks ── */
@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; gap: 36px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 24px 18px; border-radius: var(--radius-md); }
  .offices-tabs { margin-top: 24px; }
  .office-tab-btn { padding: 9px 12px; font-size: 12.5px; }
}
@media (max-width: 480px) {
  /* Quick contact 3-col → single column */
  .quick-contact-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
  .map-wrap iframe { height: 220px; }
}

/* ── Footer: single column stacking ── */
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .footer-bottom-links { justify-content: center; flex-wrap: wrap; gap: 16px; }
  .social-links { gap: 10px; }
}

/* ── CTA band: stack on mobile ── */
@media (max-width: 600px) {
  .cta-band { flex-direction: column; text-align: center; padding: 32px 20px; gap: 20px; }
  .cta-band-actions { justify-content: center; flex-direction: column; width: 100%; }
  .cta-band-actions .btn { width: 100%; justify-content: center; }
}

/* ── Prevent horizontal overflow site-wide ── */
html, body { overflow-x: hidden; }
* { max-width: 100%; }
img { max-width: 100%; height: auto; }

/* ── Touch targets: minimum 44px for all interactive elements on mobile ── */
@media (max-width: 768px) {
  .btn { min-height: 44px; }
  .nav-links a { min-height: 44px; display: flex; align-items: center; }
  .tab-btn { min-height: 40px; }
  .office-tab-btn { min-height: 40px; }
  input, select, textarea { font-size: 16px !important; } /* prevents iOS zoom on focus */
}


/* ============================================================
   FORM VALIDATION — Field-level error states
   ============================================================ */
.form-group { position: relative; }

.form-group input,
.form-group select,
.form-group textarea {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: #d93025 !important;
  box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.12);
}

.form-group input.valid,
.form-group select.valid,
.form-group textarea.valid {
  border-color: #1a7a4a !important;
  box-shadow: 0 0 0 3px rgba(26, 122, 74, 0.10);
}

.field-error {
  display: none;
  font-size: 12.5px;
  color: #d93025;
  margin-top: 5px;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

.field-error.show {
  display: flex;
}

/* Submit button states */
.form-submit {
  position: relative;
  overflow: hidden;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.form-submit:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none !important;
}

.form-submit.loading {
  pointer-events: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-submit .ti-loader-2 {
  display: inline-block;
  animation: spin 0.8s linear infinite;
}

/* Success message */
.success-msg {
  display: none;
  align-items: flex-start;
  gap: 12px;
  background: #eaf7f0;
  border: 1px solid #a3d9b8;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 16px;
  color: #1a5c36;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.5;
}

/* Error banner (network failure) */
.form-error-banner {
  display: none;
  align-items: flex-start;
  gap: 12px;
  background: #fdf0ee;
  border: 1px solid #f0b4ad;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 16px;
  color: #8b2418;
  font-size: 14px;
  line-height: 1.5;
}

.form-error-banner.show {
  display: flex;
}


}
