/* ==============================================================================
   ZAMEEL ALSHARQ CONTRACTING EST. (مؤسسة زميل الشرق للمقاولات)
   Precision Heavy Engineering & Industrial Fabrication | Yanbu Al Bahr, KSA
   Design System: Industrial Precision Modernism (Navy Steel, Titanium & Amber Gold)
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* Brand Industrial Color Palette */
  --bg-primary: #071320;
  --bg-secondary: #0b1c2e;
  --bg-card: rgba(13, 31, 51, 0.75);
  --bg-card-hover: rgba(18, 42, 69, 0.9);
  --bg-glass: rgba(11, 28, 46, 0.65);
  --bg-elevated: #0f2842;
  --bg-subtle: rgba(255, 255, 255, 0.03);

  /* Accents */
  --gold-primary: #e69d1b;
  --gold-bright: #f5b138;
  --gold-dark: #b87508;
  --gold-glow: rgba(230, 157, 27, 0.22);
  --gold-border: rgba(230, 157, 27, 0.35);

  --blue-accent: #1e6091;
  --blue-bright: #2b84c6;
  --blue-glow: rgba(30, 96, 145, 0.3);

  /* Neutral Spectrum */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #071320;

  --border-subtle: rgba(148, 163, 184, 0.12);
  --border-strong: rgba(148, 163, 184, 0.24);
  --border-gold: rgba(230, 157, 27, 0.4);

  /* Geometry & Layout */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  /* Fonts */
  --font-en: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-ar: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Current Active Font (Toggled via JS) */
  --font-main: var(--font-en);

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 10px 30px rgba(230, 157, 27, 0.2);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  --max-width: 1280px;
}

/* RTL Support */
[dir="rtl"] {
  --font-main: var(--font-ar);
  text-align: right;
}

[dir="rtl"] .ltr-only {
  direction: ltr;
  display: inline-block;
}

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

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

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

/* Blueprint Precision Grid Background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: -2;
}

/* Radial Ambient Industrial Lighting */
body::after {
  content: '';
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  height: 60vh;
  background: radial-gradient(circle, rgba(30, 96, 145, 0.18) 0%, rgba(230, 157, 27, 0.05) 50%, transparent 80%);
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

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

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

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ==============================================================================
   1. TOP UTILITY STATUS BAR (Official KSA Credentials)
   ============================================================================== */
.top-bar {
  background: rgba(5, 15, 26, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  padding-block: 0.5rem;
  position: relative;
  z-index: 101;
}

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

.top-credentials {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.cred-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.cred-item svg {
  width: 14px;
  height: 14px;
  color: var(--gold-bright);
}

.cred-val {
  color: var(--text-primary);
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

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

/* Language Switcher Button */
.lang-toggle-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.lang-toggle-btn:hover {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  color: var(--text-inverse);
}

.lang-flag {
  font-size: 1rem;
}

/* ==============================================================================
   2. PRIMARY NAVIGATION HEADER
   ============================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 19, 32, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-fast);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.85rem;
}

/* Logo Brand Lockup */
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

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

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

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-name-en {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-transform: uppercase;
}

.brand-sub-en {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--gold-bright);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-name-ar {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  display: none;
}

[dir="rtl"] .brand-name-en {
  display: none;
}
[dir="rtl"] .brand-name-ar {
  display: block;
}

/* Nav Links */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding-block: 0.5rem;
}

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

.nav-link:hover {
  color: #ffffff;
}

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

[dir="rtl"] .nav-link::after {
  left: auto;
  right: 0;
}

/* Header CTAs */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.btn-rfq {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-primary));
  color: var(--text-inverse);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-bright);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(230, 157, 27, 0.3);
  transition: all var(--transition-fast);
}

.btn-rfq:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(230, 157, 27, 0.45);
  background: linear-gradient(135deg, #ffbe4d, var(--gold-bright));
}

.btn-rfq svg {
  width: 16px;
  height: 16px;
}

/* Mobile Toggle Hamburger */
.mobile-toggle-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 0.5rem;
  cursor: pointer;
}

.mobile-toggle-btn svg {
  width: 24px;
  height: 24px;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(5, 15, 26, 0.98);
  backdrop-filter: blur(20px);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
}

[dir="rtl"] .mobile-drawer {
  transform: translateX(-100%);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.drawer-link {
  color: var(--text-secondary);
  padding-block: 0.5rem;
}

.drawer-link:hover {
  color: var(--gold-bright);
}

.drawer-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

/* ==============================================================================
   3. HERO SECTION (Bespoke Saudi Heavy Engineering)
   ============================================================================== */
.hero-section {
  position: relative;
  padding-top: 3.5rem;
  padding-bottom: 5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

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

/* Technical Location & Inspection Badge */
.hero-badge-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(30, 96, 145, 0.15);
  border: 1px solid rgba(30, 96, 145, 0.35);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #7dd3fc;
  font-family: var(--font-mono);
}

.tech-badge.gold {
  background: rgba(230, 157, 27, 0.12);
  border-color: rgba(230, 157, 27, 0.35);
  color: var(--gold-bright);
}

.tech-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.hero-title .highlight-gold {
  background: linear-gradient(135deg, #ffffff 10%, var(--gold-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 2.25rem;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-primary));
  color: var(--text-inverse);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.95rem 2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-bright);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(230, 157, 27, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.95rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold-bright);
}

/* Hero Engineering Metric Stats */
.hero-stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

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

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-mono);
  line-height: 1.1;
  display: inline-flex;
  align-items: baseline;
  gap: 0.2rem;
}

