/* ====== متغيرات الألوان ====== */
:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --blue: #1d6fb8;
  --amber: #f4a300;
  --amber-d: #d98c00;
  --ink: #1c2433;
  --muted: #5a6675;
  --bg: #ffffff;
  --bg-alt: #f3f6fb;
  --line: #e3e9f2;
  --green: #25d366;
  --radius: 16px;
  --shadow: 0 14px 40px rgba(11, 37, 69, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Tajawal", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
}

h1, h2, h3, h4 { font-family: "Cairo", sans-serif; line-height: 1.3; margin: 0; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container { width: min(1140px, 92%); margin-inline: auto; }

/* ====== الأزرار ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: "Cairo", sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--amber); color: #1a1300; box-shadow: 0 8px 22px rgba(244,163,0,.35); }
.btn-primary:hover { background: var(--amber-d); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-call { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-wa { background: var(--green); color: #fff; }
.btn-block { width: 100%; padding: 15px; font-size: 16px; }

/* ====== الهيدر ====== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff; display: grid; place-items: center;
  font-family: "Cairo"; font-weight: 900; letter-spacing: 1px;
}
.brand-text strong { display: block; font-family: "Cairo"; font-size: 16px; color: var(--navy); }
.brand-text small { color: var(--muted); font-size: 12px; }
.main-nav { display: flex; gap: 22px; margin-inline-start: auto; }
.main-nav a { font-weight: 500; color: var(--ink); font-size: 15px; }
.main-nav a:hover { color: var(--blue); }
.header-actions { display: flex; gap: 8px; align-items: center; }

/* زرار القائمة (الهامبرجر) */
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: #fff; border-radius: 12px; cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 22px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* قوائم منسدلة */
.has-menu { position: relative; }
.menu-trigger { display: inline-flex; align-items: center; gap: 4px; }
.caret { font-size: 11px; transition: transform .2s; }
.has-menu:hover .caret { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: 100%; inset-inline-start: 0;
  min-width: 210px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); padding: 8px;
  display: grid; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 70;
}
.has-menu:hover .dropdown,
.has-menu:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(4px); }
.dropdown a {
  display: block; padding: 9px 14px; border-radius: 8px;
  font-family: "Cairo"; font-weight: 600; font-size: 14px; color: var(--navy);
}
.dropdown a:hover { background: var(--bg-alt); color: var(--blue); }

/* ====== الهيرو ====== */
.hero {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(29,111,184,.35), transparent 60%),
    linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 60%, #0a1f3c 100%);
  color: #fff;
  padding: 70px 0 80px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-block; font-family: "Cairo"; font-weight: 700; font-size: 13px;
  letter-spacing: .5px; color: var(--amber); background: rgba(244,163,0,.12);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.hero h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
.hero .lead { color: #d4def0; font-size: 18px; margin: 18px 0 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; color: #cfdaee; font-size: 15px; }

.hero-card {
  background: #fff; color: var(--ink); border-radius: 20px;
  padding: 26px; box-shadow: var(--shadow); position: relative;
}
.hero-badge {
  position: absolute; top: -14px; inset-inline-start: 24px;
  background: var(--amber); color: #1a1300; font-family: "Cairo"; font-weight: 800;
  font-size: 13px; padding: 6px 14px; border-radius: 999px;
}
.hero-card h3 { color: var(--navy); font-size: 20px; margin-top: 6px; }
.hero-illustration { margin: 6px 0 14px; border-radius: 14px; overflow: hidden; }
.hero-illustration svg { width: 100%; height: auto; display: block; }
.hero-card p { color: var(--muted); margin: 10px 0 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--bg-alt); border: 1px solid var(--line); color: var(--navy);
  padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 700;
  font-family: "Cairo"; transition: .15s;
}
.chip:hover { background: var(--navy); color: #fff; }
.hero-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 20px; text-align: center; }
.hero-stats div { background: var(--bg-alt); border-radius: 12px; padding: 12px 6px; }
.hero-stats b { display: block; font-family: "Cairo"; font-size: 22px; color: var(--blue); }
.hero-stats span { font-size: 12px; color: var(--muted); }

/* ====== شريط ثقة ====== */
.trust-bar { background: var(--navy-2); color: #cfe; }
.trust-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding: 14px 0; font-family: "Cairo"; font-weight: 700; font-size: 14px; color: #b9cbe6; }

/* ====== الأقسام ====== */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(24px, 3.2vw, 34px); color: var(--navy); }
.section-sub { color: var(--muted); font-size: 17px; margin-top: 12px; }

/* ====== كروت الخدمات ====== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: .2s; box-shadow: 0 4px 14px rgba(11,37,69,.04);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(29,111,184,.35); }
.card-icon {
  width: 64px; height: 64px; margin-bottom: 14px;
  background: var(--bg-alt); border-radius: 16px; padding: 8px;
  display: grid; place-items: center;
}
.card-icon svg { width: 100%; height: 100%; }
.card h3 { color: var(--navy); font-size: 20px; }
.card p { color: var(--muted); margin-top: 10px; }
.services-note { text-align: center; margin-top: 32px; color: var(--muted); }
.services-note a { color: var(--blue); font-weight: 700; }

/* ====== المميزات ====== */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: #fff; border-radius: var(--radius); padding: 24px;
  border-inline-start: 4px solid var(--amber); box-shadow: 0 4px 14px rgba(11,37,69,.05);
}
.feature h4 { color: var(--navy); font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; }

/* ====== الخطوات ====== */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: none; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; text-align: center; }
.step-num {
  width: 54px; height: 54px; margin: 0 auto 14px; display: grid; place-items: center;
  border-radius: 50%; background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff; font-family: "Cairo"; font-weight: 900; font-size: 24px;
}
.steps h4 { color: var(--navy); font-size: 18px; }
.steps p { color: var(--muted); margin-top: 8px; }

