/* ==========================================================================
   TRACES Trading and Services - Enterprise Web Portal Stylesheet
   Corporate Identity: Pure White #FFFFFF, Ice-Slate #F8FAFC, Navy Blue #1A2C4E, Safety Gold #E5A812
   Layout Architecture: Honeywell Buildings Inspired, Arabic RTL First
   ========================================================================== */

:root {
  /* Color Palette */
  --primary: #1A2C4E;
  --primary-dark: #0E1A30;
  --primary-light: #243D6B;
  --primary-gradient: linear-gradient(135deg, #1A2C4E 0%, #0E1A30 100%);
  
  --accent: #E5A812;
  --accent-hover: #C99008;
  --accent-light: #FFF9EB;
  --accent-glow: rgba(229, 168, 18, 0.25);
  
  --bg-page: #FFFFFF;
  --bg-surface: #F8FAFC;
  --bg-surface-alt: #F1F5F9;
  --bg-card: #FFFFFF;
  --bg-dark-section: #0B1528;
  
  --border-light: #E2E8F0;
  --border-subtle: #EDF2F7;
  --border-focus: #CBD5E1;
  --border-gold: rgba(229, 168, 18, 0.35);
  
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-subtle: #94A3B8;
  --text-white: #FFFFFF;
  
  --danger: #DC2626;
  --danger-bg: #FEF2F2;
  --success: #16A34A;
  --success-bg: #F0FDF4;
  --warning: #F59E0B;
  --info: #0284C7;
  
  /* Shadows & Elevation */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-gold: 0 4px 14px rgba(229, 168, 18, 0.3);
  
  /* Fonts */
  --font-arabic: 'Cairo', 'Alexandria', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Roboto Mono', 'SF Mono', Consolas, monospace;
  
  /* Transitions */
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-arabic);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

html[dir="rtl"] {
  direction: rtl;
}
html[dir="ltr"] {
  direction: ltr;
}
html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
  font-family: var(--font-arabic);
}
html[dir="ltr"] body {
  direction: ltr;
  text-align: left;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

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

button {
  cursor: pointer;
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline-start: auto;
  margin-inline-end: auto;
  padding-inline-start: 1.5rem;
  padding-inline-end: 1.5rem;
}

.mono-num {
  font-family: var(--font-mono);
  direction: ltr;
  display: inline-block;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-gold {
  background-color: var(--accent-light);
  color: #B47B00;
  border: 1px solid rgba(229, 168, 18, 0.4);
}

.badge-navy {
  background-color: rgba(26, 44, 78, 0.08);
  color: var(--primary);
  border: 1px solid rgba(26, 44, 78, 0.2);
}

.badge-success {
  background-color: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(22, 163, 74, 0.25);
}

.badge-danger {
  background-color: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(220, 38, 38, 0.25);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-white);
  box-shadow: var(--shadow-sm);
}

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

.btn-gold {
  background-color: var(--accent);
  color: var(--primary-dark);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  background-color: var(--accent-hover);
  color: #000;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--text-white);
  transform: translateY(-2px);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--text-white);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
}

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

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* ==========================================================================
   Top Utility Bar (Honeywell Style)
   ========================================================================== */
.top-utility-bar {
  background-color: #0C1628;
  color: #CBD5E1;
  font-size: 0.82rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.utility-left, .utility-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.utility-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #CBD5E1;
}

.utility-item a:hover, .utility-item button:hover {
  color: var(--accent);
}

.utility-item .icon {
  width: 14px;
  height: 14px;
  stroke: var(--accent);
}

.utility-link {
  color: #E2E8F0;
  font-weight: 500;
}

.utility-divider {
  width: 1px;
  height: 14px;
  background-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Main Navigation Header
   ========================================================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: all var(--transition-normal);
}

.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.header-brand {
  display: flex;
  align-items: center;
}

.brand-logo-img {
  height: 58px; /* 120% enlarged from 48px */
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

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

.brand-subtitle-badge {
  display: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  padding: 0.5rem 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline-end: 0;
  width: 0;
  height: 2.5px;
  background-color: var(--accent);
  transition: width var(--transition-fast);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  color: var(--primary);
  padding: 0.5rem;
}

/* ==========================================================================
   Hero Section & Pillars (Honeywell Structure)
   ========================================================================== */
.hero-section {
  position: relative;
  background-color: #0E1A30;
  color: var(--text-white);
  overflow: hidden;
  padding-top: 4.5rem;
  padding-bottom: 2rem;
}

.hero-background-wrapper {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.32;
  filter: contrast(1.15) brightness(0.9);
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14, 26, 48, 0.94) 0%, rgba(14, 26, 48, 0.82) 55%, rgba(14, 26, 48, 0.65) 100%);
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-main-grid {
  display: flex;
  flex-direction: column;
  max-width: 960px;
  gap: 2rem;
  padding-bottom: 3.5rem;
}

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

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  background: rgba(229, 168, 18, 0.15);
  border: 1px solid rgba(229, 168, 18, 0.4);
  border-radius: 9999px;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
  width: fit-content;
}

