:root {
  --navy-950: #061326;
  --navy-900: #0a1d37;
  --navy-800: #0f294d;
  --navy-700: #163a6b;
  --navy-600: #1f4d8c;

  --gold-500: #2f74d0;
  --gold-400: #8fb4f0;
  --gold-300: #cfe0f8;
  --gold-600: #1f4d8c;

  --bg-page: #f4f7fb;
  --bg-surface: #ffffff;
  --bg-subtle: #eaf0f8;
  --bg-elevated: #ffffff;

  --text-primary: #0b1e36;
  --text-secondary: #425673;
  --text-muted: #697d99;
  --border-color: #d7e2f0;
  --border-strong: #b9cbe3;

  --emerald-500: #10b981;
  --emerald-bg: rgba(16, 185, 129, 0.12);
  --amber-500: #f97316;
  --danger-500: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.12);

  --shadow-sm: 0 2px 8px rgba(10, 29, 55, 0.05);
  --shadow-md: 0 10px 28px rgba(10, 29, 55, 0.08);
  --shadow-lg: 0 20px 48px rgba(6, 19, 38, 0.14);
  --shadow-gold: 0 8px 24px rgba(74, 134, 220, 0.28);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --font-ar: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-en: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

[data-theme="dark"] {
  --bg-page: #061121;
  --bg-surface: #0c1d36;
  --bg-subtle: #112747;
  --bg-elevated: #132c50;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: #1e3a63;
  --border-strong: #2c5082;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.52);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-ar);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

html[lang="en"] body {
  font-family: var(--font-en);
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.mono {
  font-family: var(--font-mono);
  direction: ltr;
  unicode-bidi: embed;
}

.ltr-num {
  direction: ltr;
  unicode-bidi: embed;
  display: inline-block;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* ================= TOP UTILITY BAR ================= */
.utility-bar {
  background: var(--navy-950);
  color: #dbe7f6;
  font-size: 0.84rem;
  border-bottom: 1px solid rgba(74, 134, 220, 0.24);
}

.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 8px;
  flex-wrap: wrap;
}

.utility-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.utility-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #dbe7f6;
  transition: color 0.2s ease;
}

.utility-item:hover {
  color: var(--gold-400);
}

.utility-badge-emergency {
  background: rgba(74, 134, 220, 0.16);
  color: var(--gold-400);
  border: 1px solid rgba(74, 134, 220, 0.45);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.utility-badge-emergency:hover {
  background: var(--gold-500);
  color: var(--navy-950);
}

.utility-admin-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.utility-admin-btn:hover {
  border-color: var(--gold-400);
  color: var(--gold-400);
}

/* ================= STICKY HEADER ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(10, 29, 55, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--gold-500);
  box-shadow: 0 8px 28px rgba(6, 19, 38, 0.22);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #ffffff;
  padding: 4px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.brand-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-titles {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name-primary {
  color: #ffffff;
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

.brand-name-secondary {
  color: var(--gold-400);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 2px;
  flex-wrap: wrap;
}

.nav-link {
  color: #e2ecf9;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-400);
  background: rgba(74, 134, 220, 0.12);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.icon-pill-btn {
  height: 38px;
  padding-inline: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.83rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.icon-pill-btn:hover {
  border-color: var(--gold-400);
  color: var(--gold-400);
}

.rfq-trigger-btn {
  height: 40px;
  padding-inline: 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--navy-950);
  font-weight: 800;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-gold);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.rfq-trigger-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.rfq-count-badge {
  background: var(--navy-950);
  color: var(--gold-400);
  min-width: 22px;
  height: 22px;
  padding-inline: 6px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
}

.mobile-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  place-items: center;
}

/* ================= HERO SECTION ================= */
.hero-section {
  position: relative;
  background:
    radial-gradient(circle at 82% 18%, rgba(74, 134, 220, 0.18), transparent 42%),
    radial-gradient(circle at 12% 85%, rgba(31, 77, 140, 0.45), transparent 48%),
    linear-gradient(145deg, var(--navy-950) 0%, var(--navy-900) 54%, #102d54 100%);
  color: #ffffff;
  padding-block: 56px 68px;
  overflow: hidden;
  border-bottom: 4px solid var(--gold-500);
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 36px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(74, 134, 220, 0.14);
  border: 1px solid rgba(74, 134, 220, 0.42);
  color: var(--gold-300);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(1.95rem, 3.6vw, 3.05rem);
  font-weight: 900;
  line-height: 1.22;
  margin-bottom: 16px;
}

.hero-title .gold-highlight {
  color: var(--gold-400);
}

.hero-subtitle {
  color: #cbd9ec;
  font-size: 1.05rem;
  max-width: 640px;
  margin-bottom: 24px;
}

/* Instant Smart Search inside Hero */
.hero-search-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  max-width: 640px;
  backdrop-filter: blur(10px);
}

.hero-search-box:focus-within {
  border-color: var(--gold-400);
  background: rgba(255, 255, 255, 0.12);
}

.hero-search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  padding: 8px 12px;
  font-size: 0.96rem;
  outline: none;
}

.hero-search-input::placeholder {
  color: #9cb2cf;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--navy-950);
  font-weight: 800;
  padding: 11px 20px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-gold);
  transition: all 0.2s ease;
}

