/* ============================================
   BC METAL - Best Choice Metal Technology
   Modern Industrial Design System
   ============================================ */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f7f8fa;
  --color-bg-dark: #0a1628;
  --color-bg-darker: #060f1d;
  --color-surface: #ffffff;
  --color-border: #e5e8ec;
  --color-border-light: #eef1f5;

  --color-text: #0a1628;
  --color-text-muted: #5a6678;
  --color-text-light: #8a93a3;
  --color-text-inverse: #ffffff;

  --color-accent: #1e5fd9;       /* primary blue (logo blue) */
  --color-accent-hover: #1a52b8;
  --color-accent-light: #e8f0fc;
  --color-accent-dark: #0a1628;
  --color-red: #e63946;          /* logo red accent */
  --color-yellow: #f59e0b;       /* logo yellow */

  --color-success: #10b981;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Manrope', 'Inter', sans-serif;

  --shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.04);
  --shadow-md: 0 4px 12px rgba(10, 22, 40, 0.06);
  --shadow-lg: 0 12px 32px rgba(10, 22, 40, 0.08);
  --shadow-xl: 0 24px 60px rgba(10, 22, 40, 0.12);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;

  --container: 1280px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }

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

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

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}
.eyebrow-light { color: var(--color-accent); }

.section-title {
  font-size: clamp(26px, 3.5vw, 38px);
  margin-bottom: 16px;
  font-weight: 800;
  text-wrap: balance;
}
.section-title.light { color: var(--color-text-inverse); }
.section-sub {
  font-size: 17px;
  color: var(--color-text-muted);
  max-width: 720px;
  line-height: 1.7;
}
.section-sub.light { color: rgba(255,255,255,0.75); }

.accent { color: var(--color-accent); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-primary {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
  box-shadow: 0 4px 14px rgba(30, 95, 217, 0.25);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(30, 95, 217, 0.35);
}
.btn-ghost {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.3);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); }
.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-light);
}
.btn-outline-light {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.3);
}
.btn-outline-light:hover { background: white; color: var(--color-text); border-color: white; }
.btn-light {
  background: white;
  color: var(--color-accent);
  border-color: white;
}
.btn-light:hover { background: #f0f4fb; transform: translateY(-1px); }
.btn-ghost-light {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.1); }

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
  background: var(--color-bg-darker);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.top-bar-left { display: flex; gap: 24px; flex-wrap: wrap; }
.top-bar-left a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
}
.top-bar-left a:hover { color: white; }
.top-bar-right {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lang-active { color: var(--color-accent); font-weight: 600; }

/* ============================================
   HEADER
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border-light);
  transition: all var(--transition);
}
.header.scrolled {
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo img {
  height: 44px;
  width: auto;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--color-text);
  letter-spacing: 0.02em;
}
.logo-tagline {
  font-size: 11px;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.nav {
  display: flex;
  gap: 8px;
  flex: 1;
  justify-content: center;
}
.nav-link {
  position: relative;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--color-accent);
  background: rgba(30, 95, 217, 0.08);
  border-color: rgba(30, 95, 217, 0.2);
}
.nav-link.active {
  color: #fff;
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.nav-link.active:hover {
  background: var(--color-accent-dark, #174fb0);
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: all var(--transition);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  color: white;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('assets/hero-bg.jpg') center/cover no-repeat;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(10, 22, 40, 0.85) 0%, rgba(10, 22, 40, 0.7) 50%, rgba(30, 95, 217, 0.5) 100%);
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 24px;
  width: 100%;
}
.hero-content .eyebrow {
  color: var(--color-accent);
  background: rgba(30, 95, 217, 0.15);
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(30, 95, 217, 0.3);
}
.hero-title {
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.05;
  margin-bottom: 24px;
  color: white;
  font-weight: 800;
  text-wrap: balance;
}
.hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 36px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
}
.stat { padding: 8px; }
.stat-num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  color: white;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-num sup { font-size: 24px; color: var(--color-accent); }
.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.4;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.scroll-indicator span {
  display: block;
  width: 2px;
  height: 32px;
  background: linear-gradient(to bottom, transparent, white);
  position: relative;
  overflow: hidden;
}
.scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: white;
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(400%); }
}

/* ============================================
   INDUSTRIES
   ============================================ */
.industries {
  padding: 60px 0;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border-light);
}
.industries-label {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 32px;
  font-weight: 500;
}
.industries-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.industry {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  background: white;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text);
  text-align: center;
  transition: all var(--transition);
  overflow: hidden;
}
.industry img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.industry span {
  padding: 16px 12px;
  background: white;
}
.industry svg { color: var(--color-accent); }
.industry:hover {
  transform: translateY(-2px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}
.industry:hover img {
  transform: scale(1.05);
}

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 100px 0; }
.section-head { margin-bottom: 56px; max-width: 760px; }
.section-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.dark-section {
  background: var(--color-bg-dark);
  color: white;
  position: relative;
  overflow: hidden;
}
.dark-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(30, 95, 217, 0.15), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(30, 95, 217, 0.1), transparent 50%);
  pointer-events: none;
}
.dark-section > .container { position: relative; z-index: 1; }
.section-cta { text-align: center; margin-top: 48px; }

