/* ============================================================
   PETROMIN IRAQ — International United Company for Oil Services
   Design system: bold & bright, classic-modern, bilingual RTL/LTR
   ============================================================ */
:root {
  --red: #E1251B;
  --red-dark: #B5160F;
  --orange: #F7941D;
  --orange-light: #FFB85C;
  --navy: #0F1B3D;
  --navy-2: #1A2B5F;
  --ink: #1B1F2A;
  --muted: #5B6273;
  --line: #E6E1DA;
  --cream: #FBF7F1;
  --card: #FFFFFF;
  --bg: var(--cream);
  --shadow: 0 10px 30px rgba(15, 27, 61, .10);
  --shadow-lg: 0 24px 60px rgba(15, 27, 61, .18);
  --radius: 18px;
  --radius-sm: 12px;
  --font-ar: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  --font-en: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --grad-brand: linear-gradient(135deg, var(--red) 0%, #F0541E 55%, var(--orange) 100%);
  --grad-navy: linear-gradient(135deg, #0F1B3D 0%, #1F3270 100%);
  --wa: #25D366;
  --max: 1200px;
  --header-h: 84px;
}
[data-theme="dark"] {
  --ink: #F1F3F8;
  --muted: #A6ADBF;
  --line: #2A3352;
  --cream: #0B1226;
  --card: #141D3A;
  --bg: #0B1226;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-ar); line-height: 1.7; font-size: 16px;
  transition: background .3s, color .3s;
}
html[lang="en"] body { font-family: var(--font-en); }
html[lang="en"] { direction: ltr; }
html[lang="ar"] { direction: rtl; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .eyebrow { display: inline-block; background: rgba(225, 37, 27, .1); color: var(--red); font-weight: 800; padding: 6px 16px; border-radius: 999px; font-size: .85rem; letter-spacing: .5px; margin-bottom: 14px; }
[data-theme="dark"] .section-head .eyebrow { background: rgba(247, 148, 29, .15); color: var(--orange); }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.lang-ar, .lang-en { display: none; }
html[lang="ar"] .lang-ar { display: initial; }
html[lang="en"] .lang-en { display: initial; }
html[lang="ar"] .lang-ar.block, html[lang="en"] .lang-en.block { display: block; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font-weight: 800; border: 2px solid transparent; transition: transform .2s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--grad-brand); color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
[data-theme="dark"] .btn-dark { background: #fff; color: var(--navy); }
.btn-outline { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--card) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.header.scrolled { box-shadow: var(--shadow); }
.header-inner { direction: ltr; display: grid; grid-template-columns: auto 1fr auto; align-items: center; min-height: var(--header-h); gap: 20px; }
.brand { display: flex; align-items: center; }
.brand img { height: 46px; width: auto; }
.brand-ar img { height: 52px; }
.nav { display: flex; justify-content: center; align-items: center; gap: 6px; }
html[lang="ar"] .nav { direction: rtl; }
.nav a { padding: 10px 16px; border-radius: 999px; font-weight: 700; color: var(--ink); position: relative; transition: background .2s, color .2s; }
.nav a:hover, .nav a.active { background: rgba(225, 37, 27, .1); color: var(--red); }
[data-theme="dark"] .nav a:hover, [data-theme="dark"] .nav a.active { background: rgba(247, 148, 29, .15); color: var(--orange); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; transition: background .2s, transform .2s; }
.icon-btn:hover { background: rgba(225, 37, 27, .1); transform: translateY(-1px); }
.icon-btn svg { width: 20px; height: 20px; }
.lang-toggle { height: 42px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--navy); background: var(--navy); color: #fff; font-weight: 800; letter-spacing: .5px; }
[data-theme="dark"] .lang-toggle { background: var(--orange); border-color: var(--orange); color: var(--navy); }
.burger { display: none; }
.mobile-nav { display: none; }
@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .brand img { height: 34px; }
  .brand-ar img { height: 38px; }
  .nav { display: none; }
  .burger { display: inline-flex; }
  .mobile-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); z-index: 99; padding: 24px; display: flex; flex-direction: column; gap: 8px; transform: translateY(-110%); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .35s, opacity .35s, visibility 0s .35s; overflow: auto; }
  .mobile-nav.open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition: transform .35s, opacity .35s, visibility 0s; }
  .mobile-nav a { padding: 16px 20px; border-radius: var(--radius-sm); background: var(--card); font-weight: 800; font-size: 1.1rem; border: 1px solid var(--line); }
  .mobile-nav a.active { background: var(--grad-brand); color: #fff; border-color: transparent; }
}
@media (max-width: 520px) { .brand img { height: 28px; } .brand-ar img { height: 32px; } .header-inner { gap: 10px; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--grad-navy); color: #fff; }
.hero::before { content: ""; position: absolute; inset: -20% -10%; background: radial-gradient(circle at 20% 30%, rgba(247, 148, 29, .35), transparent 40%), radial-gradient(circle at 80% 70%, rgba(225, 37, 27, .45), transparent 45%); animation: float 14s ease-in-out infinite alternate; }
@keyframes float { to { transform: translate3d(3%, -4%, 0) scale(1.05); } }
.hero .stripes { position: absolute; inset-inline-end: -6%; top: -12%; width: 46%; height: 130%; background: repeating-linear-gradient(-28deg, transparent 0 34px, rgba(255, 255, 255, .05) 34px 44px); transform: skewX(-12deg); pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; min-height: calc(100vh - var(--header-h)); max-height: 820px; padding: 64px 0; }
.hero h1 { color: #fff; }
.hero h1 .accent { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: rgba(255, 255, 255, .82); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-badges span { padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-size: .85rem; font-weight: 700; backdrop-filter: blur(6px); }
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 420px; }
.hero-visual .glow { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(247, 148, 29, .55), transparent 65%); filter: blur(10px); }
.hero-visual img { position: relative; max-height: 520px; width: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-14px) rotate(-1deg); } }
@media (max-width: 960px) { .hero-inner { grid-template-columns: 1fr; min-height: 0; padding: 48px 0; } .hero-visual { min-height: 280px; } .hero-visual img { max-height: 320px; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--card); border-block: 1px solid var(--line); padding: 18px 0; direction: ltr; }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--muted); white-space: nowrap; font-family: var(--font-en); letter-spacing: .5px; }
.marquee-track span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--grad-brand); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { background: var(--card); border-radius: var(--radius); padding: 28px 20px; text-align: center; box-shadow: var(--shadow); border-top: 5px solid var(--orange); position: relative; overflow: hidden; }
.stat:nth-child(2n) { border-top-color: var(--red); }
.stat .num { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; color: var(--navy); font-family: var(--font-en); line-height: 1.1; }
[data-theme="dark"] .stat .num { color: var(--orange); }
.stat .lbl { color: var(--muted); font-weight: 700; margin-top: 6px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- About / Timeline ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.about-grid .text p { font-size: 1.08rem; color: var(--muted); }
.about-grid .text h2 { color: var(--navy); }
[data-theme="dark"] .about-grid .text h2 { color: #fff; }
.feature-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; }
.feature-list li::before { content: "✔"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--grad-brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; }
.timeline { position: relative; padding-inline-start: 28px; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 8px; top: 8px; bottom: 8px; width: 3px; background: linear-gradient(var(--orange), var(--red)); border-radius: 3px; }
.tl-item { position: relative; background: var(--card); border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 16px; box-shadow: var(--shadow); opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s; }
.tl-item.in { opacity: 1; transform: none; }
.tl-item::before { content: ""; position: absolute; inset-inline-start: -26px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--bg); }
.tl-item .year { font-family: var(--font-en); font-weight: 900; color: var(--orange); font-size: 1.1rem; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Why cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.card { background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card .ico { width: 56px; height: 56px; border-radius: 16px; background: var(--grad-brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.card .ico svg { width: 28px; height: 28px; }
.card h3 { color: var(--navy); }
[data-theme="dark"] .card h3 { color: #fff; }
.card p { color: var(--muted); margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; border: 1px solid var(--line); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--bg); transition: transform .2s; }
.contact-list li:hover { transform: translateX(-3px); }
html[lang="en"] .contact-list li:hover { transform: translateX(3px); }
.contact-list .ci { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.contact-list .ci svg { width: 22px; height: 22px; }
.ci.red { background: var(--grad-brand); } .ci.wa { background: var(--wa); } .ci.navy { background: var(--navy); } .ci.orange { background: var(--orange); }
.contact-list b { display: block; font-size: .8rem; color: var(--muted); font-weight: 700; }
.contact-list a, .contact-list span.v { font-weight: 800; direction: ltr; unicode-bidi: embed; }
.open-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: .85rem; }
.open-badge::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } }
.open-badge.open { background: rgba(37, 211, 102, .15); color: #178a46; }
.open-badge.closed { background: rgba(225, 37, 27, .12); color: var(--red); }
.map-box { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 380px; background: var(--card); border: 1px solid var(--line); }
.map-box iframe, .map-box .leaflet-map { width: 100%; height: 100%; min-height: 380px; border: 0; }
.contact-form { display: grid; gap: 14px; margin-top: 20px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 14px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); }
.contact-form textarea { min-height: 110px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(247, 148, 29, .18); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--grad-navy); color: #fff; padding: 56px 0 48px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset-inline-end: -10%; top: -40%; width: 50%; height: 180%; background: var(--grad-brand); opacity: .18; transform: skewX(-18deg); }
.page-hero h1 { color: #fff; position: relative; }
.page-hero p { color: rgba(255, 255, 255, .8); max-width: 640px; position: relative; font-size: 1.1rem; }

/* ---------- Agents ---------- */
.agents-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.agent-list { display: grid; gap: 18px; }
.agent { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; border: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 18px; cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s; }
.agent:hover, .agent.active { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--orange); }
.agent .pin { width: 56px; height: 56px; border-radius: 16px; background: var(--grad-brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.3rem; font-family: var(--font-en); }
.agent .pin.main { background: var(--navy); }
.agent h3 { margin-bottom: 2px; }
.agent .city { color: var(--orange); font-weight: 800; font-size: .95rem; }
.agent .addr { color: var(--muted); font-size: .95rem; margin: 4px 0 10px; }
.agent .phones { display: flex; flex-wrap: wrap; gap: 8px; }
.agent .phones a { direction: ltr; unicode-bidi: embed; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-weight: 800; font-family: var(--font-en); font-size: .9rem; }
.agent .phones a.wa { background: rgba(37, 211, 102, .15); color: #178a46; border-color: transparent; }
.agent .phones a svg { width: 16px; height: 16px; }
.agent .tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(225, 37, 27, .1); color: var(--red); font-size: .75rem; font-weight: 800; margin-inline-start: 8px; vertical-align: middle; }
.agents-map { position: sticky; top: calc(var(--header-h) + 20px); height: 620px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.agents-map #map { width: 100%; height: 100%; }
@media (max-width: 960px) { .agents-layout { grid-template-columns: 1fr; } .agents-map { position: static; height: 420px; } }

/* ---------- Products ---------- */
.slider-hero { background: var(--grad-navy); color: #fff; position: relative; overflow: hidden; }
.slider-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 70% 50%, rgba(247, 148, 29, .35), transparent 45%), radial-gradient(circle at 20% 80%, rgba(225, 37, 27, .35), transparent 40%); }
.slider-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; min-height: 520px; padding: 48px 0; }
.slider-text h1 { color: #fff; }
.slider-text .count { font-family: var(--font-en); font-weight: 900; font-size: 4rem; line-height: 1; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.slider-stage { position: relative; height: 440px; display: flex; align-items: center; justify-content: center; }
.slider-stage .ring { position: absolute; width: 380px; height: 380px; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .2); animation: spin 40s linear infinite; }
.slider-stage .ring2 { position: absolute; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(247, 148, 29, .5), transparent 70%); filter: blur(14px); }
@keyframes spin { to { transform: rotate(360deg); } }
.slide { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; opacity: 0; transform: scale(.85) translateY(20px); transition: opacity .7s, transform .7s; pointer-events: none; }
.slide.active { opacity: 1; transform: none; pointer-events: auto; }
.slide img { max-height: 340px; width: auto; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .5)); }
.slide .cap { background: rgba(255, 255, 255, .12); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .2); padding: 8px 18px; border-radius: 999px; font-weight: 800; }
.slider-dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 16px; max-width: 380px; margin-inline: auto; }
.slider-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .3); padding: 0; transition: width .3s, background .3s; }
.slider-dots button.active { width: 24px; border-radius: 4px; background: var(--orange); }
.slider-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .1); color: #fff; display: inline-flex; align-items: center; justify-content: center; z-index: 2; }
.slider-nav.prev { inset-inline-start: 0; } .slider-nav.next { inset-inline-end: 0; }
.slider-nav svg { width: 20px; height: 20px; }
@media (max-width: 960px) { .slider-inner { grid-template-columns: 1fr; min-height: 0; } .slider-stage { height: 360px; } .slide img { max-height: 260px; } .slider-text .count { font-size: 3rem; } }