.btn-gold:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 700;
  padding: 11px 18px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-outline-light:hover {
  border-color: var(--gold-400);
  color: var(--gold-400);
  background: rgba(74, 134, 220, 0.1);
}

.btn-navy {
  background: var(--navy-800);
  color: #ffffff;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-navy:hover {
  background: var(--navy-700);
  transform: translateY(-1px);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.hero-pillars-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.hero-pillar-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.84rem;
  font-weight: 700;
}

.hero-pillar-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(74, 134, 220, 0.18);
  color: var(--gold-400);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* Hero Right Command Panel */
.hero-command-card {
  background: linear-gradient(165deg, rgba(17, 42, 77, 0.92), rgba(8, 22, 43, 0.95));
  border: 1px solid rgba(74, 134, 220, 0.35);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.command-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 18px;
}

.live-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseAnim 1.8s infinite;
}

@keyframes pulseAnim {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.quick-solve-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.quick-solve-btn {
  width: 100%;
  text-align: start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  padding: 13px 15px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s ease;
}

.quick-solve-btn:hover {
  background: rgba(74, 134, 220, 0.13);
  border-color: var(--gold-400);
  transform: translateX(-3px);
}

html[lang="en"] .quick-solve-btn:hover {
  transform: translateX(3px);
}

.qs-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qs-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(74, 134, 220, 0.16);
  color: var(--gold-400);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.qs-title {
  font-weight: 800;
  font-size: 0.93rem;
  display: block;
}

.qs-desc {
  font-size: 0.78rem;
  color: #b7c8df;
  display: block;
}

.command-metrics-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.cmd-metric {
  text-align: center;
  background: rgba(0, 0, 0, 0.22);
  padding: 10px 8px;
  border-radius: 10px;
}

.cmd-metric strong {
  display: block;
  color: var(--gold-400);
  font-size: 1.05rem;
  font-weight: 800;
}

.cmd-metric span {
  font-size: 0.74rem;
  color: #cbd5e1;
}

/* ================= GENERIC SECTIONS ================= */
.section {
  padding-block: 72px;
}

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

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(74, 134, 220, 0.15);
  color: var(--gold-600);
  border: 1px solid rgba(74, 134, 220, 0.38);
  padding: 4px 13px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 10px;
}

[data-theme="dark"] .section-tag {
  color: var(--gold-400);
}

