/* --- Hero Section Styles --- */
.fal-hero-services {
  position: relative;
  width: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: "Tajawal", "Cairo", sans-serif;
  color: #ffffff;
  background-color: transparent; /* خلفية شفافة لتظهر الفيديو خلفها */
}

.fal-hero-services .fal-hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px;
  max-width: 900px;
  animation: fadeInUp 1s ease-out;
}

.fal-hero-services .fal-hero__title {
  font-size: 4.5rem;
  font-weight: 900;
  margin: 0 0 15px 0;
  color: #ffffff;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  letter-spacing: -1px;
}

.fal-hero-services .fal-hero__subtitle {
  font-size: 1.6rem;
  color: #e3d2a5; /* لون ذهبي فاتح */
  margin: 0;
  font-weight: 500;
  line-height: 1.6;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.fal-hero-services .fal-hero__divider {
  width: 100px;
  height: 4px;
  background: #c1a564; /* الذهبي الأساسي */
  margin: 30px auto 0;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(193, 165, 100, 0.5);
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .fal-hero-services {
    height: 50vh;
    min-height: 400px;
  }
  .fal-hero-services .fal-hero__title {
    font-size: 2.8rem;
  }
  .fal-hero-services .fal-hero__subtitle {
    font-size: 1.1rem;
    padding: 0 15px;
  }
}

/* --- Services Grid Styles --- */
.fal-services {
  --fal-primary: #c9ae70;
  --fal-accent: #a88d4e;
  --fal-ink: #ffffff;
  --fal-body: #cccccc;
  --fal-bg: #14120e; /* Dark Brown/Gold Background */
  --fal-card: #1c1914; /* Dark Card Background */
  --fal-border: rgba(201, 174, 112, 0.4); /* Gold Border */
  --fal-chip: rgba(255, 255, 255, 0.05);
  --fal-font: "DIN Arabic", "DIN Next Arabic", "Cairo", system-ui,
    -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  background-color: var(--fal-bg);
  font-family: var(--fal-font);
  padding: clamp(28px, 6vw, 70px) clamp(16px, 6vw, 60px);
  position: relative;
  overflow: hidden;
  text-align: right;
  width: 100%;
}

/* --- Background Pattern & Glow (Matches Terms Page) --- */
.fal-services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Subtle Grid Pattern */
  background-image: linear-gradient(
      rgba(201, 174, 112, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(201, 174, 112, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
  pointer-events: none;
}

.fal-services::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(201, 174, 112, 0.12) 0%,
    transparent 60%
  );
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

/* Ensure content is above background */
.fal-s__head,
.fal-s__filters,
.fal-s__grid {
  position: relative;
  z-index: 1;
}

/* Header */
.fal-s__head {
  max-width: 1100px;
  margin: 0 auto 18px;
  text-align: center;
}
.fal-s__eyebrow {
  display: block;
  color: var(--fal-primary);
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}
.fal-s__title {
  margin: 0;
  color: var(--fal-ink);
  font-weight: 900;
  font-size: clamp(24px, 5vw, 38px);
}
.fal-s__divider {
  width: 84px;
  height: 3px;
  background: var(--fal-primary);
  border-radius: 6px;
  margin: 10px auto 0;
}

/* Filters */
.fal-s__filters {
  max-width: 1100px;
  margin: 16px auto 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.fal-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--fal-chip);
  border: 1px solid rgba(201, 174, 112, 0.2);
  color: var(--fal-ink);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.fal-chip:hover {
  border-color: var(--fal-primary);
  background: rgba(201, 174, 112, 0.1);
  transform: translateY(-1px);
}
.fal-chip[aria-pressed="true"] {
  background: var(--fal-primary);
  border-color: var(--fal-primary);
  color: #000; /* Black text on gold button */
}

/* Grid */
.fal-s__grid {
  max-width: 1200px;
  margin: 18px auto 0;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(12, 1fr);
}

.fal-s__card {
  grid-column: span 3;
  background: var(--fal-card);
  border: 1px solid var(--fal-border); /* Gold Border */
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  transition: transform 0.32s ease-out, box-shadow 0.32s ease-out,
    border-color 0.32s ease-out, background 0.32s ease-out;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.fal-s__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  border-color: var(--fal-primary);
  background: #231f18; /* Slightly lighter dark on hover */
}

.fal-s__media {
  position: relative;
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  background: #111;
  overflow: hidden;
}
.fal-s__media a {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 2;
}
.fal-s__media img {
  width: 100%;
  height: 100% !important;
  display: block;
  transition: transform 0.5s ease;
  opacity: 0.9;
}
.fal-s__card:hover .fal-s__media img {
  transform: scale(1.05);
  opacity: 1;
}

.fal-s__body {
  padding: 15px;
  color: var(--fal-body);
  text-align: center;
}
.fal-s__title-sm {
  margin: 0 0 8px;
  color: var(--fal-primary); /* Gold Title */
  font-weight: 800;
  font-size: 16px;
  line-height: 1.4;
}
.fal-s__desc {
  margin: 0;
  line-height: 1.6;
  font-size: 13px;
  color: var(--fal-body);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fal-s__cta {
  display: flex;
  justify-content: center;
  padding: 0 15px 15px;
}
.fal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid var(--fal-primary);
  background: transparent;
  color: var(--fal-primary);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.fal-btn:hover {
  background: var(--fal-primary);
  color: #000;
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 1100px) {
  .fal-s__card {
    grid-column: span 4;
  }
}
@media (max-width: 768px) {
  .fal-s__card {
    grid-column: span 6;
  }
}
@media (max-width: 480px) {
  .fal-s__card {
    grid-column: span 12;
  }
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transition: opacity 0.55s ease, transform 0.55s ease;
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal-up {
  transform: translateY(24px);
}
.reveal-left {
  transform: translateX(-26px);
}
.reveal-right {
  transform: translateX(26px);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.in,
  .reveal-up,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
