@font-face {
  font-family: 'Hanimation Arabic';
  src: url('/fonts/Hanimation_Arabic_Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Jamoer Rough';
  src: url('/fonts/jamoer-rough-free.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --teal: #56AEBB;
  --teal-dark: #3E8E9B;
  --teal-soft: rgba(86, 174, 187, 0.12);
  --terracotta: #D36B4A;
  --terracotta-dark: #B95637;
  --terracotta-soft: rgba(211, 107, 74, 0.12);
  --sand: #D3D2C7;
  --ivory: #F7F6F2;
  --white: #FFFFFF;
  --ink: #243034;
  --muted: #5F6D72;
  --border: rgba(36, 48, 52, 0.10);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 32px rgba(36, 48, 52, 0.07);
  --font-ar: 'Hanimation Arabic', 'Tajawal', system-ui, -apple-system, sans-serif;
  --font-en: 'Jamoer Rough', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ar);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.75;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.en-font {
  font-family: var(--font-en);
  letter-spacing: 0.04em;
  direction: ltr;
  display: inline-block;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 246, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 16px;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo-full {
  height: 52px;
  width: auto;
  object-fit: contain;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-size: 16px;
  color: var(--ink);
  position: relative;
  padding: 6px 2px;
  transition: color 0.2s;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--teal-dark);
}
.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 2.5px;
  border-radius: 99px;
  background: var(--terracotta);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--font-ar);
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform 0.18s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(211, 107, 74, 0.28);
}
.btn-primary:hover { background: var(--terracotta-dark); }
.btn-secondary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(86, 174, 187, 0.25);
}
.btn-secondary:hover { background: var(--teal-dark); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--sand);
}
.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}
.btn-sm { padding: 9px 18px; font-size: 14px; }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid var(--sand);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  font-size: 20px;
}

/* Mobile drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 16px 20px 22px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 16px;
}
.mobile-nav a.active, .mobile-nav a:hover {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

/* Hero */
.hero {
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 14px;
  margin-bottom: 18px;
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
}
.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.25;
  margin-bottom: 16px;
  color: var(--ink);
}
.hero p.lead {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 560px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}
.stat-value {
  font-size: 24px;
  color: var(--teal-dark);
  line-height: 1.2;
}
.stat-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.hero-visual {
  position: relative;
  background: linear-gradient(145deg, var(--white), #EFECE4);
  border: 1px solid var(--sand);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
  text-align: center;
}
.hero-photo {
  width: 100%;
  aspect-ratio: 4/4.6;
  object-fit: cover;
  border-radius: 20px;
  background: var(--ivory);
}
.hero-placeholder {
  width: 100%;
  aspect-ratio: 4/4.2;
  border-radius: 20px;
  background: radial-gradient(circle at 30% 25%, rgba(86,174,187,0.16), transparent 60%),
              radial-gradient(circle at 75% 80%, rgba(211,107,74,0.14), transparent 55%),
              var(--ivory);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
}
.hero-placeholder img {
  width: 170px;
  height: auto;
}
.trust-chip {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--muted);
}
.trust-chip img { width: 22px; height: 22px; object-fit: contain; }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 34px;
}
.section-kicker {
  font-size: 14px;
  color: var(--terracotta);
  margin-bottom: 6px;
}
.section-title {
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.3;
}
.section-sub {
  color: var(--muted);
  max-width: 620px;
  margin-top: 8px;
}

/* Page Hero Banner */
.page-banner {
  padding: 48px 0 36px;
  background: linear-gradient(180deg, rgba(86,174,187,0.10), rgba(247,246,242,0));
  border-bottom: 1px solid var(--border);
}
.page-banner h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 8px; }
.page-banner p { color: var(--muted); max-width: 640px; }

