/* ============================================================
   AUTOMAX ENGINEERS PVT. LTD. — Stylesheet v3
   Multi-page corporate website with mega-menu
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --color-primary: #cc0000;
  --color-primary-dark: #a60000;
  --color-primary-light: #e63946;
  --color-navy: #1a2a44;
  --color-navy-dark: #0f1d33;
  --color-navy-light: #243b5c;
  --color-text: #1f2937;
  --color-text-soft: #4b5563;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-bg: #ffffff;
  --color-bg-alt: #f7f8fa;
  --color-bg-grey: #eef0f3;

  --font-heading: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --shadow-sm: 0 1px 2px rgba(15, 29, 51, 0.04), 0 1px 3px rgba(15, 29, 51, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(15, 29, 51, 0.08), 0 2px 4px -1px rgba(15, 29, 51, 0.04);
  --shadow-lg: 0 10px 25px -3px rgba(15, 29, 51, 0.10), 0 4px 6px -2px rgba(15, 29, 51, 0.05);
  --shadow-xl: 0 20px 40px -8px rgba(15, 29, 51, 0.18);

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

  --container-width: 1240px;
  --header-height: 92px;

  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-dark); }

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

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul { list-style: none; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

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

.btn-block { display: block; width: 100%; }

/* ============================================================
   TOP UTILITY BAR
   ============================================================ */
.top-bar {
  background: var(--color-navy-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  padding: 8px 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar-info { display: flex; gap: 22px; flex-wrap: wrap; }
.top-bar-info span,
.top-bar-info a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
}
.top-bar-info a:hover { color: #fff; }
.top-bar-info svg { width: 14px; height: 14px; }

.top-bar-tagline {
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .top-bar { display: none; }
}

/* ============================================================
   HEADER + MEGA MENU
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 56px; width: auto; }

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item { position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 12px 9px;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--color-navy);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-radius: var(--radius-sm);
  position: relative;
  transition: color var(--transition);
  white-space: nowrap;
  cursor: pointer;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 6px;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav-link:hover { color: var(--color-primary); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

.nav-link .chevron {
  width: 10px;
  height: 10px;
  transition: transform var(--transition);
}

.nav-item.has-dropdown:hover .nav-link .chevron {
  transform: rotate(180deg);
}

.nav-link.nav-cta {
  background: var(--color-primary);
  color: #fff;
  margin-left: 4px;
  padding: 11px 16px;
}

.nav-link.nav-cta::after { display: none; }

.nav-link.nav-cta:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

/* Dropdown menu */
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #fff;
  min-width: 280px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-primary);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 100;
}

.nav-item.has-dropdown:hover .dropdown,
.nav-item.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown a {
  display: block;
  padding: 10px 22px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text);
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.dropdown a:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary);
  border-left-color: var(--color-primary);
  padding-left: 26px;
}

.dropdown a strong {
  display: block;
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.dropdown a:hover strong { color: var(--color-primary); }

.dropdown a small {
  display: block;
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 400;
}

.dropdown-section-title {
  display: block;
  padding: 6px 22px 4px;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-muted);
  font-weight: 700;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--color-navy);
  border-radius: 2px;
  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; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ============================================================
   HERO (HOME PAGE)
   ============================================================ */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0f1d33 0%, #1a2a44 50%, #243b5c 100%);
  padding: 80px 0 100px;
  overflow: hidden;
  color: #fff;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.7;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(204, 0, 0, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(204, 0, 0, 0.12) 0%, transparent 50%);
}

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

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: #fff;
  background: rgba(204, 0, 0, 0.95);
  padding: 7px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  color: #fff;
  margin-bottom: 22px;
  font-weight: 700;
  line-height: 1.15;
}

.hero-title .accent {
  color: #fff;
  position: relative;
  display: inline-block;
}

.hero-title .accent::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--color-primary);
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 28px;
  max-width: 580px;
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  gap: 28px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.hero-meta-item { display: flex; flex-direction: column; }

.hero-meta-num {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.hero-meta-num .small { font-size: 0.7em; }

.hero-meta-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 6px;
}

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

/* Hero image carousel */
.hero-carousel {
  position: relative;
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero-carousel-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #fff;
}

.hero-carousel-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-carousel-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.hero-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.hero-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: var(--color-border);
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.hero-carousel-dot.active {
  background: var(--color-primary);
  transform: scale(1.3);
}

/* ============================================================
   SECTIONS - Common
   ============================================================ */
.section { padding: 96px 0; }

