/* ═══════════════════════════════════════════
   Intelligent Components — Dark Theme CSS
   v5.3.1  ·  Poppins + Montserrat  ·  Mobile Optimization
   ═══════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
  /* Surfaces */
  --bg-primary:   #0a0e17;
  --bg-secondary: #0f1320;
  --surface-1:    #151b2b;
  --surface-2:    #1a2138;
  --border:       #1e293b;

  /* Accent */
  --accent:       #3b82f6;
  --accent-hover: #2563eb;
  --accent-glow:  rgba(59, 130, 246, 0.15);
  --cyan:         #06b6d4;
  --cyan-dim:     rgba(6, 182, 212, 0.12);

  /* Text */
  --text-primary:   #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;

  /* Type */
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body:    'Poppins', Arial, sans-serif;

  /* Dimensions */
  --container: 1140px;
  --radius: 8px;
  --radius-lg: 12px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
}

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

/* Prevent body scroll when mobile nav is open */
body.nav-open { overflow: hidden; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--cyan); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.2;
  text-wrap: balance;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.15rem; }

p { max-width: 68ch; }

/* ── Container ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}

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

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

/* ── Badge ── */
.badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* ── Header ── */
.site-header .container {
  max-width: 1240px;
  padding: 0 2rem;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.header-inner {
  display: flex;
  align-items: center;
  height: 80px;
  gap: 2.5rem;
}

.logo {
  flex-shrink: 0;
}

.logo img {
  height: 100px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--text-primary);
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s;
}
.main-nav a:hover::after { width: 100%; }

.header-cta {
  padding: 0.5rem 1.25rem;
  font-size: 0.82rem;
  margin-left: 1rem;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── Language Switcher ── */
.lang-switcher {
  display: flex;
  align-items: center;
  margin-left: 0.75rem;
  flex-shrink: 0;
}
.lang-switcher ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}
.lang-switcher li {
  display: flex;
}
.lang-switcher a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.6rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.15s;
  letter-spacing: 0.5px;
}
.lang-switcher a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}
.lang-switcher a::after { display: none; }
.lang-switcher .current-lang a,
.lang-switcher li.current-lang a {
  color: var(--accent);
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.25);
}
.lang-switcher .current-lang a:hover,
.lang-switcher li.current-lang a:hover {
  background: rgba(59, 130, 246, 0.18);
  transform: none;
}
.lang-switcher img {
  width: 22px !important;
  height: 15px !important;
  border-radius: 2px;
  display: inline-block;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
  object-fit: cover;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all 0.3s;
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: 140px 0 80px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, var(--bg-primary) 0%, #0c1222 50%, #0d1630 100%);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, #000 20%, transparent 70%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 { margin-bottom: 1.25rem; }
.accent-text { color: var(--accent); }

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  margin-bottom: 1rem;
  max-width: 52ch;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stat--link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
}
.stat--link:hover {
  transform: translateY(-2px);
  color: inherit;
}
.stat--link:hover .stat-num {
  color: var(--cyan);
}

.hero-svg {
  width: 100%;
  max-width: 500px;
  opacity: 0.85;
}

.hero-img {
  width: 100%;
  max-width: 540px;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px var(--accent-glow);
  object-fit: cover;
}

/* ── Page images ── */
.page-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  object-fit: cover;
}

