/* ============================================================
   شركة الإمتياز العربية للمقاولات — Main stylesheet
   Palette derived from official logo: navy + crimson on white
   ============================================================ */

:root {
  --c-navy:        #1E2A56;
  --c-navy-dark:   #141C3B;
  --c-navy-light:  #2D3A6E;
  --c-crimson:     #B82430;
  --c-crimson-dark:#8E1923;
  --c-crimson-soft:#E54857;
  --c-white:       #FFFFFF;
  --c-off:         #F5F5F7;
  --c-slate:       #2A2F3A;
  --c-muted:       #6B7280;
  --c-border:      #E5E7EB;
  --c-bg:          #FFFFFF;

  --shadow-sm: 0 2px 8px rgba(20, 28, 59, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 28, 59, 0.10);
  --shadow-lg: 0 18px 48px rgba(20, 28, 59, 0.18);

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;

  --ease: cubic-bezier(.2,.7,.2,1);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);

  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Cairo', 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-slate);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--c-crimson); }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 { font-weight: 800; color: var(--c-navy); margin: 0 0 .6em; line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; }

/* Layout helpers ---------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section--tight { padding: clamp(40px, 6vw, 70px) 0; }
.section--alt { background: var(--c-off); }
.section--dark { background: var(--c-navy); color: var(--c-white); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--c-white); }

.section-eyebrow {
  display: inline-block;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--c-crimson);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.section-title { margin-bottom: 14px; }
.section-lead {
  color: var(--c-muted);
  font-size: 1.05rem;
  max-width: 720px;
  margin-bottom: 48px;
}

.divider {
  width: 56px;
  height: 4px;
  background: var(--c-crimson);
  margin-bottom: 28px;
  border-radius: 2px;
}

/* Buttons ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--c-crimson); color: #fff; }
.btn--primary:hover { background: var(--c-crimson-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--c-white); border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color:#fff; border-color: #fff; }
.btn--dark { background: var(--c-navy); color: #fff; }
.btn--dark:hover { background: var(--c-navy-dark); color:#fff; transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--c-navy); border-color: var(--c-navy); }
.btn--outline:hover { background: var(--c-navy); color: #fff; }

/* Header ------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-border);
  transition: box-shadow .25s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.brand img { height: 52px; width: auto; }
.nav-list {
  display: flex;
  list-style: none;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.nav-list a {
  display: block;
  padding: 10px 16px;
  font-weight: 600;
  color: var(--c-slate);
  border-radius: 8px;
  font-size: .98rem;
}
.nav-list a:hover,
.nav-list a.is-active {
  color: var(--c-navy);
  background: var(--c-off);
}
.nav-list a.is-active { color: var(--c-crimson); }
.header-cta { margin-inline-start: 12px; }
.header-cta .btn { padding: 10px 22px; font-size: .92rem; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  inset-inline-start: 10px;
  width: 24px;
  height: 2px;
  background: var(--c-navy);
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after  { top:  8px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.is-open span::after  { top: 0; transform: rotate(-45deg); }

/* Hero -------------------------------------------------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: center;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20,28,59,.85) 0%, rgba(30,42,86,.7) 50%, rgba(184,36,48,.55) 100%),
              url('../img/hero/hero-01.jpg') center/cover no-repeat;
  z-index: -1;
}
.hero__inner { padding: 90px 0 110px; max-width: 820px; }
.hero__eyebrow {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px;
  font-size: .85rem;
  letter-spacing: 3px;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero p  { font-size: 1.15rem; color: rgba(255,255,255,.92); margin-bottom: 36px; max-width: 660px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero--inner { min-height: 38vh; }
.hero--inner .hero__inner { padding: 60px 0; }
.hero--inner h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 8px; }
.breadcrumb { color: rgba(255,255,255,.75); font-size: .95rem; }
.breadcrumb a:hover { color: #fff; }

/* About snippet ----------------------------------------- */
.about-snippet { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.about-snippet__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.about-snippet__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.about-snippet__media::after {
  content: "";
  position: absolute;
  inset-inline-end: -18px;
  bottom: -18px;
  width: 120px;
  height: 120px;
  border: 6px solid var(--c-crimson);
  border-radius: var(--radius-lg);
  z-index: -1;
}

/* Service cards ---------------------------------------- */
.cards-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.service-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; inset-inline-start: 0;
  width: 4px; height: 0;
  background: var(--c-crimson);
  transition: height .35s var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-card:hover::before { height: 100%; }
.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--c-off);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--c-navy);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.service-card:hover .service-card__icon { background: var(--c-navy); color: #fff; }
.service-card__icon svg { width: 28px; height: 28px; }
.service-card__title { font-size: 1.1rem; margin-bottom: 8px; }
.service-card__desc { color: var(--c-muted); font-size: .95rem; margin: 0; }

/* Why us ------------------------------------------------ */
.why-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.why-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--c-border);
}
.why-card__num {
  display: inline-block;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--c-crimson);
  line-height: 1;
}
.why-card__title { margin: 10px 0 8px; }
.why-card__desc  { color: var(--c-muted); font-size: .95rem; margin: 0; }

