/* Express Oil Petrochemicals Industries — site styles */
:root {
  --red: #D10A10;
  --red-dark: #B30A0F;
  --red-soft: #FF6B6B;
  --ink: #141414;
  --muted: #474747;
  --line: #E4E4E0;
  --soft: #F5F5F2;
  --stone: #E3E3DE;
  --grey: #CFCFCA;
  --white: #FFFFFF;
  --radius: 8px;
  --wrap: 1240px;
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  --font-ar: "Cairo", "Barlow", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
[dir="rtl"] body, body[dir="rtl"] { font-family: var(--font-ar); line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-dark); }
a:hover { color: #7A070A; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0; }
:focus-visible { outline: 3px solid #1A5FD6; outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.section { padding-block: 88px; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--ink); color: var(--white); }
.section--red { background: var(--red); color: var(--white); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 40px; }
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(var(--min, 280px), 1fr)); }

.skip {
  position: absolute; top: 8px; inset-inline-start: 8px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 6px;
  transform: translateY(-200%);
}
.skip:focus { transform: none; color: var(--white); }

/* Typography helpers */
.eyebrow {
  font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--red-dark);
}
.section--dark .eyebrow { color: var(--red-soft); }
.display {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(40px, 6vw, 64px); line-height: 1.02;
}
.h2 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(32px, 4vw, 44px); line-height: 1.05;
}
.lead { font-size: 19px; color: var(--muted); max-width: 620px; }
.muted { color: var(--muted); }
.section--dark .muted { color: var(--grey); }
[dir="rtl"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 15px; }
[dir="rtl"] .display, [dir="rtl"] .h2 { font-family: var(--font-ar); text-transform: none; line-height: 1.3; }
[dir="rtl"] .display { font-size: clamp(36px, 5vw, 56px); }
[dir="rtl"] .h2 { font-weight: 800; font-size: clamp(28px, 3.5vw, 40px); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 6px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); color: var(--white); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #333; color: var(--white); }
.btn--outline { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--white { background: var(--white); color: var(--red-dark); }
.btn--white:hover { background: var(--soft); color: var(--red-dark); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--red-dark); }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Top bar + header */
.topbar { background: var(--ink); color: var(--white); font-size: 14px; }
.topbar-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-block: 10px; }
.topbar a { color: var(--white); font-weight: 600; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand img { height: 52px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-weight: 600; font-size: 16px; }
.nav-links a { color: var(--ink); text-decoration: none; padding-block: 10px; display: inline-block; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--red-dark); }
.nav-links a[aria-current="page"] { color: var(--red-dark); border-bottom-color: var(--red); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px;
  border: 1px solid var(--grey); border-radius: 6px; color: var(--ink); text-decoration: none; font-weight: 600;
}
.lang-link:hover { border-color: var(--ink); color: var(--ink); }
.lang-link[lang="ar"] { font-family: var(--font-ar); }
.lang-link[lang="en"] { font-family: var(--font); }
.nav-toggle {
  display: none; width: 48px; height: 48px; border: 1px solid var(--grey); border-radius: 6px;
  background: var(--white); color: var(--ink); cursor: pointer; align-items: center; justify-content: center;
}

@media (max-width: 960px) {
  .brand img { height: 44px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 16px; padding: 16px 24px 24px;
    box-shadow: 0 12px 24px rgba(0,0,0,.08);
  }
  .site-nav.is-open { display: flex; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links a[aria-current="page"] { border-bottom-color: var(--line); }
  .nav-actions { flex-wrap: wrap; }
  .section { padding-block: 64px; }
}

/* Hero */
.hero { background: var(--soft); }
.hero-in { display: grid; gap: 48px; align-items: center; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); padding-block: 80px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; padding: 0; margin: 0; font-weight: 600; font-size: 15px; color: #333; }
.ticks li { display: flex; align-items: center; gap: 8px; }
.ticks svg { color: var(--red); flex: none; }
.hero-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hero-products a { display: block; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.hero-products img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; transition: transform .3s; }
.hero-products a:hover img { transform: scale(1.03); }

.page-hero { background: var(--soft); }
.page-hero .wrap { padding-block: 56px 48px; display: flex; flex-direction: column; gap: 14px; }

/* Cards */
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; gap: 18px; background: var(--white); }
.card--red-top { border-top: 4px solid var(--red); }
.card--ink-top { border-top: 4px solid var(--ink); }
.card h3 { font-size: 28px; }
.card ul { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 8px; }
.card .btn { align-self: flex-start; }

.steps { counter-reset: step; }
.step { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 2px solid var(--red); }
.step-num { font-family: var(--font-display); font-size: 40px; font-weight: 800; color: var(--red-soft); line-height: 1; }
.step h3 { font-size: 22px; }

.tile-card { text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; background: var(--white); transition: box-shadow .2s, transform .2s; }
.tile-card:hover { color: var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,.08); transform: translateY(-2px); }
.tile-card img, .tile-media { width: 100%; height: 260px; object-fit: cover; }
.tile-media { background: var(--ink); color: var(--white); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px; }
.tile-media span { font-family: var(--font-display); font-weight: 800; font-size: 34px; text-transform: uppercase; line-height: 1; }
[dir="rtl"] .tile-media span { font-family: var(--font-ar); text-transform: none; font-size: 28px; }
.tile-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.tile-body h3 { font-size: 22px; }
.tag { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--red-dark); }
[dir="rtl"] .tag { text-transform: none; letter-spacing: 0; font-size: 14px; }

