/* ==========================================================================
   MEKATEKNİK MÜHENDİSLİK — Industrial Automation Design System (TR / EN / DE)
   Precision European Engineering Aesthetic: Slate Navy + Crisp White + Brand Red
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-muted: #eef2f6;
  --surface-dark: #0b1220;
  --surface-dark-2: #121c2f;
  --surface-dark-3: #1b2840;
  --ink: #0f172a;
  --ink-secondary: #334155;
  --ink-muted: #64748b;
  --ink-on-dark: #f8fafc;
  --ink-on-dark-muted: #94a3b8;
  --brand: #e11d25;
  --brand-dark: #b9151c;
  --brand-soft: rgba(225, 29, 37, 0.08);
  --accent-tech: #0284c7;
  --border: #e2e8f0;
  --border-dark: rgba(148, 163, 184, 0.2);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.09);
  --shadow-lg: 0 24px 56px rgba(11, 18, 32, 0.16);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --container: 1240px;
  --header-h: 76px;
  --transition: 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition); }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Top Utility Bar */
.topbar {
  background: var(--surface-dark);
  color: var(--ink-on-dark-muted);
  font-size: 13px;
  border-bottom: 1px solid var(--border-dark);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
  flex-wrap: wrap;
  padding: 6px 0;
}
.topbar-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.topbar-meta a, .topbar-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.topbar-meta a:hover { color: #ffffff; }
.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-dark);
  border-radius: 999px;
  padding: 2px;
}
.lang-switcher a {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-on-dark-muted);
}
.lang-switcher a:hover { color: #ffffff; }
.lang-switcher a.active {
  background: var(--brand);
  color: #ffffff;
}

/* Main Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-logo img {
  height: 26px;
  width: auto;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 11px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-secondary);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--ink);
  background: var(--bg-soft);
}
.nav-link.active { color: var(--brand); font-weight: 600; }
.nav-chevron {
  width: 14px; height: 14px;
  transition: transform var(--transition);
}
.nav-item:hover .nav-chevron, .nav-item.open .nav-chevron { transform: rotate(180deg); }

/* Mega Dropdown */
.mega-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 720px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 120;
}
.nav-item:hover .mega-menu,
.nav-item:focus-within .mega-menu,
.nav-item.open .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.mega-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}
.mega-link:hover {
  background: var(--bg-soft);
  border-color: var(--border);
}
.mega-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 3px 7px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
}
.mega-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.mega-sub {
  display: block;
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-top: 3px;
  line-height: 1.4;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--brand);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.header-cta:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(11, 18, 32, 0.55);
  backdrop-filter: blur(4px);
}
.mobile-drawer.open { display: block; }
.mobile-panel {
  position: absolute;
  top: 0; right: 0;
  width: min(360px, 90vw);
  height: 100%;
  background: #ffffff;
  padding: 20px 24px 32px;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.mobile-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.mobile-nav-group { margin-bottom: 16px; }
.mobile-nav-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin: 14px 0 6px;
}
.mobile-panel a.m-link {
  display: block;
  padding: 9px 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-secondary);
  border-radius: var(--radius-sm);
}
.mobile-panel a.m-link:hover, .mobile-panel a.m-link.active {
  background: var(--bg-soft);
  color: var(--brand);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--brand);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(225, 29, 37, 0.25);
}
.btn-outline-light {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #ffffff;
}
.btn-outline-dark {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}
.btn-outline-dark:hover {
  border-color: var(--ink);
  background: var(--bg-soft);
}

/* Hero Section (Home) */
.hero {
  position: relative;
  background: var(--surface-dark);
  color: var(--ink-on-dark);
  overflow: hidden;
  padding: 78px 0 88px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(0.85);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(11, 18, 32, 0.96) 0%, rgba(11, 18, 32, 0.84) 55%, rgba(11, 18, 32, 0.56) 100%);
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fca5a5;
  background: rgba(225, 29, 37, 0.16);
  border: 1px solid rgba(225, 29, 37, 0.35);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow-light {
  color: var(--brand);
  background: var(--brand-soft);
  border-color: rgba(225, 29, 37, 0.22);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  font-weight: 700;
}
.hero-lead {
  font-size: 17.5px;
  line-height: 1.7;
  color: #cbd5e1;
  max-width: 640px;
  margin: 0 0 28px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-dark);
}
.metric-val {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}
.metric-label {
  display: block;
  font-size: 12.5px;
  color: var(--ink-on-dark-muted);
  margin-top: 4px;
}