.img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.img-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img-grid img:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* Gallery lightbox-style grid */
.gallery-real {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-real img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

.gallery-real img:hover {
  transform: scale(1.03);
  box-shadow: 0 16px 40px rgba(59, 130, 246, 0.15);
  filter: brightness(1.1);
}

/* About page image + text layouts */
.about-img-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.about-img-text.reverse {
  direction: rtl;
}

.about-img-text.reverse > * {
  direction: ltr;
}

.about-img-text img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.about-img-text .text-content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.about-img-text .text-content p {
  margin-bottom: 0.75rem;
}

/* ── Sections ── */
.section {
  padding: 6rem 0;
}
.section-dark {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header h2 { margin-bottom: 1rem; }
.section-sub {
  color: var(--text-secondary);
  max-width: 60ch;
  margin: 0 auto;
}

.section-cta { text-align: center; margin-top: 3rem; }

/* ── Page Hero ── */
.page-hero {
  padding: 140px 0 60px;
  background: linear-gradient(160deg, var(--bg-primary), var(--bg-secondary));
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin-bottom: 1rem; }
.page-hero p { color: var(--text-secondary); max-width: 60ch; }

/* ── Two Column ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

/* ── Challenge / Advantage Cards ── */
.challenge-card,
.advantage-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.challenge-card h3,
.advantage-card h3 {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.check-list li {
  padding-left: 1.8rem;
  position: relative;
  font-size: 0.95rem;
}
.check-list li::before {
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 1rem;
}
.check-list.negative li::before { content: '✕'; color: #ef4444; }
.check-list.positive li::before { content: '✓'; color: #10b981; }

/* ── Product Grid ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.product-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
}

.product-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
}
.product-icon svg { width: 100%; height: 100%; }

.product-card h3 { margin-bottom: 0.5rem; }
.product-card p { font-size: 0.9rem; color: var(--text-muted); }

/* ── Features Grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.3s;
}
.feature-card:hover { border-color: var(--accent); }

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.feature-icon svg { width: 100%; height: 100%; }

.feature-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 1rem;
}

.feature-card h3 { margin-bottom: 0.75rem; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); }

/* ── Chips ── */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.chip {
  display: inline-block;
  padding: 0.45rem 1rem;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.82rem;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text-secondary);
  transition: border-color 0.2s, color 0.2s;
}
.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── CTA Section ── */
.cta-section {
  padding: 5rem 0;
  text-align: center;
  background: linear-gradient(160deg, var(--surface-2), var(--bg-secondary));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-section h2 { margin-bottom: 1rem; }
.cta-section p {
  color: var(--text-secondary);
  max-width: 55ch;
  margin: 0 auto 2rem;
}

/* ── Spec Table ── */
.table-wrap { overflow-x: auto; }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.spec-table th,
.spec-table td {
  text-align: left;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.spec-table th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--surface-1);
}
.spec-table td { font-size: 0.95rem; }

.code {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: var(--accent-glow);
  color: var(--accent);
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
}

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

.contact-detail {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-detail .k {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.contact-detail .v { color: var(--text-secondary); font-size: 0.95rem; }
.contact-detail .v a { color: var(--accent); }

.contact-form-wrap {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
}

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

label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

input, select, textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

select { cursor: pointer; }
textarea { resize: vertical; min-height: 120px; }

.form-status { font-size: 0.9rem; min-height: 1.5em; }
.form-status.success { color: #10b981; }
.form-status.error { color: #ef4444; }

/* ── About Diagram ── */
.about-diagram {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

/* ── Nav Dropdown ── */
.nav-dropdown { position: relative; }

.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}
.dropdown-trigger:hover { color: var(--text-primary); }
.dropdown-trigger .chevron { transition: transform 0.2s; }
.dropdown-trigger[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 0;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  z-index: 200;
}
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top: none;
  border-bottom-color: var(--border);
}
.dropdown-menu.open { display: block; }

.dropdown-menu a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.15s, color 0.15s;
}
.dropdown-menu a:hover {
  background: var(--accent-glow);
  color: var(--accent);
}

/* ── Page Hero Small (legal pages) ── */
.page-hero-sm { padding: 120px 0 40px; }

/* ── Legal Content ── */
.legal-content {
  max-width: 760px;
}
.legal-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.legal-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.legal-content p {
  margin-bottom: 0.75rem;
  max-width: none;
}
.legal-content ul {
  margin: 0.75rem 0 0.75rem 1.5rem;
  color: var(--text-secondary);
}
.legal-content ul li { margin-bottom: 0.3rem; }

/* ── Portfolio ── */
.portfolio-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.portfolio-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s;
}
.portfolio-card:hover { border-color: var(--accent); }

.portfolio-visual { display: flex; align-items: center; overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.portfolio-visual svg { width: 100%; height: auto; }
.portfolio-visual img { width: 100%; height: 240px; object-fit: cover; transition: transform 0.3s ease; }
.portfolio-card:hover .portfolio-visual img { transform: scale(1.05); }

.portfolio-info { padding: 2rem 2rem 2rem 0; }

.portfolio-tag {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  background: var(--accent-glow);
  color: var(--accent);
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.portfolio-info h3 { margin-bottom: 0.75rem; font-size: 1.25rem; }
.portfolio-info p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }

.portfolio-specs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.portfolio-specs li {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.portfolio-specs li strong {
  color: var(--text-secondary);
  font-weight: 600;
}

/* ── Gallery ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.3s, box-shadow 0.3s;
  position: relative;
}
.gallery-item:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}
.gallery-item svg { display: block; width: 100%; height: auto; }
.gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.6rem 1rem;
  background: linear-gradient(transparent, rgba(10, 14, 23, 0.9));
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ── Testimonials ── */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.3s;
}
.testimonial-card:hover { border-color: var(--accent); }

.testimonial-quote {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-primary);
}
.testimonial-author span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── Reference Industries ── */
.ref-industries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.ref-industry {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.3s;
}
.ref-industry:hover { border-color: var(--accent); }

.ref-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
}
.ref-icon svg { width: 100%; height: 100%; }

.ref-industry h3 { margin-bottom: 0.4rem; font-size: 1rem; }
.ref-industry p { font-size: 0.82rem; color: var(--text-muted); max-width: none; }

/* ── Footer Legal Links ── */
.footer-legal {
  display: flex;
  gap: 1.5rem;
}
.footer-legal a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--accent); }

/* ── Blog Grid ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.blog-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.08);
}

.blog-card-thumb { position: relative; overflow: hidden; }
.blog-card-thumb img,
.blog-card-thumb svg {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.blog-card-placeholder { display: block; }

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

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.blog-card-meta time {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.blog-card-cat {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  background: var(--accent-glow);
  color: var(--accent);
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.blog-card-title {
  font-size: 1.1rem;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}
.blog-card-title a {
  color: var(--text-primary);
  transition: color 0.2s;
}
.blog-card-title a:hover { color: var(--accent); }

.blog-card-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex: 1;
}

.blog-card-link {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  transition: color 0.2s;
}
.blog-card-link:hover { color: var(--cyan); }

/* Blog Empty State */
.blog-empty {
  text-align: center;
  padding: 4rem 0;
}
.blog-empty svg { margin-bottom: 1.5rem; }
.blog-empty h2 { margin-bottom: 0.75rem; }
.blog-empty p { color: var(--text-muted); max-width: 44ch; margin: 0 auto; }

/* Blog Pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}
.blog-pagination a,
.blog-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.2s;
}
.blog-pagination a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.blog-pagination .current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── Single Blog Post ── */
.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.blog-post-meta time {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.blog-post-content {
  max-width: 760px;
}

.blog-post-featured {
  margin-bottom: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.blog-post-featured img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-post-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
}
.blog-post-body h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.blog-post-body h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.blog-post-body p { margin-bottom: 1rem; max-width: none; }
.blog-post-body ul,
.blog-post-body ol {
  margin: 1rem 0 1rem 1.5rem;
  color: var(--text-secondary);
}
.blog-post-body li { margin-bottom: 0.3rem; }
.blog-post-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1.5rem 0;
}
.blog-post-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--surface-1);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-secondary);
  font-style: italic;
}
.blog-post-body pre {
  background: var(--surface-2);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.88rem;
}