.chip-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.chip { background: var(--white); border-radius: var(--radius); padding: 20px; font-weight: 600; }

.cta-band .wrap { padding-block: 64px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 4vw, 44px); line-height: 1.05; }
[dir="rtl"] .cta-band h2 { font-family: var(--font-ar); text-transform: none; line-height: 1.3; }

/* Products page */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tab-btn {
  font: inherit; font-size: 16px; font-weight: 600; min-height: 44px; padding: 10px 18px;
  border-radius: 999px; border: 1px solid var(--grey); background: var(--white); color: var(--ink); cursor: pointer;
}
.tab-btn:hover { border-color: var(--ink); }
.tab-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }

.bulk { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.bulk-media { background: var(--ink); color: var(--white); min-height: 320px; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: 36px; }
.bulk-media strong { font-family: var(--font-display); font-size: 48px; text-transform: uppercase; line-height: 1; }
[dir="rtl"] .bulk-media strong { font-family: var(--font-ar); text-transform: none; font-size: 36px; line-height: 1.3; }
.bulk-body { padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.bulk-body h3 { font-size: 30px; line-height: 1.15; }
.spec { border-collapse: collapse; width: 100%; font-size: 16px; }
.spec th, .spec td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { text-align: start; font-weight: 600; padding-inline-end: 16px; }
.spec td { text-align: end; }

.products { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.product { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; background: var(--white); }
.product img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--ink); }
.product-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.product-body h3 { font-size: 21px; line-height: 1.25; }
.product-spec { font-weight: 700; font-size: 15px; }
.product-body ul { margin: 0; padding-inline-start: 18px; font-size: 15px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.product-body .btn { margin-top: auto; align-self: flex-start; }
[hidden] { display: none !important; }

.banner { background: var(--ink); color: var(--white); border-radius: 10px; padding: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }

/* About */
.chain { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.chain-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 8px; position: relative; }
.chain-item--us { background: var(--red); border-color: var(--red); color: var(--white); }
.chain-item .tag { color: #555; }
.chain-item--us .tag { color: var(--white); }
.chain-item h3 { font-size: 20px; }
.chain-item p { font-size: 15px; }
.doc-list { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); list-style: none; margin: 0; padding: 0; }
.doc-list li { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; font-weight: 600; display: flex; gap: 12px; align-items: center; }
.doc-list svg { color: var(--red); flex: none; }

/* Contact */
.contact-layout { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.contact-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.contact-aside { flex: 1 1 300px; min-width: 0; }
.form-tabs { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.form-tab {
  font: inherit; text-align: start; border-radius: var(--radius); padding: 14px 18px; min-height: 64px;
  border: 1px solid var(--grey); background: var(--white); color: var(--ink); cursor: pointer;
}
.form-tab strong { display: block; font-size: 17px; }
.form-tab span { display: block; font-size: 14px; opacity: .85; }
.form-tab[aria-selected="true"] { background: var(--red); border-color: var(--red); color: var(--white); }
.form-panel { border: 1px solid var(--line); border-radius: 10px; padding: 32px; }
.lead-form { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.lead-form h2 { grid-column: 1 / -1; font-size: 26px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full, .lead-form fieldset, .lead-form .btn, .form-note { grid-column: 1 / -1; }
.field label, .lead-form legend { font-weight: 600; font-size: 15px; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; padding: 12px 14px; min-height: 48px; width: 100%;
  border: 1px solid #8A8A85; border-radius: 6px; background: var(--white); color: var(--ink);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.lead-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.lead-form legend { margin-bottom: 8px; }
.radio { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.radio input { width: 20px; height: 20px; accent-color: var(--red); }
.lead-form .btn { justify-self: start; }
.form-note { font-size: 14px; color: var(--muted); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.form-status { border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.form-status--ok { border: 1px solid #1E7B3A; background: #EEF7F0; }
.form-status--ok h2 { color: #155C2B; font-size: 24px; }
.form-status--err { border: 1px solid var(--red-dark); background: #FDF0F0; }
.form-status .btn { align-self: flex-start; }

.contact-card { background: var(--ink); color: var(--white); border-radius: 10px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.contact-card h2 { font-size: 22px; }
.contact-card dl { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.contact-card dt { font-size: 14px; color: var(--grey); }
.contact-card dd { margin: 0; }
.contact-card a { color: var(--white); font-weight: 700; }
.contact-card .big { font-size: 19px; }

.map-wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.map-frame { flex: 999 1 560px; min-width: 0; min-height: 420px; border: 0; border-radius: 10px; background: var(--stone); }
.map-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.map-card { background: var(--white); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--grey); font-size: 15px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); padding-block: 64px 32px; }
.footer-grid h2 { color: var(--white); font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: var(--grey); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-logo { width: 220px; }
.footer-bottom { border-top: 1px solid #333; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 20px 32px; font-size: 14px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 12px 18px;
  background: #1E7B3A; color: var(--white); border-radius: 999px; text-decoration: none; font-weight: 700;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.wa-float:hover { background: #155C2B; color: var(--white); }
@media (max-width: 600px) { .wa-float span { display: none; } .wa-float { padding: 14px; } }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