/* Hero Side Technical Card */
.hero-spec-card {
  background: rgba(18, 28, 47, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: var(--radius-md);
  padding: 26px;
  backdrop-filter: blur(10px);
}
.hero-spec-card h2 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.spec-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 10px var(--brand);
}
.spec-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  font-size: 14px;
}
.spec-list li:last-child { border-bottom: none; }
.spec-key { color: #94a3b8; }
.spec-val { color: #f8fafc; font-weight: 600; text-align: right; font-family: var(--font-mono); font-size: 13px; }

/* Page Sub-Hero (Inner Pages) */
.page-hero {
  position: relative;
  background: var(--surface-dark);
  color: #ffffff;
  padding: 64px 0 68px;
  overflow: hidden;
}
.page-hero .hero-bg img { opacity: 0.28; }
.breadcrumb {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-on-dark-muted);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: #ffffff; }
.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.15;
  margin: 0 0 16px;
}
.page-hero p {
  font-size: 17px;
  color: #cbd5e1;
  margin: 0 0 22px;
  line-height: 1.65;
}
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tech-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e2e8f0;
}
.tech-badge-light {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  color: var(--ink-secondary);
}

/* Section Layout */
.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark {
  background: var(--surface-dark);
  color: var(--ink-on-dark);
}
.section-head {
  max-width: 740px;
  margin-bottom: 44px;
}
.section-head.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.section-head p {
  font-size: 16.5px;
  color: var(--ink-muted);
  margin: 0;
}
.section-dark .section-head p { color: var(--ink-on-dark-muted); }

/* Brand Strip */
.brand-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.brand-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.brand-strip-label {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-muted);
  font-weight: 600;
}
.platform-pills {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.platform-pill {
  padding: 7px 15px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* 4-Column Horizontal Capabilities */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cap-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.cap-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(225, 29, 37, 0.35);
}
.cap-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.cap-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 0 0 10px;
  line-height: 1.3;
}
.cap-card p {
  font-size: 14.5px;
  color: var(--ink-muted);
  margin: 0;
}

/* 7 Vertical Sector Cards */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.sector-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.sector-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(225, 29, 37, 0.4);
}
.sector-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}
.sector-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-dark);
}
.sector-card.featured .sector-media {
  aspect-ratio: auto;
  height: 100%;
  min-height: 260px;
}
.sector-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.sector-card:hover .sector-media img { transform: scale(1.04); }
.sector-code {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(11, 18, 32, 0.85);
  color: #ffffff;
  padding: 4px 9px;
  border-radius: 4px;
  border-left: 3px solid var(--brand);
}
.sector-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.sector-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.sector-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 2px 8px;
  border-radius: 4px;
}
.sector-body h3 {
  font-family: var(--font-display);
  font-size: 19px;
  margin: 0 0 10px;
  line-height: 1.3;
}
.sector-body p {
  font-size: 14.5px;
  color: var(--ink-muted);
  margin: 0 0 18px;
  flex: 1;
}
.card-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.sector-card:hover .card-more { color: var(--brand); }

/* Lifecycle 6-Step Engineering Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.process-step {
  background: var(--surface-dark-2);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 24px;
}
.process-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 10px;
  display: block;
}
.process-step h3 {
  font-family: var(--font-display);
  font-size: 17px;
  color: #ffffff;
  margin: 0 0 8px;
}
.process-step p {
  font-size: 14px;
  color: var(--ink-on-dark-muted);
  margin: 0;
}

/* Real SCADA Gallery & Lightbox Cards */
.scada-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.scada-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.scada-frame {
  position: relative;
  background: #0b1220;
  padding: 12px;
  cursor: zoom-in;
  overflow: hidden;
}
.scada-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.35s ease;
}
.scada-frame:hover img { transform: scale(1.02); }
.scada-zoom-badge {
  position: absolute;
  bottom: 22px; right: 22px;
  background: rgba(11, 18, 32, 0.88);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.scada-meta {
  padding: 20px 22px;
}
.scada-meta h3 {
  font-family: var(--font-display);
  font-size: 17.5px;
  margin: 8px 0 8px;
}
.scada-meta p {
  font-size: 14px;
  color: var(--ink-muted);
  margin: 0;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.filter-btn {
  padding: 8px 16px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-secondary);
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.active {
  background: var(--surface-dark);
  border-color: var(--surface-dark);
  color: #ffffff;
}

/* Vertical Detail Page Layout */
.detail-layout {
  display: grid;
  grid-template-columns: 1.5fr 0.85fr;
  gap: 44px;
  align-items: start;
}
.detail-block {
  margin-bottom: 42px;
}
.detail-block h2 {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bg-muted);
}
.detail-block p {
  color: var(--ink-secondary);
  margin: 0 0 14px;
}
.check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 16px;
}
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--ink);
}
.check-mark {
  color: var(--brand);
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Architecture Flow Diagram */
.arch-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.arch-node {
  background: var(--surface-dark);
  color: #ffffff;
  border-radius: var(--radius-sm);
  padding: 16px;
  position: relative;
  border-top: 3px solid var(--brand);
}
.arch-layer {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #fca5a5;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}
.arch-node strong {
  display: block;
  font-size: 14.5px;
  margin-bottom: 4px;
}
.arch-node span.arch-desc {
  font-size: 12.5px;
  color: #94a3b8;
  display: block;
  line-height: 1.45;
}

/* Sticky Sidebar on Detail Pages */
.detail-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sidebar-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}
.sidebar-card-dark {
  background: var(--surface-dark);
  color: #ffffff;
  border-color: var(--surface-dark-3);
}
.sidebar-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  margin: 0 0 12px;
}
.sidebar-card-dark p { color: #cbd5e1; font-size: 14px; margin: 0 0 16px; }
.sidebar-kv li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.sidebar-kv li:last-child { border-bottom: none; }
.sidebar-kv span { color: var(--ink-muted); }
.sidebar-kv strong { text-align: right; color: var(--ink); }

.other-sectors a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px;
  font-size: 14px;
  border-radius: var(--radius-sm);
  color: var(--ink-secondary);
}
.other-sectors a:hover, .other-sectors a.active {
  background: #ffffff;
  color: var(--brand);
  font-weight: 600;
}

