/**
 * Daisy Menu Categories widget — scoped with .dmc prefix.
 * Loaded only when the widget is on the page.
 */

/* ---------- Wrapper ---------- */
.dmc {
  width: 100%;
}
.dmc * {
  box-sizing: border-box;
}

/* ---------- Header ---------- */
.dmc__header {
  text-align: center;
  margin-bottom: 64px;
}

.dmc__title {
  font-family: "Libre Caslon Text", serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.25;
  color: #1b3022;
  margin: 0 0 16px;
}

.dmc__bar {
  width: 96px;
  height: 4px;
  background: #8b6534;
  border-radius: 99px;
  margin: 0 auto;
}

/* ---------- Grid ---------- */
.dmc__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  grid-auto-rows: 280px;
}

/* ---------- Card ---------- */
.dmc__card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  cursor: pointer;
  text-decoration: none;
  display: block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.5s ease;
  background: #f5f0e8;
}

.dmc__card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.dmc__card--lg {
  grid-column: span 8;
}
.dmc__card--md {
  grid-column: span 4;
}

/* ---------- Image ---------- */
.dmc__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
  /* prevent Elementor's default image rules from interfering */
  max-width: unset;
  border-radius: 0;
}

.dmc__card:hover .dmc__img {
  transform: scale(1.1);
}

/* ---------- Gradient overlay ---------- */
.dmc__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(27, 48, 34, 0.8) 0%,
    transparent 50%
  );
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.dmc__card:hover .dmc__overlay {
  opacity: 0.8;
}

/* ---------- Label area ---------- */
.dmc__info {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 32px;
  z-index: 2;
}

.dmc__name {
  font-family: "Libre Caslon Text", serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.33;
  color: #fff;
  margin: 0 0 4px;
}

.dmc__count {
  font-family: "Manrope", sans-serif;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0;
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .dmc__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }
  .dmc__card--lg,
  .dmc__card--md {
    grid-column: 1 / -1;
  }
}