/* Values strip ----------------------------------------- */
.values-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.12);
  border-radius: var(--radius);
  overflow: hidden;
}
.value-item {
  background: var(--c-navy);
  padding: 36px 22px;
  text-align: center;
}
.value-item__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: grid; place-items: center;
  margin: 0 auto 16px;
  color: var(--c-crimson-soft);
}
.value-item__icon svg { width: 28px; height: 28px; }
.value-item__title { color: #fff; font-size: 1.15rem; margin-bottom: 6px; }
.value-item__en { color: rgba(255,255,255,.55); font-size: .8rem; letter-spacing: 2px; text-transform: uppercase; }

/* CTA banner ------------------------------------------- */
.cta-banner {
  background: linear-gradient(120deg, var(--c-navy) 0%, var(--c-navy-light) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset-inline-end: -60px; bottom: -60px;
  width: 240px; height: 240px;
  background: var(--c-crimson);
  opacity: .25;
  border-radius: 50%;
  filter: blur(40px);
}
.cta-banner h2 { color: #fff; margin: 0 0 6px; }
.cta-banner p { color: rgba(255,255,255,.85); margin: 0; }
.cta-banner__actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }

/* Footer ------------------------------------------------ */
.site-footer {
  background: var(--c-navy-dark);
  color: rgba(255,255,255,.75);
  padding: 70px 0 24px;
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 44px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-grid img { margin-bottom: 16px; height: 56px; }
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--c-crimson-soft); }
.footer-contact-item { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.footer-contact-item svg { width: 18px; height: 18px; color: var(--c-crimson-soft); flex-shrink: 0; margin-top: 4px; }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  flex-wrap: wrap;
  gap: 8px;
}

.socials { display: flex; gap: 10px; }
.socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: grid; place-items: center;
  color: rgba(255,255,255,.85);
}
.socials a:hover { background: var(--c-crimson); color: #fff; }
.socials svg { width: 18px; height: 18px; }

/* Vision & Mission cards -------------------------------- */
.vm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.vm-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px;
  border: 1px solid var(--c-border);
  position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.vm-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.vm-card__icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--c-navy);
  color: #fff;
  display: grid; place-items: center;
  margin-bottom: 22px;
}
.vm-card__icon svg { width: 30px; height: 30px; }
.vm-card h3 { font-size: 1.5rem; }
.vm-card p { color: var(--c-muted); margin: 0; }

/* Industries grid -------------------------------------- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.industry-tile {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all .25s var(--ease);
}
.industry-tile:hover { background: var(--c-navy); color: #fff; transform: translateY(-3px); }
.industry-tile:hover .industry-tile__icon { background: var(--c-crimson); color: #fff; }
.industry-tile__icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--c-off);
  color: var(--c-navy);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: all .25s var(--ease);
}
.industry-tile__icon svg { width: 22px; height: 22px; }
.industry-tile__title { font-size: .98rem; font-weight: 700; }

/* Gallery ---------------------------------------------- */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
  justify-content: center;
}
.chip {
  background: #fff;
  border: 1px solid var(--c-border);
  padding: 9px 22px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--c-slate);
  font-size: .92rem;
  transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--c-navy); color: var(--c-navy); }
.chip.is-active { background: var(--c-navy); color: #fff; border-color: var(--c-navy); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--c-off);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,28,59,.7), transparent 60%);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item.is-hidden { display: none; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20,28,59,.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 32px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 88vh; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox__close {
  position: absolute;
  top: 24px; inset-inline-end: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 0;
  font-size: 1.4rem;
}
.lightbox__close:hover { background: var(--c-crimson); }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 0;
  font-size: 1.6rem;
  display: grid; place-items: center;
}
.lightbox__nav:hover { background: var(--c-crimson); }
.lightbox__nav--prev { inset-inline-start: 24px; }
.lightbox__nav--next { inset-inline-end: 24px; }

/* Clients ----------------------------------------------- */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.client-tile {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 30px 18px;
  text-align: center;
  font-weight: 700;
  color: var(--c-navy);
  transition: all .25s var(--ease);
  font-size: .98rem;
  min-height: 110px;
  display: grid;
  place-items: center;
}
.client-tile:hover {
  border-color: var(--c-crimson);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.cert-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.cert-card__badge {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--c-off);
  color: var(--c-crimson);
  display: grid; place-items: center;
  margin: 0 auto 18px;
}
.cert-card__badge svg { width: 40px; height: 40px; }

/* Contact ----------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-form {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: .92rem;
  margin-bottom: 8px;
  color: var(--c-navy);
}
.field input,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  font: inherit;
  background: #fff;
  color: var(--c-slate);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--c-navy);
  box-shadow: 0 0 0 4px rgba(30,42,86,.1);
}
.field textarea { resize: vertical; min-height: 130px; }

.contact-info {
  background: var(--c-navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 36px;
}
.contact-info h3 { color: #fff; }
.contact-info hr { border: 0; border-top: 1px solid rgba(255,255,255,.15); margin: 22px 0; }
.contact-info-item { display: flex; gap: 14px; margin-bottom: 18px; }
.contact-info-item__icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  color: var(--c-crimson-soft);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.contact-info-item__icon svg { width: 20px; height: 20px; }
.contact-info-item__label { font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 2px; }
.contact-info-item__value { font-weight: 700; }
.contact-info-item__value a:hover { color: var(--c-crimson-soft); }

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 50px;
  border: 1px solid var(--c-border);
  height: 380px;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* Floating WhatsApp ------------------------------------- */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  inset-inline-start: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(37,211,102,.45);
  z-index: 40;
  transition: transform .25s var(--ease);
}
.whatsapp-fab:hover { transform: scale(1.08); color: #fff; }
.whatsapp-fab svg { width: 30px; height: 30px; }

/* Reveal on scroll ------------------------------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Skip-to-content (a11y) -------------------------------- */
.skip-link {
  position: absolute;
  top: -40px;
  inset-inline-start: 10px;
  background: var(--c-navy);
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  z-index: 100;
}
.skip-link:focus { top: 10px; color: #fff; }

/* Focus styles ----------------------------------------- */
:focus-visible {
  outline: 3px solid var(--c-crimson-soft);
  outline-offset: 3px;
  border-radius: 4px;
}
