:root {
  --bg: #09111d;
  --bg-2: #0d1727;
  --panel: rgba(16, 24, 39, 0.92);
  --panel-soft: rgba(24, 35, 58, 0.96);
  --line: rgba(255,255,255,0.1);
  --line-strong: rgba(255,255,255,0.18);
  --text: #eef4ff;
  --muted: #a9b7cb;
  --accent: #f59e0b;
  --accent-2: #ffcb66;
  --accent-soft: rgba(245, 158, 11, 0.12);
  --success: #25d366;
  --danger: #ff7f7f;
  --danger-soft: rgba(255, 100, 100, 0.12);
  --success-soft: rgba(37, 211, 102, 0.12);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  --radius: 24px;
  --radius-sm: 16px;
  --container: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.12), transparent 25%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--text);
}
body.lang-ar {
  font-family: Tajawal, Inter, sans-serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
input, select, textarea, button { outline: none; }

.site-shell { max-width: var(--container); margin: 0 auto; padding: 24px; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin-bottom: 28px; position: sticky; top: 0; z-index: 30;
  background: rgba(9, 17, 29, 0.82); backdrop-filter: blur(18px);
  border: 1px solid var(--line); border-radius: 999px; padding: 14px 18px;
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand strong { display: block; font-size: 1rem; }
.brand span { display: block; color: var(--muted); font-size: 0.9rem; }
.brand-logo { width: 56px; height: 56px; flex: 0 0 auto; }
.brand-mark { display: flex; flex-direction: column; }
.main-nav { display: flex; align-items: center; gap: 18px; }
.main-nav a { color: var(--muted); font-weight: 700; transition: .2s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.topbar-actions, .topbar-meta { display: flex; align-items: center; gap: 12px; }
.topbar-meta {
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); font-size: .92rem; background: rgba(255,255,255,.03);
}
.lang-switch, .btn {
  border-radius: 999px; padding: 12px 18px; cursor: pointer; font-weight: 800; border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover, .lang-switch:hover { transform: translateY(-1px); }
.lang-switch { background: var(--panel-soft); color: var(--text); border-color: var(--line); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #15110a; }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost { background: rgba(255,255,255,.03); color: var(--text); border-color: var(--line); }
.btn-block { width: 100%; text-align: center; display: inline-flex; justify-content: center; align-items: center; }
.text-link { color: var(--accent); font-weight: 800; }
.card {
  background: linear-gradient(180deg, rgba(18,28,45,.96), rgba(11,18,31,.96));
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.padded { padding: 30px; }
.section { margin: 38px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; }
.section-head.compact { align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; color: var(--accent);
  font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: .8rem;
}
.eyebrow::before { content: ''; width: 18px; height: 2px; background: currentColor; }
h1, h2, h3 { margin: 10px 0 12px; line-height: 1.05; }
h1 { font-size: clamp(2.3rem, 4.6vw, 4.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); }
h3 { font-size: 1.24rem; }
p { color: var(--muted); line-height: 1.7; }

.hero {
  display: grid; grid-template-columns: 1.45fr .9fr; gap: 28px; padding: 36px; overflow: hidden;
}
.accent-grid {
  background-image:
    linear-gradient(180deg, rgba(245, 158, 11, 0.08), transparent),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 35%);
}
.hero-copy { position: relative; z-index: 1; }
.hero-actions, .contact-stack, .hero-actions-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.hero-points, .bullet-list { padding-inline-start: 18px; color: var(--muted); }
.hero-points li, .bullet-list li { margin-bottom: 10px; }
.hero-panel { display: grid; gap: 16px; }
.metric-card {
  padding: 22px; border-radius: 18px; background: rgba(255,255,255,.03); border: 1px solid var(--line);
}
.metric-card strong { display: block; font-size: 2rem; margin-bottom: 6px; }
.metric-card span { color: var(--muted); }
.metric-card.highlight { background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(255,255,255,0.04)); }

.product-grid, .category-grid, .services-grid, .stats-grid {
  display: grid; gap: 18px;
}
.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.category-grid-large { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.product-card, .category-card, .service-card {
  overflow: hidden; display: flex; flex-direction: column;
}
.product-visual {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(245, 158, 11, .18), rgba(255,255,255,.03));
  padding: 20px; display: flex; flex-direction: column; justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.product-visual-link { transition: .2s ease; }
.product-visual-link:hover { filter: brightness(1.05); }
.placeholder-label {
  align-self: flex-start; background: rgba(255,255,255,.08); color: var(--text);
  padding: 6px 10px; border-radius: 999px; font-size: .8rem; font-weight: 800;
}
.placeholder-machine {
  display: grid; gap: 8px; align-self: start;
  padding: 18px; border-radius: 18px; background: rgba(8, 15, 28, 0.45); border: 1px solid rgba(255,255,255,0.08);
}
.placeholder-machine strong { font-size: 1.12rem; }
.placeholder-machine span:last-child { color: var(--muted); }
.product-icon { font-size: 2.25rem; }
.product-body, .category-body { padding: 22px; }
.product-meta, .category-meta, .info-list, .contact-meta {
  display: grid; gap: 10px; color: var(--muted); font-size: .94rem;
}
.product-meta.top, .category-meta.top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.product-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.tag {
  background: var(--accent-soft); color: #ffd588; border: 1px solid rgba(245, 158, 11, 0.22);
  padding: 7px 11px; border-radius: 999px; font-size: .85rem; font-weight: 800;
}
.price-placeholder {
  display: inline-flex; align-self: flex-start; padding: 8px 12px; border-radius: 999px;
  background: rgba(37, 211, 102, .12); color: #95f2b3; font-weight: 800; border: 1px solid rgba(37, 211, 102, .25);
}
.product-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.product-actions .btn { flex: 1; text-align: center; display: inline-flex; justify-content: center; align-items: center; }

.category-icon {
  width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px;
  background: rgba(245, 158, 11, 0.12); font-size: 1.5rem; margin-bottom: 14px;
}
.service-card { padding: 24px; }
.service-card p { margin-bottom: 0; }
.two-col { display: grid; grid-template-columns: 1.08fr .92fr; gap: 18px; }
.contact-layout { align-items: start; }
.contact-card { justify-content: space-between; }
.contact-meta { margin-top: 14px; }
.page-hero { margin-bottom: 22px; }
.filters { display: flex; gap: 16px; align-items: end; }
.filter-group { display: grid; gap: 8px; min-width: 220px; }
.filter-group.grow { flex: 1; }
label span, .filter-group label { font-weight: 700; }
input, select, textarea {
  width: 100%; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.03);
  color: var(--text); padding: 14px 16px;
}
textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.contact-form { display: grid; gap: 14px; }
.field { display: grid; gap: 8px; }
.field-error { color: #ffb3b3; font-size: .88rem; min-height: 1.1em; }
.field.has-error input, .field.has-error textarea, .field.has-error select {
  border-color: rgba(255, 127, 127, 0.65);
  background: rgba(255, 127, 127, 0.06);
}
.form-note { font-size: .92rem; }
.form-result {
  margin-top: 10px; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line);
  line-height: 1.65;
}
.form-result.success { background: var(--success-soft); color: #d8ffea; border-color: rgba(37, 211, 102, .28); }
.form-result.error { background: var(--danger-soft); color: #ffd7d7; border-color: rgba(255, 127, 127, .3); }
.info-list div { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.muted { color: var(--muted); }
.notice-empty { padding: 18px; border: 1px dashed var(--line-strong); border-radius: 18px; color: var(--muted); }

.product-detail-hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 22px; padding: 26px;
}
.product-detail-gallery {
  min-height: 360px; border-radius: 24px; padding: 26px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(255,255,255,0.03));
  display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line);
}
.product-detail-gallery .placeholder-machine { max-width: 320px; }
.breadcrumbs {
  display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .92rem; margin-bottom: 12px;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--text); }
.spec-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px;
}
.spec-item {
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.03);
}
.spec-item span { display: block; color: var(--muted); font-size: .88rem; margin-bottom: 6px; }
.spec-item strong { display: block; }
.price-block {
  padding: 20px; border-radius: 20px; background: rgba(255,255,255,.03); border: 1px solid var(--line); margin-top: 18px;
}
.site-footer {
  margin: 48px 0 10px; padding: 24px 4px 4px; color: var(--muted); border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; background: var(--success); color: #04130a;
  padding: 14px 18px; border-radius: 999px; box-shadow: var(--shadow); font-weight: 900;
}
body[dir='rtl'] .whatsapp-float { right: auto; left: 20px; }
.hidden { display: none !important; }