.section-title {
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ================= 4 CORE DIVISIONS CARDS ================= */
.divisions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.division-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--navy-700);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.division-card:hover {
  border-top-color: var(--gold-500);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.division-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--gold-400);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.division-card h3 {
  font-size: 1.12rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.division-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.division-bullets {
  list-style: none;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.division-bullets li {
  font-size: 0.83rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.division-bullets li::before {
  content: "";
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 5px;
  background-color: var(--gold-500);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='13 2 3 14 12 14 11 22 21 10 12 10 13 2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='13 2 3 14 12 14 11 22 21 10 12 10 13 2'/%3E%3C/svg%3E") center / contain no-repeat;
}

.division-action-link {
  color: var(--navy-700);
  font-weight: 800;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

[data-theme="dark"] .division-action-link {
  color: var(--gold-400);
}

/* ================= WHO WE SUPPORT (SECTORS) ================= */
.sectors-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.sector-tab {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.sector-tab:hover {
  border-color: var(--gold-500);
  color: var(--text-primary);
}

.sector-tab.active {
  background: var(--navy-900);
  color: var(--gold-400);
  border-color: var(--gold-500);
  box-shadow: var(--shadow-sm);
}

.sector-spotlight-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.sector-benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.sector-benefit-item {
  background: var(--bg-subtle);
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ================= INTERACTIVE CATALOG & BOQ BUILDER ================= */
.catalog-toolbar {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.catalog-search-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.search-field-wrap {
  flex: 1;
  min-width: 250px;
  position: relative;
}

.catalog-input {
  width: 100%;
  height: 46px;
  padding-inline: 16px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--bg-page);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease;
}

.catalog-input:focus {
  border-color: var(--gold-500);
}

.filter-pills-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.category-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cat-pill {
  padding: 7px 14px;
  border-radius: 10px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: all 0.18s ease;
}

.cat-pill:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.cat-pill.active {
  background: var(--navy-900);
  color: var(--gold-400);
  border-color: var(--gold-500);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: all 0.22s ease;
}

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

.product-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.product-svg-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-subtle);
  color: var(--navy-700);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

[data-theme="dark"] .product-svg-badge {
  color: var(--gold-400);
}

.product-cat-tag {
  font-size: 0.73rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--emerald-bg);
  color: var(--emerald-500);
}

.product-title {
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 5px;
}

.product-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.product-config-box {
  background: var(--bg-subtle);
  padding: 12px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.config-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
}

.spec-select {
  width: 100%;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-primary);
  padding-inline: 10px;
  font-size: 0.84rem;
  font-weight: 600;
}

.qty-add-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.qty-input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  border-radius: 8px;
  height: 38px;
  padding-inline: 8px;
  width: 108px;
  flex-shrink: 0;
}

.qty-input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-weight: 700;
  text-align: center;
  outline: none;
}

.unit-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.add-rfq-btn {
  flex: 1;
  height: 38px;
  border-radius: 8px;
  background: var(--navy-900);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.84rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.18s ease;
}

.add-rfq-btn:hover {
  background: var(--gold-500);
  color: var(--navy-950);
}

.add-rfq-btn.added {
  background: var(--emerald-500);
  color: #ffffff;
}

/* Bulk BOQ Paste Banner */
.bulk-boq-banner {
  margin-top: 28px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  border: 1px solid rgba(74, 134, 220, 0.35);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  align-items: center;
}

.bulk-textarea {
  width: 100%;
  min-height: 92px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 12px;
  font-size: 0.86rem;
  resize: vertical;
  margin-bottom: 10px;
}

.bulk-textarea::placeholder {
  color: #a8bdd8;
}

/* ================= PROJECT KITS ================= */
.kits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.kit-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all 0.22s ease;
}

.kit-card:hover {
  border-color: var(--gold-500);
  box-shadow: var(--shadow-md);
}

.kit-items-list {
  list-style: none;
  margin-block: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.kit-items-list li {
  font-size: 0.83rem;
  color: var(--text-secondary);
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--border-color);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

/* ================= MOTOR REWINDING 5-STEP & WIZARD ================= */
.repair-process-card {
  background: linear-gradient(155deg, var(--navy-950), var(--navy-800));
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-bottom: 36px;
  border: 1px solid rgba(74, 134, 220, 0.36);
  box-shadow: var(--shadow-lg);
}

.process-steps-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-block: 24px;
}

.process-step-node {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 16px 14px;
  text-align: start;
  color: #e2ecf9;
  transition: all 0.2s ease;
}

.process-step-node:hover,
.process-step-node.active {
  background: rgba(74, 134, 220, 0.16);
  border-color: var(--gold-400);
  color: #ffffff;
  transform: translateY(-2px);
}

.step-num-pill {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--gold-500);
  color: var(--navy-950);
  font-weight: 900;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.process-step-detail {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.motor-wizard-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}

.wizard-form-card,
.wizard-diagnosis-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-md);
}

.wizard-diagnosis-card {
  position: sticky;
  top: 104px;
  border-top: 4px solid var(--gold-500);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  line-height: 1.35;
}

.field-control {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding-inline: 12px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-page);
  color: var(--text-primary);
  outline: none;
}

.field-control:focus {
  border-color: var(--gold-500);
}

textarea.field-control {
  height: auto;
  min-height: 82px;
  padding-block: 10px;
  resize: vertical;
}

.symptom-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block: 8px 16px;
}

.symptom-chip {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.18s ease;
}

.symptom-chip.selected {
  background: var(--navy-900);
  color: var(--gold-400);
  border-color: var(--gold-500);
}

.diagnosis-result-box {
  background: var(--bg-subtle);
  border-radius: 14px;
  padding: 18px;
  margin-block: 14px;
  border-inline-start: 4px solid var(--gold-500);
}

