/* ════════════════════════════════════════════════════════════
   Alt Bilgi — "Bizi takip edin" + Instagram ızgarası + footer.
   Ölçüler kaynağın CSS'inden: bölüm boşluğu 2.5rem / 4rem (1000px),
   kenar boşluğu 1.25 / 2 / 3 rem, sütun arası 3 / 3.75 / 5 rem,
   blok genişlikleri 24rem (tanıtım), 14rem (bağlantı), 18rem (bülten).
   ════════════════════════════════════════════════════════════ */

[data-module-name="footer"] { --irem-fgutter: 1.25rem; --irem-fsection: 2.5rem; }
@media (min-width: 700px)  { [data-module-name="footer"] { --irem-fgutter: 2rem; } }
@media (min-width: 1000px) { [data-module-name="footer"] { --irem-fgutter: 3rem; --irem-fsection: 4rem; } }

/* ── Bizi takip edin + Instagram ───────────────────────────── */
.irem-follow { background: var(--irem-bg); }
.irem-follow__head { padding: .5rem var(--irem-fgutter) 0; }
.irem-follow__body { padding: var(--irem-fsection) var(--irem-fgutter); }
.irem-follow__grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2px;
  max-width: 1024px; margin: 0 auto; padding: 0; list-style: none;
  --irem-follow-cols: 3;
}
.irem-follow__item { flex: 0 0 auto; width: calc((100% - (var(--irem-follow-cols) - 1) * 2px) / var(--irem-follow-cols)); }
.irem-follow__link { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--irem-soft); }
.irem-follow__link img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.irem-follow__hover {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgb(0 0 0 / .5); color: #fff; opacity: 0; transition: opacity .3s ease;
}
.irem-follow__hover .irem-icon { width: 20px; }
.irem-follow__link:hover .irem-follow__hover, .irem-follow__link:focus-visible .irem-follow__hover { opacity: 1; }

/* Mobil: 3 sütun, en çok 9; tam sıra varken eksik son sıra gizli */
@media (max-width: 699px) {
  .irem-follow__item:nth-child(n+10),
  .irem-follow__item:nth-child(3n+4):nth-last-child(-n+2),
  .irem-follow__item:nth-child(3n+4):nth-last-child(-n+2) ~ .irem-follow__item { display: none; }
}
@media (min-width: 700px) {
  .irem-follow__grid { --irem-follow-cols: 5; }
  .irem-follow__item:nth-child(n+11),
  .irem-follow__item:nth-child(5n+6):nth-last-child(-n+4),
  .irem-follow__item:nth-child(5n+6):nth-last-child(-n+4) ~ .irem-follow__item { display: none; }
}

/* ── Footer ────────────────────────────────────────────────── */
.irem-footer {
  background: var(--irem-bg); color: var(--irem-text);
  border-top: 1px solid var(--irem-line);
  padding: var(--irem-fsection) var(--irem-fgutter) min(var(--irem-fsection), 3rem);
}
.irem-footer__inner { display: grid; row-gap: min(var(--irem-fsection), 3rem); }
.irem-footer__blocks { display: grid; align-items: start; gap: min(var(--irem-fsection), 2.5rem); }
.irem-footer__block { display: grid; align-content: start; gap: 1rem; min-width: 0; }
@media (min-width: 700px) {
  .irem-footer__blocks { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3rem; }
  .irem-footer__block { flex: auto; gap: 1.25rem; }
  .irem-footer__block--links { flex-grow: 0; max-width: 14rem; }
  .irem-footer__block--newsletter { flex-basis: 14rem; max-width: 18rem; }
  .irem-footer__block--text { flex-basis: 14rem; max-width: 24rem; }
}
@media (min-width: 1150px) { .irem-footer__blocks { column-gap: 3.75rem; } }
@media (min-width: 1400px) { .irem-footer__blocks { column-gap: 5rem; } }

.irem-footer__about { white-space: pre-line; }
.irem-footer__links { display: grid; gap: .625rem; margin: 0; padding: 0; list-style: none; }
.irem-footer__link {
  color: rgb(28 28 28 / .65); color: color-mix(in srgb, var(--irem-text) 65%, transparent);
  transition: color .2s ease-in-out;
}
.irem-footer__link:hover { color: var(--irem-text); }

.irem-footer__form { display: grid; gap: 1.25rem; }
.irem-footer__input { line-height: 1.7; }
.irem-footer__submit { font-size: .75rem; padding: .6rem 1.75rem; }
@media (min-width: 700px) { .irem-footer__submit { font-size: .8125rem; } }
.irem-footer__form .irem-form-msg { margin-top: -.5rem; }

.irem-footer__social { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2rem; margin: 0; padding: 0; list-style: none; }
.irem-footer__social a { display: grid; place-items: center; color: inherit; opacity: .65; transition: opacity .2s; }
.irem-footer__social a:hover { opacity: 1; }
.irem-footer__social .irem-icon { width: 1.25rem; }
.irem-footer__social:not(:has(li)) { display: none; }

.irem-footer__bottom { padding-block: 10px; text-align: center; }
.irem-footer__copy { margin: 0; font-size: 12px; color: #777; }
.irem-footer__payments { margin-top: 15px; display: flex; justify-content: center; }
.irem-footer__payments img { display: block; width: auto; height: auto; max-height: 20px; max-width: 100%; }
@media (min-width: 1024px) {
  .irem-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; text-align: start; }
  .irem-footer__payments { margin-top: 0; }
}