.hero-tagline .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.hero-title {
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.25;
  color: #FFFFFF;
}

.hero-title span.text-gold {
  color: var(--accent);
  position: relative;
}

.hero-desc {
  font-size: 1.18rem;
  line-height: 1.85;
  color: #E2E8F0;
  max-width: 820px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.hero-trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  width: 100%;
  text-align: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.trust-item .val {
  font-family: var(--font-mono);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--accent);
}

.trust-item .lbl {
  font-size: 0.88rem;
  color: #CBD5E1;
}

/* Honeywell 5 Pillar Cards Below Hero */
.hero-pillars-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pillar-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all var(--transition-normal);
  color: #FFFFFF;
}

.pillar-card:hover {
  background: rgba(229, 168, 18, 0.15);
  border-color: var(--accent);
  transform: translateY(-4px);
}

.pillar-icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.pillar-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
}

.pillar-sub {
  font-size: 0.78rem;
  color: #94A3B8;
  line-height: 1.4;
}

/* ==========================================================================
   Authorized Global Brands Grid (العلامات التجارية المعتمدة)
   ========================================================================== */
.brands-ribbon-section {
  background: #F1F5F9;
  color: var(--text-main);
  padding: 4rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.brands-ribbon-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.brands-ribbon-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.3px;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 980px;
  margin: 0 auto;
}

.brand-badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1.5rem;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  height: 115px;
  transition: all var(--transition-normal);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.brand-badge-item:hover {
  background: #FFFFFF;
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.brand-logo-container {
  height: 50px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-img-tag {
  max-height: 42px;
  max-width: 142px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.brand-logo-img-tag.logo-wide {
  max-height: 28px;
  max-width: 155px;
}

.brand-logo-img-tag.logo-tall {
  max-height: 48px;
  max-width: 90px;
}

.brand-origin-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 0.45rem;
}

/* ==========================================================================
   Solutions by Industry / Mission (Honeywell "From Our Buildings" Style)
   ========================================================================== */
.industries-section {
  padding: 5.5rem 0;
  background-color: var(--bg-page);
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.3;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 720px;
  margin-top: 0.75rem;
}

.industries-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.industry-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-inline-start: 2px solid var(--border-light);
  padding-inline-start: 1rem;
}

.industry-nav-btn {
  text-align: end;
  padding: 1rem 1.25rem;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.industry-nav-btn:hover {
  color: var(--primary);
  background-color: var(--bg-surface);
}

.industry-nav-btn.active {
  color: var(--primary);
  background-color: var(--bg-surface);
  border-inline-end: 3px solid var(--accent);
  font-weight: 700;
}

.industry-display-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.75rem;
}

.industry-large-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  color: #FFFFFF;
}

.industry-large-card .card-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.industry-large-card:hover .card-bg-img {
  transform: scale(1.04);
}

.industry-large-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 26, 48, 0.1) 0%, rgba(14, 26, 48, 0.92) 80%);
}

.industry-large-card .content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.industry-side-cards {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.industry-small-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.industry-small-card h4 {
  font-size: 1.15rem;
  color: var(--primary);
  font-weight: 700;
}

.industry-small-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Featured Case Study Showcase (Honeywell VCCC Style)
   ========================================================================== */
.case-study-section {
  padding: 5.5rem 0;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.case-study-hero-card {
  position: relative;
  background: #0E1A30;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  min-height: 520px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.case-study-img-col {
  height: 100%;
  position: relative;
}

.case-study-img-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-study-info-col {
  padding: 3.5rem;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.case-study-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(229, 168, 18, 0.2);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  width: fit-content;
}

.case-study-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  color: #FFFFFF;
}

.case-study-desc {
  font-size: 1rem;
  color: #CBD5E1;
  line-height: 1.7;
}

.case-study-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.spec-stat {
  display: flex;
  flex-direction: column;
}

.spec-stat .num {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
}

.spec-stat .label {
  font-size: 0.78rem;
  color: #94A3B8;
}

/* ==========================================================================
   Shop / Explore By Category (11 Engineering Modules from aa.md)
   ========================================================================== */
.catalog-section {
  padding: 5.5rem 0;
  background-color: var(--bg-page);
}

.catalog-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  background-color: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--primary);
  border-color: var(--border-focus);
}