/* ============================================
   PRODUCTS GRID
   ============================================ */
.products-section { background: white; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  display: block;
  background: white;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}
.product-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  background-color: #2a3548;
}
.product-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10, 22, 40, 0.4));
}
.product-body { padding: 28px 24px; }
.product-cat {
  display: inline-block;
  font-size: 12px;
  color: var(--color-text-light);
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  font-family: var(--font-display);
}
.product-body h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--color-text);
}
.product-body p {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 14px;
  transition: gap var(--transition);
}
.product-card:hover .product-link { gap: 10px; }

/* ============================================
   WHY BC METAL
   ============================================ */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.why-left .btn { margin-top: 24px; }
.why-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.why-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.why-item:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(30, 95, 217, 0.4);
  transform: translateY(-2px);
}
.why-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--color-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.why-item h4 {
  color: white;
  font-size: 17px;
  margin-bottom: 6px;
}
.why-item p {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  line-height: 1.6;
}

/* ============================================
   REACH
   ============================================ */
.reach-section { background: var(--color-bg-alt); }
.reach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.reach-card {
  padding: 32px 28px;
  background: white;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.reach-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--color-accent);
  transition: height var(--transition);
}
.reach-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.reach-card:hover::before { height: 100%; }
.reach-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 12px;
  line-height: 1;
}
.reach-card h4 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--color-text);
}
.reach-card p {
  color: var(--color-text-muted);
  font-size: 14px;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--color-accent) 0%, #1547a8 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><path d='M0 0h40v40H0z' fill='none'/><circle cx='20' cy='20' r='1' fill='white' fill-opacity='0.15'/></svg>");
  opacity: 0.5;
}
.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 60px 24px;
  flex-wrap: wrap;
}
.cta-inner h2 {
  color: white;
  font-size: clamp(24px, 3vw, 36px);
  margin-bottom: 8px;
  text-wrap: balance;
}
.cta-inner p {
  color: rgba(255,255,255,0.9);
  font-size: 17px;
  max-width: 600px;
}
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================
   HOMEPAGE: SERVICE / PARTNER / CONTACT previews
   ============================================ */
.home-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.home-service-item {
  padding: 32px 28px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  position: relative;
}
.home-service-item:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(30,95,217,0.10);
}
.home-service-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--color-accent);
  opacity: 0.45;
  line-height: 1;
  margin-bottom: 14px;
}
.home-service-item h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
}
.home-service-item p {
  color: var(--color-text-light);
  font-size: 15px;
  line-height: 1.6;
}

