/* ==========================================================================
   SHACMAN Global — replica-style corporate site
   ========================================================================== */
/* Self-contained: no external font CDN, so the site renders identically
   offline and on servers without outbound access. Barlow is used when the
   visitor happens to have it installed; otherwise the system stack applies. */

:root {
  --blue: #0057b8;
  --blue-2: #0a6bd6;
  --blue-dark: #003a7d;
  --navy: #0b1a2b;
  --ink: #172231;
  --muted: #6c7887;
  --line: #e3e8ef;
  --soft: #f4f7fa;
  --white: #fff;
  --shadow: 0 14px 40px rgba(12, 34, 66, .11);
  --shadow-sm: 0 6px 20px rgba(12, 34, 66, .08);
  --font: 'Barlow', 'Segoe UI', 'Helvetica Neue', Arial, 'Microsoft YaHei', sans-serif;
  --font-display: 'Barlow Condensed', 'Arial Narrow', 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; border: 0; background: none; }
ul { list-style: none; }
::selection { background: var(--blue); color: #fff; }

.container { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }
.section { padding: 96px 0; }
.section.soft { background: var(--soft); }
.section.tight { padding: 68px 0; }

/* ---------- typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--blue);
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--blue); }
.eyebrow.light { color: #8fc3ff; }
.eyebrow.light::before { background: #8fc3ff; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: .01em; }
.section-title { font-size: clamp(34px, 4vw, 52px); text-transform: uppercase; margin: 14px 0 12px; }
.section-title.light { color: #fff; }
.section-sub { color: var(--muted); max-width: 720px; font-size: 17px; }
.section-sub.light { color: #b9c9dd; }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.section-head.center .section-sub { margin: 0 auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.section-head.row .section-sub { margin-top: 4px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; font-weight: 700; font-size: 13px;
  letter-spacing: .12em; text-transform: uppercase; border-radius: 2px;
  transition: .25s ease; white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 22px rgba(0, 87, 184, .25); }
.btn-primary:hover { background: var(--blue-2); transform: translateY(-2px); }
.btn-ghost { border: 1px solid rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--blue-dark); }
.btn-outline { border: 1px solid var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-sm { min-height: 38px; padding: 0 18px; font-size: 12px; }
.arrow-link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue);
}
.arrow-link span { transition: transform .25s; }
.arrow-link:hover span { transform: translateX(5px); }

/* ---------- top bar ---------- */
.topbar { background: var(--navy); color: #aab9cb; font-size: 12px; height: 36px; }
.topbar .container { height: 100%; display: flex; align-items: center; justify-content: space-between; position: relative; }
.topbar-left { display: flex; align-items: center; gap: 10px; letter-spacing: .04em; }
.topbar-left .dot { width: 5px; height: 5px; border-radius: 50%; background: #38b6ff; }
.topbar-right { display: flex; align-items: center; gap: 18px; height: 100%; }
.lang-switch { display: flex; align-items: center; gap: 2px; padding: 2px; border-radius: 3px; background: rgba(255,255,255,.09); }
.lang-label { color: #8fa4bb; font-size: 11px; letter-spacing: .03em; white-space: nowrap; margin-right: 4px; }
.lang { padding: 1px 8px; color: #a9bdd3; background: none; font-size: 11px; font-weight: 700; letter-spacing: .03em; line-height: 1.8; border-radius: 2px; white-space: nowrap; }
.lang[lang="ar"] { letter-spacing: 0; font-size: 12px; font-weight: 600; }
.lang:hover { color: #fff; background: rgba(255,255,255,.12); }
.lang.active { color: #fff; background: var(--blue); }
.footer-lang { display: flex; align-items: center; gap: 8px; }
.footer-lang .lang-switch { background: rgba(255,255,255,.07); }
.brand-cn { color: #fff; font-weight: 600; letter-spacing: .07em; }
.brand-latin { color: #7fb6ea; font-size: 11px; letter-spacing: .11em; }
.footer-brand-cn { color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .05em; margin-bottom: 12px; }
.footer-contact a:hover { color: #fff; text-decoration: underline; }
.topbar-sep { width: 1px; height: 14px; background: rgba(255,255,255,.18); }
.topbar-tel { color: #c9d6e5; }
.topbar-tel strong { color: #fff; }
.search-btn { color: #c9d6e5; display: inline-flex; align-items: center; gap: 6px; }
.search-btn:hover { color: #fff; }
.search-btn svg { width: 14px; height: 14px; }
.search-panel {
  position: absolute; right: 0; top: 36px; width: 330px; background: #fff;
  box-shadow: var(--shadow); padding: 14px; display: none; z-index: 60; border-top: 3px solid var(--blue);
}
.search-panel.open { display: block; }
.search-panel form { display: flex; }
.search-panel input { flex: 1; border: 1px solid var(--line); border-right: 0; padding: 10px 12px; outline: none; font-size: 14px; }
.search-panel input:focus { border-color: var(--blue); }
.search-panel button { background: var(--blue); color: #fff; padding: 0 16px; font-size: 12px; font-weight: 700; text-transform: uppercase; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 2px 14px rgba(10,30,60,.07); }
.site-header .container { position: relative; }
.navbar { display: flex; align-items: center; justify-content: space-between; height: 84px; transition: height .25s; }
.site-header.scrolled .navbar { height: 66px; }
.brand { display: flex; align-items: center; }
.brand img { width: 196px; transition: width .25s; }
.site-header.scrolled .brand img { width: 172px; }
.main-nav { display: flex; align-items: center; gap: 4px; height: 100%; }
.main-nav > li { position: relative; height: 100%; display: flex; align-items: center; }
.main-nav > li > a {
  display: flex; align-items: center; gap: 5px; height: 100%; padding: 0 15px;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #2a3746; position: relative; transition: color .2s;
}
.main-nav > li > a::after {
  content: ''; position: absolute; left: 15px; right: 15px; bottom: 20px; height: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.main-nav > li > a:hover, .main-nav > li.active > a { color: var(--blue); }
.main-nav > li > a:hover::after, .main-nav > li.active > a::after { transform: scaleX(1); }
.main-nav .caret { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff;
  box-shadow: var(--shadow); border-top: 3px solid var(--blue); padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: .22s;
}
.main-nav li:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 10px 20px; font-size: 14px; color: #42505f; transition: .18s; }
.dropdown a:hover { background: var(--soft); color: var(--blue); padding-left: 26px; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.menu-toggle { display: none; width: 42px; height: 42px; flex-direction: column; justify-content: center; gap: 5px; }
.menu-toggle span { display: block; height: 2px; width: 24px; background: var(--ink); margin: 0 auto; transition: .25s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; height: min(680px, 78vh); min-height: 520px; background: #061528; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease;
  background-size: cover; background-position: center; transform: scale(1.04);
}
.hero-slide.active { opacity: 1; animation: heroZoom 8s ease forwards; }
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(3,17,38,.88) 0%, rgba(3,17,38,.62) 38%, rgba(3,17,38,.08) 76%),
              linear-gradient(0deg, rgba(3,17,38,.45), transparent 45%);
}
.hero-inner { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
/* Text is visible by default; the entrance animation is only an enhancement.
   This prevents a blank hero in preview panels where CSS animations are frozen. */
.hero-copy { max-width: 680px; color: #fff; opacity: 1; }
.hero-slide.active .hero-copy { animation: copyIn .9s .15s ease; }
@keyframes copyIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-copy h1, .hero-copy h2 { font-size: clamp(44px, 6.2vw, 82px); text-transform: uppercase; line-height: .98; margin: 18px 0 20px; letter-spacing: .005em; }
.hero-copy h1 em, .hero-copy h2 em { color: #6bb8ff; font-style: normal; }
.hero-copy p { font-size: 18px; color: #d5e2f1; max-width: 540px; margin-bottom: 32px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-ui { position: absolute; bottom: 32px; left: 0; right: 0; z-index: 3; }
.hero-ui .container { display: flex; align-items: center; justify-content: space-between; }
.hero-dots { display: flex; gap: 10px; }
.hero-dots button { width: 34px; height: 3px; background: rgba(255,255,255,.4); transition: .3s; }
.hero-dots button.active { background: #fff; width: 54px; }
.hero-arrows { display: flex; gap: 8px; }
.hero-arrows button {
  width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.45); color: #fff;
  display: grid; place-items: center; transition: .2s; font-size: 18px;
}
.hero-arrows button:hover { background: #fff; color: var(--blue-dark); }
.scroll-hint { position: absolute; right: 0; bottom: 96px; z-index: 3; color: rgba(255,255,255,.65); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; writing-mode: vertical-rl; }

/* ---------- quick entry cards ---------- */
.quick-wrap { position: relative; z-index: 4; margin-top: -58px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.quick-card { background: #fff; box-shadow: var(--shadow); transition: .3s; overflow: hidden; }
.quick-card:hover { transform: translateY(-8px); box-shadow: 0 20px 46px rgba(12,34,66,.18); }
.quick-media { height: 150px; overflow: hidden; position: relative; }
.quick-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.quick-card:hover .quick-media img { transform: scale(1.09); }
.quick-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3,25,60,.35), transparent 65%); }
.quick-body { padding: 20px 22px 22px; }
.quick-body h3 { font-size: 22px; text-transform: uppercase; letter-spacing: .04em; }
.quick-body p { color: var(--muted); font-size: 13.5px; min-height: 44px; margin: 8px 0 14px; line-height: 1.5; }
.quick-index { position: absolute; top: 12px; left: 14px; z-index: 2; color: rgba(255,255,255,.85); font: 700 12px var(--font); letter-spacing: .1em; }

/* ---------- series ---------- */
.series-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.series-card { position: relative; height: 330px; overflow: hidden; background: var(--navy); }
.series-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, filter .4s; filter: brightness(.72); }
.series-card:hover img { transform: scale(1.08); filter: brightness(.55); }
.series-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(2,14,32,.92), transparent 62%); }
.series-info { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 22px; color: #fff; }
.series-letter { font: 800 62px/.9 var(--font-display); color: rgba(255,255,255,.28); position: absolute; top: 16px; right: 22px; z-index: 2; }
.series-info h3 { font-size: 27px; text-transform: uppercase; }
.series-info p { font-size: 13px; color: #c8d7e8; margin-top: 4px; }
.series-line { width: 34px; height: 2px; background: #5eb1ff; margin-top: 12px; transition: width .3s; }
.series-card:hover .series-line { width: 64px; }
.cat-strip { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 40px; }
.cat-chip { border: 1px solid var(--line); padding: 10px 20px; font-size: 13px; font-weight: 600; color: #4a586a; background: #fff; transition: .2s; }
.cat-chip:hover { border-color: var(--blue); color: var(--blue); background: #f0f6ff; }
.center-action { text-align: center; margin-top: 40px; }

/* ---------- stats ---------- */
.stats { background: var(--blue-dark) url('../img/dark-texture.jpg') center/cover no-repeat; position: relative; padding: 66px 0; }
.stats::before { content: ''; position: absolute; inset: 0; background: rgba(0,45,105,.86); }
.stats .container { position: relative; }
.stats-head { text-align: center; margin-bottom: 40px; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.stat { text-align: center; color: #fff; border-right: 1px solid rgba(255,255,255,.16); padding: 0 8px; }
.stat:last-child { border-right: 0; }
.stat .num { font: 800 clamp(36px, 4vw, 54px)/1 var(--font-display); letter-spacing: .01em; }
.stat .num .suffix { color: #74bcff; }
.stat .label { font-size: 12.5px; color: #bcd4ee; margin-top: 10px; letter-spacing: .04em; }

/* ---------- R&D ---------- */
.rd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rd-card { background: #fff; border: 1px solid var(--line); transition: .3s; overflow: hidden; }
.rd-card:hover { box-shadow: var(--shadow); transform: translateY(-6px); border-color: transparent; }
.rd-media { height: 210px; overflow: hidden; }
.rd-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.rd-card:hover .rd-media img { transform: scale(1.07); }
.rd-body { padding: 26px; }
.rd-tag { font-size: 11px; font-weight: 700; letter-spacing: .18em; color: var(--blue); }
.rd-body h3 { font-size: 26px; text-transform: uppercase; margin: 8px 0 16px; }
.rd-list li { position: relative; padding-left: 18px; font-size: 14px; color: #4f5d6d; margin-bottom: 10px; line-height: 1.5; }
.rd-list li::before { content: ''; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; background: var(--blue); border-radius: 50%; }
.rd-list li strong { color: var(--ink); }

/* ---------- about split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-media { position: relative; }
.split-media img, .split > .reveal > img { width: 100%; height: 390px; object-fit: cover; box-shadow: var(--shadow); }
.split-photo { width: 100%; height: 300px; object-fit: cover; margin-top: 20px; box-shadow: var(--shadow); }
.split-media .badge {
  position: absolute; right: -26px; bottom: -26px; background: var(--blue); color: #fff;
  padding: 22px 26px; text-align: center; box-shadow: var(--shadow);
}
.split-media .badge b { display: block; font: 800 38px/1 var(--font-display); }
.split-media .badge span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.split-copy h2 { font-size: clamp(34px, 3.6vw, 48px); text-transform: uppercase; margin: 14px 0 18px; }
.split-copy p { color: var(--muted); margin-bottom: 16px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; border-top: 1px solid var(--line); padding-top: 24px; }
.mini-stats b { display: block; font: 800 30px/1 var(--font-display); color: var(--blue); }
.mini-stats span { font-size: 12px; color: var(--muted); }

/* ---------- news ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; transition: .3s; }
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.news-media { height: 210px; overflow: hidden; }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .news-media img { transform: scale(1.07); }
.news-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.news-date { font-size: 12px; font-weight: 700; color: var(--blue); letter-spacing: .08em; }
.news-body h3 { font-size: 21px; line-height: 1.25; margin: 10px 0 12px; }
.news-body p { color: var(--muted); font-size: 14px; flex: 1; }
.news-body .arrow-link { margin-top: 18px; }
.news-extra { display: none; }
.news-card.expanded .news-extra { display: block; margin-top: 12px; font-size: 14px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 12px; }

/* ---------- message / CTA ---------- */
.message-section { background: var(--navy) url('../img/horizon.png') center bottom/cover no-repeat; position: relative; padding: 90px 0; }
.message-section::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(6,22,44,.96), rgba(6,35,76,.82)); }
.message-section .container { position: relative; }
.message-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.message-copy h2 { color: #fff; font-size: clamp(34px, 3.8vw, 50px); text-transform: uppercase; margin: 14px 0 18px; }
.message-copy p { color: #b8c9dd; max-width: 500px; }
.contact-points { margin-top: 28px; display: grid; gap: 12px; }
.contact-points div { display: flex; align-items: center; gap: 12px; color: #dbe7f4; font-size: 14px; }
.contact-points .ic { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.3); display: grid; place-items: center; color: #7cc0ff; flex: none; font-size: 15px; }
.form-card { background: #fff; padding: 34px; box-shadow: var(--shadow); }
.form-card h3 { font-size: 25px; text-transform: uppercase; margin-bottom: 6px; }
.form-card .hint { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; font-weight: 700; color: #48566a; margin-bottom: 6px; letter-spacing: .04em; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); background: #fbfcfe; padding: 11px 13px;
  outline: none; font-size: 14px; color: var(--ink); transition: .2s; border-radius: 2px;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(0,87,184,.08); }
.field textarea { min-height: 108px; resize: vertical; }
.form-card .btn { width: 100%; margin-top: 6px; }
.form-note { font-size: 12px; color: var(--muted); margin-top: 12px; text-align: center; }

/* ---------- page hero ---------- */
.page-hero { height: 330px; position: relative; display: flex; align-items: center; background: var(--navy) center/cover no-repeat; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,19,42,.9), rgba(3,19,42,.5)); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(40px, 5vw, 64px); text-transform: uppercase; margin: 12px 0 10px; }
.page-hero p { color: #c3d4e8; max-width: 640px; }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: #a9c3e0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { color: #6b8db5; }

/* ---------- product catalog ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 36px; }
.filter-btn { border: 1px solid var(--line); background: #fff; padding: 10px 20px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: #52616f; text-transform: uppercase; transition: .2s; }
.filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.filter-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card { background: #fff; border: 1px solid var(--line); overflow: hidden; transition: .3s; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); border-color: transparent; }
.product-media { height: 200px; background: #eef2f6; overflow: hidden; position: relative; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .product-media img { transform: scale(1.06); }
.product-cat { position: absolute; top: 12px; left: 12px; background: rgba(0,87,184,.92); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; }
.product-body { padding: 18px; }
.product-body h3 { font-size: 19px; line-height: 1.25; min-height: 48px; }
.product-body .arrow-link { margin-top: 10px; font-size: 11px; }
.product-empty { text-align: center; padding: 50px; color: var(--muted); grid-column: 1 / -1; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 42px; }
.pagination button { min-width: 38px; height: 38px; border: 1px solid var(--line); color: #52616f; font-size: 13px; font-weight: 600; transition: .2s; }
.pagination button:hover, .pagination button.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4,16,34,.75); }
.modal-box { position: relative; background: #fff; width: min(820px, 100%); max-height: 90vh; overflow: auto; display: grid; grid-template-columns: 1.1fr 1fr; box-shadow: var(--shadow); animation: modalIn .3s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.modal-box img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.modal-content { padding: 34px; }
.modal-content .eyebrow { margin-bottom: 10px; }
.modal-content h3 { font-size: 32px; text-transform: uppercase; margin-bottom: 14px; }
.modal-content p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.spec-list { border-top: 1px solid var(--line); margin-bottom: 24px; }
.spec-list div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.spec-list span { color: var(--muted); }
.modal-close { position: absolute; top: 10px; right: 12px; z-index: 2; width: 34px; height: 34px; background: #fff; color: var(--ink); font-size: 20px; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.modal-close:hover { background: var(--blue); color: #fff; }

/* ---------- generic content blocks ---------- */
.prose h2 { font-size: 34px; text-transform: uppercase; margin: 12px 0 14px; }
.prose p { color: var(--muted); margin-bottom: 16px; }
.prose .lead { font-size: 18px; color: #3d4c5e; }
.block-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.block-grid.two { grid-template-columns: repeat(2, 1fr); }
.block-grid.four { grid-template-columns: repeat(4, 1fr); }
.info-card { background: #fff; padding: 30px; border-top: 3px solid var(--blue); box-shadow: var(--shadow-sm); }
.info-card .ic { font: 800 34px/1 var(--font-display); color: var(--blue); margin-bottom: 12px; }
.info-card h3 { font-size: 23px; text-transform: uppercase; margin-bottom: 10px; }
.info-card p { color: var(--muted); font-size: 14px; }
.info-card ul { margin-top: 12px; }
.info-card ul li { position: relative; padding-left: 16px; font-size: 13.5px; color: var(--muted); margin-bottom: 7px; }
.info-card ul li::before { content: '•'; position: absolute; left: 0; color: var(--blue); }
.image-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.image-row img { width: 100%; height: 220px; object-fit: cover; }
.timeline { border-left: 2px solid var(--line); margin-left: 12px; padding-left: 30px; }
.timeline-item { position: relative; padding-bottom: 30px; }
.timeline-item::before { content: ''; position: absolute; left: -37px; top: 6px; width: 12px; height: 12px; background: var(--blue); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--blue); border-radius: 50%; }
.timeline-item b { color: var(--blue); font: 800 22px var(--font-display); }
.timeline-item h3 { font-size: 22px; text-transform: uppercase; margin: 4px 0 6px; }
.timeline-item p { color: var(--muted); font-size: 14px; }
.number-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.number-band > div { padding: 30px 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #fff; }
.number-band b { display: block; font: 800 48px/1 var(--font-display); color: #75bdff; }
.number-band span { font-size: 13px; color: #c4d6ea; }

/* ---------- footer ---------- */
.site-footer { background: #081624; color: #9fb0c3; padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 54px; }
.footer-brand img { width: 190px; filter: brightness(0) invert(1); opacity: .95; margin-bottom: 20px; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 19px; text-transform: uppercase; margin-bottom: 20px; letter-spacing: .06em; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; transition: .2s; }
.footer-col a:hover { color: #fff; padding-left: 5px; }
.footer-contact li { display: flex; gap: 10px; font-size: 14px; line-height: 1.5; margin-bottom: 14px; }
.footer-contact .ic { color: #6bb8ff; flex: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: 12.5px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom a:hover { color: #fff; }

/* ---------- floating widgets ---------- */
.floaters { position: fixed; right: 18px; bottom: 22px; z-index: 40; display: grid; gap: 10px; }
.floater { width: 48px; height: 48px; display: grid; place-items: center; background: var(--blue); color: #fff; box-shadow: var(--shadow); font-size: 20px; transition: .2s; border-radius: 50%; }
.floater:hover { background: var(--blue-dark); transform: translateY(-3px); }
.floater.top { background: #22354a; opacity: 0; visibility: hidden; }
.floater.top.show { opacity: 1; visibility: visible; }
.floater.whatsapp { background: #1eae5b; font-size: 13px; font-weight: 800; letter-spacing: -.04em; }
.toast { position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 13px 24px; font-size: 14px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: .3s; z-index: 200; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- reveal ---------- */
.reveal { opacity: 1; }
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .main-nav > li > a { padding: 0 10px; font-size: 12px; }
  .brand img { width: 168px; }
  .nav-actions .btn { display: none; }
  .quick-grid, .series-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .topbar-left, .topbar-tel { display: none; }
  .topbar-right { margin-left: auto; }
  .menu-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; height: auto; display: none;
    flex-direction: column; align-items: stretch; background: #fff; box-shadow: var(--shadow); padding: 10px 0 20px;
  }
  .main-nav.open { display: flex; }
  .main-nav > li { height: auto; display: block; }
  .main-nav > li > a { height: auto; padding: 13px 24px; justify-content: space-between; }
  .main-nav > li > a::after { display: none; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: 0; padding: 0 0 8px 20px; display: none; }
  .main-nav > li.mobile-open .dropdown { display: block; }
  .dropdown a { padding: 8px 24px; }
  .hero { height: 600px; }
  .split, .message-grid, .modal-box { grid-template-columns: 1fr; }
  .split-media .badge { right: 14px; bottom: -18px; }
  .split-media img, .split > .reveal > img { height: 320px; }
  .split-photo { height: 240px; }
  .message-grid { gap: 36px; }
  .rd-grid, .news-grid, .block-grid, .block-grid.four, .image-row { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 28px 10px; }
  .stat:nth-child(3) { border-right: 0; }
  .form-card { max-width: 620px; }
}
@media (max-width: 620px) {
  .container { width: min(100% - 32px, 1240px); }
  .section { padding: 64px 0; }
  .section-head.row { flex-direction: column; align-items: flex-start; }
  .hero { height: 560px; min-height: 500px; }
  .hero-slide::after {
    background: linear-gradient(0deg, rgba(3,17,38,.9), rgba(3,17,38,.45) 65%),
                linear-gradient(90deg, rgba(3,17,38,.8), rgba(3,17,38,.22));
  }
  .hero-copy h1, .hero-copy h2 { font-size: 44px; }
  .hero-copy p { font-size: 15px; }
  .scroll-hint { display: none; }
  .quick-wrap { margin-top: -30px; }
  .quick-grid, .series-grid, .product-grid, .rd-grid, .news-grid, .block-grid, .block-grid.two, .block-grid.four, .image-row, .number-band, .stats-grid { grid-template-columns: 1fr; }
  .stats-grid { gap: 22px; }
  .stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.15); padding-bottom: 18px; }
  .stat:last-child { border-bottom: 0; }
  .quick-media { height: 170px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .page-hero { height: 260px; }
  .modal-box { max-height: 86vh; }
  .modal-box img { height: 220px; min-height: 0; }
  .form-card { padding: 24px; }
  .split-media img, .split > .reveal > img { height: 240px; }
  .split-photo { height: 200px; }
  .floaters { right: 12px; bottom: 14px; }
  .floater { width: 42px; height: 42px; }
}

/* ---------- Arabic RTL ---------- */
html[lang="ar"] body { font-family: Tahoma, 'Segoe UI', Arial, sans-serif; }
html[dir="rtl"] .lang-switch { direction: ltr; }
html[dir="rtl"] .brand-latin,
html[dir="rtl"] .topbar-tel,
html[dir="rtl"] .footer-contact a,
html[dir="rtl"] .stat b,
html[dir="rtl"] .number-band b { direction: ltr; unicode-bidi: embed; display: inline-block; }
html[dir="rtl"] .main-nav .caret { transform: rotate(-135deg) translateY(-2px); }
html[dir="rtl"] .dropdown a:hover { padding-left: 18px; padding-right: 26px; }
html[dir="rtl"] .rd-list li { padding-left: 0; padding-right: 18px; }
html[dir="rtl"] .rd-list li::before { left: auto; right: 0; }
html[dir="rtl"] .info-card ul li { padding-left: 0; padding-right: 16px; }
html[dir="rtl"] .info-card ul li::before { left: auto; right: 0; }
html[dir="rtl"] .timeline { border-left: 0; border-right: 2px solid var(--line); margin-left: 0; margin-right: 12px; padding-left: 0; padding-right: 30px; }
html[dir="rtl"] .timeline-item::before { left: auto; right: -37px; }
html[dir="rtl"] .footer-col a:hover { padding-left: 0; padding-right: 5px; }
html[dir="rtl"] .split-media .badge { right: auto; left: -28px; }
html[dir="rtl"] .modal-close { right: auto; left: 12px; }
html[dir="rtl"] .floaters { right: auto; left: 18px; }
html[dir="rtl"] .arrow-link span,
html[dir="rtl"] .breadcrumb .sep,
html[dir="rtl"] .hero-arrows button,
html[dir="rtl"] .pagination button { display: inline-block; transform: scaleX(-1); }
html[dir="rtl"] .arrow-link:hover span { transform: scaleX(-1) translateX(5px); }
html[dir="rtl"] .search-panel { right: auto; left: 0; }
html[dir="rtl"] .search-panel input { border-right: 1px solid var(--line); border-left: 0; }
html[dir="rtl"] .page-hero::before { background: linear-gradient(270deg, rgba(3,19,42,.9), rgba(3,19,42,.5)); }
html[dir="rtl"] .message-section::before { background: linear-gradient(260deg, rgba(6,22,44,.96), rgba(6,35,76,.82)); }
html[dir="rtl"] .toast { direction: rtl; }
