/* --- Contracting Hero --- */
:root {
  --fal-gold: #c9ae70;
  --fal-dark: #14120e;
  --fal-white: #ffffff;
  --fal-gray: #cccccc;
}

/* Scoped Styles for the Section */
.fal-contracting-hero {
  position: relative;
  background: transparent;
  padding: 40px 20px;
  overflow: hidden;
  font-family: "Tajawal", sans-serif;
  text-align: center;
  /* Requested Fix: Full Height */
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.fal-contracting-container {
  width: 90%;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  /* Glass Effect */
  background: rgba(20, 18, 14, 0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid rgba(201, 174, 112, 0.15);
  border-radius: 20px;
  padding: 30px 40px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.fal-contracting-hero h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  margin: 0 0 15px 0;
  line-height: 1.4;
  color: var(--fal-white);
}

.fal-contracting-hero h2 span {
  color: var(--fal-gold);
}

.fal-contracting-hero p {
  color: var(--fal-gray);
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.6;
  margin: 0;
  max-width: 700px;
}

/* --- Contracting Services Content (Dark Theme) --- */
.fal-contract {
  /* Scoped Variables for Dark Theme */
  --fal-primary: #c9ae70;
  --fal-accent: #a88d4e;
  --fal-ink: #ffffff; /* White text */
  --fal-body: #cccccc; /* Light gray text */
  --fal-bg: #14120e; /* Dark background */
  --fal-card: #1c1914; /* Dark card background */
  --fal-border: rgba(201, 174, 112, 0.2); /* Goldish border */
  --fal-chip-bg: #231f18;
  --fal-font: "Tajawal", "Cairo", system-ui, -apple-system, sans-serif;

  background-color: var(--fal-bg);
  font-family: var(--fal-font);
  padding: clamp(40px, 8vw, 80px) clamp(16px, 6vw, 60px);
  position: relative;
  overflow: hidden;
  text-align: right;
}

/* Background Texture */
.fal-contract::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.10'/%3E%3C/svg%3E"),
    radial-gradient(
      circle at top right,
      rgba(201, 174, 112, 0.15),
      transparent 70%
    );
  mix-blend-mode: overlay;
}

.fal-c__head {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto 40px;
  text-align: center;
}

.fal-c__title {
  margin: 0;
  color: var(--fal-primary);
  font-weight: 900;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.2;
}

.fal-c__lead {
  max-width: 950px;
  margin: 16px auto 0;
  color: var(--fal-body);
  line-height: 1.9;
  font-size: clamp(16px, 2.1vw, 18px);
}

.fal-c__divider {
  width: 90px;
  height: 3px;
  background: var(--fal-primary);
  border-radius: 6px;
  margin: 20px auto 0;
}

.fal-c__label {
  position: relative;
  z-index: 1;
  text-align: center;
  margin: 40px auto 20px;
  font-weight: 800;
  font-size: clamp(20px, 3.5vw, 26px);
  color: var(--fal-ink);
}

/* Filters */
.fal-c__filters {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto 30px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.fal-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--fal-chip-bg);
  border: 1px solid var(--fal-border);
  color: var(--fal-body);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--fal-font);
}

.fal-chip:hover {
  border-color: var(--fal-primary);
  color: var(--fal-ink);
}

.fal-chip[aria-pressed="true"] {
  background: var(--fal-primary);
  border-color: var(--fal-primary);
  color: #000;
}

/* Grid */
.fal-c__grid {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.fal-card {
  background: var(--fal-card);
  border: 1px solid var(--fal-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.fal-card:hover {
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
  transform: translateY(-5px);
  border-color: var(--fal-primary);
}

.fal-card__media {
  aspect-ratio: 16/9;
  background: #231f18;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fal-card__img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.fal-card:hover .fal-card__img {
  transform: scale(1.05);
}

.fal-card__body {
  padding: 20px 24px 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.fal-card__title {
  margin: 0 0 10px;
  color: var(--fal-primary);
  font-weight: 800;
  font-size: clamp(18px, 2.6vw, 22px);
}

.fal-card__desc {
  margin: 0;
  color: var(--fal-body);
  line-height: 1.8;
  font-size: clamp(14px, 2vw, 16px);
}

.is-hidden {
  display: none !important;
}

/* === Animations + CTA === */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.fal-c__cta {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 40px auto 0;
  display: flex;
  justify-content: center;
}

.fal-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--fal-primary);
  color: #000;
  font-weight: 800;
  text-decoration: none;
  font-size: 18px;
  transition: all 0.3s ease;
}

.fal-btn:hover {
  background: var(--fal-ink);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(201, 174, 112, 0.2);
}

.cta-hidden {
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
}

.cta-show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