.section-light { background-color: var(--color-bg); }
.section-grey { background-color: var(--color-bg-alt); }
.section-dark {
  background-color: var(--color-navy);
  color: rgba(255, 255, 255, 0.92);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section-tag.light { color: #ff5252; }

.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin-bottom: 16px;
}

.section-title.light { color: #fff; }

.title-underline {
  width: 64px;
  height: 4px;
  background: var(--color-primary);
  margin: 0 auto 22px;
}

.title-underline.light { background: #fff; }

.section-lead {
  font-size: 1.05rem;
  color: var(--color-text-soft);
  margin-top: 12px;
}

.section-dark .section-lead { color: rgba(255, 255, 255, 0.78); }

/* ============================================================
   HOME — TEASER CARDS
   ============================================================ */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.teaser-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  display: block;
  color: inherit;
}

.teaser-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--color-primary);
  transition: width 0.35s ease;
}

.teaser-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  color: inherit;
}

.teaser-card:hover::before { width: 100%; }

.teaser-icon {
  width: 56px;
  height: 56px;
  background: rgba(204, 0, 0, 0.08);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background var(--transition), transform var(--transition);
}

.teaser-icon svg { width: 28px; height: 28px; }

.teaser-card:hover .teaser-icon {
  background: var(--color-primary);
  color: #fff;
  transform: scale(1.05);
}

.teaser-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--color-navy);
}

.teaser-card p {
  color: var(--color-text-soft);
  font-size: 0.94rem;
  line-height: 1.6;
}

.teaser-card .arrow {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.teaser-card .arrow svg { width: 14px; height: 14px; transition: transform var(--transition); }
.teaser-card:hover .arrow svg { transform: translateX(4px); }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-text p {
  font-size: 1.02rem;
  color: var(--color-text-soft);
  margin-bottom: 1.1rem;
  line-height: 1.75;
}

.about-text strong { color: var(--color-navy); font-weight: 700; }

.about-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image-wrap img { width: 100%; display: block; }

.about-image-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--color-primary);
  color: #fff;
  padding: 16px 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.about-image-badge .num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  display: block;
  line-height: 1;
}

.about-image-badge .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
  display: block;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  padding: 20px 18px;
  text-align: center;
  border-radius: var(--radius-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--color-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}

.about-highlights {
  margin-top: 24px;
  padding: 24px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-primary);
}

.about-highlights h4 {
  font-size: 1.05rem;
  margin-bottom: 12px;
  color: var(--color-navy);
}

.about-highlights ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}

.about-highlights li {
  position: relative;
  padding-left: 26px;
  font-size: 0.95rem;
  color: var(--color-text-soft);
  line-height: 1.5;
}

.about-highlights li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* ============================================================
   PRODUCT FEATURE CARDS
   ============================================================ */
.solution-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.solution-feature:hover { box-shadow: var(--shadow-lg); }

.solution-feature.reverse { direction: rtl; }
.solution-feature.reverse > * { direction: ltr; }

.solution-feature-img {
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  min-height: 320px;
}

.solution-feature-img img {
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
}

.solution-feature-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.solution-feature-content .num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.solution-feature-content h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.solution-feature-content p {
  color: var(--color-text-soft);
  margin-bottom: 14px;
}

.solution-feature-content ul {
  margin: 6px 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.solution-feature-content ul li {
  font-size: 0.85rem;
  background: var(--color-bg-alt);
  padding: 6px 14px;
  border-radius: 30px;
  color: var(--color-navy);
  font-weight: 600;
}

/* ============================================================
   INDUSTRIES TABS — Clients filter
   ============================================================ */
.industry-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 48px;
  padding: 8px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
}

.industry-tab {
  background: transparent;
  border: 0;
  padding: 12px 20px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-soft);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.industry-tab svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.industry-tab:hover {
  background: rgba(204, 0, 0, 0.08);
  color: var(--color-primary);
}

