/* نظام عندل — الموقع العام */
@font-face {
  font-family: 'Cairo';
  src: url('../fonts/Cairo-Variable.ttf') format('truetype');
  font-weight: 200 900;
  font-display: swap;
}
:root {
  --navy: #12395B;
  --navy-dark: #0d2c48;
  --accent: #E8A33D;
  --accent-dark: #c9881f;
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #1c2b3a;
  --muted: #5b6b7c;
  --line: #e3e9f0;
  --radius: 14px;
  --ok: #1c7c4c; --danger: #c0392b; --warn: #b9770e; --info: #1b4a75; --new: #6c3fc5; --muted-bg: #95a5a6;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif; background: var(--bg); color: var(--text); line-height: 1.8; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 18px; }
a { color: var(--navy); text-decoration: none; }
img { max-width: 100%; }

/* الهيدر */
.site-header { background: var(--navy); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand-mark { width: 42px; height: 42px; background: var(--accent); color: var(--navy-dark); border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text strong { font-size: 16px; }
.brand-text small { font-size: 11px; color: #cdd9e5; }
.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.main-nav > a { color: #e8eef5; padding: 8px 12px; border-radius: 8px; font-size: 14.5px; }
.main-nav > a:hover, .main-nav > a.active { background: rgba(255,255,255,.12); color: #fff; }
.lang-toggle { border: 1px solid rgba(255,255,255,.35); }
.hamburger { display: none; background: none; border: 1.5px solid rgba(255,255,255,.5); border-radius: 8px; padding: 8px; cursor: pointer; }
.hamburger span { display: block; width: 22px; height: 2.5px; background: #fff; margin: 4px 0; border-radius: 2px; transition: .25s; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* الأزرار */
.btn { display: inline-block; padding: 10px 22px; border-radius: 9px; font-weight: 700; font-size: 14.5px; border: none; cursor: pointer; font-family: inherit; transition: .2s; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 13px 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: var(--navy-dark); }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); }
.btn-outline { border: 1.5px solid var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-light { border: 1.5px solid rgba(255,255,255,.6); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--navy); }

/* البطل */
.hero { background: linear-gradient(135deg, var(--navy) 0%, #1d4e79 60%, #2c6a9e 100%); color: #fff; padding: 84px 0; }
.hero-inner h1 { font-size: clamp(26px, 4.5vw, 44px); max-width: 720px; }
.hero-inner p { margin: 16px 0 26px; font-size: clamp(15px, 2vw, 18px); color: #dbe6f0; max-width: 640px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* الأقسام */
.section { padding: 58px 0; }
.alt-bg { background: #eef2f7; }
.section-title { text-align: center; font-size: clamp(20px, 3vw, 28px); color: var(--navy); margin-bottom: 30px; position: relative; padding-bottom: 12px; }
.section-title::after { content: ''; position: absolute; bottom: 0; right: 50%; transform: translateX(50%); width: 70px; height: 3.5px; background: var(--accent); border-radius: 3px; }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.card { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: 0 3px 14px rgba(18,57,91,.07); border: 1px solid var(--line); }
.service-card h3, .project-card h3 { margin: 8px 0; color: var(--navy); }
.service-num { width: 38px; height: 38px; border-radius: 10px; background: rgba(232,163,61,.15); color: var(--accent-dark); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.project-thumb { width: 100%; height: 130px; border-radius: 10px; background: linear-gradient(135deg, var(--navy), #2c6a9e); color: #fff; font-size: 46px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.link-more { color: var(--accent-dark); font-weight: 700; font-size: 14px; }
.center-btn { text-align: center; margin-top: 26px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.empty-state { text-align: center; padding: 40px 16px; color: var(--muted); background: #fff; border: 1.5px dashed var(--line); border-radius: var(--radius); }
.quote-card footer { margin-top: 12px; }

/* شريط دعوة */
.cta-strip { background: var(--navy); color: #fff; padding: 46px 0; text-align: center; }
.cta-inner h2 { font-size: 24px; margin-bottom: 8px; }
.cta-inner p { color: #cdd9e5; margin-bottom: 18px; }

/* صفحات المحتوى */
.page-banner { background: var(--navy); color: #fff; padding: 38px 0; }
.page-banner h1 { font-size: clamp(22px, 3vw, 30px); }
.services-list { display: grid; gap: 16px; }
.service-row h2 { color: var(--navy); font-size: 19px; margin-bottom: 6px; }
.page-content { font-size: 15.5px; line-height: 2; }

/* النماذج */
.form-page { max-width: 760px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 16px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 6px; color: #2c3e50; }
.form-control { width: 100%; padding: 11px 13px; border: 1.5px solid #cfd8e3; border-radius: 9px; font-size: 14.5px; font-family: inherit; background: #fff; color: var(--text); }
.form-control:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(18,57,91,.12); }
.hp-field { position: absolute !important; right: -9999px !important; opacity: 0 !important; }
.success-card { text-align: center; padding: 44px 24px; }
.success-icon { width: 66px; height: 66px; border-radius: 50%; background: #e7f5ee; color: var(--ok); font-size: 32px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-weight: 800; }
.ref-num { font-size: 22px; color: var(--navy); letter-spacing: 1px; }
.ref-line { margin: 12px 0; }
.alert { padding: 13px 16px; border-radius: 9px; margin-bottom: 14px; font-size: 14px; line-height: 1.8; }
.alert-error { background: #fdecea; color: #96281b; border: 1px solid #f5c6c0; }

/* تواصل */
.contact-layout { display: grid; grid-template-columns: 320px 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }
.info-list { list-style: none; }
.info-list li { padding: 10px 0; border-bottom: 1px dashed var(--line); display: flex; align-items: center; gap: 10px; }
.info-icon { width: 34px; height: 34px; background: rgba(18,57,91,.08); border-radius: 8px; display: flex; align-items: center; justify-content: center; }

/* التذييل */
.site-footer { background: var(--navy-dark); color: #cdd9e5; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; padding: 42px 18px; }
.footer-grid h3 { color: #fff; font-size: 16px; margin-bottom: 12px; }
.footer-links { list-style: none; }
.footer-links a { color: #cdd9e5; display: block; padding: 4px 0; font-size: 14px; }
.footer-contact { list-style: none; font-size: 14px; }
.whatsapp-float { position: fixed; bottom: 22px; left: 22px; background: #25d366; color: #fff; padding: 12px 18px; border-radius: 30px; font-weight: 700; box-shadow: 0 4px 14px rgba(0,0,0,.25); z-index: 60; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 14px 0; font-size: 13px; text-align: center; }

/* الجوال */
@media (max-width: 900px) {
  .hamburger { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; right: 0; left: 0; background: var(--navy-dark); flex-direction: column; align-items: stretch; padding: 14px 18px 20px; gap: 6px; box-shadow: 0 10px 18px rgba(0,0,0,.25); }
  .main-nav.open { display: flex; }
  .main-nav > a { padding: 12px 14px; }
}