.blog-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.blog-tag {
  padding: 0.25rem 0.75rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Blog Post Navigation */
.blog-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.post-nav-prev,
.post-nav-next {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.post-nav-next { text-align: right; }
.post-nav-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.blog-post-nav a {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.blog-post-nav a:hover { color: var(--accent); }

/* ── Footer ── */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.footer-logo {
  height: 32px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-brand p { font-size: 0.85rem; color: var(--text-muted); max-width: 28ch; }

.footer-nav, .footer-contact, .footer-region {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.footer-nav a,
.footer-contact a,
.footer-contact span,
.footer-region span {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.footer-nav a:hover,
.footer-contact a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Process Timeline ── */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 2px solid var(--accent);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 1rem;
}

.process-step h3 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.process-step p {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 22ch;
  margin: 0 auto;
}

/* Detailed timeline variant — stacked */
.process-timeline--detailed {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

/* ── Highlight Banner ── */
.highlight-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 2.5rem 3rem;
}

.highlight-text h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  margin-bottom: 0.75rem;
}

.highlight-text p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.highlight-cta {
  flex-shrink: 0;
}

/* ── BOM Layout ── */
.bom-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.bom-info h2 {
  margin-bottom: 1rem;
}

.bom-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1.5rem 0;
}

.bom-checklist li {
  padding-left: 1.8rem;
  position: relative;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.bom-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--accent);
  font-weight: 600;
}

.bom-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.bom-form-wrap {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.bom-form-wrap h2 {
  margin-bottom: 1.25rem;
}

/* ── Product Card Variants ── */
.product-card--link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  position: relative;
  cursor: pointer;
}

.product-card--link:hover {
  color: inherit;
}

.product-card--featured {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.product-card--featured:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 40px var(--accent-glow);
  transform: translateY(-4px);
}

.card-arrow {
  display: inline-block;
  margin-top: auto;
  padding-top: 1rem;
  font-size: 1.25rem;
  color: var(--accent);
  transition: transform 0.2s;
}

.product-card--link:hover .card-arrow {
  transform: translateX(6px);
}

/* ── Product Grid Variants ── */
.product-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.product-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.product-grid--highlight {
  grid-template-columns: repeat(3, 1fr);
}

/* ── Features Grid Variants ── */
.features-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.features-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ── Standards List ── */
.standards-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.standard-item {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: border-color 0.3s;
}

.standard-item:hover {
  border-color: var(--accent);
}

.standard-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.standard-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

/* ── Component Groups ── */
.component-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.component-group {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.component-group h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.component-group .chip-row {
  justify-content: flex-start;
}

/* ── Tag List (inside product cards) ── */
.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.tag-list li {
  padding: 0.2rem 0.6rem;
  background: var(--cyan-dim);
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: 4px;
  font-size: 0.72rem;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--cyan);
}

/* ── Dropdown Wide ── */
.dropdown-menu--wide {
  min-width: 220px;
}

/* ── Contact Page New Styles ── */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

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

.contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.contact-item span,
.contact-item a {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.contact-item a {
  color: var(--accent);
}

.contact-bom-hint {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-bom-hint h3 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.contact-bom-hint p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Form group layout */
.form-group {
  display: flex;
  flex-direction: column;
}

.form-privacy label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.form-privacy input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
  accent-color: var(--accent);
}

.form-privacy span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-privacy a {
  color: var(--accent);
}

/* ── Section Sub (reusable paragraph under section headings) ── */
.section-sub {
  color: var(--text-secondary);
  max-width: 60ch;
  margin: 0 auto;
}

/* ── Breadcrumbs ── */
.breadcrumb {
  margin-bottom: 1.25rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
}

.breadcrumb li:not(:last-child)::after {
  content: '›';
  color: var(--text-muted);
  margin-left: 0.1rem;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb li[aria-current="page"] span {
  color: var(--text-secondary);
}

/* ── Info Box (PCB vs PCBA etc.) ── */
.info-box {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.info-box h3 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.info-box p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.info-box p + p { margin-top: 0.5rem; }

/* ── Quote Block (what we need for a quote) ── */
.quote-block {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.quote-block h3 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* ── FAQ (inline on landing pages) ── */
.faq-list .faq-question h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  flex: 1;
}

/* ── FAQ ── */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item[open] {
  border-color: var(--accent);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; content: ''; }

.faq-question h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  flex: 1;
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.25s;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: none;
}

.faq-answer a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Button Small ── */
.btn-sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.82rem;
}

/* ── Blog Post Layout (sidebar) ── */
.blog-post-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}

.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 100px;
}

.blog-sidebar-cta {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.blog-sidebar-cta h3 {
  font-size: 1rem;
  margin: 0;
}
.blog-sidebar-cta p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  max-width: none;
}

.blog-sidebar-links {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.blog-sidebar-links h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}
.blog-sidebar-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.blog-sidebar-links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.blog-sidebar-links a:hover {
  color: var(--accent);
}

/* ── Blog Reading Time ── */
.blog-reading-time {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.blog-post-meta .blog-reading-time::before {
  content: '·';
  margin-right: 0.5rem;
}
.blog-card-meta .blog-reading-time {
  font-size: 0.72rem;
}

/* ── Blog Category Filter ── */
.blog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.blog-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
}
.blog-filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.blog-filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.blog-filter-count {
  font-size: 0.7rem;
  opacity: 0.7;
}

/* ── Blog Related Posts ── */
.blog-related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.blog-related h2 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}
.blog-grid--related {
  grid-template-columns: repeat(3, 1fr);
}

