/* ==========================================================================
   Lohabour — Category.css
   Reusable product-category template (Living Room, Bedroom, Dining,
   Outdoor, Custom Cabinet, Hospitality, etc.). Assumes base.css is
   already loaded. Self-contained.
   ========================================================================== */

.display--sm {
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 10px 0 16px;
}

/* ---------------- 01 / Hero ---------------- */

.cat-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.cat-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.cat-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 80%;
  display: block;
}

.cat-hero__gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
      rgba(10, 10, 9, 0.35) 0%,
      rgba(10, 10, 9, 0.25) 40%,
      rgba(10, 10, 9, 0.85) 100%);
}

.cat-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 780px;
  padding: 0 var(--gutter);
  margin: 0 auto;
}

@keyframes catFadeUp {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.cat-fade {
  animation: catFadeUp 1s var(--ease-soft) var(--d, 0s) both;
}

.cat-hero__inner .mono-label {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 20px;
  color: rgba(241, 239, 232, 0.82);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.cat-hero__title {
  margin: 0 0 22px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
}

.cat-hero__inner .lede {
  max-width: 52ch;
  margin: 0 auto;
  text-align: center;
}

.cat-scroll {
  position: absolute;
  z-index: 2;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cat-scroll .mono-label {
  color: rgba(241, 239, 232, 0.5);
}

.cat-scroll__line {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: catScrollLine 2s ease-in-out infinite;
}

@keyframes catScrollLine {

  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.6);
    transform-origin: top;
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: top;
  }
}

@media (max-width: 700px) {
  .cat-hero {
    min-height: 72vh;
  }
}

/* ---------------- 02 / Introduction (40/60 split) ---------------- */

.cat-intro {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 64px;
}

.cat-intro__label h2 {
  margin-top: 10px;
}

.cat-intro__text .lede:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .cat-intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ---------------- 03 / Product collections (alternating asymmetrical blocks) ---------------- */

.cat-families {
  margin-top: 8px;
}

.cat-family {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}

.cat-family:last-child {
  border-bottom: none;
}

.cat-family__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: center;
}

/* Asymmetrical, not two equal cards: text column is narrower than the
   image column, and sides alternate per family index. */
.cat-family--reverse .cat-family__grid {
  grid-template-columns: 1.3fr 1fr;
  direction: rtl;
}

.cat-family--reverse .cat-family__grid>* {
  direction: ltr;
}

.cat-family:not(.cat-family--reverse) .cat-family__text {
  order: -1;
}

.cat-family__media {
  aspect-ratio: 5 / 4;
  overflow: hidden;
}

.cat-family__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.9s var(--ease-soft);
}

.cat-family__media:hover img {
  transform: scale(1.06);
}

.cat-family__num {
  display: block;
  font-size: 34px;
  font-family: var(--font-mono);
  color: var(--accent);
  letter-spacing: 0;
  margin-bottom: 8px;
}

.cat-family__subtitle {
  color: var(--text-secondary);
  text-transform: none;
  letter-spacing: 0.03em;
  margin-bottom: 18px;
}

.cat-family__text .lede {
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .cat-family {
    padding: 48px 0;
  }

  .cat-family__grid,
  .cat-family--reverse .cat-family__grid {
    grid-template-columns: 1fr;
    gap: 24px;
    direction: ltr;
  }

  .cat-family:not(.cat-family--reverse) .cat-family__text {
    order: 0;
  }

  .cat-family__media {
    aspect-ratio: 16 / 10;
  }
}

/* ---------------- 04 / Applications (horizontal lines, not cards) ---------------- */

.cat-app-list {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  border-top: 1px solid var(--border);
}

.cat-app-list__item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.3s var(--ease);
}

.cat-app-list__item:hover {
  padding-left: 12px;
}

.cat-app-list__num {
  color: var(--accent);
  flex: 0 0 auto;
}

.cat-app-list__title {
  flex: 1 1 auto;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  color: var(--text);
}

.cat-app-list__arrow {
  color: var(--text-secondary);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}

.cat-app-list__item:hover .cat-app-list__arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* ---------------- 05 / Specification ---------------- */

.cat-spec {
  border-top: 1px solid var(--border);
  margin: 8px 0 0;
}

.cat-spec__row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.cat-spec__row dt {
  color: var(--accent);
}

.cat-spec__row dd {
  margin: 0;
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .cat-spec__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* ---------------- 06 / Featured Project ---------------- */

.cat-featured {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;

  /* Section separation */
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

/* Full-width background image */
.cat-featured__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cat-featured__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 80%;
  display: block;
}

/* Dark overlay */
.cat-featured__gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;

  background:
    radial-gradient(ellipse 75% 70% at 50% 50%,
      rgba(8, 8, 7, 0.78) 0%,
      rgba(8, 8, 7, 0.62) 42%,
      rgba(8, 8, 7, 0.35) 72%,
      rgba(8, 8, 7, 0.48) 100%),
    linear-gradient(180deg,
      rgba(8, 8, 7, 0.30) 0%,
      rgba(8, 8, 7, 0.05) 35%,
      rgba(8, 8, 7, 0.18) 65%,
      rgba(8, 8, 7, 0.60) 100%);
}

/* Wide content */
.cat-featured__inner {
  position: relative;
  z-index: 2;

  width: min(1100px, calc(100% - 80px));
  max-width: 1100px;

  margin: 0 auto;
  padding: 90px 0;
}

/* Eyebrow */
.cat-featured__inner .mono-label {
  justify-content: center;
  margin-bottom: 18px;
}

/* Title */
.cat-featured__inner .display {
  max-width: 1000px;
  margin: 0 auto 24px;
}

/* Description */
.cat-featured__inner .lede {
  max-width: 720px;
  margin: 0 auto 36px;
}

/* Button */
.cat-featured__inner .btn {
  margin-top: 4px;
}


/* ---------------- Tablet ---------------- */

@media (max-width: 900px) {

  .cat-featured {
    min-height: 62vh;
  }

  .cat-featured__inner {
    width: calc(100% - 56px);
    padding: 75px 0;
  }

}


/* ---------------- Mobile ---------------- */

@media (max-width: 700px) {

  .cat-featured {
    min-height: 64vh;

    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .cat-featured__inner {
    width: calc(100% - 40px);
    padding: 70px 0;
  }

  .cat-featured__inner .mono-label {
    margin-bottom: 14px;
  }

  .cat-featured__inner .display {
    margin-bottom: 18px;
  }

  .cat-featured__inner .lede {
    max-width: 100%;
    margin-bottom: 28px;
  }

}


/* ---------------- Small Mobile ---------------- */

@media (max-width: 480px) {

  .cat-featured {
    min-height: 68vh;
  }

  .cat-featured__inner {
    width: calc(100% - 32px);
    padding: 60px 0;
  }

}

/* ---------------- 07 / Final CTA (minimal) ---------------- */

.cat-final-cta {
  padding: 160px 0;
  text-align: center;
}

.cat-final-cta .display {
  margin: 0 0 16px;
}

.cat-final-cta .lede {
  margin: 0 auto 32px;
  max-width: 50ch;
}

@media (max-width: 700px) {
  .cat-final-cta {
    padding: 100px 0;
  }
}