/* All French content replaced by English translation – October 20, 2025 */
/* =========================================== */
/* WHY CHOOSE AGAFAY MARRAKECH SECTION */
/* Modern luxury design matching agafaymarrakech.com */
/* =========================================== */

/* ========================================= */
/* SECTION CONTAINER */
/* ========================================= */
.why-choose-section {
  padding: 100px 0;
  background: #ffffff;
  overflow: hidden;
}

.why-choose-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

/* ========================================= */
/* TWO-COLUMN LAYOUT */
/* ========================================= */
.why-choose-grid {
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 60px;
  align-items: flex-start;
}

/* ========================================= */
/* LEFT COLUMN - IMAGE COLLAGE */
/* ========================================= */
.why-choose-images {
  position: relative;
  width: 100%;
  height: 650px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0;
}

/* ========================================= */
/* Z-INDEX MANAGEMENT - Always below navbar (z-index: 100) */
/* ========================================= */

/* Gold overlay block - positioned to overlap images */
.why-choose-badge {
  position: absolute;
  top: 80px;
  left: 60px;
  width: 300px;
  height: 200px;
  background: #bc6c25;
  z-index: 5;
  /* Gold badge - highest in section but below navbar */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.why-choose-badge-text {
  font-size: 1.7rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.1;
  letter-spacing: 0.5px;
}

/* Base image styling */
.why-choose-image {
  position: absolute;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border-radius: 0;
  border: 8px solid #ffffff;
  background: #ffffff;
  transition: all 0.3s ease;
}

.why-choose-image::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: linear-gradient(45deg, #bc6c25, #d4af37, #bc6c25);
  z-index: -1;
  border-radius: 0;
}

.why-choose-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.why-choose-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

/* Image 1 - Top right (desert adventure) - Behind gold badge */
.why-choose-image-1 {
  top: 20px;
  right: 0;
  width: 350px;
  height: 230px;
  z-index: 1;
  /* Lowest layer - behind badge and other images */
}

/* Image 2 - Bottom left (luxury camp) - Middle layer */
.why-choose-image-2 {
  bottom: 180px;
  left: 0;
  width: 320px;
  height: 220px;
  z-index: 2;
  /* Middle layer - above image 1, below image 3 and badge */
}

/* Image 3 - Bottom right (camel sunset) - Front image layer */
.why-choose-image-3 {
  bottom: 0;
  right: 40px;
  width: 380px;
  height: 250px;
  z-index: 3;
  /* Front image - above other images, below badge */
}

/* ========================================= */
/* RIGHT COLUMN - CONTENT */
/* ========================================= */
.why-choose-content {
  padding-left: 40px;
  padding-top: 20px;
}

/* Gold subtitle */
.why-choose-subtitle {
  font-size: 0.9rem;
  font-weight: 600;
  color: #bc6c25;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 0 12px 0;
}

/* Main title */
.why-choose-title {
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem;
  font-weight: 900;
  color: #172139;
  line-height: 1.05;
  margin: 0 0 30px 0;
  text-transform: uppercase;
}

/* Decorative separator */
.why-choose-separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.why-choose-dots {
  display: flex;
  gap: 4px;
}

.why-choose-dot {
  width: 6px;
  height: 6px;
  background: #bc6c25;
  border-radius: 50%;
}

.why-choose-icon {
  width: 32px;
  height: 32px;
  fill: #bc6c25;
}

/* Description text */
.why-choose-description {
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #444444;
  margin-bottom: 20px;
  text-align: justify;
}

.why-choose-description:last-of-type {
  margin-bottom: 40px;
}

/* ========================================= */
/* ADVANTAGE CARDS */
/* ========================================= */
.why-choose-cards {
  margin-top: 40px;
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
}

.why-choose-card {
  background: transparent;
  padding: 12px;
  text-align: left;
  transition: all 0.3s ease;
  box-shadow: none;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 0;
  /* Allows flex item to shrink below content size */
  min-height: auto;
  overflow-wrap: break-word;
}

.why-choose-card:hover {
  transform: none;
  box-shadow: none;
}

/* Card icon */
.why-choose-card-icon {
  width: 56px;
  height: 56px;
  background: #bc6c25;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  flex-shrink: 0;
}

.why-choose-card-icon svg {
  width: 28px;
  height: 28px;
  fill: #ffffff;
}

/* Card content */
.why-choose-card-content {
  flex: 1;
  min-width: 0;
  /* Critical: allows text to wrap instead of force new columns */
  word-wrap: break-word;
}

/* Card title */
.why-choose-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #172139;
  margin: 0 0 6px 0;
  line-height: 1.2;
}

