:root {
  --navy-950: #061826;
  --navy-900: #071b2d;
  --navy-800: #0b2740;
  --blue-400: #55c7ff;
  --gold-500: #c99b4f;
  --gold-300: #e5c47d;
  --ink: #132231;
  --muted: #637487;
  --line: #dce4eb;
  --bg: #f6f8fa;
}

html { scroll-padding-top: 105px; }
body { background: #fff; color: var(--ink); }
.container { width: min(1180px, calc(100% - 40px)); }
.section { padding: 84px 0; }
.section-heading { margin-bottom: 42px; }
.section-heading h2 { font-size: clamp(28px, 3vw, 40px); }
.section-heading p { font-size: 16px; }
.centered { max-width: 720px; margin-inline: auto; text-align: center; }
.kicker { margin-bottom: 12px; font-size: 12px; letter-spacing: .16em; }

.btn-light { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.32); backdrop-filter: blur(8px); }
.btn-light:hover { background: rgba(255,255,255,.18); }

/* Hero */
.hero-v2 {
  position: relative;
  min-height: 690px;
  display: flex;
  align-items: flex-end;
  padding: 110px 0 72px;
  color: #fff;
  background-image:
    linear-gradient(rgba(4,16,25,.66), rgba(4,16,25,.66)),
    url("../img/hero-industrial.jpg");
  background-size: cover;
  background-position: center;
}
.hero-v2::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.hero-v2 .container { position: relative; z-index: 1; }
.hero-panel { max-width: 650px; padding: 34px 36px; border: 1px solid rgba(255,255,255,.14); border-radius: 24px; background: rgba(6,24,38,.62); backdrop-filter: blur(10px); box-shadow: 0 24px 80px rgba(0,0,0,.22); }
.hero-v2 .eyebrow { color: var(--gold-300); margin-bottom: 14px; }
.hero-v2 h1 { margin: 0; font-size: clamp(36px, 4.6vw, 58px); line-height: 1.12; letter-spacing: -.045em; }
.hero-v2 .hero-lead { margin: 16px 0 0; color: rgba(255,255,255,.82); font-size: 18px; }
.hero-v2 .hero-actions { margin-top: 28px; }

