/* ==================== Rim Type Menu (rtm) ==================== */
/* Lato SemiBold (i Regular kao fallback) */
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;600&display=swap");

.rtm{
  --gap: clamp(16px, 3vw, 36px);
  --ease: cubic-bezier(.2,.6,.2,1);

  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding: clamp(12px, 2vw, 24px);

  /* tipografija */
  font-family: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 600; /* default: SemiBold */
}

/* Headline – Lato SemiBold */
.rtm__headline{
  text-align: center;
  font-weight: 600;                     /* SemiBold */
  letter-spacing: .2px;
  line-height: 1.15;
  font-size: clamp(22px, 2.2vw + .6rem, 44px);
  margin: 0 0 clamp(16px, 3vw, 28px);
  color: #0d0d0e;
}

/* Grid:
   - Desktop: jedan red sa N kolona (N = broj stavki preko --rtm-cols)
   - Mobile: točno 3 kolone
*/
.rtm__grid{
  display: grid;
  grid-template-columns: repeat(var(--rtm-cols, 6), 1fr); /* PC: 1 red */
  gap: var(--gap);
  align-items: start;
}

/* Link + label ispod */
.rtm__item{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  gap: clamp(8px, 1.5vw, 14px);
}

/* Nevidljiv kvadrat 1:1 za crop i layout (nema vidljive “kocke”) */
.rtm__card{
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  transition: transform .25s var(--ease);
}

/* Slika – zoom na hover, ostaje unutar okvira */
.rtm__img{
  width: 92%;
  height: 92%;
  object-fit: contain;
  mix-blend-mode: normal;
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}

.rtm__item:hover .rtm__card,
.rtm__item:focus-visible .rtm__card{
  transform: translateY(-2px);
}
.rtm__item:hover .rtm__img,
.rtm__item:focus-visible .rtm__img{
  transform: scale(1.06);
}

/* Label ispod slike – Lato SemiBold */
.rtm__label{
  font-weight: 600;                     /* SemiBold */
  text-align: center;
  font-size: clamp(14px, 1.1vw + .3rem, 22px);
  color: #0f0f10;
  line-height: 1.2;
}

/* Mobile: točno 3 kolone + veći headline */
@media (max-width: 768px){
  .rtm{ max-width: 92%; }

  .rtm__grid{
    grid-template-columns: repeat(3, 1fr);
  }

  /* veći naslov na mobitelu */
  .rtm__headline{
    font-size: clamp(28px, 8vw, 38px);
    line-height: 1.12;
    margin-bottom: clamp(18px, 5vw, 30px);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .rtm__card, .rtm__img{ transition-duration: .1s; }
}
/* ================== /Rim Type Menu (rtm) ===================== */
