/* =============================================================
   index.css — Anasayfa.
   SCOPE KURALI: HER selector .mcy-hero kökünden türer (.mcy-hero .mcy-hero__x).
   Renkler style.css token'larından: kırmızı #ea1d26 / mürekkep #1c1612 / kâğıt #faf8f6.
   Buton/ikon/font → components.css. Navigasyon → navbar.css.
   ============================================================= */

.mcy-hero {
  --hero-ink: #1c1612;
  --hero-ink-80: rgba(28, 22, 18, 0.82);
  --hero-ink-60: rgba(28, 22, 18, 0.58);
  --hero-ink-10: rgba(28, 22, 18, 0.1);
  --hero-display: "MCY Helvetica", "Helvetica Neue", Arial, sans-serif;
  --hero-ease: cubic-bezier(0.23, 1, 0.32, 1);

  --r-card: 24px;
  --r-soft: 16px;
  --r-cut: 28px;

  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background-color: var(--bg-color);

}

/* ---------- Yuvarlatılmış medya kartı (gölgesiz; zemin = sayfa zemini) ---------- */
.mcy-hero .mcy-hero__card {
  position: relative;
  width: 100%;
  max-width: 1800px;
  height: 100%;
  border-radius: var(--r-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-color);
}

/* Hafif üst scrim — fotoğrafı yıkmadan başlık kontrastını korur */
.mcy-hero .mcy-hero__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 36%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(250, 248, 246, 0.34), transparent);
}

/* Foto sarmalayıcı (ÖLÇEKLENMEZ): sağ-alt köşeden foto'yu geri çeker ki kartın
   yuvarlak-köşe clip'i orada foto sızdırmasın. Geri çekilen bölgeyi alt-sağ panel
   zaten kapatır → görsel kayıp yok. Maske foto'da değil burada: scale'den etkilenmez. */
.mcy-hero .mcy-hero__mediawrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-bottom-right-radius: 64px;
}
.mcy-hero .mcy-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform-origin: center;
  animation: mcyHeroZoom 22s ease-out both;
}

.mcy-hero .mcy-hero__inner {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* CardNav giriş animasyonu (görünüm navbar.css/megamenu.css'te) */
.mcy-hero .mcy-cardnav { animation: mcyHeroFade 0.6s var(--hero-ease) both; }

/* ---------- Başlık bloğu ---------- */
.mcy-hero .mcy-hero__head {
  width: 100%;
  max-width: 56rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 104px 24px 0;        /* absolute CardNav'ın altından başlar */
}
.mcy-hero .mcy-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0 auto 14px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 26px -16px rgba(28, 22, 18, 0.35);
  font-size: 13.5px;
  letter-spacing: 0.01em;
  color: var(--hero-ink);
  animation: mcyHeroUp 0.6s var(--hero-ease) both;
}
.mcy-hero .mcy-hero__chip .mcy-ico { color: var(--primary-color); width: 16px; height: 16px; }

.mcy-hero .mcy-hero__headline {
  margin: 0 0 12px;
  font-family: var(--hero-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 6.6vw, 5.3rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
  text-wrap: balance;
  color: var(--hero-ink);
  text-shadow: 0 1px 30px rgba(250, 248, 246, 0.45);
  animation: mcyHeroPop 0.8s var(--hero-ease) 0.2s both;
}
/* Eksen kelimesi vurgusu: marka kırmızısı + bold */
.mcy-hero .mcy-hero__headline b {
  font-weight: 700;
  color: var(--primary-color);
}
.mcy-hero .mcy-hero__lead {
  max-width: 36rem;
  margin: 0;
  font-size: clamp(0.9rem, 1.6vw, 1.125rem);
  line-height: 1.6;
  color: var(--hero-ink-80);
  text-shadow: 0 1px 18px rgba(250, 248, 246, 0.55);
  animation: mcyHeroFade 0.8s var(--hero-ease) 0.4s both;
}

/* ---------- Sol-alt beyaz kart + köşeden taşan ürün asset'i ---------- */
.mcy-hero .mcy-hero__stat {
  position: absolute;
  bottom: 110px;
  right: 16px;
  left: auto;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 224px;
  padding: 18px;
  border-radius: var(--r-soft);
  background: #ffffff;
  box-shadow: 0 28px 60px -28px rgba(28, 22, 18, 0.45);
  overflow: visible;
  animation: mcyHeroInLeft 0.8s var(--hero-ease) 0.2s both;
}
/* Asset kart içine değil, köşeden taşar (bento aksanı) */
.mcy-hero .mcy-hero__statasset {
  position: absolute;
  top: -50px;
  right: -22px;
  width: auto;
  height: 104px;
  transform: rotate(-9deg);
  filter: drop-shadow(0 16px 18px rgba(28, 22, 18, 0.28));
  pointer-events: none;
}
.mcy-hero .mcy-hero__stattitle {
  font-family: var(--hero-display);
  font-size: 19px;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--hero-ink);
  max-width: 11ch;
}
.mcy-hero .mcy-hero__statnote {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hero-ink-60);
}
.mcy-hero .mcy-hero__statbtn { align-self: stretch; justify-content: flex-start; margin-top: 2px; }