/* About */
.about-v2 { background: #fff; }
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: center; }
.about-v2 h2 { margin: 0 0 18px; color: var(--navy-900); font-size: clamp(28px,3vw,42px); line-height: 1.2; letter-spacing: -.03em; }
.about-v2 p { margin: 0; color: var(--muted); font-size: 16.5px; }
.value-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.value-tags span { padding: 9px 15px; border-radius: 999px; background: #f1f6f9; border: 1px solid #dce8ef; color: #173b56; font-weight: 700; font-size: 13.5px; }
.about-photo { position: relative; margin: 0; }
.about-photo img { width: 100%; aspect-ratio: 4 / 3.45; object-fit: cover; border-radius: 24px; box-shadow: 0 22px 60px rgba(7,27,45,.16); }
.about-photo figcaption { position: absolute; left: 18px; right: 18px; bottom: 18px; padding: 12px 16px; border-radius: 14px; color: #fff; background: rgba(6,24,38,.78); backdrop-filter: blur(10px); font-size: 14px; font-weight: 700; }

/* Products */
.products-v2 { background: linear-gradient(180deg, var(--navy-900), #0a243a); color: #fff; }
.products-v2 h2 { color: #fff; }
.products-v2 .section-heading p { color: rgba(255,255,255,.68); }
.product-grid-v2 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.product-card-v2 { display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: 0 18px 48px rgba(0,0,0,.18); transition: transform .25s ease, box-shadow .25s ease; }
.product-card-v2:hover { transform: translateY(-6px); box-shadow: 0 26px 70px rgba(0,0,0,.26); }
.product-media { position: relative; height: 230px; margin: 0; background: linear-gradient(135deg,#e9eef2,#d8e2e9); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media .fallback-icon { display: grid; place-items: center; width: 100%; height: 100%; color: var(--navy-800); background: radial-gradient(circle at 50% 35%, #f7fafc, #d9e4ea); }
.product-media .fallback-icon svg { width: 72px; height: 72px; }
.product-body { display: flex; flex-direction: column; flex-grow: 1; padding: 22px; }
.product-body h3 { margin: 0; color: var(--navy-900); font-size: 20px; line-height: 1.32; }
.product-body p { margin: 10px 0 18px; color: var(--muted); font-size: 14px; line-height: 1.6; flex-grow: 1; }
.product-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.product-tags span { padding: 6px 10px; border-radius: 999px; background: #f1f6f9; color: #315069; font-size: 12px; font-weight: 700; }
.product-link { display: inline-flex; align-items: center; gap: 8px; color: #9d6d22; font-size: 14px; font-weight: 800; }
.product-link svg { width: 18px; height: 18px; }

/* Gallery */
.site-projects { background: #f6f8fa; }
.site-gallery { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.site-gallery figure { position: relative; margin: 0; overflow: hidden; border-radius: 22px; background: #dfe7ec; box-shadow: 0 14px 40px rgba(7,27,45,.1); }
.site-gallery img { width: 100%; height: 360px; object-fit: cover; transition: transform .45s ease; }
.site-gallery figure:hover img { transform: scale(1.045); }
.site-gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 42px 18px 16px; color: #fff; font-weight: 750; background: linear-gradient(transparent, rgba(4,16,25,.84)); }

/* Industries */
.industries-v2 { background: #fff; }
.industry-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.industry-grid span { display: grid; place-items: center; min-height: 86px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg,#fff,#f8fbfd); color: var(--navy-900); font-weight: 800; text-align: center; }

/* Quality */
.quality-v2 { background: linear-gradient(135deg,#082135,#0e3351); color: #fff; }
.quality-v2 h2 { color: #fff; }
.quality-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.quality-grid article { padding: 28px 22px; border-radius: 20px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); text-align: center; }
.quality-grid .icon { width: 36px; height: 36px; color: var(--gold-300); margin-bottom: 14px; }
.quality-grid h3 { margin: 0; font-size: 17px; }

/* Services */
.services-v2 { background: #f6f8fa; }
.service-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.service-grid li { padding: 26px 22px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.service-grid span { display: block; color: var(--gold-500); font-weight: 900; font-size: 24px; margin-bottom: 18px; }
.service-grid h3 { margin: 0; color: var(--navy-900); font-size: 18px; }

[dir="rtl"] .product-link .icon { transform: scaleX(-1); }

@media (max-width: 960px) {
  .hero-v2 { min-height: 620px; }
  .about-grid { grid-template-columns: 1fr; gap: 38px; }
  .product-grid-v2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .site-gallery, .industry-grid { grid-template-columns: 1fr; }
  .site-gallery img { height: 420px; }
  .quality-grid, .service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 640px) {
  .section { padding: 66px 0; }
  .hero-v2 { min-height: 590px; padding: 92px 0 46px; align-items: stretch; }
  .hero-panel { padding: 26px 22px; border-radius: 20px; margin-top: auto; }
  .hero-actions .btn { width: 100%; }
  .product-grid-v2, .quality-grid, .service-grid { grid-template-columns: 1fr; }
  .product-media { height: 218px; }
  .site-gallery img { height: 340px; }
}

/* Updated company logo */
.brand { min-width: 0; gap: 12px; align-items: center; }
.brand-logo { display: block; flex: 0 0 auto; width: auto; height: 54px; max-width: 96px; object-fit: contain; }
.brand-text { display: grid; gap: 2px; min-width: 0; }
.brand-text strong {
  display: block;
  color: var(--navy-900);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 850;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.brand-text small {
  display: block;
  color: var(--muted);
  font-size: 8.4px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: .045em;
  white-space: nowrap;
}
.footer-brand { min-width: 260px; }
.footer-logo { display: block; width: auto; height: 58px; max-width: 245px; object-fit: contain; margin-bottom: 6px; }
@media (max-width: 1100px) {
  .brand { gap: 10px; }
  .brand-logo { height: 48px; max-width: 86px; }
  .brand-text strong { font-size: 14.5px; }
  .brand-text small { font-size: 7.6px; letter-spacing: .025em; }
}
@media (max-width: 860px) {
  .brand { gap: 8px; min-width: 0; }
  .brand-logo { height: 40px; max-width: 72px; }
  .brand-text strong { font-size: 13px; }
  .brand-text small { font-size: 6.8px; }
  .footer-brand { min-width: 0; }
  .footer-logo { height: 48px; margin-inline: auto; }
}
@media (max-width: 420px) {
  .brand-logo { height: 36px; max-width: 66px; }
  .brand-text strong { font-size: 12px; }
  .brand-text small { font-size: 6.2px; }
}
/* Equipment and site gallery */
.equipment-gallery-section { background: #f6f8fa; }
.gallery-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: -8px 0 30px; }
.gallery-filters button {
  border: 1px solid #d8e2e9;
  background: #fff;
  color: #23394c;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.gallery-filters button:hover { transform: translateY(-1px); border-color: #9eb6c8; }
.gallery-filters button.is-active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.equipment-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.equipment-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #e1e8ee;
  box-shadow: 0 12px 34px rgba(7,27,45,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.equipment-card:hover { transform: translateY(-5px); box-shadow: 0 20px 52px rgba(7,27,45,.14); }
.equipment-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.equipment-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 42px 16px 14px;
  color: #fff;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.35;
  background: linear-gradient(transparent, rgba(4,16,25,.88));
}
.equipment-card .category-pill {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(6,24,38,.78);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .04em;
  backdrop-filter: blur(8px);
}
[dir="rtl"] .equipment-card figcaption { text-align: right; }
@media (max-width: 960px) {
  .equipment-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .gallery-filters { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; }
  .gallery-filters button { white-space: nowrap; }
  .equipment-grid { grid-template-columns: 1fr; }
}
/* Product image lightbox */
.product-media.is-clickable {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: linear-gradient(135deg,#e9eef2,#d8e2e9);
  cursor: zoom-in;
  overflow: hidden;
}
.product-media.is-clickable img {
  transition: transform .35s ease;
}
.product-media.is-clickable:hover img {
  transform: scale(1.045);
}
.media-hint {
  position: absolute;
  inset-inline-end: 12px;
  bottom: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #fff;
  background: rgba(6,24,38,.82);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 850;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.product-media.is-clickable:hover .media-hint,
.product-media.is-clickable:focus-visible .media-hint {
  opacity: 1;
  transform: translateY(0);
}
.product-media.is-clickable:focus-visible {
  outline: 3px solid rgba(85,199,255,.55);
  outline-offset: -3px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}
.lightbox.is-open { display: flex; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3,10,16,.86);
  backdrop-filter: blur(8px);
}
.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(1080px, 94vw);
  max-height: 88vh;
}
.lightbox-content {
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  background: #0a1d2d;
  box-shadow: 0 30px 100px rgba(0,0,0,.48);
}
.lightbox-content img {
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 16px;
  background: #102438;
}
.lightbox-content figcaption {
  display: grid;
  gap: 4px;
  padding: 14px 6px 2px;
  color: #fff;
}
.lightbox-category {
  color: var(--gold-300);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lightbox-content strong {
  font-size: 18px;
  line-height: 1.35;
}
.lightbox-content small {
  color: rgba(255,255,255,.58);
  font-size: 13px;
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  background: rgba(6,24,38,.76);
  backdrop-filter: blur(10px);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s ease, transform .2s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(20,48,72,.94);
  transform: scale(1.04);
}
.lightbox-close {
  top: -18px;
  inset-inline-end: -18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
}
.lightbox-nav {
  top: 50%;
  width: 52px;
  height: 64px;
  margin-top: -32px;
  border-radius: 18px;
  font-size: 52px;
  line-height: 1;
}
.lightbox-prev { inset-inline-start: -28px; }
.lightbox-next { inset-inline-end: -28px; }
[dir="rtl"] .lightbox-prev,
[dir="rtl"] .lightbox-next { transform: none; }

@media (max-width: 640px) {
  .lightbox { padding: 14px; }
  .lightbox-dialog { width: 100%; }
  .lightbox-content { padding: 10px; border-radius: 18px; }
  .lightbox-content img { max-height: 66vh; border-radius: 12px; }
  .lightbox-close { top: 8px; inset-inline-end: 8px; width: 38px; height: 38px; font-size: 26px; }
  .lightbox-nav { width: 40px; height: 54px; margin-top: -27px; border-radius: 14px; font-size: 42px; }
  .lightbox-prev { inset-inline-start: 6px; }
  .lightbox-next { inset-inline-end: 6px; }
  .media-hint { opacity: 1; transform: translateY(0); font-size: 11px; }
}
/* Segmented trilingual switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid #d8e2e9;
  border-radius: 999px;
  background: #f4f7f9;
  flex: 0 0 auto;
}
.lang-switch button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #526779;
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.lang-switch button:hover {
  color: var(--navy-900);
}
.lang-switch button.is-active {
  background: var(--navy-900);
  color: #fff;
  box-shadow: 0 6px 16px rgba(7,27,45,.18);
}
.lang-switch button[data-lang="ar"] {
  font-size: 13px;
}
@media (max-width: 1100px) {
  .site-nav { gap: 12px; }
  .lang-switch button { padding: 0 8px; }
}
@media (max-width: 860px) {
  .lang-switch {
    width: 100%;
    justify-content: stretch;
    padding: 4px;
  }
  .lang-switch button {
    flex: 1 1 0;
    min-height: 38px;
    font-size: 13px;
  }
}
/* Remove dark top strip and header shadow */
.topbar { display: none; }
.site-header,
.site-header.is-scrolled { box-shadow: none; }
html { scroll-padding-top: 88px; }
@media (max-width: 860px) {
  html { scroll-padding-top: 76px; }
}
/* Plain "Contact" navigation item: remove dark pill background and shadow */
.site-nav > a.nav-cta {
  background: transparent;
  color: var(--navy-900);
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}
.site-nav > a.nav-cta:hover {
  background: transparent;
  color: #0b6f9e;
  transform: none;
}
@media (max-width: 860px) {
  .site-nav > a.nav-cta {
    width: auto;
    margin-top: 0;
    padding: 13px 10px;
    text-align: start;
  }
}
/* Final plain contact navigation link */
.site-nav > a.nav-contact,
.site-nav > a.nav-contact:hover,
.site-nav > a.nav-contact:focus,
.site-nav > a.nav-contact:active {
  background: transparent !important;
  color: var(--navy-900) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  padding: 30px 0 !important;
  transform: none !important;
}
.site-nav > a.nav-contact::after {
  background: var(--gold-500);
}
@media (max-width: 860px) {
  .site-nav > a.nav-contact,
  .site-nav > a.nav-contact:hover,
  .site-nav > a.nav-contact:focus,
  .site-nav > a.nav-contact:active {
    width: auto !important;
    margin-top: 0 !important;
    padding: 13px 10px !important;
    text-align: start !important;
  }
}
/* Final header brand typography size */
.site-header .brand-text strong {
  font-size: 18px;
  line-height: 1.22;
  letter-spacing: -.025em;
}
.site-header .brand-text small {
  font-size: 10px;
  line-height: 1.25;
  letter-spacing: .035em;
}
@media (max-width: 1100px) {
  .site-header .brand-text strong { font-size: 17px; }
  .site-header .brand-text small { font-size: 9.2px; }
}
@media (max-width: 860px) {
  .site-header .brand-text strong { font-size: 15px; }
  .site-header .brand-text small { font-size: 8.2px; }
}
@media (max-width: 420px) {
  .site-header .brand-text strong { font-size: 13.5px; }
  .site-header .brand-text small { font-size: 7.2px; }
}
/* Keep homepage Chinese headline on one line on desktop */
.hero-v2 .hero-panel { max-width: 780px; }
.hero-v2 h1 {
  font-size: clamp(30px, 2.75vw, 40px);
  line-height: 1.15;
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .hero-v2 .hero-panel { max-width: 720px; }
  .hero-v2 h1 { font-size: 34px; }
}
@media (max-width: 860px) {
  .hero-v2 .hero-panel { max-width: 680px; }
  .hero-v2 h1 { font-size: 31px; }
}
@media (max-width: 640px) {
  .hero-v2 .hero-panel { max-width: 100%; }
  .hero-v2 h1 {
    font-size: clamp(27px, 8vw, 34px);
    white-space: normal;
  }
}