.filter-btn.active {
  background-color: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

.catalog-grid {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  gap: 1.75rem;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}
.catalog-grid::-webkit-scrollbar {
  height: 8px;
}
.catalog-grid::-webkit-scrollbar-track {
  background: var(--bg-surface);
  border-radius: 4px;
}
.catalog-grid::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

.catalog-card {
  flex: 0 0 calc(33.333% - 1.17rem);
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.catalog-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.card-img-wrapper {
  position: relative;
  height: 220px;
  background-color: #F8FAFC;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.catalog-card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

.card-origin-badge {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  background: rgba(14, 26, 48, 0.9);
  color: #FFFFFF;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-sec-badge {
  position: absolute;
  bottom: 12px;
  inset-inline-end: 12px;
  background: var(--accent);
  color: var(--primary-dark);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  font-family: var(--font-mono);
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 0.75rem;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.4;
}

.card-specs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.card-specs-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.card-specs-list li::before {
  content: '■';
  color: var(--accent);
  font-size: 0.65rem;
  margin-top: 0.35rem;
}

.card-footer {
  padding: 1.25rem 1.5rem;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-price-tag {
  display: flex;
  flex-direction: column;
}

.card-price-tag .label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.card-price-tag .amount {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}

/* ==========================================================================
   Live Emergency Interlocking Matrix Simulator (محاكي مصفوفة الطوارئ)
   ========================================================================== */
.simulator-section {
  padding: 5.5rem 0;
  background: #0B1528;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.simulator-terminal-wrapper {
  background: #0F1C33;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.sim-toolbar {
  background: #081120;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sim-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
}

.sim-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sim-grid-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
}

.sim-interactive-canvas {
  padding: 2.5rem;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.1);
}

.interlock-flow-diagram {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.interlock-node {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition-normal);
}

.interlock-node.triggered {
  border-color: var(--danger);
  background: rgba(220, 38, 38, 0.15);
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
}

.interlock-node.safe {
  border-color: var(--success);
  background: rgba(22, 163, 74, 0.15);
  box-shadow: 0 0 20px rgba(22, 163, 74, 0.25);
}

.node-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.node-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
}

.node-info h5 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
}

.node-info p {
  font-size: 0.82rem;
  color: #94A3B8;
}