/* ---------- Marka logoları marquee: inverted'ın altından çıkıp karta yaklaşınca fade ---------- */
.mcy-hero .mcy-hero__brands { display: none; }
.mcy-hero .mcy-hero__brandtrack {
  display: flex;
  align-items: center;
  width: max-content;
  animation: mcyBrandScroll 60s linear infinite;
}
/* Logolar renkli "chip" olarak (webp'lerin beyaz zemini yuvarlatılır), BÜYÜK + seyrek */
.mcy-hero .mcy-hero__brandtrack img {
  height: 104px;
  width: auto;
  margin-right: 40px;            /* gap yerine: 2 kopya + -50% dikişsiz döner */
  object-fit: contain;
  border-radius: 16px;
}

/* ---------- Sağ-alt inverted (faux-cutout) köşe ---------- */
.mcy-hero .mcy-hero__corner {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 14px 14px 34px;
  background: var(--bg-color);
  border-top-left-radius: var(--r-cut);
  border-bottom-right-radius: 0px;
}
.mcy-hero .mcy-hero__cornermask {
  position: absolute;
  width: var(--r-cut);
  height: var(--r-cut);
  pointer-events: none;
}
.mcy-hero .mcy-hero__cornermask svg { display: block; width: 100%; height: 100%; }
.mcy-hero .mcy-hero__cornermask path { fill: var(--bg-color); }
.mcy-hero .mcy-hero__cornermask--top { top: calc(-1 * var(--r-cut)); right: 0; }
.mcy-hero .mcy-hero__cornermask--left { bottom: 0; left: calc(-1 * var(--r-cut)); }

.mcy-hero .mcy-hero__cornericon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(28, 22, 18, 0.06);
  color: var(--hero-ink);
  flex-shrink: 0;
}
.mcy-hero .mcy-hero__cornericon .mcy-ico { width: 18px; height: 18px; }
.mcy-hero .mcy-hero__cornerinfo { display: flex; flex-direction: column; gap: 2px; }
.mcy-hero .mcy-hero__cornertitle { font-size: 16px; font-weight: 400; color: var(--hero-ink); }
.mcy-hero .mcy-hero__cornerlink {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--hero-ink-60);
  cursor: pointer;
  transition: color 0.2s ease;
}
.mcy-hero .mcy-hero__cornerlink:hover { color: var(--hero-ink); }
.mcy-hero .mcy-hero__cornerlink .mcy-ico { width: 14px; height: 14px; }

/* ---------- Keyframes (global; mcyHero öneki) ---------- */
@keyframes mcyHeroFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mcyHeroUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes mcyHeroPop { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: scale(1); } }
@keyframes mcyHeroInLeft { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes mcyHeroZoom { from { transform: scale(1.1); } to { transform: scale(1.01); } }
@keyframes mcyBrandScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================ Responsive ============================ */
@media (min-width: 768px) {
  .mcy-hero { padding: 20px; }
  .mcy-hero .mcy-hero__head { padding-top: 124px; }

  .mcy-hero .mcy-hero__stat {
    left: 24px;
    right: auto;
    bottom: 96px;
    width: 220px;
    padding: 18px;
  }
  .mcy-hero .mcy-hero__statasset { height: 116px; top: -54px; right: -28px; }
  .mcy-hero .mcy-hero__statnum { font-size: 2.5rem; }

  .mcy-hero .mcy-hero__corner { gap: 18px; padding: 26px 22px 22px 48px; }
  .mcy-hero .mcy-hero__cornericon { width: 52px; height: 52px; }
  .mcy-hero .mcy-hero__cornericon .mcy-ico { width: 20px; height: 20px; }
  .mcy-hero .mcy-hero__cornertitle { font-size: 19px; }
  .mcy-hero .mcy-hero__cornerlink { font-size: 14px; }
}

@media (min-width: 1024px) {
  .mcy-hero { --r-card: 28px; }
  .mcy-hero .mcy-hero__media { object-position: center; }
  .mcy-hero .mcy-hero__stat { left: 40px; bottom: 56px; }

  /* Marquee yalnızca masaüstünde; EN ALTTA. Kartın sağından başlar, sola (karta)
     doğru fade, sağda inverted köşenin altından çıkar. */
  .mcy-hero .mcy-hero__brands {
    display: block;
    position: absolute;
    left: 300px;
    right: 0;
    bottom: 0px;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 18%, #000 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 18%, #000 100%);
  }
}

/* ============================ A11y ============================ */
@media (prefers-reduced-motion: reduce) {
  .mcy-hero .mcy-cardnav,
  .mcy-hero .mcy-hero__chip,
  .mcy-hero .mcy-hero__headline,
  .mcy-hero .mcy-hero__lead,
  .mcy-hero .mcy-hero__stat,
  .mcy-hero .mcy-hero__corner,
  .mcy-hero .mcy-hero__media,
  .mcy-hero .mcy-hero__brandtrack { animation: none; }
  .mcy-hero .mcy-hero__media { transform: scale(1.01); }
}

@media (prefers-reduced-transparency: reduce) {
  .mcy-hero .mcy-hero__chip { background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .mcy-hero .mcy-hero__stat { background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