/* Cards & Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card-ivory { background: var(--ivory); }

/* Services */
.service-tag {
  display: inline-block;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  margin-bottom: 12px;
}
.service-card h3 { font-size: 21px; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.feature-list li {
  font-size: 14px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.feature-list li::before {
  content: '✦';
  color: var(--terracotta);
  font-size: 12px;
}

/* 60fps Before / After Slider */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.filter-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--sand);
  background: var(--white);
  font-family: var(--font-ar);
  font-size: 14px;
  cursor: pointer;
  color: var(--ink);
  transition: all 0.2s;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.case-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
  background: #E9E7DF;
  --pos: 50%;
}
.ba-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba-after {
  clip-path: inset(0 0 0 var(--pos));
  will-change: clip-path;
}
.ba-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--white);
  gap: 6px;
}
.ba-ph-before { background: linear-gradient(135deg, #8B989C, #6A777B); }
.ba-ph-after { background: linear-gradient(135deg, var(--teal), var(--teal-dark)); }

.ba-label {
  position: absolute;
  top: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(36, 48, 52, 0.72);
  color: #fff;
  pointer-events: none;
  z-index: 3;
}
.ba-label-before { left: 12px; }
.ba-label-after { right: 12px; background: rgba(211, 107, 74, 0.88); }

.ba-watermark {
  position: absolute;
  bottom: 10px;
  left: 12px;
  width: 28px;
  height: 28px;
  opacity: 0.78;
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.25));
}

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2.5px;
  background: #fff;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 4;
  box-shadow: 0 0 10px rgba(0,0,0,0.35);
}
.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  color: var(--teal-dark);
  border: 2px solid var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.22);
}
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
  margin: 0;
  direction: ltr;
}
.case-body { padding: 20px; flex: 1; }
.case-body h3 { font-size: 19px; margin: 8px 0 6px; }
.case-body p { font-size: 14px; color: var(--muted); }

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-right: 2.5px solid var(--sand);
  padding-right: 22px;
}
.timeline-item {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  right: -31px;
  top: 22px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--terracotta);
  border: 3px solid var(--ivory);
}
.timeline-year {
  font-size: 13px;
  color: var(--teal-dark);
  margin-bottom: 4px;
}
.timeline-item h3 { font-size: 18px; margin-bottom: 4px; }
.timeline-item p { font-size: 14px; color: var(--muted); }

/* Testimonials */
.stars { color: #E5A93B; font-size: 16px; margin-bottom: 10px; letter-spacing: 2px; }
.review-text { font-size: 15px; color: var(--ink); margin-bottom: 16px; }
.review-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

/* Social Linktree Grid */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}
.social-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, transform 0.2s;
}
.social-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}
.social-handle { font-size: 13px; color: var(--muted); direction: ltr; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: right;
  padding: 18px 20px;
  background: transparent;
  border: none;
  font-family: var(--font-ar);
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-a {
  display: none;
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 15px;
}
.faq-item.open .faq-a { display: block; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--ink); }
.form-control {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--sand);
  background: var(--ivory);
  font-family: var(--font-ar);
  font-size: 15px;
  color: var(--ink);
}
.form-control:focus { outline: none; border-color: var(--teal); background: var(--white); }
.alert {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 16px;
  display: none;
}
.alert-success { background: rgba(86,174,187,0.16); color: #245B64; display: block; }
.alert-error { background: rgba(211,107,74,0.16); color: #8A3319; display: block; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #E7E6DF;
  padding: 54px 0 28px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 34px;
}
.footer-logo-box {
  display: inline-block;
  background: var(--ivory);
  padding: 12px 18px;
  border-radius: 16px;
  margin-bottom: 14px;
}
.footer-logo-box img { height: 50px; width: auto; }
.footer-title { color: var(--white); font-size: 17px; margin-bottom: 12px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: #C8CBC8; }
.footer-links a:hover { color: var(--teal); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #A8B0B3;
}

/* Custom page content */
.prose { font-size: 17px; line-height: 1.9; color: var(--ink); white-space: pre-line; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .grid-3, .footer-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .main-nav, .header-actions .btn-book-desktop { display: none; }
  .menu-toggle { display: inline-flex; }
}