@media (max-width: 1120px) {
  .main-nav { order: 3; width: 100%; justify-content: center; flex-wrap: wrap; }
  .hero, .product-detail-hero, .two-col, .product-grid, .category-grid, .category-grid-large, .services-grid, .stats-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .topbar { border-radius: 24px; padding: 16px; flex-wrap: wrap; }
  .filters, .form-row, .spec-grid { grid-template-columns: 1fr; display: grid; }
  .topbar-meta { order: 2; width: 100%; justify-content: center; }
}

@media (max-width: 640px) {
  .site-shell { padding: 16px; }
  .topbar-actions { width: 100%; justify-content: space-between; }
  .brand { width: 100%; }
  .btn, .lang-switch { padding: 11px 15px; }
  .padded, .hero, .product-detail-hero { padding: 22px; }
}

/* EPCC HERO VISUAL OVERRIDES */
.brand-logo{width:78px;height:78px;filter:drop-shadow(0 12px 24px rgba(0,0,0,.28))}.brand strong{font-size:1.14rem;letter-spacing:.01em}.brand span{font-size:.98rem}.hero{position:relative;isolation:isolate}.hero::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(9,17,29,.94) 0
/* EPCC HERO VISUAL OVERRIDES V2 */
.brand-logo{width:96px!important;height:96px!important;filter:drop-shadow(0 16px 30px rgba(0,0,0,.35))}
.brand strong{font-size:1.22rem!important}
.brand span{font-size:1.02rem!important}
.hero{position:relative;isolation:isolate}
.hero::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(9,17,29,.78) 0%,rgba(9,17,29,.48) 42%,rgba(9,17,29,.08) 100%),url('../img/hero-machines.svg') right center/min(78%,980px) auto no-repeat;opacity:.58;pointer-events:none;z-index:0}
.hero-copy,.hero-panel{position:relative;z-index:1}
@media (max-width:860px){.brand-logo{width:82px!important;height:82px!important}.hero::before{background:linear-gradient(180deg,rgba(9,17,29,.68) 0%,rgba(9,17,29,.16) 100%),url('../img/hero-machines.svg') center 14%/118% auto no-repeat;opacity:.42}}
@media (max-width:640px){.brand-logo{width:76px!important;height:76px!important}}
/* END EPCC HERO VISUAL OVERRIDES V2 */