.industry-tab.active {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.industry-tab.active:hover { background: var(--color-primary-dark); color: #fff; }

.industry-tab .tab-count {
  display: inline-block;
  background: rgba(255, 255, 255, 0.3);
  color: inherit;
  border-radius: 10px;
  padding: 1px 8px;
  font-size: 0.72rem;
  margin-left: 4px;
  font-weight: 700;
}

.industry-tab:not(.active) .tab-count {
  background: rgba(204, 0, 0, 0.12);
  color: var(--color-primary);
}

.industry-content {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.industry-pane {
  display: none;
  animation: fadeInUp 0.4s ease;
}

.industry-pane.active { display: block; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.industry-pane-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.industry-pane-icon {
  width: 56px;
  height: 56px;
  background: rgba(204, 0, 0, 0.08);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.industry-pane-icon svg { width: 28px; height: 28px; }

.industry-pane-header h3 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.industry-pane-header p {
  font-size: 0.92rem;
  color: var(--color-text-soft);
  margin: 0;
}

/* Equal-sized client cards across ALL industry tabs.
   Fixed grid (no auto-stretching), fixed card dimensions, fixed logo box. */
.client-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 180px));
  gap: 16px;
  justify-content: center;
}

.client-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 180px;
  height: 180px;
}

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

.client-card-logo {
  width: 100%;
  height: 96px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  padding: 8px;
}

.client-card-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.client-card-name {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-navy);
  margin: 0;
  line-height: 1.3;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* Tighter cards on mobile but still uniform */
@media (max-width: 480px) {
  .client-cards {
    grid-template-columns: repeat(auto-fill, minmax(150px, 150px));
  }
  .client-card { width: 150px; height: 160px; }
  .client-card-logo { height: 80px; }
}

/* ============================================================
   CERTIFICATIONS GRID
   ============================================================ */
.cert-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.cert-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

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

.cert-card-img {
  width: 100%;
  height: 180px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow: hidden;
}

.cert-card-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cert-card-info { width: 100%; }

.cert-card-info h4 {
  font-size: 1rem;
  color: var(--color-navy);
  margin-bottom: 4px;
}

.cert-card-info p {
  font-size: 0.82rem;
  color: var(--color-text-soft);
  margin: 0;
  line-height: 1.5;
}

/* Approving Bodies */
.approving-bodies {
  margin-top: 48px;
  padding: 32px;
  background: var(--color-navy);
  border-radius: var(--radius-lg);
  text-align: center;
  color: #fff;
}

.approving-bodies h4 { color: #fff; font-size: 1.1rem; margin-bottom: 8px; }
.approving-bodies p { color: rgba(255, 255, 255, 0.75); margin-bottom: 24px; font-size: 0.95rem; }

.bodies-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.body-item {
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-primary);
  text-align: left;
}

.body-item strong {
  display: block;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.body-item span { color: rgba(255, 255, 255, 0.7); font-size: 0.82rem; }

/* ============================================================
   WHY US — Dark Section
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.why-item {
  padding: 28px 24px;
  border-left: 3px solid var(--color-primary);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  transition: all var(--transition);
}

.why-item:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(4px);
}

.why-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 14px;
}

.why-item h3 { color: #fff; font-size: 1.08rem; margin-bottom: 10px; }
.why-item p { color: rgba(255, 255, 255, 0.72); font-size: 0.92rem; line-height: 1.6; }

/* ============================================================
   KNOWLEDGE CENTRE
   ============================================================ */
.kc-section {
  margin-bottom: 80px;
  scroll-margin-top: var(--header-height);
}

.kc-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--color-bg-alt);
}

.kc-section-icon {
  width: 56px;
  height: 56px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.kc-section-text h2 {
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.kc-section-text p {
  color: var(--color-text-soft);
  margin: 0;
  font-size: 0.95rem;
}

.kc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.kc-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all var(--transition);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.kc-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.kc-card-icon {
  width: 44px;
  height: 44px;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.kc-card-body { flex: 1; }

.kc-card-body h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--color-navy);
}

.kc-card-body p {
  font-size: 0.85rem;
  color: var(--color-text-soft);
  margin-bottom: 10px;
  line-height: 1.5;
}

.kc-card-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 0.78rem;
  color: var(--color-muted);
}

.kc-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.kc-card-meta svg { width: 12px; height: 12px; }

.kc-card-link {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.kc-card-link:hover { color: var(--color-primary-dark); }
.kc-card-link svg { width: 14px; height: 14px; }

/* Knowledge Centre side nav */
.kc-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}

.kc-side-nav {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: 12px;
}

.kc-side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--color-text-soft);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
  transition: all var(--transition);
}

.kc-side-nav a:hover {
  background: #fff;
  color: var(--color-primary);
  border-left-color: var(--color-primary);
}

.kc-side-nav a.active {
  background: #fff;
  color: var(--color-primary);
  border-left-color: var(--color-primary);
}

.kc-side-nav a svg { width: 16px; height: 16px; flex-shrink: 0; }

@media (max-width: 992px) {
  .kc-layout { grid-template-columns: 1fr; }
  .kc-side-nav { display: none; }
}

/* Coming soon badge */
.coming-soon-badge {
  display: inline-block;
  background: rgba(204, 0, 0, 0.08);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 4px 10px;
  border-radius: 12px;
  margin-left: 8px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  background: var(--color-navy);
  color: #fff;
  padding: 40px 32px;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.contact-info::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: rgba(204, 0, 0, 0.15);
  border-radius: 50%;
}

