:root {
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --text: #111111;
  --muted: #646b75;
  --line: rgba(17, 17, 17, 0.08);
  --card: rgba(255, 255, 255, 0.82);
  --shadow: 0 14px 40px rgba(17, 17, 17, 0.08);
  --radius: 24px;
  --radius-sm: 16px;
  --transition: 300ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
  line-height: 1.65;
}
body.is-ar { direction: rtl; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.topbar {
  background: #101214;
  color: #fff;
  font-size: 14px;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}
.topbar-contact { display: flex; gap: 10px; flex-wrap: wrap; }
.lang-switcher { display: flex; gap: 8px; flex-wrap: wrap; }
.lang-btn {
  border: 1px solid rgba(255,255,255,0.22);
  background: transparent;
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  transition: var(--transition);
}
.lang-btn.active,
.lang-btn:hover { background: #fff; color: #111; }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.82);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand strong { display: block; font-size: 17px; letter-spacing: .08em; }
.brand span { display: block; color: var(--muted); font-size: 13px; }
.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px;
}
.nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.nav a {
  position: relative;
  font-weight: 600;
  font-size: 15px;
  color: #1e2329;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: #111;
  transition: var(--transition);
}
.nav a:hover::after,
.nav a.active::after { width: 100%; }

.mobile-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #111;
  margin: 5px auto;
  transition: var(--transition);
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
}
.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -25% auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0) 70%);
  filter: blur(8px);
}
.hero {
  padding: 88px 0 72px;
}
.page-hero.small {
  padding: 72px 0 24px;
}
.hero-grid,
.split-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px;
  align-items: center;
}
.hero-content h1,
.page-hero h1,
.section-head h2,
.split-grid h2,
.cta-box h2 {
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 10px 0 18px;
}
.page-hero h1,
.section-head h2,
.split-grid h2,
.cta-box h2 { font-size: clamp(28px, 3vw, 44px); }
.hero-content p,
.page-hero p,
.section-head p,
.split-grid p,
.cta-box p { color: var(--muted); font-size: 17px; }
.eyebrow {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 30px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid var(--line);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-dark { background: #101214; color: #fff; }
.btn-light { background: #fff; color: #111; }
.text-link { font-weight: 700; display: inline-block; margin-top: 16px; }

.stats,
.grid-3,
.grid-2 {
  display: grid;
  gap: 20px;
}
.stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat-card,
.feature-card,
.panel,
.service-detail,
.contact-card,
.image-card,
.cta-box,
.hero-card,
.timeline-item {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.stat-card,
.feature-card,
.service-detail,
.contact-card,
.timeline-item { padding: 24px; }
.stat-card strong { font-size: 28px; display: block; margin-bottom: 6px; }
.stat-card span,
.feature-card p,
.service-detail p,
.contact-card p,
.timeline-item p { color: var(--muted); }
.icon-box {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #111;
  color: #fff;
  font-weight: 800;
  margin-bottom: 18px;
}
.hero-visual { position: relative; min-height: 540px; }
.hero-image-wrap {
  position: absolute;
  inset: 55px 36px 55px 36px;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
}
.hero-image { width: 100%; height: 100%; object-fit: cover; }
.floating-card {
  position: absolute;
  padding: 18px 20px;
  width: min(260px, 55%);
  z-index: 2;
}
.card-a { left: 0; top: 10px; }
.card-b { right: 0; bottom: 10px; }
.hero-card span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.hero-card strong { font-size: 18px; line-height: 1.4; }
.panel { padding: 18px; }
.panel-row + .panel-row { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.panel-row span { color: var(--muted); display: block; margin-bottom: 4px; }
.alt-section { background: linear-gradient(180deg, rgba(17,17,17,0.02), rgba(17,17,17,0.04)); }
.section { padding: 78px 0; }
.section-head { max-width: 820px; margin-bottom: 28px; }
.check-list { margin: 22px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: 14px; color: #222; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; font-weight: 800; }
.cta-box {
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.image-card img,
.map-box iframe {
  width: 100%;
  min-height: 420px;
  border: 0;
  border-radius: var(--radius);
}
.service-detail h2,
.contact-card h2,
.feature-card h3,
.timeline-item h3 { margin-top: 0; }
.contact-grid { align-items: stretch; }
.contact-list div + div { margin-top: 18px; }
.contact-list span { display: block; color: var(--muted); font-size: 14px; margin-bottom: 5px; }
.contact-form { display: grid; gap: 14px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  padding: 14px 16px;
  border-radius: 16px;
  outline: none;
}
.map-box { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.timeline { display: grid; gap: 18px; }
.timeline-item { display: flex; gap: 18px; align-items: flex-start; }
.timeline-item strong { font-size: 30px; min-width: 56px; }

.footer {
  background: #0f1113;
  color: rgba(255,255,255,0.82);
  padding-top: 56px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}
.footer-brand .brand-logo { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1); }
.footer-text,
.footer-links a,
.footer-links li { color: rgba(255,255,255,0.7); }
.footer h3 { color: #fff; margin-top: 0; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 50%;
}
.footer-bottom {
  margin-top: 36px;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
}

.whatsapp-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #111;
  color: #fff;
  box-shadow: var(--shadow);
  z-index: 70;
}
.whatsapp-btn svg { width: 28px; height: 28px; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 100ms; }
.delay-2 { transition-delay: 200ms; }
.floating-card { animation: float 5s ease-in-out infinite; }
.card-b { animation-delay: 1s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 1024px) {
  .hero-grid,
  .split-grid,
  .contact-grid,
  .footer-grid,
  .grid-3,
  .grid-2,
  .stats {
    grid-template-columns: 1fr;
  }
  .hero-visual { min-height: 500px; }
  .cta-box { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .mobile-toggle { display: block; }
  .nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 10px);
    background: rgba(255,255,255,0.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: 20px;
    padding: 18px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav.show { display: flex; }
  .hero { padding: 56px 0 52px; }
  .hero-visual { min-height: 420px; }
  .hero-image-wrap { inset: 48px 0; }
  .floating-card { width: 210px; }
}

@media (max-width: 640px) {
  .topbar-inner,
  .nav-wrap,
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .brand span { max-width: 220px; }
  .hero-content h1 { font-size: 34px; }
  .page-hero h1,
  .section-head h2,
  .split-grid h2,
  .cta-box h2 { font-size: 29px; }
  .section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 360px; }
  .floating-card {
    position: static;
    width: 100%;
    margin-top: 14px;
    animation: none;
  }
  .hero-image-wrap { position: relative; inset: auto; min-height: 230px; }
}