/* ================= ENGINEERING CALCULATORS ================= */
.calc-tabs-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.calc-tab-btn {
  padding: 11px 20px;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 800;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.calc-tab-btn.active {
  background: var(--navy-900);
  color: var(--gold-400);
  border-color: var(--gold-500);
}

.calc-workspace {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.calc-output-panel {
  background: linear-gradient(150deg, var(--navy-950), var(--navy-800));
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid rgba(74, 134, 220, 0.35);
}

.calc-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-block: 16px;
}

.calc-kpi {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 14px;
}

.calc-kpi span {
  font-size: 0.76rem;
  color: #cbd5e1;
  display: block;
}

.calc-kpi strong {
  font-size: 1.25rem;
  color: var(--gold-400);
  font-family: var(--font-mono);
}

/* ================= LIVE JOB & ORDER TRACKER ================= */
.tracker-shell {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-md);
}

.tracker-search-bar {
  display: flex;
  gap: 12px;
  max-width: 680px;
  margin: 0 auto 16px;
  flex-wrap: wrap;
}

.demo-codes-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.demo-code-chip {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1px dashed var(--border-strong);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: all 0.18s ease;
}

.demo-code-chip:hover {
  border-color: var(--gold-500);
  background: rgba(74, 134, 220, 0.15);
}

.tracker-stage-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-block: 22px;
}

.tracker-stage-item {
  padding: 12px;
  border-radius: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  opacity: 0.55;
}

.tracker-stage-item.done {
  opacity: 1;
  border-color: var(--emerald-500);
  background: var(--emerald-bg);
}

.tracker-stage-item.current {
  opacity: 1;
  border-color: var(--gold-500);
  background: rgba(74, 134, 220, 0.16);
  box-shadow: var(--shadow-sm);
}

.tech-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-block: 18px;
}