/* Partner preview */
.home-partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.home-partner-card {
  padding: 32px 24px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-align: left;
  transition: all var(--transition);
}
.home-partner-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(30,95,217,0.10);
}
.home-partner-icon {
  width: 48px;
  height: 48px;
  background: var(--color-bg-dark);
  color: white;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.home-partner-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-text);
}
.home-partner-card p {
  color: var(--color-text-light);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 14px;
}
.home-partner-meta {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Contact preview */
.contact-preview { padding: 100px 0; }
.contact-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-preview-left h2 { margin-top: 8px; }
.contact-preview-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 28px 0 32px;
}
.cpi-item .cpi-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 6px;
}
.cpi-item .cpi-value {
  font-size: 15px;
  color: white;
  font-weight: 500;
}
.contact-preview-card {
  background: white;
  padding: 36px;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}
.contact-preview-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-text);
}
.contact-preview-card .form-sub {
  color: var(--color-text-light);
  font-size: 14px;
  margin-bottom: 20px;
}
.contact-preview-card input,
.contact-preview-card textarea,
.contact-preview-card select {
  background: var(--color-bg-light);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

@media (max-width: 1024px) {
  .home-services-grid { grid-template-columns: repeat(2, 1fr); }
  .home-partner-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-preview-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-preview-info { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .home-services-grid { grid-template-columns: 1fr; }
  .home-partner-grid { grid-template-columns: 1fr; }
  .contact-preview-info { grid-template-columns: 1fr; }
  .contact-preview-card { padding: 24px; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-bg-darker);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}
.footer-col h5 {
  color: white;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 700;
}
.footer-col a {
  display: block;
  padding: 4px 0;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  transition: color var(--transition);
}
.footer-col a:hover { color: white; }
.footer-col p { font-size: 14px; line-height: 1.7; margin-bottom: 8px; }
.footer-contact { margin-top: 12px; }
.footer-contact a { padding: 2px 0; }
.footer-logo {
  height: 64px;
  width: auto;
  max-width: 200px;
  margin-bottom: 20px;
  background: white;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  object-fit: contain;
  display: block;
}
.footer-brand p { margin-bottom: 20px; }
.social { display: flex; gap: 12px; }
.social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all var(--transition);
}
.social a:hover { background: var(--color-accent); color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}
.footer-bottom a { color: rgba(255,255,255,0.7); }
.footer-bottom a:hover { color: white; }

/* ============================================
   PAGE HEADER (sub-pages)
   ============================================ */
.page-header {
  position: relative;
  padding: 120px 0 80px;
  color: white;
  background: var(--color-bg-dark);
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/about-bg.jpg') center/cover no-repeat;
  opacity: 0.25;
}
.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.92) 0%, rgba(30, 95, 217, 0.7) 100%);
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 {
  color: white;
  font-size: clamp(32px, 4.5vw, 48px);
  margin-bottom: 16px;
  text-wrap: balance;
}
.page-header p {
  color: rgba(255,255,255,0.85);
  font-size: 18px;
  max-width: 720px;
}
.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.breadcrumb a:hover { color: white; }
.breadcrumb span { color: var(--color-accent); }

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-section { padding: 100px 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}
.about-image img { width: 100%; height: auto; object-fit: cover; aspect-ratio: 16/10; }
.about-content h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 20px; text-wrap: balance; }
.about-facility { padding: 80px 0; background: var(--color-bg-light, #f5f7fb); }
.facility-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}
.facility-img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.about-content p {
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.stats-bar {
  background: var(--color-bg-dark);
  color: white;
  padding: 60px 0;
}
.stats-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-bar-item .num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
}
.stat-bar-item .num sup { font-size: 28px; }
.stat-bar-item .label {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  margin-top: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.values-section { padding: 100px 0; background: var(--color-bg-alt); }
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value-card {
  padding: 36px 28px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  transition: all var(--transition);
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}
.value-icon {
  width: 56px;
  height: 56px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.value-card h4 { font-size: 19px; margin-bottom: 10px; }
.value-card p { color: var(--color-text-muted); font-size: 14px; line-height: 1.6; }

/* ============================================
   PRODUCTS PAGE
   ============================================ */
.products-page-list { padding: 100px 0; }
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
  padding: 60px 0;
  border-bottom: 1px solid var(--color-border-light);
}
.product-detail:last-child { border-bottom: 0; }
.product-detail.reverse { grid-template-columns: 1.5fr 1fr; }
.product-detail.reverse .product-image-block { order: 2; }
.product-image-block {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}
.product-image-block img { width: 100%; height: 100%; object-fit: cover; }
.product-info .product-num {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 800;
  color: var(--color-accent-light);
  line-height: 1;
  margin-bottom: 12px;
}
.product-info h2 { font-size: clamp(28px, 3vw, 36px); margin-bottom: 12px; }
.product-info > p {
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
}
.product-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
.spec-item {
  padding: 16px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-accent);
}
.spec-item .spec-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.spec-item .spec-value {
  font-size: 15px;
  color: var(--color-text);
  font-weight: 500;
}

.standards-section { padding: 80px 0; background: var(--color-bg-dark); color: white; }
.standards-section .section-title { color: white; }
.standards-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.standard-badge {
  padding: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 600;
  transition: all var(--transition);
}
.standard-badge:hover { background: rgba(30, 95, 217, 0.2); border-color: var(--color-accent); }

/* ============================================
   SERVICES PAGE
   ============================================ */
.services-section { padding: 100px 0; }
.services-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.service-item {
  display: flex;
  gap: 20px;
  padding: 32px;
  background: white;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.service-item:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.service-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  flex-shrink: 0;
}
.service-content h3 { font-size: 19px; margin-bottom: 8px; }
.service-content p { color: var(--color-text-muted); font-size: 14px; line-height: 1.6; }

.sectors-section { padding: 100px 0; background: var(--color-bg-alt); }
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.sector-card {
  padding: 32px 28px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  transition: all var(--transition);
}
.sector-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.sector-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--color-text);
}
.sector-card p { color: var(--color-text-muted); font-size: 14px; line-height: 1.6; }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-section { padding: 100px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}
.contact-info h2 { font-size: clamp(28px, 3.5vw, 40px); margin-bottom: 16px; }
.contact-info > p {
  color: var(--color-text-muted);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 40px;
}
.office-card {
  padding: 28px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  border: 1px solid var(--color-border-light);
}
.office-card h4 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.office-card h4::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
}
.office-detail { display: flex; gap: 12px; margin-bottom: 10px; font-size: 14px; }
.office-detail .label {
  font-weight: 600;
  color: var(--color-text);
  min-width: 80px;
}
.office-detail .value { color: var(--color-text-muted); }
.office-detail a { color: var(--color-accent); font-weight: 500; }
.office-detail a:hover { text-decoration: underline; }