/* Contact & RFQ Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: start;
}
.contact-card {
  background: var(--surface-dark);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 32px;
}
.contact-card h2 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 10px;
}
.contact-card > p { color: #cbd5e1; font-size: 14.5px; margin: 0 0 24px; }
.contact-info-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-dark);
}
.contact-info-list li:last-child { border-bottom: none; }
.contact-info-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 4px;
}
.contact-info-val {
  font-size: 15px;
  color: #ffffff;
  font-weight: 500;
}
.contact-info-val a:hover { color: #fca5a5; }

.form-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), background var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--brand);
  background: #ffffff;
}
textarea.form-control { min-height: 120px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.form-status {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  display: none;
}
.form-status.ok { display: block; background: #ecfdf5; border: 1px solid #10b981; color: #065f46; }
.form-status.err { display: block; background: #fef2f2; border: 1px solid #ef4444; color: #991b1b; }

.direct-contact-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.direct-channel {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.direct-channel:hover {
  border-color: rgba(225, 29, 37, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.direct-channel h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 0 0 6px;
}
.direct-channel p {
  font-size: 14px;
  color: var(--ink-muted);
  margin: 0;
  max-width: 440px;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* CTA Banner */
.cta-band {
  background: linear-gradient(120deg, var(--surface-dark) 0%, #17233b 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  border-left: 5px solid var(--brand);
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 30px);
  margin: 0 0 8px;
}
.cta-band p { color: #cbd5e1; margin: 0; max-width: 620px; }

/* Footer */
.site-footer {
  background: var(--surface-dark);
  color: var(--ink-on-dark-muted);
  padding: 68px 0 28px;
  border-top: 1px solid var(--border-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.1fr 1.1fr;
  gap: 36px;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--border-dark);
}
.footer-logo img { height: 26px; margin-bottom: 16px; }
.footer-brand-desc { font-size: 14px; line-height: 1.65; margin: 0 0 14px; }
.footer-legal { font-size: 12px; color: #64748b; line-height: 1.5; }
.site-footer h3 {
  font-family: var(--font-display);
  font-size: 15px;
  color: #ffffff;
  margin: 0 0 14px;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 14px; color: var(--ink-on-dark-muted); }
.footer-links a:hover { color: #ffffff; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  font-size: 13px;
}

/* Engineering FAQ Accordion (SEO + AI Agent AEO/GEO) */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item[open] {
  border-color: rgba(225, 29, 37, 0.38);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  color: var(--brand);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-answer {
  padding: 0 22px 20px;
  font-size: 15px;
  color: var(--ink-secondary);
  line-height: 1.7;
  border-top: 1px solid var(--bg-muted);
  padding-top: 14px;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(7, 11, 20, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox-inner {
  max-width: 1280px;
  width: 100%;
  text-align: center;
}
.lightbox-inner img {
  max-height: 82vh;
  margin: 0 auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.lightbox-caption {
  color: #e2e8f0;
  font-size: 14.5px;
  margin-top: 14px;
}
.lightbox-close {
  position: fixed;
  top: 20px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover { background: var(--brand); border-color: var(--brand); }

/* Responsive */
@media (max-width: 1080px) {
  .nav-desktop, .header-cta { display: none; }
  .mobile-toggle { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .sector-grid { grid-template-columns: repeat(2, 1fr); }
  .sector-card.featured { grid-column: span 2; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .process-grid { grid-template-columns: 1fr; }
  .scada-grid { grid-template-columns: 1fr; }
  .arch-flow { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { padding: 54px 0 60px; }
  .hero-metrics { grid-template-columns: repeat(2, 1fr); }
  .cap-grid, .sector-grid, .check-grid, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .sector-card.featured { grid-column: span 1; display: flex; }
  .arch-flow { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 24px; }
  .section { padding: 56px 0; }
}
