/* ===== Scarface Building Contracting — الأنماط العامة ===== */

:root {
  --navy: #0b2a5b;
  --navy-dark: #071a3a;
  --blue: #1f4fa3;
  --gold: #c9973f;
  --gold-light: #e6bd6a;
  --bg: #ffffff;
  --bg-soft: #f4f6fa;
  --text: #1c2433;
  --muted: #5d6676;
  --border: #e3e7ef;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 42, 91, 0.08);
  --container: 1200px;
  --font-head: "Cairo", sans-serif;
  --font-body: "Tajawal", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 78px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.4; margin: 0 0 .6em; color: var(--navy); }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding: 90px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--navy-dark); color: #dfe6f3; }
.section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  color: var(--gold); margin-bottom: 10px;
}
.eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--gold); }

.section-head { max-width: 680px; margin-bottom: 50px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 32px; height: 2px; background: var(--gold); }
.section-head h2 { font-size: clamp(26px, 4vw, 38px); }
.section-head p { color: var(--muted); font-size: 18px; }
.section--dark .section-head p { color: #b7c3d9; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 50px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: 16px;
  cursor: pointer; transition: .25s ease;
}
.btn svg { width: 20px; height: 20px; }
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn--outline { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--outline:hover { background: #fff; color: var(--navy); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--blue); }
.btn--whatsapp { background: #25d366; color: #fff; }
.btn--whatsapp:hover { background: #1fb457; }

/* ===== Header ===== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s;
}
.header.is-scrolled { box-shadow: var(--shadow); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 62px; width: auto; }
.logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.logo__text strong { font-family: var(--font-head); color: var(--navy); font-size: 18px; letter-spacing: 1px; }
.logo__text span { font-size: 12px; color: var(--gold); font-weight: 700; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--navy); position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; bottom: -6px; inset-inline-start: 0; width: 0; height: 2px;
  background: var(--gold); transition: width .25s;
}
.nav a:not(.btn):hover::after, .nav a.is-active::after { width: 100%; }
.nav .btn { padding: 10px 22px; font-size: 14px; }

.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy); }
.menu-toggle svg { width: 28px; height: 28px; }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; color: #fff; overflow: hidden;
  padding: 120px 0 80px;
}
.hero__video, .hero__overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__video { object-fit: cover; }
.hero__overlay { background: linear-gradient(270deg, rgba(7,26,58,.92) 0%, rgba(7,26,58,.7) 55%, rgba(7,26,58,.35) 100%); }
.hero__content { position: relative; max-width: 720px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,151,63,.18); border: 1px solid rgba(201,151,63,.5);
  color: var(--gold-light); padding: 6px 16px; border-radius: 50px; font-size: 14px; font-weight: 700;
  margin-bottom: 22px;
}
.hero h1 { color: #fff; font-size: clamp(32px, 6vw, 58px); font-weight: 800; margin-bottom: 20px; }
.hero h1 span { color: var(--gold-light); }
.hero p { font-size: clamp(17px, 2vw, 20px); color: #d5deee; max-width: 600px; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Page hero (inner pages) */
.page-hero {
  position: relative; padding: 170px 0 90px; color: #fff; text-align: center;
  background: var(--navy-dark) center / cover no-repeat;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(7,26,58,.78); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(30px, 5vw, 48px); }
.page-hero p { color: #d5deee; font-size: 19px; max-width: 640px; margin: 0 auto; }

/* ===== Trust bar ===== */
.trust { background: var(--navy); color: #fff; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust__item { display: flex; align-items: center; gap: 14px; padding: 26px 20px; border-inline-start: 1px solid rgba(255,255,255,.1); }
.trust__item:first-child { border-inline-start: 0; }
.trust__item svg { width: 38px; height: 38px; flex-shrink: 0; color: var(--gold-light); }
.trust__item strong { display: block; font-family: var(--font-head); font-size: 16px; }
.trust__item span { font-size: 14px; color: #b7c3d9; }

/* ===== About split ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3.4; object-fit: cover; }
.split__media .img-small {
  position: absolute; bottom: -40px; inset-inline-end: -30px; width: 45%; aspect-ratio: 1;
  border: 6px solid #fff; box-shadow: var(--shadow);
}
.split__badge {
  position: absolute; top: 24px; inset-inline-end: -20px; background: var(--gold); color: #fff;
  padding: 18px 22px; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center;
  font-family: var(--font-head);
}
.split__badge strong { display: block; font-size: 30px; line-height: 1; }
.split__badge span { font-size: 13px; }
.check-list { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--gold); margin-top: 3px; }

/* ===== Services ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(11,42,91,.15); }
.service-card__img { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.service-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.service-card:hover .service-card__img img { transform: scale(1.07); }
.service-card__icon {
  position: absolute; top: -28px; inset-inline-start: 24px; z-index: 1; width: 56px; height: 56px; border-radius: 12px;
  background: var(--gold); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow);
}
.service-card__icon svg { width: 28px; height: 28px; }
.service-card__body { position: relative; padding: 44px 24px 26px; }
.service-card__body h3 { font-size: 21px; }
.service-card__body p { color: var(--muted); margin: 0; font-size: 16px; }

/* ===== Video band ===== */
.video-band { position: relative; padding: 130px 0; color: #fff; text-align: center; overflow: hidden; }
.video-band video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-band::before { content: ""; position: absolute; inset: 0; background: rgba(7,26,58,.75); z-index: 1; }
.video-band .container { position: relative; z-index: 2; }
.video-band h2 { color: #fff; font-size: clamp(26px, 4.5vw, 44px); max-width: 800px; margin: 0 auto 18px; }
.video-band p { color: #d5deee; font-size: 19px; max-width: 640px; margin: 0 auto 30px; }

/* ===== Why us ===== */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  padding: 32px 28px; border-radius: var(--radius); background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08); transition: .3s;
}
.feature:hover { background: rgba(255,255,255,.08); border-color: var(--gold); }
.feature__icon {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(201,151,63,.15); color: var(--gold-light); margin-bottom: 20px;
}
.feature__icon svg { width: 30px; height: 30px; }
.feature h3 { font-size: 20px; }
.feature p { color: #b7c3d9; margin: 0; font-size: 16px; }

/* ===== Process ===== */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: step; position: relative; }
.process::before {
  content: ""; position: absolute; top: 38px; right: 10%; left: 10%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 16px);
}
.step { text-align: center; position: relative; }
.step__num {
  counter-increment: step; width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%;
  background: #fff; border: 2px solid var(--gold); display: grid; place-items: center;
  font-family: var(--font-head); font-size: 26px; font-weight: 800; color: var(--navy);
  position: relative; z-index: 1; box-shadow: 0 0 0 8px var(--bg-soft);
}
.step__num::before { content: counter(step, arabic-indic); }
.step h3 { font-size: 18px; }
.step p { color: var(--muted); font-size: 15px; }

/* ===== Gallery ===== */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 16px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; }
.gallery figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery figure:nth-child(4) { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: 30px 18px 14px; color: #fff;
  font-family: var(--font-head); font-weight: 700;
  background: linear-gradient(transparent, rgba(7,26,58,.85));
}
.note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 18px; }

/* ===== License ===== */
.license {
  display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px; box-shadow: var(--shadow);
}
.license__seal {
  width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: #fff;
}
.license__seal svg { width: 54px; height: 54px; }
.license h3 { font-size: 24px; }
.license dl { display: grid; grid-template-columns: repeat(3, auto); gap: 6px 30px; margin: 0; justify-content: start; }
.license dt { color: var(--muted); font-size: 14px; }
.license dd { margin: 0; font-family: var(--font-head); font-weight: 700; color: var(--navy); }

/* ===== CTA ===== */
.cta {
  position: relative; padding: 90px 0; color: #fff; text-align: center;
  background: var(--navy) center / cover no-repeat;
}
.cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,26,58,.92), rgba(11,42,91,.82)); }
.cta .container { position: relative; }
.cta h2 { color: #fff; font-size: clamp(26px, 4vw, 40px); }
.cta p { color: #d5deee; font-size: 19px; margin-bottom: 30px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ===== Values / MVV ===== */
.mvv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.mvv__card {
  background: #fff; padding: 36px 30px; border-radius: var(--radius); box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
}
.mvv__card .feature__icon { background: rgba(11,42,91,.07); color: var(--navy); }
.mvv__card p { color: var(--muted); margin: 0; }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value { text-align: center; padding: 30px 20px; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; }
.value .feature__icon { margin-inline: auto; background: rgba(201,151,63,.12); color: var(--gold); }
.value h3 { font-size: 19px; }
.value p { color: var(--muted); font-size: 15px; margin: 0; }

/* ===== FAQ ===== */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 14px; }
.faq details {
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 0 24px;
  transition: border-color .25s;
}
.faq details[open] { border-color: var(--gold); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 0; font-family: var(--font-head); font-weight: 700;
  color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; color: var(--gold); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* ===== Contact ===== */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }
.contact__info { background: var(--navy); color: #dfe6f3; padding: 40px 34px; border-radius: var(--radius); }
.contact__info h3 { color: #fff; font-size: 24px; }
.contact__item { display: flex; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.contact__item:last-of-type { border-bottom: 0; }
.contact__item .icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center;
  background: rgba(201,151,63,.18); color: var(--gold-light);
}
.contact__item .icon svg { width: 22px; height: 22px; }
.contact__item small { display: block; color: #9fb0cc; font-size: 13px; }
.contact__item a, .contact__item strong { color: #fff; font-family: var(--font-head); font-weight: 700; }
.contact__item a { direction: ltr; unicode-bidi: embed; word-break: break-all; }

.form { background: #fff; padding: 40px 34px; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.form h3 { font-size: 24px; }
.form > p { color: var(--muted); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__field { display: flex; flex-direction: column; gap: 6px; }
.form__field--full { grid-column: 1 / -1; }
.form label { font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--navy); }
.form input, .form select, .form textarea {
  font: inherit; font-size: 16px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg-soft); color: var(--text); transition: border-color .2s, background .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); background: #fff; }
.form textarea { min-height: 130px; resize: vertical; }
.form .btn { margin-top: 22px; width: 100%; }

/* ===== Footer ===== */
.footer { background: var(--navy-dark); color: #b7c3d9; padding-top: 70px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer__logo { background: #fff; border-radius: 12px; padding: 8px; width: 120px; margin-bottom: 18px; }
.footer h4 { color: #fff; font-size: 18px; margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a:hover { color: var(--gold-light); }
.footer .ltr { direction: ltr; unicode-bidi: embed; word-break: break-all; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; text-align: center; font-size: 14px; }

/* ===== Floating WhatsApp ===== */
.wa-float {
  position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 90; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.45); animation: pulse 2.4s infinite;
}
.wa-float svg { width: 32px; height: 32px; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); }
  70% { box-shadow: 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ===== Language switch & LTR (English) ===== */
.lang-switch {
  font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--navy);
  border: 1px solid var(--border); border-radius: 50px; padding: 6px 14px;
}
.lang-switch:hover { border-color: var(--gold); color: var(--gold); }
.nav a.lang-switch::after { display: none; }

[dir="ltr"] { --font-head: "Cairo", sans-serif; --font-body: "Inter", "Tajawal", sans-serif; }
[dir="ltr"] body { font-size: 16px; line-height: 1.7; }
[dir="ltr"] .hero__overlay { background: linear-gradient(90deg, rgba(7,26,58,.92) 0%, rgba(7,26,58,.7) 55%, rgba(7,26,58,.35) 100%); }
[dir="ltr"] .icon-arrow { transform: scaleX(-1); }
[dir="ltr"] .step__num::before { content: counter(step); }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wa-float { animation: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .cards, .features, .mvv { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .trust__item:nth-child(3) { border-inline-start: 0; }
  .trust__item:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.1); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .license { gap: 28px; padding: 32px; }
}

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; top: 78px; inset-inline: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 10px 20px 24px; box-shadow: var(--shadow);
    transform: translateY(-120%); transition: transform .3s; z-index: -1;
  }
  .nav.is-open { transform: none; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 16px; }
  .nav a.lang-switch { align-self: flex-start; margin-top: 16px; padding: 6px 18px; border: 1px solid var(--border); }
  .split, .contact { grid-template-columns: 1fr; }
  .split__media { margin-bottom: 40px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .process { grid-template-columns: 1fr; gap: 0; max-width: 560px; margin-inline: auto; }
  .process::before { top: 32px; bottom: 32px; right: auto; left: auto; inset-inline-start: 31px; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--gold) 0 8px, transparent 8px 16px); }
  .step { display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; text-align: start; padding-bottom: 28px; }
  .step:last-child { padding-bottom: 0; }
  .step__num { width: 64px; height: 64px; margin: 0; font-size: 22px; grid-row: span 2; }
  .step h3 { margin: 6px 0 4px; }
  .step p { margin: 0; }
  .license { grid-template-columns: auto 1fr; }
  .license .btn { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .container { padding-inline: 16px; }
  .logo img { height: 52px; }
  .logo__text { display: none; }
  .cards, .features, .mvv, .values { grid-template-columns: 1fr; }
  .trust__grid { grid-template-columns: 1fr; }
  .trust__item { border-inline-start: 0; border-top: 1px solid rgba(255,255,255,.1); padding: 18px 4px; }
  .trust__item:first-child { border-top: 0; }
  .split__media .img-small { inset-inline-end: -6px; width: 40%; }
  .split__badge { inset-inline-end: 10px; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery figure:nth-child(n) { grid-column: auto; grid-row: auto; }
  .license { grid-template-columns: 1fr; text-align: center; padding: 30px 20px; }
  .license__seal { margin-inline: auto; }
  .license dl { grid-template-columns: 1fr; justify-content: center; }
  .license .btn { justify-self: center; }
  .form__grid { grid-template-columns: 1fr; }
  .form, .contact__info { padding: 30px 20px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer__grid > :first-child, .footer__grid > :last-child { grid-column: 1 / -1; }
  .hero__actions .btn, .cta__actions .btn { flex: 1 1 100%; }
}
