/* ===== مكتب المهندس للاستشارات الهندسية - ثيم Blueprint Navy/Gold ===== */
:root {
  --navy: #0b3255;
  --navy-2: #124a7d;
  --navy-dark: #082238;
  --navy-deep: #05141f;
  --navy-light: #eaf1f8;
  --gold: #b8892b;
  --gold-light: #e8c165;
  --steel: #eef2f6;
  --bg: #f6f8fa;
  --text: #101c28;
  --muted: #56697a;
  --white: #ffffff;
  --line: #dde5ec;
  --wa: #25d366;
  --wa-dark: #128c7e;
  --shadow-sm: 0 4px 14px -6px rgba(5,20,31,.18);
  --shadow: 0 24px 60px -28px rgba(5,20,31,.35);
  --shadow-lg: 0 40px 90px -40px rgba(5,20,31,.5);
  --radius: 22px;
  --radius-sm: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: "Tajawal", "Cairo", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { width: min(1220px, 92%); margin-inline: auto; }
.section { padding: 110px 0; position: relative; }
h1, h2, h3, h4 { font-family: "Cairo", "Tajawal", sans-serif; line-height: 1.3; letter-spacing: -0.01em; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.show { opacity: 1; transform: none; }

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,248,250,.85);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(5,20,31,.06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; width: min(1220px, 92%); margin-inline: auto; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 48px; height: 48px; border-radius: 12px; background: var(--navy-deep); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.brand-text { font-weight: 900; font-size: 19px; color: var(--navy-dark); display: flex; flex-direction: column; line-height: 1.25; }
.brand-text small { font-weight: 500; font-size: 11.5px; color: var(--muted); letter-spacing: .2px; }
.nav-links { display: flex; gap: 6px; background: rgba(255,255,255,.6); padding: 6px; border-radius: 999px; border: 1px solid var(--line); }
.nav-links a { font-weight: 600; color: var(--text); font-size: 14.5px; padding: 8px 16px; border-radius: 999px; transition: all .25s; }
.nav-links a:hover { color: var(--navy-2); background: var(--navy-light); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--navy-dark); color: #fff; font-weight: 800;
  padding: 12px 22px; border-radius: 999px;
  transition: transform .25s, box-shadow .25s, background .25s;
  border: 2px solid var(--navy-dark);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow); background: var(--navy-2); border-color: var(--navy-2); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 0 0 rgba(232,193,90,.7); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(232,193,90,0); } 100% { box-shadow: 0 0 0 0 rgba(232,193,90,0); } }