.contact-form {
  padding: 40px;
  background: white;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.contact-form h3 { font-size: 22px; margin-bottom: 8px; }
.contact-form .form-sub {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-bottom: 28px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group { display: flex; flex-direction: column; }
.form-group label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}
.form-group input, .form-group select, .form-group textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-text);
  background: white;
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(30, 95, 217, 0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { width: 100%; justify-content: center; margin-top: 8px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .industries-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .product-detail, .product-detail.reverse { grid-template-columns: 1fr; }
  .product-detail.reverse .product-image-block { order: 0; }
  .services-list, .values-grid, .reach-grid, .sectors-grid { grid-template-columns: 1fr 1fr; }
  .standards-list { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .top-bar { display: none; }
  .nav { display: none; }
  .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .header.menu-open .nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: white;
    padding: 16px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }
  .header.menu-open .nav-link { padding: 12px 16px; }
  .hero { min-height: 80vh; }
  .hero-title { font-size: clamp(32px, 8vw, 44px); }
  .hero-stats { grid-template-columns: 1fr 1fr; padding: 24px; }
  .stat-num { font-size: 32px; }
  .section { padding: 60px 0; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr; }
  .why-right { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .services-list, .values-grid, .reach-grid, .sectors-grid, .standards-list { grid-template-columns: 1fr; }
  .stats-bar-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .product-specs, .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .about-image img { aspect-ratio: 16/10; }
}

/* ============================================
   PRODUCT DETAIL PAGE (3rd Level)
   ============================================ */
.product-detail-page { padding: 0; }
.pd-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.pd-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
  padding: 40px 24px 40px 0;
  border-right: 1px solid var(--color-border-light);
}
.pd-sidebar h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  font-weight: 700;
}
.pd-sidebar ul { list-style: none; }
.pd-sidebar li { margin-bottom: 2px; }
.pd-sidebar a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  border-left: 2px solid transparent;
}
.pd-sidebar a:hover { color: var(--color-accent); background: var(--color-accent-light); }
.pd-sidebar a.active {
  color: var(--color-accent);
  font-weight: 600;
  border-left-color: var(--color-accent);
  background: var(--color-accent-light);
}
.pd-sidebar .pd-cat-label {
  font-size: 11px;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 20px;
  margin-bottom: 6px;
  font-weight: 600;
}
.pd-content {
  padding: 40px 0 80px 40px;
  min-width: 0;
}
.pd-section {
  margin-bottom: 48px;
  scroll-margin-top: 100px;
}
.pd-section h2 {
  font-size: 28px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}
