/* ============================================================
   MIKPS — Mohamed Ibrahim Khalifa for Petroleum Service
   Static rebuild of the WordPress site (Astra + Elementor)
   ============================================================ */

:root {
  --navy: #0f172a;
  --navy-2: #16233d;
  --gold: #d09a40;
  --gold-dark: #b8832f;
  --cream: #faf5e5;
  --ink: #1f2430;
  --muted: #5b6270;
  --bg-soft: #f6f7f9;
  --line: #e5e7eb;
  --white: #ffffff;
  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Roboto', sans-serif;
  --shadow: 0 6px 24px rgba(15, 23, 42, .08);
  --radius: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { width: min(1140px, 92%); margin: 0 auto; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 46px; width: auto; }
.logo span {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--white);
  font-size: 22px;
  letter-spacing: 1px;
}
.logo span em { color: var(--gold); font-style: normal; }

.nav-links { display: flex; gap: 32px; }
.nav-links a {
  color: rgba(255,255,255,.88);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .4px;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); border-color: var(--gold); }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block; width: 26px; height: 3px;
  background: var(--white);
  margin: 5px 0;
  border-radius: 2px;
  transition: .3s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: var(--white);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(15,23,42,.92) 0%, rgba(15,23,42,.62) 55%, rgba(15,23,42,.35) 100%);
}
.hero .container { position: relative; z-index: 1; padding: 140px 0 90px; }
.hero h1 {
  color: var(--white);
  font-size: clamp(32px, 5.2vw, 58px);
  font-weight: 800;
  max-width: 760px;
  margin-bottom: 18px;
}
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p {
  font-size: clamp(16px, 1.8vw, 19px);
  color: rgba(255,255,255,.85);
  max-width: 640px;
  margin-bottom: 34px;
}
.hero-badges { display: flex; gap: 16px; margin-top: 8px; }
.hero-badge {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(4px);
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--cream);
}
.hero-badge b { color: var(--gold); }

/* ---------- Page banner ---------- */
.page-banner {
  position: relative;
  padding: 150px 0 70px;
  background: var(--navy);
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
}
.page-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(15,23,42,.72);
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { color: var(--white); font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.page-banner p { color: rgba(255,255,255,.82); margin-top: 10px; max-width: 620px; margin-inline: auto; }
.crumbs { margin-top: 14px; font-size: 13px; font-family: var(--font-head); letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,.65); }
.crumbs a { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .6px;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-dark); color: var(--white); }
.btn-outline { border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-outline-dark { border-color: var(--gold); color: var(--gold); }
.btn-outline-dark:hover { background: var(--gold); color: var(--navy); }
.btn-sm { padding: 10px 22px; font-size: 13px; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); color: var(--white); }

.eyebrow {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.section h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 14px; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 17px; }
.section-navy h2 { color: var(--white); }
.section-navy .section-head p { color: rgba(255,255,255,.75); }

/* ---------- Home: intro split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split figure img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.split .txt h3 { font-size: 26px; margin-bottom: 16px; }
.split .txt p { color: var(--muted); margin-bottom: 14px; }
.split .txt p b { color: var(--navy); }

/* ---------- Goal pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 40px; }
.pillar {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .25s, box-shadow .25s;
}
.pillar:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.pillar .num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
}
.pillar h4 { font-size: 19px; margin: 10px 0 10px; }
.pillar p { color: var(--muted); font-size: 15px; }

/* ---------- Card grid (services / industries) ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card figure { aspect-ratio: 16/10; overflow: hidden; }
.card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover figure img { transform: scale(1.05); }
.card .body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; flex: 1; }
.card .btn { align-self: flex-start; margin-top: 18px; }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat .val {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 52px);
  color: var(--gold);
  line-height: 1;
}
.stat .lbl { margin-top: 10px; color: rgba(255,255,255,.8); font-size: 15px; letter-spacing: .6px; text-transform: uppercase; font-family: var(--font-head); font-weight: 600; }

/* ---------- Feature rows (about values) ---------- */
.feature { display: grid; grid-template-columns: 60px 1fr; gap: 22px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.feature:last-child { border-bottom: 0; }
.feature .ico {
  width: 60px; height: 60px;
  border-radius: 12px;
  background: var(--cream);
  border: 1px solid rgba(208,154,64,.4);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 26px;
}
.feature h4 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ---------- Projects ---------- */
.project {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 40px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
.project:last-child { border-bottom: 0; }
.project figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/11; }
.project figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.project:hover figure img { transform: scale(1.03); }
.project .txt h3 { font-size: 21px; margin-bottom: 12px; }
.project .txt p { color: var(--muted); }
.project .tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 12px; font-weight: 700;
  letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(208,154,64,.5);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 14px;
}

