/* =============================================================
   brands.css — Section: Markalar (açık matris logo cloud).
   Açık zemin, KOYU hairline çizgiler, minimal radius. Logolar hücreyi neredeyse
   dolduracak kadar BÜYÜK (ince padding). Kesişimlerde "+" işaretleri. Sol yaslı,
   asimetrik etkileyici header. SCOPE: HER selector .mcy-brands kökünden.
   ============================================================= */

.mcy-brands {
  --br-display: "Poppins", sans-serif;
  --br-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --br-line: rgba(28, 22, 18, 0.14);
  display: flex;
  justify-content: center;
  background: var(--bg-color);
  padding: clamp(38px, 5vh, 74px) clamp(16px, 3vw, 40px);
  overflow: hidden;
}
.mcy-brands .mcy-brands__inner { width: 100%; max-width: 1200px; }

/* ---------- Header (sol başlık, sağ açıklama) ---------- */
.mcy-brands .mcy-brands__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 72px);
  flex-wrap: wrap;
  margin: 0 0 clamp(20px, 2.2vw, 34px);
}
.mcy-brands .mcy-brands__eyebrow {
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary-color);
}
.mcy-brands .mcy-brands__title {
  margin: 0;
  max-width: 14ch;
  font-family: var(--br-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.3vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--text-dark);
  text-wrap: balance;
}
.mcy-brands .mcy-brands__title b { font-weight: 700; color: var(--primary-color); }
.mcy-brands .mcy-brands__intro {
  flex: 0 1 30ch;
  margin: 0 0 6px;
  text-align: right;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  line-height: 1.5;
  color: rgba(28, 22, 18, 0.55);
}

/* ---------- Matris duvar (açık zemin, koyu çizgiler, minimal radius) ---------- */
.mcy-brands .mcy-brands__wall {
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--br-line);
}
.mcy-brands .mcy-brands__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.mcy-brands .mcy-brands__cell {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(140px, 13vw, 190px);
  padding: clamp(10px, 1vw, 14px);
  border-right: 1px solid var(--br-line);
  border-bottom: 1px solid var(--br-line);
  background: transparent;
}
.mcy-brands .mcy-brands__cell:nth-child(4n) { border-right: 0; }
.mcy-brands .mcy-brands__cell:nth-child(even) { background: rgba(28, 22, 18, 0.018); }
/* Kesişim "+" işareti */
.mcy-brands .mcy-brands__cell::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: -7px;
  z-index: 2;
  width: 15px;
  height: 15px;
  pointer-events: none;
  color: rgba(28, 22, 18, 0.28);
  background:
    linear-gradient(currentColor, currentColor) center / 15px 1px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1px 15px no-repeat;
}
/* Logolar HÜCREYİ dolduracak kadar büyük (ince padding sınırı) */
.mcy-brands .mcy-brands__cell img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: clamp(72px, 8.5vw, 116px);
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.62;
  transition: filter 0.35s var(--br-ease), opacity 0.35s var(--br-ease), transform 0.35s var(--br-ease);
  -webkit-user-select: none;
  user-select: none;
}
.mcy-brands .mcy-brands__cell:hover { background: rgba(234, 29, 38, 0.04); }
.mcy-brands .mcy-brands__cell:hover img { filter: grayscale(0); opacity: 1; transform: scale(1.06); }

/* Reveal (brands.js / GSAP) */
.mcy-brands .mcy-brands__grid[data-reveal] .mcy-brands__cell { opacity: 0; }

/* ============================ Responsive ============================ */
@media (max-width: 860px) {
  .mcy-brands .mcy-brands__head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .mcy-brands .mcy-brands__title { max-width: none; }
  .mcy-brands .mcy-brands__intro { text-align: left; flex-basis: auto; }
}
@media (max-width: 680px) {
  .mcy-brands .mcy-brands__grid { grid-template-columns: repeat(2, 1fr); }
  .mcy-brands .mcy-brands__cell:nth-child(4n) { border-right: 1px solid var(--br-line); }
  .mcy-brands .mcy-brands__cell:nth-child(2n) { border-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .mcy-brands .mcy-brands__cell img { transition: none; }
  .mcy-brands .mcy-brands__grid[data-reveal] .mcy-brands__cell { opacity: 1; }
}
