/* ===== IceSource — B2B export site, minimalist & professional ===== */
:root {
  --navy: #0b2447;
  --navy-soft: #143a6b;
  --ink: #1b2733;
  --muted: #5b708a;
  --line: #dbe6f2;
  --bg: #ffffff;
  --bg-soft: #f3f7fc;
  --bg-deep: #071a33;
  --accent: #2f86ff;
  --accent-deep: #0b5fcf;
  --steel: #1f7ae0;
  --ok: #1f9d6b;
  --danger: #c0392b;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(11,36,71,.10);
  --shadow-sm: 0 4px 14px rgba(11,36,71,.07);
  --maxw: 1180px;
  --header-h: 68px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.65; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; color: var(--navy); }
h1 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.12; }
h2 { font-size: clamp(24px, 3vw, 36px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; color: var(--muted); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section.soft { background: var(--bg-soft); }
.eyebrow { display: inline-block; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-deep); font-weight: 700; margin-bottom: 14px; }
.lead { font-size: 18px; max-width: 720px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: .2s; white-space: nowrap; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-soft); transform: translateY(-1px); }
.btn-gold { background: var(--accent); color: #fff; }
.btn-gold:hover { background: var(--accent-deep); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-ghost:hover { border-color: var(--navy); }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--navy); font-size: 18px; }
.brand .logo { width: 38px; height: 38px; border-radius: 9px; flex: none; object-fit: cover; display: block; }
.brand small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { padding: 9px 14px; border-radius: 999px; color: var(--ink); font-size: 15px; font-weight: 500; transition: .18s; }
.nav-links a:hover { background: var(--bg-soft); color: var(--navy); }
.nav-links a.active { background: var(--navy); color: #fff; }
.nav-right { display: flex; align-items: center; gap: 12px; }

/* Language dropdown */
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--muted); }
.lang-btn:hover { border-color: var(--navy); color: var(--navy); }
.lang-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 150px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: none; z-index: 60; }
.lang-menu.open { display: block; }
.lang-menu button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 9px 12px; border-radius: 8px; font-size: 14px; cursor: pointer; color: var(--ink); }
.lang-menu button:hover { background: var(--bg-soft); }
.lang-menu button.on { color: var(--accent-deep); font-weight: 700; }
.menu-btn { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--navy); }