.pd-section h3 {
  font-size: 20px;
  margin: 28px 0 12px;
  color: var(--color-text);
}
.pd-section h4 {
  font-size: 16px;
  margin: 20px 0 8px;
  color: var(--color-accent);
}
.pd-section p {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 12px;
}
.pd-section ul, .pd-section ol {
  margin: 12px 0 16px 20px;
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.8;
}
.pd-section ul li, .pd-section ol li { margin-bottom: 6px; }

/* Image Gallery / Placeholders */
.pd-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0 32px;
}
.pd-gallery.full-width { grid-template-columns: 1fr; }
.pd-img-placeholder {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #eef1f5 0%, #dde3ec 100%);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--color-text-light);
  font-size: 14px;
  text-align: center;
  transition: all var(--transition);
}
.pd-img-placeholder:hover { border-color: var(--color-accent); color: var(--color-accent); }
.pd-img-placeholder svg { width: 40px; height: 40px; opacity: 0.5; }
.pd-img-placeholder span { font-weight: 500; }
.pd-img-placeholder .img-hint { font-size: 12px; opacity: 0.7; }

/* Real product image (filled with photo) */
.pd-img-placeholder.pd-img-real {
  background: #0a1628;
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  padding: 0;
}
.pd-img-placeholder.pd-img-real img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.pd-img-placeholder.pd-img-real:hover img { transform: scale(1.04); }
.pd-img-placeholder.pd-img-real:hover { border-color: var(--color-accent); }

/* Contain mode for portrait/mismatched images — show full image without cropping */
.pd-img-placeholder.pd-img-contain img { object-fit: contain; }
.pd-img-placeholder.pd-img-contain:hover img { transform: scale(1.02); }

/* Spec Tables */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.spec-table thead { background: var(--color-bg-dark); }
.spec-table thead th {
  padding: 12px 16px;
  text-align: left;
  color: white;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.spec-table tbody tr { border-bottom: 1px solid var(--color-border-light); }
.spec-table tbody tr:nth-child(even) { background: var(--color-bg-alt); }
.spec-table tbody tr:hover { background: var(--color-accent-light); }
.spec-table td {
  padding: 10px 16px;
  color: var(--color-text);
  line-height: 1.5;
}
.spec-table td:first-child { font-weight: 600; }

/* Info Cards */
.pd-info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.pd-info-card {
  padding: 20px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-accent);
}
.pd-info-card .label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.pd-info-card .value { font-size: 15px; color: var(--color-text); font-weight: 500; }

/* Product Category Nav (2nd level) */
.product-category-section { padding: 60px 0; }
.product-category-section.alt { background: var(--color-bg-alt); }
.pc-header { margin-bottom: 40px; }
.pc-header h2 { font-size: 32px; margin-bottom: 8px; }
.pc-header p { color: var(--color-text-muted); font-size: 16px; }
.pc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.pc-card {
  display: block;
  background: white;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
}
.pc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}
.pc-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--color-bg-dark) 0%, #1a3055 100%);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.pc-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,22,40,0.3) 0%, transparent 40%, transparent 60%, rgba(10,22,40,0.5) 100%);
  pointer-events: none;
}
.pc-card-img img { width: 100%; height: 100%; object-fit: cover; }
.pc-card-img .pc-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  color: rgba(255,255,255,0.6);
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
  position: absolute;
  top: 12px;
  right: 16px;
}
.pc-card-body { padding: 24px; }
.pc-card-body h3 { font-size: 20px; margin-bottom: 8px; }
.pc-card-body p { color: var(--color-text-muted); font-size: 14px; line-height: 1.6; margin-bottom: 12px; }
.pc-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 14px;
  transition: gap var(--transition);
}
.pc-card:hover .pc-card-link { gap: 10px; }