/* ---------- Services list ("Even More") ---------- */
.check-list li {
  position: relative;
  padding: 12px 0 12px 34px;
  border-bottom: 1px dashed var(--line);
  font-size: 16px;
}
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
  content: '✓';
  position: absolute; left: 0; top: 12px;
  color: var(--gold);
  font-weight: 700;
}

/* ---------- CTA band ---------- */
.cta {
  background:
    linear-gradient(120deg, rgba(15,23,42,.94), rgba(22,35,61,.85)),
    var(--navy);
  text-align: center;
  padding: 72px 0;
}
.cta h2 { color: var(--white); font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 12px; }
.cta p { color: rgba(255,255,255,.78); max-width: 560px; margin: 0 auto 30px; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 380px 1fr; gap: 44px; align-items: start; }
.contact-info-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px 30px;
}
.contact-info-card h3 { color: var(--white); margin-bottom: 22px; font-size: 20px; }
.ci-item { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.ci-item:last-child { border-bottom: 0; }
.ci-item .ico { color: var(--gold); font-size: 20px; margin-top: 2px; }
.ci-item b { display: block; font-family: var(--font-head); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.6); margin-bottom: 4px; }
.ci-item a, .ci-item span { color: var(--white); font-size: 15px; }
.ci-item a:hover { color: var(--gold); }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 38px 36px;
}
.form-card h3 { margin-bottom: 8px; }
.form-card > p { color: var(--muted); margin-bottom: 26px; font-size: 15px; }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}
.field label span { color: var(--gold); }
.field input, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg-soft);
  transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}
.field textarea { min-height: 140px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-msg { display: none; margin-top: 16px; padding: 14px 18px; border-radius: 6px; font-size: 15px; }
.form-msg.ok { display: block; background: #e8f5ec; color: #1e7a3c; border: 1px solid #b7e0c4; }
.form-msg.err { display: block; background: #fdecec; color: #b3372d; border: 1px solid #f3c2bd; }
.form-msg.show { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-2); color: rgba(255,255,255,.75); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 44px; padding-bottom: 50px; }
.footer-brand .logo { margin-bottom: 18px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.65); max-width: 300px; }
.footer-col h4 {
  color: var(--white);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 18px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,.68); transition: color .2s; }
.footer-col a:hover { color: var(--gold); }
.footer-contact li { display: flex; gap: 10px; align-items: baseline; }
.footer-contact .ico { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 22px 0;
  font-size: 13.5px;
  color: rgba(255,255,255,.5);
  text-align: center;
}
.footer-bottom a { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .project { grid-template-columns: 1fr; gap: 24px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .pillars { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .nav-links {
    position: fixed;
    top: 0; right: -280px;
    width: 280px; height: 100vh;
    background: var(--navy);
    flex-direction: column;
    gap: 0;
    padding: 90px 30px 30px;
    transition: right .3s ease;
    box-shadow: -6px 0 24px rgba(0,0,0,.3);
  }
  .nav-links.open { right: 0; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav-toggle { display: block; z-index: 120; }
  .section { padding: 64px 0; }
  .hero { min-height: 78vh; }
  .hero-badges { flex-wrap: wrap; }
}