/* ===== HERO (Blueprint) ===== */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; background: var(--navy-deep); }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(232,193,90,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,193,90,.08) 1px, transparent 1px);
  background-size: 44px 44px;
  animation: drift 30s linear infinite;
}
@keyframes drift { to { background-position: 44px 44px; } }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 85% 15%, rgba(184,137,43,.22), transparent 70%),
    linear-gradient(200deg, rgba(5,20,31,.55) 0%, rgba(5,20,31,.88) 60%, rgba(5,20,31,.97) 100%);
}
.hero::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: -1px; height: 90px; width: 100%;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: 2;
}
.hero-content { position: relative; z-index: 3; color: #fff; padding: 120px 0 130px; width: min(1220px, 92%); margin-inline: auto; max-width: 820px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  padding: 9px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600; margin-bottom: 26px;
  backdrop-filter: blur(6px);
}
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 12px var(--gold-light); }
.hero h1 { font-size: clamp(32px, 5.6vw, 60px); font-weight: 900; letter-spacing: -0.02em; }
.hero h1 .accent { color: var(--gold-light); font-style: italic; font-weight: 800; position: relative; display: inline-block; }
.hero h1 .accent::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: 6px; height: 12px; width: 100%;
  background: rgba(232,193,90,.18); z-index: -1; border-radius: 4px;
}
.hero .lead { font-size: clamp(16px, 1.9vw, 20px); margin: 26px 0 36px; color: rgba(255,255,255,.85); max-width: 660px; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-top: 50px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.14); }
.hb { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: rgba(255,255,255,.85); font-weight: 600; }
.hb span { color: var(--gold-light); font-weight: 900; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 24px; border-radius: 999px; font-weight: 800; border: none; cursor: pointer;
  transition: transform .25s, box-shadow .25s, background .25s; font-family: inherit;
  position: relative; overflow: hidden;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn .btn-text { display: flex; flex-direction: column; line-height: 1.25; text-align: right; }
.btn .btn-text small { font-size: 11px; opacity: .85; font-weight: 500; }
.btn .btn-text b { font-size: 16px; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }
.btn-call { background: var(--gold-light); color: #2a1e00; }
.btn-call:hover { background: var(--gold); color: #fff; }
.btn-light { background: #fff; color: var(--navy-dark); }
.btn-light:hover { background: var(--steel); }

/* ===== SECTION HEADS ===== */
.section-head { text-align: center; max-width: 700px; margin: 0 auto 64px; }
.section-eyebrow {
  display: inline-block; color: var(--navy-2); font-weight: 800; font-size: 13px;
  letter-spacing: 2px; margin-bottom: 14px; text-transform: uppercase;
  padding: 6px 14px; background: var(--navy-light); border-radius: 999px;
}
.section-head h2 { font-size: clamp(28px, 4.4vw, 46px); font-weight: 900; color: var(--navy-dark); letter-spacing: -0.02em; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 16px; }

/* ===== ABOUT ===== */
.about { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: center; }
.about-visual { position: relative; }
.blueprint-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; }
.blueprint-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-visual::before {
  content: ""; position: absolute; inset: -20px 20px 20px -20px;
  background: repeating-linear-gradient(45deg, var(--navy-light) 0 2px, transparent 2px 12px);
  border-radius: var(--radius); z-index: -1;
}
.about-badge {
  position: absolute; bottom: -24px; inset-inline-start: -24px;
  background: var(--navy-dark); color: #fff; border-radius: 20px; padding: 18px 24px;
  text-align: center; box-shadow: var(--shadow-lg);
  border: 4px solid var(--bg); font-weight: 900; font-size: 15px;
}
.about-badge span { display: block; font-size: 11.5px; font-weight: 500; color: var(--gold-light); letter-spacing: .3px; margin-top: 3px; }
.about-content .section-eyebrow { margin-bottom: 12px; }
.about-content h2 { font-size: clamp(26px, 3.8vw, 40px); color: var(--navy-dark); margin-bottom: 18px; }
.about-content > p { color: var(--muted); margin-bottom: 16px; font-size: 15.5px; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.about-features > div { display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: #fff; border-radius: 14px; border: 1px solid var(--line); transition: transform .25s; }
.about-features > div:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.check { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--navy-2); color: #fff; display: grid; place-items: center; font-weight: 800; }
.about-features b { display: block; color: var(--navy-dark); font-size: 15px; }
.about-features span { font-size: 12.5px; color: var(--muted); }

/* ===== SERVICES ===== */
.services { background: linear-gradient(180deg, #fff 0%, var(--steel) 100%); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.svc-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column; padding: 30px 26px;
}
.svc-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: var(--navy-2); }
.svc-icon {
  width: 58px; height: 58px; border-radius: 16px; margin-bottom: 18px;
  background: var(--navy-light); color: var(--navy-2);
  display: grid; place-items: center;
}
.svc-tag {
  display: inline-block; background: var(--navy-dark); color: var(--gold-light);
  font-weight: 700; font-size: 11.5px; padding: 6px 14px; border-radius: 999px;
  margin-bottom: 14px; letter-spacing: .4px; align-self: flex-start;
}
.svc-card h3 { font-size: 20px; color: var(--navy-dark); margin-bottom: 10px; font-weight: 800; }
.svc-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; flex: 1; }
.more {
  color: var(--navy-2); font-weight: 800; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  padding-top: 12px; border-top: 1px dashed var(--line);
}
.more:hover { color: var(--gold); }

.extra-services { margin-top: 60px; text-align: center; }
.extra-services h4 { font-size: 20px; color: var(--navy-dark); margin-bottom: 22px; font-weight: 800; }
.chips-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.chip {
  background: #fff; border: 1px solid rgba(11,50,85,.15); color: var(--navy-dark);
  font-weight: 700; padding: 12px 20px; border-radius: 14px;
  box-shadow: var(--shadow-sm); transition: transform .25s, background .25s, color .25s;
  font-size: 13.5px;
}
.chip:hover { transform: translateY(-3px); background: var(--navy-dark); color: var(--gold-light); }

/* ===== WHY ===== */
.why { background: var(--navy-deep); color: #fff; position: relative; overflow: hidden; }
.why::before {
  content: ""; position: absolute; inset: 0; opacity: .06;
  background-image: radial-gradient(circle at 20% 20%, var(--gold-light) 1px, transparent 1px), radial-gradient(circle at 80% 70%, var(--gold-light) 1px, transparent 1px);
  background-size: 40px 40px;
}
.why .section-head { position: relative; }
.why .section-head h2 { color: #fff; }
.why .section-eyebrow { color: var(--gold-light); background: rgba(232,193,90,.12); }
.why .section-head p { color: rgba(255,255,255,.7); }
.why-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; }
.why-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 30px 22px; text-align: center;
  transition: transform .3s, background .3s, border-color .3s;
  backdrop-filter: blur(4px);
}
.why-card:hover { transform: translateY(-8px); background: rgba(232,193,90,.08); border-color: var(--gold-light); }
.why-icon {
  width: 62px; height: 62px; border-radius: 18px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy-deep);
  display: grid; place-items: center; font-size: 28px; margin: 0 auto 16px;
  box-shadow: 0 12px 24px -12px rgba(232,193,90,.5);
}
.why-card h3 { color: #fff; font-size: 17px; margin-bottom: 10px; font-weight: 800; }
.why-card p { color: rgba(255,255,255,.7); font-size: 13.5px; }

/* ===== GALLERY ===== */
.gallery { background: var(--white); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; gap: 18px; }
.g-item { overflow: hidden; border-radius: 18px; position: relative; box-shadow: var(--shadow-sm); background: var(--navy-deep); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.g-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,20,31,.85) 0%, rgba(5,20,31,.15) 45%, transparent 60%);
}
.g-item:hover img { transform: scale(1.08); }
.g-cap {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 2;
  padding: 16px 18px; color: #fff; font-size: 13.5px; font-weight: 700; line-height: 1.5;
}

/* ===== PROCESS ===== */
.process { background: var(--steel); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; }
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step-no { font-family: "Cairo", sans-serif; font-weight: 900; font-size: 30px; color: var(--gold); margin-bottom: 10px; }
.step-card h3 { color: var(--navy-dark); font-size: 18px; margin-bottom: 8px; font-weight: 800; }
.step-card p { color: var(--muted); font-size: 14px; }

/* ===== CTA ===== */
.cta {
  background: linear-gradient(120deg, var(--navy-deep) 0%, var(--navy-dark) 60%, var(--navy) 100%);
  color: #fff; padding: 90px 0; position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; inset-inline-end: -100px; top: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,193,90,.15), transparent 70%);
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; position: relative; }
.cta-inner h2 { font-size: clamp(26px, 3.8vw, 38px); font-weight: 900; }
.cta-inner p { color: rgba(255,255,255,.8); margin-top: 10px; font-size: 16px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== FAQ ===== */
.faq { background: var(--white); }
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item {
  background: var(--bg); border: 1px solid var(--line); border-radius: 16px;
  margin-bottom: 14px; overflow: hidden; transition: box-shadow .25s, border-color .25s;
}
.faq-item[open] { box-shadow: var(--shadow); border-color: var(--navy-2); }
.faq-item summary {
  cursor: pointer; padding: 22px 26px; font-weight: 800; color: var(--navy-dark);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-size: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; color: var(--navy-2); font-size: 26px; font-weight: 700;
  width: 32px; height: 32px; border-radius: 50%; background: var(--navy-light);
  display: grid; place-items: center; flex: none; transition: transform .3s;
}
.faq-item[open] summary::after { content: "−"; transform: rotate(180deg); background: var(--navy-2); color: #fff; }
.faq-item p { padding: 0 26px 22px; color: var(--muted); }

/* ===== CONTACT ===== */
.contact { background: var(--navy-light); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.contact-card h3 { color: var(--navy-dark); margin-bottom: 24px; font-size: 22px; font-weight: 800; }
.contact-item { display: flex; gap: 16px; margin-bottom: 20px; align-items: flex-start; }
.contact-item .icon {
  flex: none; width: 48px; height: 48px; border-radius: 14px;
  background: var(--navy-light); color: var(--navy-2);
  display: grid; place-items: center; font-size: 20px;
}
.contact-item b { display: block; color: var(--navy-dark); margin-bottom: 4px; }
.contact-item a, .contact-item p { color: var(--muted); }
.contact-item a:hover { color: var(--navy-2); }
.form-row { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-weight: 700; color: var(--navy-dark); font-size: 14px; }
.form-row input, .form-row textarea, .form-row select {
  font-family: inherit; padding: 13px 16px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--bg); font-size: 15px; transition: border-color .2s, background .2s;
}
.form-row textarea { min-height: 110px; resize: vertical; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none; border-color: var(--navy-2); background: #fff;
  box-shadow: 0 0 0 4px rgba(11,50,85,.08);
}

/* ===== FOOTER ===== */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.7); padding: 70px 0 28px; position: relative; }
.footer::before {
  content: ""; position: absolute; top: 0; inset-inline: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand .brand-mark { width: 46px; height: 46px; }
.footer .desc { margin-top: 18px; font-size: 14px; line-height: 1.9; }
.footer h4 { color: #fff; margin-bottom: 18px; font-size: 17px; font-weight: 800; position: relative; padding-bottom: 10px; }
.footer h4::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 30px; height: 2px; background: var(--gold-light); }
.footer ul li { margin-bottom: 10px; font-size: 14px; }
.footer ul li a { transition: color .2s, padding-inline-start .2s; }
.footer ul li a:hover { color: var(--gold-light); padding-inline-start: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px; text-align: center; font-size: 13px; }

/* ===== FLOATING ===== */
.floating-actions {
  position: fixed; right: 20px; left: auto; bottom: 24px; z-index: 60;
  display: flex; flex-direction: column; gap: 14px;
}
.floating-call, .floating-wa {
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 14px 34px -8px rgba(0,0,0,.35);
  position: relative; transition: transform .25s;
}
.floating-call:hover, .floating-wa:hover { transform: scale(1.1); }
.floating-call { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: #2a1e00; }
.floating-wa { background: var(--wa); }
.floating-wa::before {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--wa); animation: ring 1.8s infinite;
}
@keyframes ring {
  0% { opacity: .8; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.4); }
}
.wa-ping { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-badge { inset-inline-start: auto; inset-inline-end: -10px; bottom: -18px; }
  .svc-grid, .steps-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .section { padding: 80px 0; }
}
@media (max-width: 620px) {
  .section { padding: 64px 0; }
  .svc-grid, .steps-grid, .why-grid, .footer-grid, .about-features { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .hero-badges { gap: 12px 20px; }
  .cta-inner { flex-direction: column; text-align: center; }
  .floating-actions { right: 14px; left: auto; bottom: 14px; }
  .floating-call, .floating-wa { width: 56px; height: 56px; }
  .nav-cta { padding: 10px 16px; font-size: 13px; }
  .brand-text { font-size: 16px; }
  .brand-text small { font-size: 10.5px; }
}