.catalog-wrap { position: relative; }
.toolbar { position: sticky; top: var(--header-h); z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); padding: 16px 0; border-bottom: 1px solid var(--line); }
.toolbar-inner { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.search { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; padding: 0 16px; height: 48px; }
.search input { border: 0; background: transparent; flex: 1; height: 100%; color: var(--ink); outline: none; min-width: 0; }
.search svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font-weight: 700; font-size: .9rem; transition: all .2s; }
.chip.active, .chip:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
[data-theme="dark"] .chip.active, [data-theme="dark"] .chip:hover { background: var(--orange); border-color: var(--orange); color: var(--navy); }
.select { height: 48px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font-weight: 700; }
.result-count { color: var(--muted); font-weight: 700; margin: 20px 0; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.product { background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; cursor: pointer; transition: transform .25s, box-shadow .25s; position: relative; animation: fadeUp .5s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product .pic { height: 240px; display: flex; align-items: center; justify-content: center; padding: 20px; background: radial-gradient(circle at 50% 70%, rgba(247, 148, 29, .18), transparent 65%), var(--bg); position: relative; }
.product .pic img { max-height: 200px; width: auto; filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .25)); transition: transform .35s; }
.product:hover .pic img { transform: scale(1.06) rotate(-1.5deg); }
.badge { position: absolute; top: 14px; inset-inline-start: 14px; padding: 4px 12px; border-radius: 999px; font-size: .75rem; font-weight: 900; color: #fff; background: var(--grad-brand); z-index: 1; }
.badge.popular { background: var(--navy); } .badge.new { background: var(--wa); }
.product .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product .series { font-size: .75rem; font-weight: 800; color: var(--orange); text-transform: uppercase; letter-spacing: .5px; font-family: var(--font-en); }
.product h3 { font-size: 1.1rem; margin: 0; color: var(--navy); }
[data-theme="dark"] .product h3 { color: #fff; }
.product .spec { color: var(--muted); font-size: .9rem; }
.product .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; }
.pill { padding: 4px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: .78rem; font-weight: 800; font-family: var(--font-en); }
.pill.v { background: rgba(225, 37, 27, .1); color: var(--red); border-color: transparent; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(10, 14, 30, .7); backdrop-filter: blur(6px); }
.modal.open { display: flex; }
.modal-box { background: var(--card); border-radius: 24px; width: min(980px, 100%); max-height: 92vh; overflow: auto; box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 1fr 1fr; animation: pop .3s; position: relative; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.modal-pic { background: radial-gradient(circle at 50% 65%, rgba(247, 148, 29, .3), transparent 65%), var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 36px 24px; gap: 16px; min-height: 420px; }
.modal-pic img.main { max-height: 380px; width: auto; filter: drop-shadow(0 24px 24px rgba(0, 0, 0, .3)); }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.thumbs img { width: 56px; height: 56px; object-fit: contain; padding: 6px; border-radius: 10px; border: 2px solid var(--line); background: var(--card); cursor: pointer; }
.thumbs img.active { border-color: var(--orange); }
.modal-body { padding: 36px 32px; }
.modal-body h2 { color: var(--navy); margin-bottom: 4px; }
[data-theme="dark"] .modal-body h2 { color: #fff; }
.modal-body .series { color: var(--orange); font-weight: 800; font-family: var(--font-en); }
.spec-table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.spec-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.spec-table td:first-child { color: var(--muted); font-weight: 700; width: 38%; }
.spec-table td:last-child { font-weight: 800; font-family: var(--font-en); direction: ltr; text-align: start; }
.modal-body ul.feats { padding-inline-start: 20px; margin: 0 0 18px; color: var(--muted); }
.modal-close { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
@media (max-width: 760px) { .modal-box { grid-template-columns: 1fr; } .modal-pic { min-height: 300px; } .modal-pic img.main { max-height: 260px; } .modal-body { padding: 24px 20px; } }

/* ---------- Guide ---------- */
.guide-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: start; }
.wizard { background: var(--card); border-radius: 24px; box-shadow: var(--shadow); border: 1px solid var(--line); padding: 32px; }
.wizard .steps { display: flex; gap: 8px; margin-bottom: 24px; }
.wizard .steps span { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.wizard .steps span.done { background: var(--grad-brand); }
.wizard h3 { color: var(--navy); font-size: 1.35rem; }
[data-theme="dark"] .wizard h3 { color: #fff; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 18px 0 24px; }
.opt { border: 2px solid var(--line); background: var(--bg); border-radius: 16px; padding: 18px 14px; text-align: center; font-weight: 800; color: var(--ink); transition: all .2s; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.opt svg { width: 34px; height: 34px; color: var(--orange); }
.opt:hover { border-color: var(--orange); transform: translateY(-3px); }
.opt.sel { border-color: var(--red); background: rgba(225, 37, 27, .08); }
.wizard-actions { display: flex; gap: 10px; justify-content: space-between; }
.result { background: var(--grad-navy); color: #fff; border-radius: 24px; padding: 32px; box-shadow: var(--shadow-lg); }
.result h3 { color: var(--orange); }
.result .rec { display: grid; gap: 12px; margin-top: 16px; }
.rec-item { display: grid; grid-template-columns: 90px 1fr; gap: 14px; align-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); border-radius: 16px; padding: 12px; cursor: pointer; transition: background .2s; }
.rec-item:hover { background: rgba(255, 255, 255, .16); }
.rec-item img { height: 80px; width: auto; margin: auto; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .4)); }
.rec-item b { display: block; }
.rec-item small { color: rgba(255, 255, 255, .7); font-family: var(--font-en); }
.faq { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 800; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; width: 32px; height: 32px; border-radius: 50%; background: var(--grad-brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; flex: none; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }
@media (max-width: 960px) { .guide-layout { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--grad-brand); color: #fff; border-radius: 28px; padding: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset-inline-end: -40px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; opacity: .9; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255, 255, 255, .8); padding: 56px 0 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; margin-bottom: 14px; }
.footer a:hover { color: var(--orange); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer .logos { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; direction: ltr; }
.footer .logos img { height: 36px; background: #fff; padding: 6px 10px; border-radius: 8px; }
.footer .social { display: flex; gap: 10px; margin-top: 16px; }
.footer .social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: inline-flex; align-items: center; justify-content: center; }
.footer .social a svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .9rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp float ---------- */
.wa-float { position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 150; display: flex; align-items: center; gap: 10px; background: var(--wa); color: #fff; padding: 12px 18px 12px 12px; border-radius: 999px; font-weight: 800; box-shadow: 0 12px 30px rgba(37, 211, 102, .45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.05); }
.wa-float svg { width: 28px; height: 28px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 999px; box-shadow: 0 0 0 0 rgba(37, 211, 102, .6); animation: pulse 2.2s infinite; }
@media (max-width: 600px) { .wa-float span { display: none; } .wa-float { padding: 12px; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.to-top { position: fixed; bottom: 24px; inset-inline-start: 24px; z-index: 150; opacity: 0; pointer-events: none; transition: opacity .3s; }
.to-top.show { opacity: 1; pointer-events: auto; }
.skeleton { background: linear-gradient(90deg, var(--line) 25%, var(--card) 50%, var(--line) 75%); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: var(--radius); height: 320px; }
@keyframes sk { to { background-position: -200% 0; } }
.toast { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 700; opacity: 0; transition: all .3s; z-index: 300; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%); }
::selection { background: var(--orange); color: var(--navy); }

/* ---------- Self-hosted SVG map ---------- */
:root { --map-land-1: #FFF4E6; --map-land-2: #FFE3C2; --map-stroke: #F2B36B; --map-grid: rgba(15,27,61,.06); --map-bg: #F6F1EA; }
[data-theme="dark"] { --map-land-1: #1C2A52; --map-land-2: #15204A; --map-stroke: #3A4C85; --map-grid: rgba(255,255,255,.05); --map-bg: #0E1630; }
.pm-map { position: relative; width: 100%; height: 100%; background: var(--map-bg); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pm-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pm-prov { fill: url(#pm-land); stroke: var(--map-stroke); stroke-width: 1.6; stroke-linejoin: round; transition: fill .25s; }
.pm-prov.has-agent { fill: rgba(247,148,29,.35); }
.pm-prov:hover { fill: rgba(225,37,27,.22); }
.pm-label { font-family: var(--font-ar); font-size: 17px; font-weight: 800; fill: var(--muted); text-anchor: middle; pointer-events: none; opacity: .85; }
html[lang="en"] .pm-label { font-family: var(--font-en); font-size: 14px; }
.pm-pin { cursor: pointer; }
.pm-pin path { fill: var(--red); stroke: #fff; stroke-width: 3; transition: transform .2s; transform-origin: 0 0; }
.pm-pin.main path { fill: var(--navy); }
[data-theme="dark"] .pm-pin.main path { fill: var(--orange); }
.pm-pin .pm-pin-dot { fill: #fff; }
.pm-pin .pm-pulse { fill: var(--red); opacity: 0; transform-origin: 0 0; }
.pm-pin.main .pm-pulse { fill: var(--orange); }
.pm-pin:hover path, .pm-pin.active path { transform: scale(1.18); }
.pm-pin.active .pm-pulse { animation: pm-pulse 1.6s ease-out infinite; }
@keyframes pm-pulse { 0% { transform: scale(.3); opacity: .55; } 100% { transform: scale(1.8); opacity: 0; } }
.pm-tip { position: absolute; transform: translate(-50%, -100%); background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 10px; font-size: .85rem; font-weight: 700; pointer-events: none; opacity: 0; transition: opacity .15s; white-space: nowrap; z-index: 2; box-shadow: var(--shadow); }
.pm-tip.show { opacity: 1; }
.pm-tip::after { content: ""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--navy); border-bottom: 0; }

/* ---------- Responsive hardening (all screen sizes) ---------- */
html, body { overflow-x: clip; max-width: 100%; }
img, svg, video, iframe { max-width: 100%; }
.slider-stage .ring { width: min(380px, 92vw); height: min(380px, 92vw); }
.slider-stage .ring2 { width: min(300px, 72vw); height: min(300px, 72vw); }
.slider-dots { max-width: 100%; padding: 0 12px; }
.slider-counter { display: none; direction: ltr; text-align: center; margin-top: 12px; font-family: var(--font-en); font-weight: 800; color: rgba(255, 255, 255, .8); }
@media (max-width: 600px) {
  .slider-dots { display: none; }
  .slider-counter { display: block; }
  .slider-stage { height: 320px; }
  .slide img { max-height: 230px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .product .pic { height: 170px; padding: 12px; }
  .product .pic img { max-height: 140px; }
  .product .body { padding: 12px 12px 14px; }
  .product h3 { font-size: .95rem; }
  .product .spec { font-size: .8rem; }
  .pill { font-size: .7rem; padding: 3px 8px; }
  .toolbar { top: var(--header-h); }
  .select { flex: 1 1 45%; min-width: 0; padding: 0 10px; font-size: .9rem; }
  .search { flex-basis: 100%; }
  .hero-cta .btn, .cta-band .btn { width: 100%; }
  .cta-band { text-align: center; justify-content: center; }
  .stats { gap: 12px; }
  .stat { padding: 18px 10px; }
  .wizard, .result { padding: 20px; }
  .opts { grid-template-columns: repeat(2, 1fr); }
  .rec-item { grid-template-columns: 70px 1fr; }
  .contact-card { padding: 20px; }
  .map-box { min-height: 300px; }
  .map-box iframe { min-height: 300px; }
  .agents-map { height: 360px; }
  .modal { padding: 8px; }
  .modal-box { border-radius: 18px; max-height: 94vh; }
  .footer .logos img { height: 30px; }
  .wa-float { bottom: 16px; inset-inline-end: 16px; }
  .to-top { bottom: 16px; inset-inline-start: 16px; }
}
@media (max-width: 360px) {
  .container { width: calc(100% - 24px); }
  .header-inner { gap: 6px; }
  .lang-toggle { padding: 0 10px; height: 38px; }
  .icon-btn { width: 38px; height: 38px; }
  .brand img { height: 24px; } .brand-ar img { height: 28px; }
  .chip { padding: 7px 12px; font-size: .82rem; }
  h1 { font-size: 1.75rem; }
}
/* tablets / small laptops: tighter nav so it never wraps */
@media (min-width: 961px) and (max-width: 1200px) {
  .nav a { padding: 8px 10px; font-size: .95rem; }
  .brand img { height: 38px; } .brand-ar img { height: 42px; }
  .header-inner { gap: 12px; }
}
/* large / 4K screens: keep content readable and centered */
@media (min-width: 1700px) {
  :root { --max: 1320px; }
  html { font-size: 17px; }
}
@media (min-width: 2200px) {
  :root { --max: 1500px; }
  html { font-size: 19px; }
}
/* landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-inner { min-height: 0; padding: 32px 0; }
  .mobile-nav { overflow: auto; }
}