.contact-info h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 26px;
  position: relative;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
  position: relative;
}

.contact-item:last-child { margin-bottom: 0; }

.contact-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg { width: 20px; height: 20px; }

.contact-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 4px;
}

.contact-item a, .contact-item p {
  color: #fff;
  font-size: 0.95rem;
  word-break: break-word;
}

.contact-item a:hover { color: var(--color-primary-light); }
.contact-item p { margin-bottom: 0; line-height: 1.5; }

.offices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 56px;
}

.office-card {
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 24px;
  border-radius: var(--radius-md);
  border-top: 3px solid var(--color-primary);
}

.office-card .office-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
  font-family: var(--font-heading);
}

.office-card h4 { font-size: 1rem; margin-bottom: 8px; }
.office-card p {
  font-size: 0.9rem;
  color: var(--color-text-soft);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Contact form */
.contact-form {
  background: #fff;
  padding: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.contact-form h3 { font-size: 1.25rem; margin-bottom: 26px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.req { color: var(--color-primary); }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--color-text);
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 0;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-body);
}

.form-group input.invalid,
.form-group textarea.invalid,
.form-group select.invalid {
  border-color: var(--color-primary);
  background-color: #fff8f8;
}

.error-msg {
  display: block;
  font-size: 0.8rem;
  color: var(--color-primary);
  margin-top: 6px;
  min-height: 1.1em;
}

.form-success {
  display: none;
  margin-top: 20px;
  padding: 16px 20px;
  background: #e8f5e9;
  border: 1px solid #66bb6a;
  border-left: 4px solid #2e7d32;
  border-radius: var(--radius-sm);
  color: #1b5e20;
  font-size: 0.92rem;
}

.form-success.show { display: block; }
.form-success a { color: #1b5e20; text-decoration: underline; }

/* ============================================================
   PAGE BANNER
   ============================================================ */
.page-banner {
  background: linear-gradient(135deg, #0f1d33 0%, #1a2a44 50%, #243b5c 100%);
  color: #fff;
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.6;
}

.page-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(204, 0, 0, 0.15) 0%, transparent 50%);
}

.page-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.page-banner h1 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 12px;
}

.page-banner p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 720px;
  margin: 0 auto;
}

.breadcrumb {
  margin-top: 16px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { margin: 0 8px; color: rgba(255, 255, 255, 0.4); }

/* ============================================================
   CAREER PAGE
   ============================================================ */
.careers-intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}

.positions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.position-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all var(--transition);
  border-top: 3px solid transparent;
}

.position-card:hover {
  border-top-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.position-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  font-size: 0.82rem;
  color: var(--color-text-soft);
}

.position-meta span { display: inline-flex; align-items: center; gap: 4px; }
.position-meta svg { width: 14px; height: 14px; }

.position-card h3 { font-size: 1.2rem; margin-bottom: 10px; }

.position-card .position-tag {
  display: inline-block;
  background: rgba(204, 0, 0, 0.08);
  color: var(--color-primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}

.position-card p {
  font-size: 0.92rem;
  color: var(--color-text-soft);
  margin-bottom: 16px;
  line-height: 1.6;
}

.position-card .position-skills { margin-bottom: 18px; }

.position-card .position-skills strong {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-navy);
  margin-bottom: 8px;
  font-family: var(--font-heading);
}

.position-card .position-skills ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.position-card .position-skills li {
  font-size: 0.78rem;
  background: var(--color-bg-alt);
  padding: 4px 10px;
  border-radius: 12px;
  color: var(--color-navy);
}

/* ============================================================
   PROJECT UPDATES PLACEHOLDER
   ============================================================ */
.updates-placeholder {
  text-align: center;
  padding: 80px 32px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--color-border);
}

.updates-placeholder svg {
  width: 64px;
  height: 64px;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.updates-placeholder h2 { font-size: 1.6rem; margin-bottom: 12px; }

.updates-placeholder p {
  color: var(--color-text-soft);
  font-size: 1.02rem;
  max-width: 560px;
  margin: 0 auto 24px;
}

/* ============================================================
   SUBCATEGORY CARDS
   ============================================================ */
.subcategory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.subcategory-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}

.subcategory-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.subcategory-img {
  aspect-ratio: 4 / 3;
  background: var(--color-bg-alt);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  position: relative;
}

.subcategory-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.subcategory-card:hover .subcategory-img img { transform: scale(1.04); }

/* Badge overlay for placeholder images so they're flagged visually */
.subcategory-img.is-placeholder::after {
  content: 'Image to be updated';
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
}