.stat-num .stat-unit {
  color: var(--gold-bright);
  font-size: 1.25rem;
}

.stat-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* Hero Visual Card / Facility Showcase */
.hero-visual {
  position: relative;
}

.hero-image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  background: var(--bg-card);
}

.hero-main-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}

.hero-image-frame:hover .hero-main-img {
  transform: scale(1.03);
}

/* Floating Technical Overlay Card */
.hero-floating-card {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: rgba(7, 19, 32, 0.88);
  backdrop-filter: blur(16px);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.floating-card-info h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #ffffff;
}

.floating-card-info p {
  font-size: 0.775rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.floating-status-pill {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.floating-status-pill .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
}

/* ==============================================================================
   4. CLIENT TICKER & MAJOR CLIENT MATRIX
   ============================================================================== */
.clients-section {
  padding-block: 5rem;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.section-tag {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold-bright);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.section-tag::before,
.section-tag::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold-border);
}

.section-title {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
}

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

/* Sector Filter Pills */
.filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.filter-btn.active {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  color: var(--text-inverse);
  box-shadow: 0 4px 14px rgba(230, 157, 27, 0.3);
}

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

.client-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  position: relative;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(10px);
}

.client-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: transparent;
  transition: background var(--transition-fast);
}

.client-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-border);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md);
}

.client-card:hover::before {
  background: linear-gradient(90deg, var(--gold-bright), var(--blue-bright));
}

.client-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.client-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(30, 96, 145, 0.2);
  border: 1px solid rgba(30, 96, 145, 0.4);
  color: #7dd3fc;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
}