/* ── Page Hero Small (blog posts) ── */
.page-hero-sm {
  padding: 120px 0 40px;
}

/* ═══ Responsive ═══ */
@media (max-width: 900px) {
  /* Hero — show image below content on mobile */
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual {
    display: block;
    order: -1;
    text-align: center;
  }
  .hero-img {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: cover;
    border-radius: var(--radius);
  }
  .hero { min-height: auto; padding: 100px 0 50px; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }

  /* Mobile Navigation — solid background, proper z-index */
  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    background: var(--bg-primary);
    padding: 90px 1.5rem 2rem;
    gap: 0.75rem;
    border-top: 1px solid var(--border);
    z-index: 99;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    font-size: 1.05rem;
    padding: 0.5rem 0;
  }
  .main-nav a::after { display: none; }

  .header-cta { display: none; }
  .hamburger { display: flex; z-index: 1001; }

  /* Language switcher in mobile header */
  .lang-switcher {
    margin-left: auto;
    margin-right: 0.5rem;
  }
  .lang-switcher a {
    padding: 0.35rem;
    font-size: 0;
    gap: 0;
    min-width: 36px;
    min-height: 36px;
    justify-content: center;
  }
  .lang-switcher span { display: none; } /* Hide text, show flags only on mobile */
  .lang-switcher img {
    width: 24px !important;
    height: 16px !important;
  }

  /* Dropdown in mobile nav — solid backgrounds */
  .nav-dropdown { width: 100%; }
  .dropdown-trigger {
    font-size: 1.05rem;
    width: 100%;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: var(--text-primary);
  }
  .dropdown-menu {
    position: static;
    transform: none;
    background: var(--surface-1);
    border: 1px solid var(--border);
    box-shadow: none;
    border-radius: var(--radius);
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
    padding: 0.25rem 0;
  }
  .dropdown-menu::before { display: none; }
  .dropdown-menu a {
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
  }

  .two-col { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }

  /* New components responsive */
  .portfolio-card { grid-template-columns: 1fr; }
  .portfolio-info { padding: 1.5rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .ref-industries { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid--related { grid-template-columns: repeat(2, 1fr); }
  .blog-post-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
  .blog-post-nav { grid-template-columns: 1fr; }

  /* v5.0 components responsive */
  .process-timeline { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1rem; }
  .highlight-banner { flex-direction: column; text-align: center; padding: 2rem; }
  .bom-layout { grid-template-columns: 1fr; }
  .product-grid--3,
  .product-grid--highlight { grid-template-columns: 1fr 1fr; }
  .product-grid--4 { grid-template-columns: 1fr 1fr; }
  .features-grid--3 { grid-template-columns: 1fr 1fr; }
  .features-grid--4 { grid-template-columns: 1fr 1fr; }
  .standards-list { gap: 1rem; }

  /* About page images — full width, responsive height */
  .about-img-text {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .about-img-text.reverse { direction: ltr; }
  .about-img-text img {
    height: auto;
    max-height: 250px;
    width: 100%;
  }
  .gallery-real { grid-template-columns: repeat(2, 1fr); }
  .gallery-real img { height: 180px; }

  /* Image grids responsive */
  .img-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .img-grid img { height: 160px; }

  /* Section spacing mobile */
  .section { padding: 3rem 0; }
  .page-hero { padding: 100px 0 2.5rem; }
  .page-hero-sm { padding: 100px 0 2rem; }
  .cta-section { padding: 3rem 0; }

  /* Blog filter scrollable on mobile */
  .blog-filter { overflow-x: auto; flex-wrap: nowrap; gap: 0.5rem; padding-bottom: 0.5rem; }
  .blog-filter-btn { white-space: nowrap; flex-shrink: 0; }
}

@media (max-width: 600px) {
  /* Hero image smaller on very small screens */
  .hero-img { max-height: 200px; }
  .hero { padding: 90px 0 40px; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .product-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .ref-industries { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-grid--related { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; }
  .gallery-real { grid-template-columns: 1fr; }
  .gallery-real img { height: 200px; }
  .img-grid { grid-template-columns: 1fr; }
  .img-grid img { height: 200px; }

  /* About images full width */
  .about-img-text img { max-height: 200px; }

  /* v5.0 600px */
  .product-grid--3,
  .product-grid--4,
  .product-grid--highlight { grid-template-columns: 1fr; }
  .features-grid--3,
  .features-grid--4 { grid-template-columns: 1fr; }
  .process-timeline { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .process-timeline--detailed { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }

  /* Container tighter on mobile */
  .container { padding: 0 1rem; }

  /* Section headers mobile */
  .section-header { margin-bottom: 2rem; }

  /* Chip row wrapping */
  .chip-row { gap: 0.5rem; }
  .chip { font-size: 0.82rem; padding: 0.4rem 0.75rem; }
}