/* ---------- Hero + Carousel ---------- */
.hero { position: relative; background: var(--bg-deep); color: #fff; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 420px at 80% -10%, rgba(47,134,255,.45), transparent 60%), radial-gradient(720px 520px at 8% 115%, rgba(31,122,224,.30), transparent 55%); }
.carousel { position: absolute; inset: 0; z-index: 0; }
.carousel .slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s ease; }
.carousel .slide.active { opacity: .42; }
.carousel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,26,51,.55), rgba(7,26,51,.78)); }
.hero .container { position: relative; z-index: 2; padding: 96px 24px 104px; }
.hero .slogan { display: inline-block; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: #9fd0ff; border: 1px solid rgba(159,208,255,.4); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { color: #fff; }
.hero .lead { color: #c6d2e6; max-width: 640px; }
.hero .actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); background: transparent; }
.hero .btn-ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.hero-stats { display: flex; gap: 42px; margin-top: 54px; flex-wrap: wrap; }
.hero-stats .num { font-size: 34px; font-weight: 800; color: #fff; }
.hero-stats .lbl { font-size: 13px; color: #9fb1cb; letter-spacing: .04em; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #d4dbe6; }
.card .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-soft); color: var(--steel); font-size: 22px; margin-bottom: 16px; }
.card h3 { margin-bottom: 8px; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Category cards */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cat-card { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 200px; display: flex; align-items: flex-end; color: #fff; padding: 22px; box-shadow: var(--shadow-sm); transition: .2s; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-card .cat-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.cat-card .ov { position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(11,36,71,.15), rgba(7,26,51,.82)); }
.cat-card .ct { position: relative; z-index: 3; }
.cat-card h3 { color: #fff; margin: 0 0 4px; }
.cat-card span { font-size: 13px; color: #cfe0fb; }

/* Testimonials */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.testi .q { font-size: 16px; color: var(--ink); flex: 1; }
.testi .who { margin-top: 18px; font-weight: 700; color: var(--navy); }
.testi .co { font-size: 13px; color: var(--muted); }
.testi .stars { color: #f5a623; margin-bottom: 10px; letter-spacing: 2px; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--navy), var(--steel)); color: #fff; border-radius: var(--radius); padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 8px; }
.cta-band p { color: #d3e2f7; margin: 0; max-width: 560px; }

/* ---------- Products ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-bar button { padding: 9px 18px; border: 1px solid var(--line); background: #fff; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--muted); transition: .15s; }
.filter-bar button:hover { border-color: var(--navy); color: var(--navy); }
.filter-bar button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.prod-cat { margin-bottom: 48px; }
.prod-cat:last-child { margin-bottom: 0; }
.sub-h { font-size: 21px; margin: 0 0 22px; padding-left: 12px; border-left: 4px solid var(--steel); }
.catalog { margin-top: 4px; }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: .2s; cursor: pointer; }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #d4dbe6; }
.pcard .pgallery { display: flex; gap: 4px; background: var(--bg-soft); }
.pcard .pgallery img { flex: 1 1 0; width: 100%; height: 200px; object-fit: cover; }
.pcard .body { padding: 20px; }
.pcard .body h3 { margin: 0 0 8px; font-size: 17px; }
.pcard .body p { font-size: 14px; margin: 0 0 12px; }
.pcard .chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--navy); border: 1px solid var(--line); }
.chip-soft { background: #eaf2ff; color: var(--steel); border-color: #cfe0fb; }
.pcard .pfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* Product detail modal */
.pm-back { position: fixed; inset: 0; background: rgba(7,26,51,.62); display: none; align-items: center; justify-content: center; z-index: 120; padding: 20px; }
.pm-back.show { display: flex; }
.pm-modal { position: relative; background: #fff; border-radius: var(--radius); width: 100%; max-width: 900px; max-height: 90vh; overflow: hidden; box-shadow: var(--shadow); animation: pop .2s ease; }
.pm-grid { display: grid; grid-template-columns: 1fr 1fr; }
.pm-gallery { background: var(--bg-soft); display: flex; flex-direction: column; gap: 6px; padding: 16px; }
.pm-gallery img { width: 100%; border-radius: 10px; object-fit: cover; max-height: 360px; }
.pm-body { padding: 28px 30px; overflow-y: auto; max-height: 90vh; }
.pm-body h2 { margin: 6px 0 14px; font-size: clamp(22px, 2.4vw, 30px); }
.pm-body p { margin-bottom: 18px; }
.pm-sub { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep); margin: 18px 0 10px; }
.pm-spec { list-style: none; padding: 0; margin: 0 0 6px; }
.pm-spec li { padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; color: var(--ink); }
.pm-spec li:before { content: "•"; color: var(--accent); margin-right: 10px; font-weight: 800; }
.modal-close { position: absolute; top: 14px; right: 16px; font-size: 24px; cursor: pointer; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 50%; width: 34px; height: 34px; display: grid; place-items: center; z-index: 3; }
.modal-close:hover { color: var(--navy); }
@keyframes pop { from { transform: translateY(12px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- About ---------- */
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline li { position: relative; padding: 0 0 26px 28px; border-left: 2px solid var(--line); }
.timeline li:last-child { border-left: 0; padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.timeline .y { font-weight: 800; color: var(--navy); }
.timeline .d { font-size: 14px; color: var(--muted); }
.fac-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.fac-grid img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius-sm); }
.qc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.qc-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.qc-step .n { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; margin-bottom: 12px; }
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cert { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; }
.cert .badge { font-size: 30px; margin-bottom: 10px; }
.oem-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 20px; }
.oem-grid .o { display: flex; gap: 12px; align-items: flex-start; }
.oem-grid .o .dot { color: var(--accent-deep); font-weight: 800; }
.num-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.num-grid .num { font-size: 32px; font-weight: 800; color: var(--navy); }
.num-grid .lbl { font-size: 14px; color: var(--muted); }
.app-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-list .ico { width: 42px; height: 42px; border-radius: 11px; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 18px; flex: none; }
.info-list .k { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.info-list .v { font-weight: 600; color: var(--navy); }
.info-list a.v:hover { color: var(--steel); }
.map-box { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-top: 20px; }
.map-box iframe { width: 100%; height: 260px; border: 0; display: block; }
.chat-fab { position: fixed; bottom: 24px; left: 24px; z-index: 90; display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; padding: 12px 18px; border-radius: 999px; box-shadow: var(--shadow); font-weight: 600; cursor: pointer; border: 0; }
.chat-fab:hover { background: var(--accent-deep); }
.reply-pill { display: inline-flex; align-items: center; gap: 8px; background: #e8f6ef; color: var(--ok); border: 1px solid #c7ead8; border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 14px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 15px; font-family: inherit; background: #fff; color: var(--ink); transition: .15s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--steel); box-shadow: 0 0 0 3px rgba(47,109,181,.12); }
.field textarea { min-height: 130px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 6px; }
.alert { padding: 11px 14px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 14px; display: none; }
.alert.show { display: block; }
.alert-ok { background: #e8f6ef; color: var(--ok); border: 1px solid #c7ead8; }
.alert-err { background: #fdecea; color: var(--danger); border: 1px solid #f5c6c0; }

/* ---------- Cookie banner ---------- */
.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 110; background: rgba(7,26,51,.96); color: #fff; padding: 16px 0; display: none; }
.cookie.show { display: block; }
.cookie .container { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cookie p { margin: 0; color: #c6d2e6; font-size: 14px; flex: 1; min-width: 240px; }
.cookie a { color: #9fd0ff; text-decoration: underline; }
.cookie .acts { display: flex; gap: 10px; }

/* ---------- Footer (light, 3-column) ---------- */
.site-footer { background: var(--bg-soft); color: var(--muted); padding: 56px 0 40px; border-top: 1px solid var(--line); }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--navy); }
.footer-cols { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 56px; }
.footer-col { flex: 1.6 1 280px; display: flex; flex-direction: column; }
.footer-brand { color: var(--navy); font-weight: 800; font-size: 20px; margin-bottom: 14px; }
.footer-tag { color: var(--muted); font-size: 14px; line-height: 1.75; max-width: 380px; margin: 0 0 18px; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-contact a { font-size: 14px; }
.footer-nav { flex: 1 1 160px; display: flex; flex-direction: column; gap: 16px; }
.footer-nav a { color: var(--muted); font-size: 15px; }
.footer-nav a:hover { color: var(--navy); }
.footer-legal { font-size: 13px; color: #7e8aa0; display: flex; flex-direction: column; gap: 10px; line-height: 1.75; margin-top: 18px; }
.footer-legal a { color: inherit; }
.footer-legal a:hover { color: var(--navy); }
.footer-contact-col { flex: 1.6 1 240px; display: flex; flex-direction: column; }

/* ---------- Misc ---------- */
.breadcrumb { font-size: 13px; color: var(--muted); padding: 18px 0; }
.breadcrumb a:hover { color: var(--steel); }
.page-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 48px 0; }
.page-hero h1 { font-size: clamp(28px, 3.4vw, 40px); }
.legal { max-width: 820px; }
.legal p { font-size: 15px; }
.admin-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.admin-login { max-width: 380px; margin: 0 auto; }
.admin-stat { display: flex; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; }
.admin-stat .big { font-size: 26px; font-weight: 800; color: var(--navy); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .cat-grid, .testi-grid, .pgrid { grid-template-columns: repeat(2, 1fr); }
  .qc-grid, .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { gap: 32px; }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav-links { position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 18px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .cat-grid, .testi-grid, .pgrid, .qc-grid, .cert-grid, .oem-grid, .num-grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-cols { flex-direction: column; gap: 24px; }
  .section { padding: 60px 0; }
  .hero .container { padding: 70px 24px 76px; }
  .hero-stats { gap: 28px; }
  .pm-grid { grid-template-columns: 1fr; }
  .pm-gallery img { max-height: 220px; }
  .row-2 { grid-template-columns: 1fr; }
  .cta-band { padding: 32px; }
}

/* ---------- RTL (Arabic) ---------- */
html[dir="rtl"] body { direction: rtl; text-align: right; }
html[dir="rtl"] .nav { flex-direction: row-reverse; }
html[dir="rtl"] .nav-links { flex-direction: row-reverse; }
html[dir="rtl"] .lang-menu { right: auto; left: 0; }
html[dir="rtl"] .sub-h { padding-left: 0; padding-right: 12px; border-left: 0; border-right: 4px solid var(--steel); }
html[dir="rtl"] .breadcrumb a, html[dir="rtl"] .footer-cols { direction: rtl; }
html[dir="rtl"] .timeline li { padding: 0 28px 26px 0; border-left: 0; border-right: 2px solid var(--line); }
html[dir="rtl"] .timeline li::before { left: auto; right: -7px; }
html[dir="rtl"] .cta-band { flex-direction: row-reverse; text-align: right; }
html[dir="rtl"] .info-list li, html[dir="rtl"] .oem-grid .o, html[dir="rtl"] .admin-stat { flex-direction: row-reverse; text-align: right; }
html[dir="rtl"] .chat-fab { left: auto; right: 24px; }