.client-category-tag {
  font-size: 0.725rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.client-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.client-ar-name {
  font-size: 0.9rem;
  color: var(--gold-bright);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.client-work {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
  border-top: 1px dashed var(--border-subtle);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}

/* ==============================================================================
   5. SERVICES & ENGINEERING CAPABILITIES (The 4 Core Pillars)
   ============================================================================== */
.services-section {
  padding-block: 6rem;
  position: relative;
}

.services-layout {
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
}

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.service-row.reverse {
  direction: rtl;
}

.service-row.reverse > * {
  direction: ltr;
}

[dir="rtl"] .service-row {
  direction: rtl;
}
[dir="rtl"] .service-row > * {
  direction: rtl;
}

[dir="rtl"] .service-row.reverse {
  direction: ltr;
}
[dir="rtl"] .service-row.reverse > * {
  direction: rtl;
}

.service-visual-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  background: var(--bg-card);
}

.service-visual-wrap img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-visual-wrap:hover img {
  transform: scale(1.04);
}

.service-badge-floating {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(7, 19, 32, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid var(--gold-border);
  color: var(--gold-bright);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

[dir="rtl"] .service-badge-floating {
  left: auto;
  right: 1rem;
}

.service-info {
  display: flex;
  flex-direction: column;
}

.service-index {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.service-title {
  font-size: clamp(1.75rem, 2.5vw, 2.35rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.service-title-ar {
  font-size: 1.25rem;
  color: var(--gold-bright);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.service-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

/* Technical Specification Bullets */
.spec-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.spec-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: #e2e8f0;
}

.spec-list-item svg {
  width: 18px;
  height: 18px;
  color: var(--gold-bright);
  flex-shrink: 0;
  margin-top: 2px;
}

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

/* ==============================================================================
   6. MACHINERY & WORKSHOP CAPACITIES MATRIX (Technical Specs Table)
   ============================================================================== */
.machinery-section {
  padding-block: 5.5rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.machinery-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-md);
  margin-top: 2.5rem;
}

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

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

.machinery-table th {
  background: rgba(5, 15, 26, 0.95);
  padding: 1.25rem 1.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}

.machinery-table td {
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  vertical-align: middle;
}

.machinery-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.cell-machinery {
  font-weight: 700;
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

.cell-machinery .sub-info {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

.cell-capacity {
  font-family: var(--font-mono);
  font-weight: 600;
  color: #38bdf8;
}

.cell-standard {
  display: inline-block;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-xs);
  font-size: 0.775rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

/* ==============================================================================
   7. INTERACTIVE RFQ & SCOPE SPECIFICATION BUILDER
   ============================================================================== */
.rfq-section {
  padding-block: 6rem;
  position: relative;
}

.rfq-card-box {
  background: linear-gradient(145deg, rgba(11, 28, 46, 0.95), rgba(7, 19, 32, 0.98));
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(230, 157, 27, 0.08);
}

.rfq-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
}

.rfq-form-col {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-label .sub {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
}

.form-select,
.form-input,
.form-textarea {
  background: rgba(5, 15, 26, 0.8);
  border: 1px solid var(--border-strong);
  color: #ffffff;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  outline: none;
  transition: all var(--transition-fast);
}

.form-select:focus,
.form-input:focus,
.form-textarea:focus {
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(230, 157, 27, 0.2);
}

/* Service Selector Radio Buttons */
.service-pill-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.service-pill-option {
  position: relative;
}

.service-pill-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.service-pill-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.service-pill-option input[type="radio"]:checked + .service-pill-label {
  background: rgba(230, 157, 27, 0.15);
  border-color: var(--gold-bright);
  color: #ffffff;
}

/* Urgency / Project Scale Selector */
.scale-btn-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.scale-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.65rem 0.5rem;
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.scale-btn.active {
  background: var(--blue-accent);
  border-color: var(--blue-bright);
  color: #ffffff;
}

/* Live RFQ Summary Docket Column */
.rfq-docket-col {
  background: rgba(5, 15, 26, 0.85);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.docket-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.docket-brand {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold-bright);
  text-transform: uppercase;
}

.docket-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-top: 0.25rem;
}

.docket-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.docket-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.docket-label {
  color: var(--text-secondary);
}

.docket-val {
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-mono);
}

.docket-actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.btn-whatsapp-rfq {
  background: #25d366;
  color: #051a0e;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.9rem;
  border-radius: var(--radius-sm);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-whatsapp-rfq:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.btn-email-rfq {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-strong);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.9rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-email-rfq:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--gold-bright);
}

/* ==============================================================================
   8. OFFICIAL CORPORATE CREDENTIALS & LETTERHEAD MODAL
   ============================================================================== */
.credentials-section {
  padding-block: 5rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.cred-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.official-cred-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: all var(--transition-fast);
}

.official-cred-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-3px);
}

.official-cred-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(230, 157, 27, 0.15);
  color: var(--gold-bright);
  display: grid;
  place-items: center;
  margin-bottom: 0.5rem;
}

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

.official-cred-card h4 {
  font-size: 0.9375rem;
  color: #ffffff;
}

.official-cred-card .cred-num {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.official-cred-card p {
  font-size: 0.775rem;
  color: var(--text-secondary);
}

/* ==============================================================================
   9. LOCATION & CONTACT (Yanbu Al Bahr KSA)
   ============================================================================== */
.contact-section {
  padding-block: 6rem;
  position: relative;
}

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

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.contact-card-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  transition: all var(--transition-fast);
}

.contact-item-card:hover {
  border-color: var(--gold-border);
  background: var(--bg-card-hover);
}

.contact-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(30, 96, 145, 0.2);
  border: 1px solid rgba(30, 96, 145, 0.4);
  color: #7dd3fc;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

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

.contact-item-details h4 {
  font-size: 0.9375rem;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.contact-item-details p,
.contact-item-details a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.contact-item-details a:hover {
  color: var(--gold-bright);
}

/* Interactive Map Frame */
.map-frame-box {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 420px;
  position: relative;
}

.map-frame-box iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(80%) invert(90%) contrast(120%);
}

.map-location-tag {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  background: rgba(7, 19, 32, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.15rem;
  font-size: 0.8125rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==============================================================================
   10. FOOTER
   ============================================================================== */
.site-footer {
  background: #040c15;
  border-top: 1px solid var(--border-subtle);
  padding-top: 4.5rem;
  padding-bottom: 2rem;
  color: var(--text-secondary);
}

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

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

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 380px;
}

.footer-col h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

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

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==============================================================================
   11. LETTERHEAD PREVIEW MODAL
   ============================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 300;
  display: none;
  place-items: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.modal-backdrop.open {
  display: grid;
  opacity: 1;
}

.modal-content-box {
  background: var(--bg-secondary);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
}

[dir="rtl"] .modal-close-btn {
  right: auto;
  left: 1rem;
}

.letterhead-preview-img {
  width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
}

/* ==============================================================================
   12. RESPONSIVE BREAKPOINTS (Mobile Perfection)
   ============================================================================== */
@media (max-width: 1024px) {
  .hero-grid,
  .service-row,
  .service-row.reverse,
  .rfq-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .service-row.reverse {
    direction: ltr;
  }

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

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .mobile-toggle-btn {
    display: block;
  }

  .top-credentials {
    display: none;
  }

  .top-bar-inner {
    justify-content: flex-end;
  }

  .hero-section {
    padding-top: 2rem;
    padding-bottom: 3.5rem;
  }

  .hero-stats-strip {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .hero-main-img {
    height: 320px;
  }

  .spec-list {
    grid-template-columns: 1fr;
  }

  .rfq-card-box {
    padding: 1.75rem 1.25rem;
  }

  .service-pill-group {
    grid-template-columns: 1fr;
  }

  .cred-card-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

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