/* ==========================================================================
   Advanced Control Company (ACC) - Master Engineering Stylesheet
   Modern Light Industrial Theme • ROTIC Saudi Arabia 2026 Ready
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  /* Color Palette - Modern Light Industrial Engineering */
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-subtle: #f1f5f9;
  --bg-slate: #f8fafc;
  --bg-dark-accent: #0b192c;
  
  --brand-blue: #005a9c;
  --brand-blue-hover: #004578;
  --brand-cyan: #009fe3;
  --brand-cyan-dark: #0284c7;
  --brand-cyan-glow: rgba(0, 159, 227, 0.15);
  
  --accent-amber: #d97706;
  --accent-green: #059669;
  --accent-red: #dc2626;
  
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-cyan: #0284c7;
  
  --border-subtle: #e2e8f0;
  --border-card: #e2e8f0;
  --border-active: #009fe3;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 6px 20px -2px rgba(0, 0, 0, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 16px 40px -4px rgba(0, 0, 0, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
  --shadow-cyan: 0 4px 20px rgba(0, 159, 227, 0.18);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-arabic: 'IBM Plex Sans Arabic', sans-serif;

  /* Layout */
  --container-max: 1360px;
  --nav-height: 80px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* RTL Support for Arabic Localization */
[dir="rtl"] body {
  font-family: var(--font-arabic);
}

[dir="rtl"] .hero-actions,
[dir="rtl"] .nav-actions,
[dir="rtl"] .meta-tags {
  flex-direction: row-reverse;
}

[dir="rtl"] .rotic-badge {
  flex-direction: row-reverse;
}

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

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

/* ==========================================================================
   Header & Navigation (Clean Single-Line Alignment)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: var(--transition);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.03);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
  height: 72px;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.site-header.scrolled .brand-logo-img {
  height: 42px;
}

/* Navigation items strictly in ONE LINE */
.nav-links {
  display: flex;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap !important;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.4rem 0.2rem;
  position: relative;
  white-space: nowrap !important;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-blue);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-cyan);
  transition: var(--transition);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.lang-toggle {
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.825rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.lang-toggle:hover {
  color: var(--brand-blue);
  border-color: var(--brand-blue);
  background: rgba(0, 90, 156, 0.08);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-align: center;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.825rem;
}

.btn-lg {
  padding: 0.85rem 1.85rem;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-cyan) 100%);
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(0, 90, 156, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(0, 90, 156, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

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

.btn-outline-cyan:hover {
  background: rgba(0, 159, 227, 0.08);
  box-shadow: var(--shadow-cyan);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   Hero Section (Crisp Light Engineering Theme)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 90vh;
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: 4.5rem;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 85% 15%, rgba(0, 159, 227, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 10% 85%, rgba(0, 90, 156, 0.06) 0%, transparent 45%),
              #ffffff;
  overflow: hidden;
}

.hero-grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 90, 156, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 90, 156, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.rotic-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-cyan-dark);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-amber);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.7);
  animation: pulse-ring 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(217, 119, 6, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 4.2vw, 3.6rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: #0f172a;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 600;
  color: var(--brand-blue);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-subtitle-separator {
  color: #94a3b8;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-partners-strip {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
}

.hero-partners-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.hero-partner-logos {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-partner-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.hero-partner-badge:hover {
  background: #f8fafc;
  border-color: var(--brand-cyan);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.hero-partner-badge img {
  height: 28px;
  width: auto;
}

.hero-partner-text {
  font-size: 0.75rem;
  line-height: 1.2;
}

.hero-partner-text strong {
  display: block;
  font-size: 0.825rem;
  color: var(--text-primary);
}

/* Hero Visual Showcase */
.hero-visual-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-visual-main-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-visual-card:hover .hero-visual-main-img {
  transform: scale(1.03);
}

.hero-visual-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.75rem;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.7) 60%, transparent 100%);
  color: #ffffff;
}

.hero-visual-tag {
  display: inline-block;
  font-size: 0.725rem;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  color: #7dd3fc;
  background: rgba(0, 159, 227, 0.25);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}

.hero-visual-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.hero-visual-desc {
  font-size: 0.825rem;
  color: #cbd5e1;
}

.hero-floating-stat {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-card);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.stat-val {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-green);
}

.stat-lbl {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 600;
}

/* ==========================================================================
   ROTIC 2026 Interactive Mobile Hub Banner
   ========================================================================== */
.rotic-hub-section {
  padding: 3rem 0;
  background: #f1f5f9;
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.rotic-hub-card {
  background: #ffffff;
  border: 1px solid #bae6fd;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}

.rotic-hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.rotic-hub-header-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rotic-icon-box {
  width: 44px;
  height: 44px;
  background: #e0f2fe;
  border: 1px solid #7dd3fc;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
}

.rotic-hub-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
}

.rotic-hub-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.rotic-scan-pill {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-amber);
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
}

.rotic-fast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.fast-card {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: var(--transition);
}

.fast-card:hover {
  background: #ffffff;
  border-color: var(--brand-cyan);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.fast-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.fast-card-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--brand-blue);
  background: #e0f2fe;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.fast-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.fast-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.rotic-cta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 1rem;
}

.contact-quick-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.contact-quick-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.contact-quick-item a {
  color: var(--brand-blue);
  font-weight: 600;
}

