/* ============================================================
   MOVANT — B2B Industrial Equipment Website
   Color: Deep navy / steel blue / gray / white
   ============================================================ */
:root {
  --navy: #0F2E5C;
  --navy-dark: #0a2244;
  --navy-light: #1a4480;
  --accent: #2E6FB7;
  --accent-bright: #3b82c4;
  --steel: #5b7089;
  --bg: #f4f6f9;
  --bg-soft: #eef2f7;
  --card-border: #e2e8f0;
  --text: #1f2937;
  --text-muted: #5b6b7c;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(15, 46, 92, 0.06);
  --shadow-md: 0 6px 18px rgba(15, 46, 92, 0.10);
  --shadow-hover: 0 14px 32px rgba(15, 46, 92, 0.16);
  --radius: 10px;
  --maxw: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-dark);
  color: #c9d6e8;
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 34px;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { color: #e6eef8; }
.topbar .topbar-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  width: 42px; height: 42px;
  background: var(--navy);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 18px; letter-spacing: 1px;
}
.brand-name { font-size: 22px; font-weight: 800; color: var(--navy); letter-spacing: 0.5px; }
.brand-name span { color: var(--accent); }
.brand-tag { font-size: 11px; color: var(--text-muted); letter-spacing: 1.5px; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.main-nav a:hover { color: var(--accent); background: var(--bg-soft); }
.main-nav a.active { color: var(--navy); font-weight: 700; }

/* Language switch */
.lang-switch { display: flex; align-items: center; gap: 4px; margin-left: 10px; }
.lang-switch button {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  padding: 5px 9px;
  font-size: 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.lang-switch button:hover { border-color: var(--accent); color: var(--accent); }
.lang-switch button.active { background: var(--navy); border-color: var(--navy); color: #fff; }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 90px);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: 42px; line-height: 1.15; margin-bottom: 18px; font-weight: 800; max-width: 760px; }
.hero p { font-size: 18px; color: #cddbee; max-width: 680px; margin-bottom: 30px; }
.hero-badges { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-badge {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 8px 16px; border-radius: 30px; font-size: 13px; color: #eaf2fb;
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  transition: all .15s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn-primary { background: #fff; color: var(--navy); }
.btn-primary:hover { background: #eaf2fb; transform: translateY(-1px); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.55); margin-left: 12px; }
.btn-outline:hover { background: rgba(255,255,255,0.12); }

/* ---------- Section ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--white); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .eyebrow {
  color: var(--accent); font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; font-size: 13px; margin-bottom: 10px; display: block;
}
.section-head h2 { font-size: 32px; color: var(--navy); margin-bottom: 14px; font-weight: 800; }
.section-head p { color: var(--text-muted); font-size: 16px; }

/* ---------- Category cards (home) ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.cat-card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s;
  display: flex; flex-direction: column;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.cat-media {
  height: 220px;
  background: linear-gradient(135deg, #163a6e, #24568f);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.92);
}
.cat-body { padding: 28px; }
.cat-body h3 { font-size: 22px; color: var(--navy); margin-bottom: 10px; }
.cat-body p { color: var(--text-muted); font-size: 15px; margin-bottom: 16px; }
.cat-link { color: var(--accent); font-weight: 600; font-size: 14px; }
.cat-link:hover { text-decoration: underline; }

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.product-media {
  background: #fff;
  border-bottom: 1px solid var(--card-border);
  height: 230px;
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
}
.product-media img {
  max-height: 100%; max-width: 100%;
  object-fit: contain;
}
.product-placeholder {
  width: 100%; height: 100%;
  background: #eef2f7;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: #9fb0c4;
}
.product-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.product-body h3 { font-size: 16.5px; color: var(--navy); margin-bottom: 8px; font-weight: 700; line-height: 1.35; }
.product-body p { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; flex: 1; }

/* ---------- Stats / about ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 40px; }
.stat-box { text-align: center; padding: 24px 12px; background: var(--white); border: 1px solid var(--card-border); border-radius: var(--radius); }
.stat-box .num { font-size: 34px; font-weight: 800; color: var(--navy); }
.stat-box .lbl { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.about-cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.about-cols p { color: var(--text-muted); margin-bottom: 14px; font-size: 15.5px; }
.about-feats { list-style: none; }
.about-feats li {
  padding: 10px 0 10px 30px; position: relative; color: var(--text); font-size: 15px;
  border-bottom: 1px dashed var(--card-border);
}
.about-feats li::before {
  content: ""; position: absolute; left: 0; top: 16px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--navy);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2l-3.5-3.5L4 14.2 9 19.2 20 8.2 18.6 6.8z'/%3E%3C/svg%3E") center/14px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2l-3.5-3.5L4 14.2 9 19.2 20 8.2 18.6 6.8z'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* ---------- Applications ---------- */
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.app-item {
  background: var(--white); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 26px 20px; text-align: center;
}
.app-item .app-icon { color: var(--accent); margin-bottom: 12px; }
.app-item h4 { font-size: 15px; color: var(--navy); font-weight: 600; }

/* ---------- CTA ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: #fff; text-align: center; padding: 60px 0;
}
.cta-band h2 { font-size: 30px; margin-bottom: 12px; }
.cta-band p { color: #cddbee; margin-bottom: 26px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #b8c7dc;
  padding: 56px 0 0;
  font-size: 14px;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 36px; padding-bottom: 40px; }
.footer-grid h5 { color: #fff; font-size: 15px; margin-bottom: 16px; font-weight: 700; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a:hover { color: #fff; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { margin-top: 12px; color: #9fb4cf; max-width: 320px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .fi { color: var(--accent-bright); flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding: 18px 0; text-align: center; color: #8aa0bd; font-size: 13px;
}

/* ---------- Breadcrumb ---------- */
.crumb {
  background: var(--bg-soft);
  padding: 14px 0; font-size: 13.5px; color: var(--text-muted);
}
.crumb a { color: var(--accent); }
.crumb a:hover { text-decoration: underline; }

/* ---------- RTL ---------- */
[dir="rtl"] body { font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans Arabic", "Tahoma", sans-serif; }
[dir="rtl"] .topbar .container,
[dir="rtl"] .about-feats li::before,
[dir="rtl"] .footer-contact li { text-align: right; }
[dir="rtl"] .about-feats li { padding-left: 0; padding-right: 30px; }
[dir="rtl"] .about-feats li::before { left: auto; right: 0; }
[dir="rtl"] .footer-contact .fi { margin-left: 10px; margin-right: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .about-cols { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--white); flex-direction: column; align-items: stretch;
    padding: 12px 24px; border-bottom: 1px solid var(--card-border);
    display: none; box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px; }
  .lang-switch { margin: 8px 0 0; justify-content: flex-start; }
  .cat-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .topbar .topbar-right { display: none; }
  .btn-outline { margin-left: 0; margin-top: 12px; }
}