.tech-metric-box {
  background: var(--bg-subtle);
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.tech-metric-box small {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.tech-metric-box strong {
  font-size: 0.9rem;
  font-family: var(--font-mono);
}

/* ================= BRAND MEDIA, POLICY & FAQ ================= */
.brand-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 36px;
}

.flyer-frame {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.flyer-frame img {
  width: 100%;
  height: 360px;
  object-fit: contain;
  background: var(--navy-950);
  padding: 10px;
  display: block;
}

.flyer-caption {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  font-size: 0.9rem;
}

.policy-notice-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-inline-start: 5px solid var(--navy-800);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.faq-list {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 16px 20px;
  text-align: start;
  font-weight: 800;
  font-size: 0.96rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-answer {
  display: none;
  padding: 0 20px 18px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ================= CONTACT & FOOTER ================= */
.contact-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
}

.contact-info-card {
  background: linear-gradient(155deg, var(--navy-950), var(--navy-800));
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.contact-channel-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.channel-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(74, 134, 220, 0.18);
  color: var(--gold-400);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.site-footer {
  background: var(--navy-950);
  color: #cbd5e1;
  border-top: 3px solid var(--gold-500);
  padding-block: 48px 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--gold-400);
}

/* ================= DRAWER & MODALS ================= */
.backdrop-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 19, 38, 0.68);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
}

.backdrop-overlay.open {
  display: block;
}

.rfq-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  inset-inline-end: 0;
  width: min(540px, 100vw);
  background: var(--bg-surface);
  z-index: 210;
  box-shadow: -12px 0 42px rgba(0, 0, 0, 0.32);
  display: flex;
  flex-direction: column;
  transform: translateX(-105%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

html[dir="rtl"] .rfq-drawer {
  transform: translateX(-105%);
}

html[dir="ltr"] .rfq-drawer {
  transform: translateX(105%);
}

.rfq-drawer.open {
  transform: translateX(0) !important;
}

.drawer-header {
  background: var(--navy-900);
  color: #ffffff;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--gold-500);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.rfq-cart-item {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.modal-dialog {
  position: fixed;
  inset: 0;
  z-index: 230;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(6, 19, 38, 0.72);
  backdrop-filter: blur(5px);
}

.modal-dialog.open {
  display: grid;
}

.modal-card {
  background: var(--bg-surface);
  color: var(--text-primary);
  width: min(960px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.modal-header {
  background: var(--navy-900);
  color: #ffffff;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--gold-500);
  position: sticky;
  top: 0;
  z-index: 5;
}

.modal-body {
  padding: 22px;
}

/* Floating WhatsApp Assist */
.whatsapp-fab {
  position: fixed;
  bottom: 22px;
  inset-inline-end: 22px;
  z-index: 150;
  background: #25d366;
  color: #ffffff;
  height: 52px;
  padding-inline: 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.42);
  transition: transform 0.2s ease;
}

.whatsapp-fab:hover {
  transform: translateY(-3px) scale(1.02);
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 24px;
  inset-inline-start: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast-msg {
  background: var(--navy-950);
  color: #ffffff;
  border-inline-start: 4px solid var(--gold-400);
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  font-size: 0.88rem;
  font-weight: 700;
  max-width: 360px;
}

/* Printable Official Quote Request Sheet */
#printable-sheet {
  display: none;
}

@media print {
  body > *:not(#printable-sheet) {
    display: none !important;
  }
  #printable-sheet {
    display: block !important;
    padding: 24px;
    color: #000000;
    background: #ffffff;
    font-family: 'Cairo', Arial, sans-serif;
  }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1080px) {
  .hero-layout,
  .sector-spotlight-card,
  .motor-wizard-grid,
  .calc-workspace,
  .contact-layout,
  .bulk-boq-banner {
    grid-template-columns: 1fr;
  }
  .divisions-grid,
  .kits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-steps-track {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .wizard-diagnosis-card {
    position: static;
  }
  .main-nav {
    display: none;
  }
  .main-nav.mobile-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-950);
    padding: 16px;
    border-bottom: 2px solid var(--gold-500);
  }
  .mobile-menu-btn {
    display: grid;
  }
}

@media (max-width: 680px) {
  .hero-pillars-strip,
  .divisions-grid,
  .kits-grid,
  .brand-showcase-grid,
  .form-grid-2,
  .form-grid-3,
  .sector-benefits-grid,
  .tracker-stage-bar,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .utility-inner {
    justify-content: center;
  }
}


/* ================= OUTLINE ICON SYSTEM ================= */
.ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
  vertical-align: middle;
}
.outline-icon {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}
html[dir="ltr"] .flip-rtl,
html[dir="ltr"] .flip-rtl svg {
  transform: scaleX(-1);
}
.section-tag .outline-icon,
h4 .outline-icon,
h5 .outline-icon,
strong .outline-icon {
  margin-inline-end: 4px;
  vertical-align: -3px;
}
.utility-item .ic,
.footer-links .ic { opacity: 0.9; }
.product-svg-badge .outline-icon,
.division-icon-box .outline-icon { stroke-width: 1.6; }
.symptom-chip, .tracker-stage-item, .cat-pill, .sector-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
}
.tracker-stage-item { display: flex; }
.faq-question .outline-icon { transition: transform 0.2s ease; }
.faq-item.open .faq-question .outline-icon { transform: rotate(180deg); }

/* ================= TEXT CONTAINMENT / OVERFLOW FIXES ================= */
body { overflow-wrap: break-word; word-wrap: break-word; }