/* EPCC HERO VISUAL OVERRIDES V3 */
.brand-logo{width:120px!important;height:120px!important;filter:drop-shadow(0 18px 34px rgba(0,0,0,.42))}
.brand strong{font-size:1.34rem!important}
.brand span{font-size:1.08rem!important}
.hero::before{
content:'';
position:absolute;
inset:0;
background:
linear-gradient(90deg,rgba(9,17,29,.46) 0%,rgba(9,17,29,.18) 42%,rgba(9,17,29,.02) 100%),
url('../img/hero-machines.svg') 94% 50% / 980px auto no-repeat !important;
opacity:.92 !important;
pointer-events:none;
z-index:0;
}
@media (max-width:860px){
.brand-logo{width:96px!important;height:96px!important}
.hero::before{
background:
linear-gradient(180deg,rgba(9,17,29,.42) 0%,rgba(9,17,29,.04) 100%),
url('../img/hero-machines.svg') center 12% / 128% auto no-repeat !important;
opacity:.68 !important;
}
}
@media (max-width:640px){
.brand-logo{width:88px!important;height:88px!important}
}
/* END EPCC HERO VISUAL OVERRIDES V3 */


/* EPCC HERO VISUAL BLOCK */
.hero::before{display:none!important}
.hero-panel{position:relative!important;padding-top:240px!important}
.hero-panel::before{
content:'';
position:absolute;
top:0;
left:0;
right:0;
height:210px;
border-radius:26px;
border:1px solid rgba(255,255,255,.08);
background:
linear-gradient(135deg,rgba(245,158,11,.14),rgba(255,255,255,.03)),
url('../img/hero-machines.svg') center center / 88% auto no-repeat;
box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}
@media (max-width:860px){
.hero-panel{padding-top:200px!important}
.hero-panel::before{height:176px;background-size:96% auto}
}
/* END EPCC HERO VISUAL BLOCK */