/* ====== الضمان ====== */
.guarantee {
  background: linear-gradient(150deg, var(--navy), var(--navy-2));
  color: #fff; padding: 64px 0;
}
.guarantee-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: center; }
.guarantee h2 { font-size: 30px; }
.guarantee p { color: #cfdaee; margin: 14px 0; }
.guarantee ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: #e6eefb; }
.guarantee-cta { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); border-radius: 20px; padding: 28px; text-align: center; }
.guarantee-cta h3 { font-size: 22px; }
.guarantee-cta p { margin: 8px 0 18px; }
.guarantee-cta .btn { margin: 4px; }

/* ====== آراء العملاء ====== */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.reviews blockquote {
  margin: 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: 0 4px 14px rgba(11,37,69,.04);
}
.reviews p { color: var(--ink); font-size: 16px; }
.reviews footer { margin-top: 14px; color: var(--blue); font-family: "Cairo"; font-weight: 700; font-size: 14px; }

/* ====== الأسئلة الشائعة ====== */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px; transition: .2s;
}
.faq details[open] { border-color: rgba(29,111,184,.4); box-shadow: 0 6px 18px rgba(11,37,69,.06); }
.faq summary {
  cursor: pointer; padding: 16px 0; font-family: "Cairo"; font-weight: 700;
  color: var(--navy); font-size: 17px; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: left; color: var(--amber); font-size: 22px; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); padding-bottom: 16px; margin: 0; }

/* ====== الفورم ====== */
.booking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.booking-info h2 { font-size: 30px; color: var(--navy); }
.booking-info > p { color: var(--muted); margin: 14px 0 22px; font-size: 17px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contact-list li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.contact-list b { color: var(--navy); font-family: "Cairo"; }
.contact-list a { color: var(--blue); font-weight: 700; }

.booking-form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: "Cairo"; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.field input, .field select {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line);
  border-radius: 12px; font-family: "Tajawal"; font-size: 16px; background: #fbfcfe; color: var(--ink);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,111,184,.15); }
.form-hint { font-size: 13px; color: var(--muted); text-align: center; margin: 14px 0 0; }
.form-error { color: #c0392b; font-weight: 700; text-align: center; margin: 10px 0 0; }

/* ====== الفوتر ====== */
.site-footer { background: var(--navy); color: #cfdaee; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 36px; }
.brand-footer .brand-text strong { color: #fff; }
.brand-footer .brand-text small { color: #9fb3d4; }
.footer-about { margin-top: 14px; color: #9fb3d4; }
.site-footer h4 { color: #fff; font-size: 17px; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a:hover { color: var(--amber); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: 14px; color: #9fb3d4; }

/* ====== قبل / بعد ====== */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ba-panel { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.ba-panel svg { width: 100%; height: auto; display: block; }
.ba-tag {
  position: absolute; top: 14px; inset-inline-start: 14px;
  font-family: "Cairo"; font-weight: 800; font-size: 14px;
  padding: 6px 16px; border-radius: 999px; color: #fff;
}
.ba-before { background: #b5654a; }
.ba-after { background: var(--green); }

/* ====== معرض الصور ====== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.g-item { margin: 0; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(11,37,69,.05); }
.g-item img { width: 100%; height: 220px; object-fit: cover; display: block; background: #fff; }
.g-item img.ph {
  background:
    repeating-linear-gradient(45deg, #eef3fb, #eef3fb 12px, #e4ecf7 12px, #e4ecf7 24px);
  position: relative;
}
.g-item img.ph::after {
  content: "📷 ضع صورتك هنا";
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: "Cairo"; font-weight: 700; color: var(--muted); font-size: 15px;
}
.g-item figcaption { padding: 14px 18px; font-family: "Cairo"; font-weight: 700; color: var(--navy); font-size: 15px; }

/* ====== زر واتساب عائم ====== */
.wa-float {
  position: fixed; inset-block-end: 22px; inset-inline-start: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: var(--green); color: #fff;
  display: grid; place-items: center; font-size: 26px; box-shadow: 0 10px 26px rgba(37,211,102,.5);
  transition: transform .15s;
}
.wa-float:hover { transform: scale(1.08); }

/* ====== الموبايل ====== */
@media (max-width: 920px) {
  .hero-grid, .guarantee-inner, .booking-grid { grid-template-columns: 1fr; }
  .cards, .features, .reviews { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute; top: 100%; inset-inline: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    margin-inline-start: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); padding: 6px 18px;
    max-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
    transition: max-height .3s ease, opacity .25s ease, visibility .25s, padding .25s;
  }
  .main-nav.open { max-height: 82vh; overflow-y: auto; opacity: 1; visibility: visible; padding: 12px 18px; }
  .main-nav > a,
  .has-menu > .menu-trigger {
    display: block; padding: 13px 4px; border-bottom: 1px solid var(--line);
    font-family: "Cairo"; font-weight: 700; color: var(--navy);
  }
  .has-menu { position: static; }
  .menu-trigger .caret { display: none; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    display: block; min-width: auto; box-shadow: none; border: none;
    border-radius: 0; padding: 4px 0 8px;
  }
  .dropdown a { padding: 9px 18px; font-size: 14px; }
  .dropdown a:hover { background: transparent; }
}
@media (max-width: 560px) {
  .cards, .features, .reviews, .steps { grid-template-columns: 1fr; }
  .ba-grid, .gallery { grid-template-columns: 1fr; }
  .hero-points { grid-template-columns: 1fr; }
  .header-actions .btn-wa { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