/* Partners Page */
.partners-section { padding: 80px 0; }
.partners-table-wrap { overflow-x: auto; margin: 24px 0; }
.partners-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.partners-table thead { background: var(--color-bg-dark); }
.partners-table thead th {
  padding: 14px 18px;
  text-align: left;
  color: white;
  font-weight: 600;
}
.partners-table tbody tr { border-bottom: 1px solid var(--color-border-light); }
.partners-table tbody tr:hover { background: var(--color-accent-light); }
.partners-table td { padding: 12px 18px; color: var(--color-text); line-height: 1.5; }
.partners-table td:first-child { font-weight: 600; }
.partner-list { list-style: none; margin: 16px 0; }
.partner-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text-muted);
  font-size: 14px;
}
.partner-list li:last-child { border-bottom: 0; }
.partner-list li::before {
  content: '→';
  color: var(--color-accent);
  margin-right: 8px;
  font-weight: 700;
}

@media (max-width: 1024px) {
  .pd-layout { grid-template-columns: 1fr; }
  .pd-sidebar { display: none; }
  .pd-content { padding: 40px 0 60px 0; }
  .pd-gallery { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .pc-grid { grid-template-columns: 1fr; }
  .pd-gallery { grid-template-columns: 1fr; }
  .pd-info-cards { grid-template-columns: 1fr; }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-content > * { animation: fadeUp 0.8s ease-out backwards; }
.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }
.hero-stats { animation: fadeUp 0.8s ease-out 0.5s backwards; }

/* ============================================
   LANGUAGE SWITCHER (i18n)
   ============================================ */
.lang-switcher { position: relative; display: inline-flex; }
.lang-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 7px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.lang-switcher-btn:hover { border-color: var(--color-accent); color: var(--color-accent); }
.lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  padding: 1px 5px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  letter-spacing: 0.04em;
}
.lang-caret { transition: transform var(--transition); }
.lang-switcher-btn[aria-expanded="true"] .lang-caret { transform: rotate(180deg); }

.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 400;
}
.lang-menu.open { display: block; }
.lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 14px;
  color: var(--color-text);
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition);
}
.lang-item:hover { background: var(--color-accent-light); }
.lang-flag-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  padding: 1px 5px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
  background: var(--color-accent-light);
  color: var(--color-accent);
}
.lang-native { font-weight: 500; }
.lang-check { display: none; margin-left: auto; flex-shrink: 0; }
.lang-item[aria-selected="true"] .lang-check { display: block; }

/* dark top-bar variant */
.top-bar-right .lang-switcher-btn {
  background: transparent;
  border-color: rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.9);
}
.top-bar-right .lang-switcher-btn:hover { border-color: rgba(255,255,255,0.55); color: #fff; }
.top-bar-right .lang-flag,
.top-bar-right .lang-flag-mini {
  background: rgba(255,255,255,0.14);
  color: #fff;
}

/* mobile menu variant (inside <nav>, visible only in the open mobile menu) */
.mobile-lang { display: none; }
@media (max-width: 768px) {
  .header.menu-open .mobile-lang { display: block; padding: 4px 16px 12px; }
  .header.menu-open .mobile-lang .lang-switcher-btn {
    width: 100%;
    justify-content: center;
    padding: 11px 12px;
    font-size: 14px;
    background: var(--color-accent-light);
    border-color: transparent;
    color: var(--color-accent);
  }
  .header.menu-open .mobile-lang .lang-menu { right: auto; left: 0; width: 100%; }
}
