/* =========================================================
   ec_mademeasure – front styles
   ========================================================= */

/* ---------------------------------------------------------
   Home tiles
   --------------------------------------------------------- */
.mm-tile {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  text-decoration: none;
  color: #fff;
}

.mm-tile__media {
  position: relative;
  padding-top: 66%;
}

.mm-tile__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.mm-tile:hover .mm-tile__img {
  transform: scale(1.04);
}

.mm-tile__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
}

.mm-tile__subtitle {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
  margin-bottom: 0.25rem;
}

.mm-tile__title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
}

/* ---------------------------------------------------------
   Category left card
   --------------------------------------------------------- */
.mm-cat-card__icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.mm-cat-card__fallback {
  display: block;
  width: 48px;
  height: 48px;
  background: #f0f0f0;
  border-radius: 50%;
}

.mm-cat-card__title {
  font-weight: 600;
  font-size: 0.95rem;
}

.mm-cat-card__link {
  font-size: 0.85rem;
}

/* ---------------------------------------------------------
   Landing page
   --------------------------------------------------------- */
.mm-landing-section {
  padding: 5rem 0;
  border-bottom: 1px solid #ebebeb;
}

.mm-landing-section:last-child {
  border-bottom: none;
}

/* Parzyste sekcje: zdjęcie po prawej, tekst po lewej */
.mm-landing-section:nth-child(even) .mm-landing-section__inner {
  flex-direction: row-reverse;
}

.mm-landing-section__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.75rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
}

.mm-landing-section__content {
  padding: 1rem 2rem;
}

.mm-landing-section__header {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.mm-landing-section__text {
  font-size: 1rem;
  line-height: 1.75;
  color: #555;
}

@media (max-width: 767px) {
  .mm-landing-section {
    padding: 3rem 0;
  }

  .mm-landing-section__content {
    padding: 1.5rem 0 0;
  }

  /* Wyłącz odwracanie na mobile */
  .mm-landing-section:nth-child(even) .mm-landing-section__inner {
    flex-direction: row;
  }
}