/* Grid & flex children must be allowed to shrink below content width */
.hero-layout > *, .sector-spotlight-card > *, .motor-wizard-grid > *, .calc-workspace > *,
.contact-layout > *, .bulk-boq-banner > *, .footer-grid > *, .divisions-grid > *, .kits-grid > *,
.catalog-grid > *, .brand-showcase-grid > *, .process-steps-track > *, .tracker-stage-bar > *,
.hero-pillars-strip > *, .calc-kpi-grid > *, .tech-metrics-grid > *, .sector-benefits-grid > *,
.command-metrics-bar > *, .form-grid-2 > *, .form-grid-3 > * {
  min-width: 0;
}
.hero-layout { grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr); }
.sector-spotlight-card { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.motor-wizard-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.calc-workspace { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.contact-layout { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
.bulk-boq-banner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.footer-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr); }
.divisions-grid, .kits-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.process-steps-track, .tracker-stage-bar { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.hero-pillars-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.catalog-grid { grid-template-columns: repeat(auto-fill, minmax(min(295px, 100%), 1fr)); }

/* LTR numbers/emails can wrap instead of escaping their box */
.ltr-num {
  display: inline-block;
  max-width: 100%;
  unicode-bidi: isolate;
  overflow-wrap: anywhere;
}
.mono { overflow-wrap: anywhere; }

/* Buttons: wrap text, keep icon fixed, never overflow */
.btn-gold, .btn-navy, .btn-outline-light, .add-rfq-btn, .rfq-trigger-btn,
.icon-pill-btn, .utility-admin-btn, .utility-badge-emergency, .calc-tab-btn, .division-action-link {
  max-width: 100%;
  min-width: 0;
  text-align: center;
  line-height: 1.35;
  white-space: normal;
}
.btn-gold, .btn-navy, .btn-outline-light { padding-block: 11px; }
.division-action-link { display: inline-flex; align-items: center; gap: 6px; text-align: start; }

.hero-search-input { min-width: 0; width: 100%; }
.hero-search-box .btn-gold { flex-shrink: 0; white-space: nowrap; }
.hero-title { overflow-wrap: break-word; }
.hero-pillar-chip { line-height: 1.35; }
.qs-left { min-width: 0; }
.qs-left > div { min-width: 0; }
.quick-solve-btn > .ic { flex-shrink: 0; }
.qs-title, .qs-desc { overflow-wrap: break-word; }

.calc-kpi strong { display: block; font-size: clamp(0.95rem, 1.6vw, 1.2rem); line-height: 1.35; overflow-wrap: anywhere; }
.calc-output-panel h4 { font-size: clamp(1.05rem, 2.2vw, 1.4rem) !important; overflow-wrap: anywhere; }
.tech-metric-box strong { display: block; line-height: 1.4; }
.tracker-stage-item { font-size: 0.78rem; line-height: 1.35; padding: 10px 8px; }
.process-step-node { min-width: 0; overflow-wrap: break-word; }
.product-top, .rfq-cart-item > div:first-child { min-width: 0; }
.rfq-cart-item strong, .rfq-cart-item small { overflow-wrap: anywhere; }
.flyer-caption { flex-wrap: wrap; }
.contact-channel-item > div { min-width: 0; }
.contact-info-card > div:last-child { flex-direction: column; }
.contact-info-card > div:last-child > a { width: 100%; flex: none !important; }
.qty-input-wrap { min-width: 0; }
.unit-hint { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 44px; }
.add-rfq-btn { padding-inline: 8px; }
.demo-code-chip { max-width: 100%; overflow-wrap: anywhere; }
.policy-notice-box > div { min-width: 0; flex: 1 1 360px; }
.command-header > div { min-width: 0; }
.live-pulse-badge { flex-shrink: 0; white-space: nowrap; }

/* Header: collapse nav earlier so it never wraps into 3 rows or overlaps brand */
.header-inner { position: relative; }
.main-nav { flex-wrap: nowrap; }
@media (max-width: 1320px) {
  .main-nav { display: none; }
  .main-nav.mobile-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-950);
    padding: 16px;
    border-bottom: 2px solid var(--gold-500);
    z-index: 95;
  }
  .mobile-menu-btn { display: grid; }
}

@media (max-width: 1080px) {
  .hero-layout, .sector-spotlight-card, .motor-wizard-grid, .calc-workspace,
  .contact-layout, .bulk-boq-banner { grid-template-columns: minmax(0, 1fr); }
  .divisions-grid, .kits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-steps-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tracker-stage-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-pillars-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .hero-pillars-strip, .divisions-grid, .kits-grid, .brand-showcase-grid, .form-grid-2, .form-grid-3,
  .sector-benefits-grid, .tracker-stage-bar, .footer-grid, .process-steps-track, .calc-kpi-grid,
  .command-metrics-bar { grid-template-columns: minmax(0, 1fr); }
  .brand-name-secondary { display: none; }
  .brand-name-primary { font-size: 0.86rem; }
  .rfq-trigger-btn [data-i18n="rfq_btn_label"] { display: none; }
  .icon-pill-btn #lang-toggle-label { display: none; }
  .header-actions { gap: 6px; }
  .hero-search-box { flex-wrap: wrap; }
  .hero-search-box .btn-gold { width: 100%; }
  .section { padding-block: 52px; }
  .wizard-form-card, .wizard-diagnosis-card, .calc-workspace, .tracker-shell, .repair-process-card,
  .sector-spotlight-card, .contact-info-card { padding: 18px; }
  .flyer-frame img { height: 240px; }
  .whatsapp-fab [data-i18n="wa_fab_label"] { display: none; }
  .whatsapp-fab { padding-inline: 15px; }
  .utility-bar { font-size: 0.78rem; }
}

/* Link from a homepage service card to its landing page (/services/<slug>) */
.division-detail-link {
  display: inline-block;
  margin: 4px 0 10px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--gold-600);
  text-decoration: underline;
  text-underline-offset: 3px;
}
[data-theme="dark"] .division-detail-link { color: var(--gold-400); }
