/* ============================================================
   SECTION 5 — A CATALOGUE OF EXCELLENCE
   Image-Overlay Layout (Pixel-Perfect Alignment)
   ============================================================ */

.catalogue-section {
  position: relative;
  width: 100%;
  height: 100vh;
  background-color: #FFF0D3;
  color: #1a0508;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* ── Header ── */
.catalogue__header {
  position: absolute;
  top: 10vh;
  left: 0;
  right: 0;
  margin: 0 auto;
  text-align: center;
  width: 100%;
  max-width: 850px;
  z-index: 10;
  padding: 0 24px;
}

.catalogue__title {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 500;
  color: #6B1E1E;
  margin: 0 0 6px 0;
  text-transform: capitalize;
}

.catalogue__desc {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.78rem, 1.1vw, 0.88rem);
  font-weight: 400;
  line-height: 1.5;
  color: #5C3A3A;
  margin: 0 auto;
}

/* ── Layout Container ── */
.catalogue__layout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding-top: 30vh;
  box-sizing: border-box;
  position: relative;
}

/* ── Center Column: Building & Overlay Container ── */
.catalogue__building-container {
  position: relative;
  height: 60vh;
  width: calc(60vh * (272 / 482));
  margin: 0 auto;
  z-index: 2;
  overflow: visible;
}

.catalogue__building-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply; /* Blend cream background of the image with the section background */
}

/* ── Overlay Rows (Desktop Only) ── */
.cat-row {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 16px;
  pointer-events: none; /* Let clicks pass through empty space */
  overflow: visible;
  height: 56px;
}

.cat-row * {
  pointer-events: auto; /* Active triggers for buttons, icons, and text */
}

/* Positioning left-side rows */
.cat-row--left {
  transform: translateY(-50%);
  /* right edge of flex container is aligned with the icon center coordinate */
  justify-content: flex-end;
}

/* Positioning right-side rows */
.cat-row--right {
  transform: translateY(-50%);
  /* left edge of flex container is aligned with the icon center coordinate */
  justify-content: flex-start;
}

.cat-row__text {
  width: 220px;
  flex-shrink: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.6;
  color: #5C3A3A;
  text-transform: uppercase;
  opacity: 0; /* Hidden by default */
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cat-row--left .cat-row__text {
  text-align: right;
  transform: translateX(20px); /* Shift right (towards button) */
}

.cat-row--left .cat-row__btn {
  transform: translateX(20px) scale(0.95);
}

.cat-row--right .cat-row__text {
  text-align: left;
  transform: translateX(-20px); /* Shift left (towards button) */
}

.cat-row--right .cat-row__btn {
  transform: translateX(-20px) scale(0.95);
}

/* Hover state: restore opacity and translation */
.cat-row:hover .cat-row__text {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.28s; /* descriptive text appears after the button */
}

.cat-row:hover .cat-row__btn {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
  transition-delay: 0s; /* button appears immediately */
}

/* ── Button ── */
.cat-row__btn {
  width: 150px;
  flex-shrink: 0;
  background-color: #4A0707;
  color: #F2E3D3;
  padding: 12px 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(74, 7, 7, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  cursor: pointer;
}

/* ── Icon Circle ── */
.cat-row__icon {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background-color: transparent;
  z-index: 6;
  cursor: pointer;
}

.cat-row__icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* Symmetrical Icon Centering offsets */
.cat-row--left .cat-row__icon {
  margin-right: -36px; /* center the 72px icon exactly on the right edge of container */
  margin-left: 0;
}

.cat-row--right .cat-row__icon {
  margin-left: -36px; /* center the 72px icon exactly on the left edge of container */
  margin-right: 0;
}

/* ══════════════════════════════════════════
   HOVER HIGHLIGHTS
   ══════════════════════════════════════════ */

/* (Hover highlight color removed) */

.cat-row:hover .cat-row__btn {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
  box-shadow: 0 6px 15px rgba(74, 7, 7, 0.2);
}

.cat-row__btn:hover {
  background-color: #6B1E1E;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(74, 7, 7, 0.32);
  transform: translateX(0) scale(1.08) !important;
}

/* ============================================================
   RESPONSIVE (STACKED ON MOBILE)
   ============================================================ */

@media (max-width: 992px) {
  .catalogue-section {
    height: auto;
    padding: 130px 0 80px 0;
    overflow: visible;
  }

  .catalogue__header {
    position: static;
    transform: none;
    margin: 0 auto 40px auto;
  }

  .catalogue__layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding-top: 0;
    height: auto;
  }

  .catalogue__building-container {
    max-width: 260px;
    height: auto;
    width: 100%;
    aspect-ratio: auto;
    padding: 0;
    order: -1;
  }

  .catalogue__building-img {
    height: auto;
    max-height: 380px;
    width: 100%;
  }

  .cat-row {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 420px;
    padding: 0 20px !important;
    height: auto;
  }

  .cat-row__text {
    text-align: center !important;
    width: 100%;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  .cat-row__icon {
    margin: 0 !important;
    order: -1;
  }

  .cat-row__icon img {
    display: block; /* Show on mobile stacked layout */
  }

  .cat-row__btn {
    order: 2;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }
}

@media (max-width: 480px) {
  .catalogue-section { padding: 60px 0; }
  .cat-row__btn { width: 130px; padding: 10px 16px; font-size: 0.7rem; }
  .cat-row__icon { width: 40px; height: 40px; }
  .cat-row__icon img { width: 24px; height: 24px; }
}
