/* ============================================
   VARIABLES
============================================ */
:root {
  --navy: #0f2744;
  --navy-light: #1b3a5f;
  --gold: #b89355;
  --gold-light: #d4b483;
  --green-wa: #25d366;
  --green-wa-dark: #1ebe5b;
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --text: #1a1a1a;
  --text-muted: #5a6470;
  --border: #e6e8ec;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 4px 20px rgba(15, 39, 68, 0.07);
  --shadow-lg: 0 10px 40px rgba(15, 39, 68, 0.12);
  --font: "Cairo", "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ============================================
   RESET
============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3 { color: var(--navy); line-height: 1.3; font-weight: 700; }
h1 { font-size: clamp(1.7rem, 4vw, 2.7rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.1rem; }

/* ============================================
   LAYOUT
============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 72px 0; }
.section-alt { background: var(--bg-soft); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.section-head p {
  color: var(--text-muted);
  margin-top: 12px;
  font-size: 1.02rem;
}

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }

/* ============================================
   BUTTONS
============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn svg { flex-shrink: 0; }
.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 4px 14px rgba(15, 39, 68, 0.2);
}
.btn-primary:hover { background: var(--navy-light); transform: translateY(-2px); }
.btn-whatsapp {
  background: var(--green-wa);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover { background: var(--green-wa-dark); transform: translateY(-2px); }
.btn-lg { padding: 15px 26px; font-size: 1rem; }

/* ============================================
   HEADER
============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--navy);
  font-size: 1rem;
}
.brand-mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--navy);
  color: var(--gold);
  border-radius: 8px;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.brand-text { white-space: nowrap; }

.main-nav ul {
  display: flex;
  gap: 4px;
}
.main-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.main-nav a:hover { color: var(--navy); background: var(--bg-soft); }

.header-cta { padding: 9px 16px; font-size: 0.85rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ============================================
   HERO
============================================ */
.hero {
  padding: 48px 0 64px;
  background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  background: rgba(184, 147, 85, 0.1);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}
.hero-desc {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin-top: 18px;
  max-width: 600px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.hero-features li {
  font-size: 0.9rem;
  color: var(--navy);
  font-weight: 600;
  position: relative;
  padding-right: 22px;
}
.hero-features li::before {
  content: "✓";
  position: absolute;
  right: 0;
  color: var(--gold);
  font-weight: 800;
}
.hero-media {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 9 / 10;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   CARDS
============================================ */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(184, 147, 85, 0.35);
}
.card h3 { margin-bottom: 10px; color: var(--navy); }
.card p { color: var(--text-muted); font-size: 0.95rem; }

.service-card { position: relative; }
.service-card::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 4px; height: 40px;
  background: var(--gold);
  border-radius: 0 14px 0 4px;
}

/* ============================================
   GALLERY
============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--bg-soft);
  cursor: pointer;
  padding: 0;
  display: block;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.3s;
}
.gallery-item:hover img { transform: scale(1.05); filter: brightness(1.05); }
.gallery-item::after {
  content: "🔍";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  background: rgba(15, 39, 68, 0.35);
  opacity: 0;
  transition: opacity 0.3s;
  color: #fff;
}
.gallery-item:hover::after { opacity: 1; }

/* ============================================
   STEPS
============================================ */
.steps {
  display: grid;
  gap: 16px;
}
.steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  padding: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.step-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 1.1rem;
}
.steps h3 { margin-bottom: 4px; font-size: 1rem; }
.steps p { color: var(--text-muted); font-size: 0.92rem; }

/* ============================================
   FAQ
============================================ */
.faq-list { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 22px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-left: 44px;
  transition: background 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--gold);
  font-weight: 700;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { background: var(--bg-soft); }
.faq-item p {
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ============================================
   CONTACT
============================================ */
.contact-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  text-align: center;
}
.contact-inner h2 { color: #fff; }
.contact-inner > p { color: rgba(255, 255, 255, 0.8); margin-top: 14px; font-size: 1.02rem; }
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 30px;
}

/* ============================================
   FOOTER
============================================ */
.site-footer {
  background: #0a1b2e;
  color: rgba(255, 255, 255, 0.8);
  padding-top: 44px;
  font-size: 0.92rem;
}
.footer-inner {
  display: grid;
  gap: 20px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-inner strong { color: #fff; font-size: 1.05rem; }
.footer-inner p { margin-top: 6px; }
.footer-inner a { color: var(--gold-light); }
.footer-inner a:hover { color: #fff; }
.footer-bottom {
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   FLOATING BUTTONS
============================================ */
.floating-actions {
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom));
  left: 16px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.float-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.float-btn .float-label {
  display: none;
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--navy);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.float-btn:hover .float-label { opacity: 1; }
.float-call { background: var(--navy); }
.float-call:hover { background: var(--navy-light); transform: translateY(-3px); }
.float-whatsapp { background: var(--green-wa); }
.float-whatsapp:hover { background: var(--green-wa-dark); transform: translateY(-3px); }

@media (hover: none) {
  .float-btn:hover { transform: none; }
}

/* ============================================
   LIGHTBOX
============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10, 15, 25, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.8rem;
  display: grid; place-items: center;
  line-height: 1;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.8rem;
  display: grid; place-items: center;
  transition: background 0.2s;
}
.lightbox-prev { right: 16px; }
.lightbox-next { left: 16px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255, 255, 255, 0.3); }

/* ============================================
   RESPONSIVE - TABLET
============================================ */
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr auto; }
}

/* ============================================
   RESPONSIVE - DESKTOP
============================================ */
@media (min-width: 900px) {
  .section { padding: 96px 0; }
  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; }
  .hero-media { aspect-ratio: 4 / 5; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(5, 1fr); }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .floating-actions { flex-direction: column; left: 24px; bottom: calc(24px + env(safe-area-inset-bottom)); }
  .float-btn { width: 60px; height: 60px; }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================
   MOBILE NAV
============================================ */
@media (max-width: 899px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 12px 20px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { display: block; padding: 12px; }
  .nav-toggle { display: flex; }
  .header-cta span { display: none; }
  .header-cta { padding: 10px; }
}

/* ============================================
   ACCESSIBILITY / REDUCED MOTION
============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}