/* --- Hero Section Styles --- */
.fal-autoparts-hero {
  position: relative;
  background: transparent;
  padding: 40px 20px;
  overflow: hidden;
  font-family: "Tajawal", sans-serif;
  text-align: center;
  width: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fal-autoparts-container {
  max-width: 900px;
  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-autoparts-hero h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  margin: 0 0 15px 0;
  line-height: 1.4;
  color: #ffffff;
}

.fal-autoparts-hero h2 span {
  color: #c9ae70;
}

.fal-autoparts-hero p {
  color: #cccccc;
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.6;
  margin: 0;
  max-width: 700px;
}

/* --- Car Parts Dark Section Styles --- */
.fal-carparts-dark {
  --fal-gold: #c9ae70;
  --fal-ink: #ffffff;
  --fal-text: #cccccc;
  --fal-bg: #14120e; /* Dark Brown/Gold Background */
  --fal-card-bg: #1c1914; /* Dark Card Background */
  --fal-border: rgba(201, 174, 112, 0.4); /* Gold Border */
  --fal-chip-bg: rgba(201, 174, 112, 0.1);
  --fal-font: "Tajawal", "Cairo", system-ui, -apple-system, sans-serif;

  background-color: var(--fal-bg);
  font-family: var(--fal-font);
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
  text-align: right;
  color: var(--fal-text);
  width: 100%;
}

/* --- Background Pattern & Golden Texture --- */
.fal-carparts-dark::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
  /* Golden Texture: Noise + Gradient - Optimized for Performance */
  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;
}

/* Golden Ambient Touch */
.fal-carparts-dark::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 0% 0%,
      rgba(201, 174, 112, 0.12) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(201, 174, 112, 0.12) 0%,
      transparent 50%
    );
  z-index: 0;
  pointer-events: none;
}

.fal-cp2__container {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
}

/* Header */
.fal-cp2__header {
  text-align: center;
  margin-bottom: 60px;
}
.fal-cp2__eyebrow {
  color: var(--fal-gold);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 1px;
  margin-bottom: 15px;
  display: block;
  text-transform: uppercase;
}
.fal-cp2__title {
  color: var(--fal-ink);
  font-weight: 900;
  font-size: clamp(28px, 5vw, 42px);
  margin: 0 0 15px;
  line-height: 1.2;
}
.fal-cp2__divider {
  width: 70px;
  height: 4px;
  background: var(--fal-gold);
  margin: 25px auto;
  border-radius: 2px;
}
.fal-cp2__lead {
  max-width: 800px;
  margin: 0 auto;
  color: var(--fal-text);
  line-height: 1.8;
  font-size: 18px;
}

/* Grid Layout */
.fal-cp2__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

/* Card Styles */
.fal-cp2__card {
  background: var(--fal-card-bg);
  border: 1px solid var(--fal-border);
  border-radius: 16px;
  padding: 40px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);

  /* Animation Init */
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.fal-cp2__card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.fal-cp2__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border-color: var(--fal-gold);
  background: #231f18;
}

/* Elegant side accent on hover */
.fal-cp2__card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: var(--fal-gold);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.fal-cp2__card:hover::after {
  opacity: 1;
}

.fal-cp2__card-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 20px 0;
  color: var(--fal-ink);
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Icon for title */
.fal-cp2__card-title::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  background: var(--fal-gold);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--fal-gold);
}

.fal-cp2__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fal-cp2__list li {
  position: relative;
  padding-right: 24px;
  margin-bottom: 14px;
  color: var(--fal-text);
  line-height: 1.7;
  font-size: 16px;
  font-weight: 500;
}
.fal-cp2__list li::before {
  content: "✓";
  color: var(--fal-gold);
  font-weight: 900;
  position: absolute;
  right: 0;
  top: 0;
}

/* Brands Section */
.fal-cp2__brands-section {
  text-align: center;
  margin-bottom: 50px;
}

.fal-cp2__section-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--fal-ink);
  margin-bottom: 25px;
}

.fal-cp2__brands-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.fal-cp2__tag {
  padding: 10px 20px;
  border-radius: 50px;
  background: var(--fal-chip-bg);
  border: 1px solid var(--fal-border);
  font-size: 16px;
  color: var(--fal-text);
  cursor: default;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.fal-cp2__tag:hover {
  background: var(--fal-gold);
  color: #000;
  border-color: var(--fal-gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(201, 174, 112, 0.3);
}

/* CTA Section */
.fal-cp2__cta {
  text-align: center;
  margin-top: 40px;
}

.fal-cp2__logo-box {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 120px;
  height: 120px;
  background: #ffffff; /* Keep white for logo visibility */
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin-bottom: 25px;
  transition: transform 0.3s ease;
  border: 2px solid var(--fal-gold); /* Gold border for the box */
}

.fal-cp2__logo-box:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(201, 174, 112, 0.2);
}

.fal-cp2__logo-img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.fal-cp2__btn {
  display: inline-block;
  background-color: var(--fal-gold);
  color: #fff;
  padding: 14px 40px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(201, 174, 112, 0.3);
}

.fal-cp2__btn:hover {
  background-color: #b0965d;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 174, 112, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .fal-cp2__grid {
    grid-template-columns: 1fr;
  }
  .fal-cp2__title {
    font-size: 32px;
  }
  .fal-cp2__card {
    padding: 25px;
  }
}