/* Card description */
.why-choose-card-description {
  font-size: 0.85rem;
  color: #666666;
  line-height: 1.4;
  margin: 0;
  white-space: normal;
}

/* ========================================= */
/* RESPONSIVE DESIGN */
/* ========================================= */

/* Large tablets */
@media (max-width: 1024px) {
  .why-choose-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .why-choose-images {
    height: 550px;
  }

  .why-choose-title {
    font-size: 2.4rem;
  }

  .why-choose-image-1 {
    width: 280px;
    height: 180px;
    top: 15px;
    right: 0;
  }

  .why-choose-image-2 {
    width: 260px;
    height: 170px;
    bottom: 150px;
    left: 0;
  }

  .why-choose-image-3 {
    width: 300px;
    height: 200px;
    bottom: 0;
    right: 30px;
  }

  .why-choose-badge {
    width: 250px;
    height: 160px;
    top: 60px;
    left: 40px;
  }

  .why-choose-badge-text {
    font-size: 1.4rem;
  }
}

/* Tablets and mobile */
@media (max-width: 768px) {
  .why-choose-section {
    padding: 60px 0;
  }

  .why-choose-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .why-choose-images {
    height: 420px;
    max-width: 400px;
    margin: 0 auto;
  }

  .why-choose-content {
    padding-left: 0;
  }

  .why-choose-title {
    font-size: 2rem;
  }

  .why-choose-cards {
    flex-direction: column;
    gap: 0;
    /* Handled by margin-bottom on cards */
  }

  .why-choose-card {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
  }

  .why-choose-image-1 {
    width: 220px;
    height: 140px;
    top: 10px;
    right: 10px;
  }

  .why-choose-image-2 {
    width: 200px;
    height: 140px;
    bottom: 120px;
    left: 10px;
  }

  .why-choose-image-3 {
    width: 210px;
    height: 130px;
    bottom: 10px;
    right: 30px;
  }

  .why-choose-badge {
    width: 180px;
    height: 130px;
    padding: 20px;
  }

  .why-choose-badge-text {
    font-size: 1.2rem;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .why-choose-container {
    padding: 0 20px;
  }

  .why-choose-images {
    height: 360px;
  }

  .why-choose-title {
    font-size: 1.75rem;
  }

  .why-choose-image-1 {
    width: 180px;
    height: 120px;
  }

  .why-choose-image-2 {
    width: 170px;
    height: 120px;
    bottom: 100px;
  }

  .why-choose-image-3 {
    width: 180px;
    height: 110px;
    right: 20px;
  }

  .why-choose-badge {
    width: 160px;
    height: 110px;
    padding: 15px;
  }

  .why-choose-badge-text {
    font-size: 1.05rem;
  }

  .why-choose-description {
    font-size: 1rem;
  }
}

/* ========================================= */
/* ACCESSIBILITY */
/* ========================================= */

/* Focus styles for keyboard navigation */
.why-choose-card:focus {
  outline: 2px solid #bc6c25;
  outline-offset: 3px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .why-choose-title {
    color: #000000;
  }

  .why-choose-description {
    color: #000000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .why-choose-card {
    transition: none;
  }

  .why-choose-card:hover {
    transform: none;
  }
}