.contact-quick-item a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Section Layouts
   ========================================================================== */
.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-slate {
  background: #f8fafc;
}

.section-dark {
  background: #ffffff;
}

.section-header {
  max-width: 760px;
  margin-bottom: 3.25rem;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.775rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--brand-blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  background: #e0f2fe;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid #bae6fd;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
  color: #0f172a;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   Core Solution Blocks (Pillar Cards)
   ========================================================================== */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.solution-pillar-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.solution-pillar-card:hover {
  border-color: var(--brand-cyan);
  box-shadow: var(--shadow-lg), var(--shadow-cyan);
  transform: translateY(-3px);
}

.pillar-image-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: #0f172a;
}

.pillar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.solution-pillar-card:hover .pillar-image {
  transform: scale(1.04);
}

.pillar-partner-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-sm);
}

.pillar-content {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pillar-cat-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-blue);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.pillar-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
  color: #0f172a;
}

.pillar-lead {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.pillar-feature-list {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pillar-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pillar-feature-icon {
  width: 20px;
  height: 20px;
  color: var(--brand-cyan-dark);
  flex-shrink: 0;
  margin-top: 2px;
}

.pillar-feature-item strong {
  color: #0f172a;
  display: inline;
}

.pillar-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   Reference Projects & Cases Section
   ========================================================================== */
.filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
  background: #f8fafc;
  color: var(--text-primary);
  border-color: #cbd5e1;
}

.filter-btn.active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 90, 156, 0.25);
}

.references-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
}

.reference-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

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

.ref-img-wrap {
  height: 190px;
  position: relative;
  overflow: hidden;
  background: #0f172a;
}

.ref-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.ref-category-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--brand-blue);
  box-shadow: var(--shadow-sm);
}

.ref-partner-badge {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.68rem;
  font-weight: 500;
}

.ref-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ref-client {
  font-size: 0.8rem;
  color: var(--brand-blue);
  font-weight: 700;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ref-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.35;
  color: #0f172a;
}

.ref-problem {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.ref-solution-box {
  background: #f8fafc;
  border-left: 3px solid var(--brand-blue);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 1.25rem;
  font-size: 0.825rem;
  color: #1e293b;
}

.ref-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.ref-link {
  color: var(--brand-blue);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ref-link:hover {
  text-decoration: underline;
  color: var(--brand-cyan-dark);
}

/* ==========================================================================
   Industries Grid
   ========================================================================== */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.industry-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

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

.industry-icon {
  width: 44px;
  height: 44px;
  background: #e0f2fe;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  margin-bottom: 1.25rem;
}

.industry-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.industry-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.industry-assets-list {
  font-size: 0.775rem;
  color: var(--brand-blue);
  font-family: var(--font-mono);
  font-weight: 600;
}

/* ==========================================================================
   Engineering Rigor & Delivery Model
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.process-step-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.process-step-num {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 800;
  color: rgba(0, 90, 156, 0.15);
  margin-bottom: 0.75rem;
  line-height: 1;
}

.process-step-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.process-step-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   Competitor & Technology Differentiation Drawer / Table
   ========================================================================== */
.comp-table-wrap {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
  margin-top: 2rem;
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

[dir="rtl"] .comp-table {
  text-align: right;
}

.comp-table th {
  background: #f1f5f9;
  color: #334155;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.comp-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
  color: var(--text-secondary);
}

.comp-table tr:hover td {
  background: #f8fafc;
}

.comp-badge-acc {
  color: var(--accent-green);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.comp-badge-alt {
  color: var(--accent-amber);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ==========================================================================
   ROTIC 2026 Contact & Meeting Modal / Section
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.contact-info-panel {
  padding: 3rem;
  background: #f8fafc;
  color: var(--text-primary);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  flex-shrink: 0;
}

.contact-item-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-item-val {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-form-panel {
  padding: 3rem;
  background: #ffffff;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(0, 90, 156, 0.15);
  background: #ffffff;
}

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

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  padding: 1.5rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: translateY(20px);
  transition: var(--transition);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #0b192c;
  color: #ffffff;
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand-desc {
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.footer-link {
  font-size: 0.875rem;
  color: #94a3b8;
  transition: var(--transition);
}

.footer-link:hover {
  color: #38bdf8;
  padding-left: 4px;
}

[dir="rtl"] .footer-link:hover {
  padding-left: 0;
  padding-right: 4px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Mobile Bottom Action Bar (Fixed for ROTIC Scanning) */
.mobile-action-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-subtle);
  padding: 0.65rem 1rem;
  z-index: 999;
  justify-content: space-around;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

.mobile-bar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.mobile-bar-btn.active,
.mobile-bar-btn:hover {
  color: var(--brand-blue);
}

.mobile-bar-btn svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1100px) {
  .nav-links {
    gap: 0.85rem;
  }
  .nav-link {
    font-size: 0.85rem;
  }
}

@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .hero-visual-card {
    max-width: 600px;
    margin: 0 auto;
  }
  
  .solutions-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  :root {
    --nav-height: 68px;
  }
  
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.mobile-active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .mobile-action-bar {
    display: flex;
  }
  
  body {
    padding-bottom: 60px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .process-grid {
    grid-template-columns: 1fr;
  }
}