.node-status-pill {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.sim-event-terminal {
  background: #ffffff;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.terminal-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}

.terminal-title-bar h5 {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #475569;
  font-weight: 600;
}

.terminal-log-output {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.8;
  height: 340px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  direction: ltr;
  text-align: start;
}

.log-entry {
  display: flex;
  gap: 0.75rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.log-time { color: #94a3b8; }
.log-sys { color: #3b82f6; font-weight: 700; }
.log-msg { color: #334155; }
.log-msg.alarm { color: #ef4444; font-weight: 600; }
.log-msg.success { color: #10b981; font-weight: 600; }

/* ==========================================================================
   Corporate Provenance & Chronology (عن تريسس 2011 -> 2021 -> اليوم)
   ========================================================================== */
.about-section {
  padding: 5.5rem 0;
  background-color: var(--bg-surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-text-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-text-col p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.timeline-track {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  margin-top: 1rem;
}

.timeline-track::before {
  content: '';
  position: absolute;
  top: 15px;
  bottom: 15px;
  inset-inline-end: 23px;
  width: 2px;
  background: var(--border-light);
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  position: relative;
}

.timeline-marker {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
  z-index: 2;
}

.timeline-content {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  flex-grow: 1;
  box-shadow: var(--shadow-sm);
}

.timeline-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.timeline-content p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Select, Compare, Replace Tool Banner (Honeywell Style)
   ========================================================================== */
.tool-banner-section {
  background: linear-gradient(135deg, var(--primary) 0%, #0F1E38 100%);
  color: #FFFFFF;
  padding: 4.5rem 0;
  text-align: center;
}

.tool-banner-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.tool-banner-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #FFFFFF;
}

.tool-banner-desc {
  font-size: 1.1rem;
  color: #CBD5E1;
  line-height: 1.7;
}

/* ==========================================================================
   Honeywell Split Contact Cards & Beirut HQ Section
   ========================================================================== */
.contact-section {
  padding: 5.5rem 0;
  background-color: var(--bg-page);
}

.contact-split-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.contact-card-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  transition: all var(--transition-normal);
}

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

.contact-card-box h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.contact-card-box p {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.contact-details-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.contact-info-panel {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--accent-light);
  border: 1px solid rgba(229, 168, 18, 0.4);
  color: var(--accent-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-text h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.info-text p, .info-text a {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.map-embed-wrapper {
  min-height: 380px;
  width: 100%;
  background: #E2E8F0;
  position: relative;
}

#beirut-map {
  width: 100%;
  height: 100%;
  min-height: 380px;
}

/* ==========================================================================
   Modals: RFP Builder & Quotation REV-3
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(14, 26, 48, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-window {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: modalScale 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 1.5rem 2rem;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
}

.modal-close-btn {
  background: none;
  color: var(--text-muted);
  padding: 0.4rem;
  border-radius: var(--radius-sm);
}

.modal-close-btn:hover {
  color: var(--danger);
  background-color: var(--danger-bg);
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
}

.rfp-step {
  display: none;
}

.rfp-step.active {
  display: block;
}

.rfp-systems-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.system-check-card {
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.system-check-card:hover {
  border-color: var(--primary);
  background-color: var(--bg-surface);
}

.system-check-card.checked {
  border-color: var(--accent);
  background-color: var(--accent-light);
}

.system-check-card input {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
}

.rfp-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.rfp-form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.rfp-form-group input, .rfp-form-group select, .rfp-form-group textarea {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
}

.rfp-form-group input:focus, .rfp-form-group select:focus, .rfp-form-group textarea:focus {
  border-color: var(--accent);
}

.boq-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin: 1.5rem 0;
}

.boq-table th {
  background-color: var(--primary);
  color: #FFFFFF;
  padding: 0.75rem;
  text-align: end;
  font-weight: 700;
}

.boq-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.boq-table tr:hover {
  background-color: var(--bg-surface);
}

/* ==========================================================================
   Enterprise Mega Footer (Honeywell Style)
   ========================================================================== */
.main-footer {
  background: #081120;
  color: #CBD5E1;
  padding-top: 5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  align-self: flex-start;
}

.footer-brand-col p {
  font-size: 0.92rem;
  color: #94A3B8;
  line-height: 1.8;
}

.footer-col h5 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline-end: 0;
  width: 32px;
  height: 2px;
  background-color: var(--accent);
}

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

.footer-links a {
  color: #94A3B8;
}

.footer-links a:hover {
  color: var(--accent);
  padding-inline-end: 0.35rem;
}

.footer-bottom-bar {
  padding: 1.75rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #64748B;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-links a:hover {
  color: #CBD5E1;
}

/* Floating WhatsApp Widget */
.floating-whatsapp {
  position: fixed;
  bottom: 28px;
  inset-inline-start: 28px;
  z-index: 999;
  background-color: #25D366;
  color: #FFFFFF;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  transition: all var(--transition-normal);
}

.floating-whatsapp:hover {
  background-color: #20BA5A;
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6);
  color: #FFFFFF;
}

.floating-whatsapp svg {
  width: 32px;
  height: 32px;
  fill: #FFFFFF;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-main-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .hero-pillars-bar {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .industries-layout {
    grid-template-columns: 1fr;
  }
  
  .industry-nav-list {
    flex-direction: row;
    overflow-x: auto;
    border-inline-start: none;
    border-bottom: 2px solid var(--border-light);
    padding-inline-start: 0;
    padding-bottom: 0.5rem;
  }
  
  .industry-nav-btn {
    white-space: nowrap;
  }
  
  .catalog-card {
    flex: 0 0 calc(50% - 0.88rem);
  }
  
  .sim-grid-layout {
    grid-template-columns: 1fr;
  }
  
  .sim-interactive-canvas {
    border-inline-start: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .case-study-hero-card {
    grid-template-columns: 1fr;
  }
  
  .case-study-img-col {
    height: 320px;
  }
  
  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top-utility-bar {
    display: none;
  }
  
  .main-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero-title {
    font-size: 2.15rem;
  }
  
  .hero-pillars-bar {
    grid-template-columns: 1fr;
  }
  
  .industry-display-grid {
    grid-template-columns: 1fr;
  }
  
  .catalog-card {
    flex: 0 0 100%;
  }
  
  .contact-split-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-details-grid {
    grid-template-columns: 1fr;
  }
  
  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom-bar {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .brands-grid {
    grid-template-columns: 1fr;
  }

  .floating-whatsapp {
    bottom: 18px;
    inset-inline-start: 18px;
    width: 52px;
    height: 52px;
  }

  .floating-whatsapp svg {
    width: 28px;
    height: 28px;
  }
}