.subcategory-content { padding: 22px 24px; }

.subcategory-content h3 { font-size: 1.1rem; margin-bottom: 8px; }

.subcategory-content p {
  font-size: 0.9rem;
  color: var(--color-text-soft);
  line-height: 1.55;
  margin-bottom: 0;
}

/* ============================================================
   PROFILE DOWNLOAD STRIP
   ============================================================ */
.profile-download {
  background: linear-gradient(135deg, var(--color-primary) 0%, #b00000 100%);
  color: #fff;
  padding: 48px 32px;
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.profile-download::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 220px;
  height: 220px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.profile-download::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 280px;
  height: 280px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 50%;
}

.profile-download-content { position: relative; z-index: 2; }

.profile-download h2 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.profile-download p {
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 22px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.profile-download .btn {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
}

.profile-download .btn:hover {
  background: var(--color-navy-dark);
  color: #fff;
  border-color: var(--color-navy-dark);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-navy-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .footer-logo {
  height: 60px;
  width: auto;
  background: #fff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.footer-brand p { font-size: 0.94rem; line-height: 1.6; margin-bottom: 8px; }

.footer-brand p:first-of-type {
  font-family: var(--font-heading);
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
}

.footer-desc { font-size: 0.88rem; color: rgba(255, 255, 255, 0.6); }

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 12px;
}

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

.footer-col ul li { margin-bottom: 10px; font-size: 0.9rem; }

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition);
}

.footer-col ul li a:hover {
  color: var(--color-primary-light);
  padding-left: 4px;
}

.footer-contact li {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

.footer-contact strong {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.footer-social svg { width: 16px; height: 16px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-2px);
}

.back-to-top svg { width: 22px; height: 22px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  :root { --header-height: 84px; }
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-110%);
    transition: transform 0.3s ease;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }

  .main-nav.open { transform: translateY(0); }

  .main-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 20px;
  }

  .main-nav > ul > li { border-bottom: 1px solid var(--color-border); }
  .main-nav > ul > li:last-child { border-bottom: 0; }

  .nav-link {
    display: flex;
    justify-content: space-between;
    padding: 14px 4px;
    border-radius: 0;
    width: 100%;
  }

  .nav-link::after { display: none; }

  .nav-link.nav-cta {
    margin: 12px 0 0;
    text-align: center;
    justify-content: center;
  }

  /* Mobile dropdown becomes inline accordion */
  .dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    border: 0;
    border-top: 1px solid var(--color-border);
    border-radius: 0;
    padding: 4px 0 12px 16px;
    min-width: auto;
    background: var(--color-bg-alt);
    opacity: 1;
    visibility: visible;
    display: none;
  }

  .nav-item.has-dropdown.mobile-open .dropdown { display: block; }

  .dropdown a { padding: 10px 16px; }

  .logo-img { height: 56px; }
}

@media (max-width: 992px) {
  .section { padding: 72px 0; }
  .hero { padding: 60px 0 80px; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-stats { grid-template-columns: repeat(4, 1fr); }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand { grid-column: 1 / -1; }

  .solution-feature,
  .solution-feature.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .about-highlights ul { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --header-height: 76px; }

  .logo-img { height: 52px; }

  .hero { padding: 50px 0 64px; }
  .hero-title { font-size: 1.95rem; }
  .hero-sub { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-meta { gap: 20px; }
  .hero-carousel { padding: 18px; }

  .section { padding: 56px 0; }
  .section-header { margin-bottom: 36px; }

  .about-stats { grid-template-columns: 1fr 1fr; }

  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 28px 22px; }
  .contact-info { padding: 32px 24px; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand { grid-column: auto; }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 4px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }

  .industry-tabs { padding: 6px; gap: 6px; }
  .industry-tab { padding: 10px 14px; font-size: 0.78rem; }
  .industry-content { padding: 24px 18px; }

  .solution-feature-content { padding: 28px 24px; }
  .solution-feature-img { padding: 22px; min-height: 240px; }
  .solution-feature-img img { max-height: 240px; }

  .updates-placeholder { padding: 56px 24px; }

  .page-banner { padding: 56px 0 40px; }

  .kc-section-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .kc-section-icon { width: 44px; height: 44px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.7rem; }
  .stat-number { font-size: 1.3rem; }
  .about-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { padding: 16px 12px; }
}

/* Print */
@media print {
  .site-header, .top-bar, .nav-toggle, .back-to-top,
  .hero-actions, .footer-social { display: none !important; }
  .hero { min-height: auto; }
  body { color: #000; }
}
