:root {
  --primary: #153b5b;
  --primary-2: #215f8d;
  --primary-soft: #edf4f8;
  --accent: #c59b56;
  --graphite: #2f3a43;
  --slate: #687681;
  --muted: #7f8a93;
  --line: #dde4e9;
  --surface: #ffffff;
  --surface-2: #f7f9fa;
  --shadow: 0 18px 50px rgba(18, 44, 65, .10);
  --radius: 22px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
  background: var(--surface);
  color: var(--graphite);
  line-height: 1.8;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.section { padding: 100px 0; }
.section-pad { padding: 72px 0 92px; }
.section-light { background: var(--surface-2); }
.skip-link { position: fixed; top: -80px; right: 20px; background: var(--primary); color: white; padding: 10px 16px; z-index: 9999; border-radius: 10px; }
.skip-link:focus { top: 14px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(221,228,233,.8);
}
.nav-wrap { min-height: 82px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 13px; min-width: 300px; }
.brand-logo { width: 62px; height: 62px; object-fit: contain; border-radius: 12px; }
.brand-text { display: grid; line-height: 1.3; }
.brand-text strong { color: var(--primary); font-size: 18px; font-weight: 800; }
.brand-text small { color: var(--slate); font-size: 12px; margin-top: 5px; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 26px; flex: 1; }
.main-nav a { font-size: 14px; font-weight: 700; color: #4a5660; transition: .25s ease; position: relative; }
.main-nav a::after { content: ""; position: absolute; right: 0; bottom: -8px; width: 0; height: 2px; background: var(--accent); transition: .25s ease; }
.main-nav a:hover { color: var(--primary); }
.main-nav a:hover::after { width: 100%; }
.header-cta { background: var(--primary); color: white; padding: 11px 18px; border-radius: 12px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.menu-toggle { display: none; border: 0; background: transparent; width: 42px; height: 42px; padding: 9px; }
.menu-toggle span { display: block; height: 2px; background: var(--primary); margin: 5px 0; border-radius: 4px; }

.hero { position: relative; isolation: isolate; background: linear-gradient(180deg, #fff 0%, #fbfcfd 100%); overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 540px; height: 540px; border-radius: 50%; background: radial-gradient(circle, rgba(33,95,141,.10), transparent 68%); top: -240px; left: -150px; z-index: -1; }
.hero-grid-bg { position: absolute; inset: 0; opacity: .025; z-index: -2; background-image: linear-gradient(var(--primary) 1px, transparent 1px), linear-gradient(90deg, var(--primary) 1px, transparent 1px); background-size: 44px 44px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--primary-2); font-weight: 800; font-size: 13px; letter-spacing: .2px; margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); border-radius: 10px; }
.hero h1, .section-heading h2, .vision-card h2, .contact-info h2, .cta-band h2 { margin: 0; line-height: 1.35; color: #1f2c35; }
.hero h1 { font-size: clamp(38px, 5vw, 64px); letter-spacing: -1.8px; max-width: 820px; }
.hero h1 span { color: var(--primary-2); }
.hero-copy > p { margin: 24px 0 30px; color: var(--slate); font-size: 17px; max-width: 720px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { border: 0; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 13px; font-weight: 800; font-size: 14px; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 12px 26px rgba(21,59,91,.18); }
.btn-outline { border: 1px solid #cad5dc; background: #fff; color: var(--primary); }
.btn-light { background: #fff; color: var(--primary); }
.hero-facts { margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hero-facts div { display: grid; gap: 2px; }
.hero-facts strong { font-size: 14px; color: var(--primary); }
.hero-facts span { font-size: 12px; color: var(--muted); }
.hero-visual { position: relative; }

.bg-1 { --bg: url('../images/1.png'); }
.bg-2 { --bg: url('../images/2.png'); }
.bg-3 { --bg: url('../images/3.png'); }
.bg-4 { --bg: url('../images/4.png'); }
.hero-image { min-height: 560px; border-radius: 34px 34px 34px 120px; overflow: hidden; box-shadow: var(--shadow); position: relative; background-image: linear-gradient(180deg, rgba(19,52,77,.06), rgba(19,52,77,.62)), var(--bg, linear-gradient(135deg,#254e6d,#7f8f9a)); background-size: cover; background-position: center; }
.hero-image::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.3); border-radius: inherit; pointer-events: none; }
.hero-card { position: absolute; right: 28px; left: 28px; bottom: 28px; padding: 20px 22px; border-radius: 18px; background: rgba(255,255,255,.93); backdrop-filter: blur(10px); display: grid; gap: 5px; }
.hero-card span { color: var(--accent); font-weight: 800; font-size: 12px; }
.hero-card strong { color: var(--primary); font-size: 17px; }

.two-col { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.section-heading h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -.8px; }
.section-heading p { color: var(--muted); max-width: 680px; margin: 16px 0 0; }
.section-heading.center { text-align: center; max-width: 820px; margin: 0 auto 48px; }
.section-heading.center .eyebrow { justify-content: center; }
.about-text p { margin: 0 0 17px; color: var(--slate); font-size: 16px; }
.about-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.about-points span { background: white; border: 1px solid var(--line); padding: 9px 14px; border-radius: 999px; color: var(--primary); font-size: 13px; font-weight: 700; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: white; min-height: 250px; transition: .25s ease; }
.service-card:hover { transform: translateY(-5px); border-color: #c4d1da; box-shadow: var(--shadow); }
.service-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--primary-soft); color: var(--primary); font-weight: 800; font-size: 13px; }
.service-card h3 { margin: 24px 0 10px; color: #23323c; font-size: 21px; }
.service-card p { color: var(--muted); margin: 0; font-size: 14px; }

.project-showcase { background: #111f29; color: white; }
.project-showcase .section-heading h2 { color: white; }
.project-showcase .section-heading p { color: #aebac3; }
.project-showcase .eyebrow { color: #d9e7f0; }
.project-grid { margin-top: 42px; display: grid; grid-template-columns: 1.2fr .8fr; grid-template-rows: 280px 280px; gap: 18px; }
.project-item { margin: 0; position: relative; overflow: hidden; border-radius: 22px; background-image: linear-gradient(180deg, transparent 30%, rgba(5,16,24,.80) 100%), var(--bg, linear-gradient(135deg,#254e6d,#657783)); background-size: cover; background-position: center; min-height: 260px; }
.project-large { grid-row: span 2; }
.project-wide { display: none; }
.project-item figcaption { position: absolute; right: 24px; left: 24px; bottom: 22px; display: grid; gap: 3px; }
.project-item strong { font-size: 20px; }
.project-item span { color: #d3dce2; font-size: 13px; }

.vision-section { background: linear-gradient(180deg, #fff, #f6f8fa); }
.vision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.vision-card { background: var(--primary); color: white; padding: 48px; border-radius: 28px; min-height: 420px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.vision-card::after { content: ""; position: absolute; width: 240px; height: 240px; border: 48px solid rgba(255,255,255,.05); border-radius: 50%; left: -100px; bottom: -100px; }
.vision-card .eyebrow { color: #dcebf5; }
.vision-card h2 { color: white; font-size: clamp(28px, 3vw, 40px); position: relative; z-index: 1; }
.vision-card p { color: #d9e5ec; max-width: 570px; position: relative; z-index: 1; }
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.values-grid article { border: 1px solid var(--line); background: white; border-radius: 22px; padding: 28px; display: flex; flex-direction: column; justify-content: center; min-height: 195px; }
.values-grid strong { color: var(--primary); font-size: 20px; margin-bottom: 8px; }
.values-grid span { color: var(--muted); font-size: 14px; }

.process-section { padding-top: 50px; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.process-step { padding: 26px 24px; border-top: 3px solid var(--primary); background: var(--surface-2); border-radius: 0 0 18px 18px; }
.process-step > span { display: inline-block; color: var(--accent); font-size: 13px; font-weight: 800; margin-bottom: 20px; }
.process-step h3 { margin: 0 0 9px; color: var(--primary); }
.process-step p { margin: 0; color: var(--muted); font-size: 13px; }

.cta-band { padding: 34px 0; background: var(--primary-2); color: white; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-band span { color: #cfe2ef; font-size: 13px; font-weight: 700; }
.cta-band h2 { color: white; font-size: clamp(22px, 3vw, 34px); max-width: 800px; margin-top: 4px; }

.contact-section { background: white; }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: start; }
.contact-info h2 { font-size: clamp(30px, 4vw, 44px); }
.contact-info > p { color: var(--muted); }
.contact-list { margin-top: 28px; display: grid; gap: 12px; }
.contact-list > * { border: 1px solid var(--line); border-radius: 14px; padding: 15px 17px; display: grid; gap: 2px; transition: .2s; }
.contact-list a:hover { border-color: #b8c7d1; background: #fbfcfd; }
.contact-list span { font-size: 12px; color: var(--muted); }
.contact-list strong { font-size: 15px; color: var(--primary); }
.contact-form { background: #f7f9fa; border: 1px solid var(--line); border-radius: 26px; padding: 34px; }
.contact-form h3 { margin: 0; font-size: 25px; color: var(--primary); }
.contact-form > p { margin: 5px 0 24px; color: var(--muted); font-size: 13px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid label { display: grid; gap: 7px; }
.form-grid label.full { grid-column: 1 / -1; }
.form-grid label > span { font-size: 13px; font-weight: 700; color: #51606c; }
input, textarea, select { width: 100%; border: 1px solid #ced8df; background: white; border-radius: 12px; padding: 12px 13px; outline: none; color: #2b3944; transition: .2s; }
input:focus, textarea:focus, select:focus { border-color: var(--primary-2); box-shadow: 0 0 0 3px rgba(33,95,141,.09); }
textarea { resize: vertical; min-height: 135px; }
.submit-btn { margin-top: 18px; min-width: 160px; }
.form-status { margin-top: 14px; min-height: 24px; font-size: 13px; font-weight: 700; }
.form-status.success { color: #187a43; }
.form-status.error { color: #b3261e; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.whatsapp-float { position: fixed; left: 22px; bottom: 22px; z-index: 1100; display: flex; align-items: center; gap: 8px; background: #1f9f59; color: white; padding: 11px 15px; border-radius: 999px; box-shadow: 0 12px 30px rgba(17,104,59,.25); font-size: 13px; font-weight: 800; }
.whatsapp-float svg { width: 22px; height: 22px; fill: currentColor; }

.site-footer { padding: 30px 0; background: #0d1921; color: #c6d0d7; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .9fr 1fr; gap: 30px; align-items: center; font-size: 13px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 52px; height: 52px; object-fit: contain; background: white; border-radius: 10px; }
.footer-brand div { display: grid; }
.footer-brand strong { color: white; font-size: 16px; }
.footer-brand span { color: #aab7c0; font-size: 11px; }
.site-footer p { margin: 0; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  .brand { min-width: auto; }
  .brand-text small { display: none; }
  .main-nav { gap: 15px; }
  .hero-grid { gap: 38px; }
  .hero-image { min-height: 500px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .section { padding: 74px 0; }
  .section-pad { padding: 48px 0 72px; }
  .nav-wrap { min-height: 72px; }
  .brand-logo { width: 52px; height: 52px; }
  .header-cta { display: none; }
  .menu-toggle { display: block; margin-right: auto; }
  .main-nav { position: absolute; top: calc(100% + 1px); right: 20px; left: 20px; display: grid; gap: 0; background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .2s ease; }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .main-nav a { padding: 12px 14px; border-radius: 10px; }
  .main-nav a:hover { background: var(--primary-soft); }
  .main-nav a::after { display: none; }
  .hero-grid, .two-col, .vision-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; }
  .hero-image { min-height: 440px; border-radius: 28px 28px 28px 78px; }
  .hero-facts { grid-template-columns: 1fr; gap: 12px; }
  .two-col { gap: 28px; }
  .project-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 320px 240px; }
  .project-large { grid-column: 1 / -1; grid-row: auto; }
  .vision-card { min-height: 340px; }
  .cta-band-inner { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-content: center; }
}

@media (max-width: 580px) {
  .container { width: min(100% - 28px, var(--container)); }
  .brand-text strong { font-size: 15px; }
  .brand-logo { width: 46px; height: 46px; }
  .hero h1 { font-size: 38px; }
  .hero-copy > p { font-size: 15px; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .services-grid, .values-grid, .process-grid, .form-grid { grid-template-columns: 1fr; }
  .form-grid label.full { grid-column: auto; }
  .project-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .project-item, .project-large { min-height: 290px; grid-column: auto; }
  .vision-card, .contact-form { padding: 26px; }
  .whatsapp-float span { display: none; }
  .whatsapp-float { width: 50px; height: 50px; padding: 0; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}
