/* =============================================================
   footer.css — Footer: container içi koyu premium panel.
   Warm-paper zemin üstünde yuvarlak, atmosferik foto arka planlı koyu panel:
   kapanış CTA bandı + sütunlar + iletişim + silik dev "MEHMET CEYLAN" imza.
   SCOPE: HER selector .mcy-foot kökünden.
   ============================================================= */

.mcy-foot {
  --foot-display: "Poppins", sans-serif;
  --foot-ink: #fcfbfb;
  --foot-muted: rgba(252, 251, 251, 0.58);
  --foot-line: rgba(252, 251, 251, 0.12);
  --foot-ease: cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  justify-content: center;
  background: var(--bg-color);
  padding: clamp(36px, 5vh, 72px) clamp(16px, 3vw, 40px) clamp(24px, 4vh, 44px);
}
.mcy-foot .mcy-foot__inner { width: 100%; max-width: 1320px; }

/* ---------- Koyu panel ---------- */
.mcy-foot .mcy-foot__panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: clamp(24px, 2.4vw, 36px);
  background: #181210;
  color: var(--foot-ink);
  padding: clamp(30px, 3.4vw, 54px) clamp(26px, 4vw, 60px) clamp(22px, 2.4vw, 34px);
}
/* Atmosferik foto arka plan */
.mcy-foot .mcy-foot__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s var(--foot-ease);
}
.mcy-foot .mcy-foot__bg.lazy-active { opacity: 0.82; }
/* Okunurluk için koyu degrade + sağ üstte sıcak kırmızı kor */
.mcy-foot .mcy-foot__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(60% 80% at 92% 6%, rgba(234, 29, 38, 0.28) 0%, transparent 58%),
    linear-gradient(180deg, rgba(20, 15, 12, 0.72) 0%, rgba(20, 15, 12, 0.56) 44%, rgba(16, 11, 9, 0.92) 100%);
}
/* Silik dev imza wordmark (panele sığar) */
.mcy-foot .mcy-foot__mark {
  position: absolute;
  left: 50%;
  bottom: clamp(-10px, -0.8vw, -4px);
  transform: translateX(-50%);
  z-index: 2;
  margin: 0;
  width: max-content;
  max-width: 100%;
  font-family: var(--foot-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 9vw, 8rem);
  line-height: 0.8;
  letter-spacing: -0.05em;
  white-space: nowrap;
  text-align: center;
  color: rgba(252, 251, 251, 0.06);
  pointer-events: none;
  user-select: none;
}
.mcy-foot .mcy-foot__body { position: relative; z-index: 3; }

/* ---------- Kapanış CTA bandı (kompakt: başlık solda, butonlar sağda) ---------- */
.mcy-foot .mcy-foot__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(22px, 3vw, 48px);
}
.mcy-foot .mcy-foot__ctatext { max-width: 56ch; }
.mcy-foot .mcy-foot__eyebrow {
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary-color);
}
.mcy-foot .mcy-foot__title {
  margin: 0;
  max-width: 20ch;
  font-family: var(--foot-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 2.7vw, 2.55rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--foot-ink);
  text-wrap: balance;
}
.mcy-foot .mcy-foot__title b { font-weight: 700; color: var(--primary-color); }
.mcy-foot .mcy-foot__lead {
  margin: 12px 0 0;
  max-width: 50ch;
  font-size: clamp(0.92rem, 1.2vw, 1.02rem);
  line-height: 1.5;
  color: var(--foot-muted);
}
.mcy-foot .mcy-foot__actions { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }

/* ---------- Ayraç ---------- */
.mcy-foot .mcy-foot__rule {
  height: 1px;
  margin: clamp(22px, 2.4vw, 34px) 0;
  border: 0;
  background: var(--foot-line);

  margin-bottom: 50px;
}

/* ---------- Sütunlar ---------- */
.mcy-foot .mcy-foot__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: clamp(24px, 2.6vw, 52px);
}
.mcy-foot .mcy-foot__logo {
  display: block;
  width: clamp(180px, 16vw, 220px);
  height: auto;
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
}
.mcy-foot .mcy-foot__tagline {
  margin: 0 0 20px;
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--foot-muted);
}
.mcy-foot .mcy-foot__social { display: flex; gap: 10px; }
.mcy-foot .mcy-foot__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: var(--foot-ink);
  background: rgba(252, 251, 251, 0.08);
  transition: background-color 0.25s var(--foot-ease), transform 0.12s var(--foot-ease);
}
.mcy-foot .mcy-foot__social a:hover { background: var(--primary-color); }
.mcy-foot .mcy-foot__social a:active { transform: scale(0.94); }
.mcy-foot .mcy-foot__social .mcy-ico { width: 18px; height: 18px; }

.mcy-foot .mcy-foot__coltitle {
  display: block;
  margin-bottom: 16px;
  font-family: var(--foot-display);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(252, 251, 251, 0.4);
}
.mcy-foot .mcy-foot__links { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 11px; }
.mcy-foot .mcy-foot__links a {
  font-size: 14px;
  color: var(--foot-muted);
  text-decoration: none;
  transition: color 0.2s var(--foot-ease), padding-left 0.2s var(--foot-ease);
}
.mcy-foot .mcy-foot__links a:hover { color: var(--foot-ink); padding-left: 5px; }

/* İletişim sütunu */
.mcy-foot .mcy-foot__phone {
  display: inline-block;
  font-family: var(--foot-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  letter-spacing: -0.02em;
  color: var(--foot-ink);
  text-decoration: none;
}
.mcy-foot .mcy-foot__phone:hover { color: var(--primary-color); }
.mcy-foot .mcy-foot__email {
  display: inline-block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--foot-muted);
  text-decoration: none;
  transition: color 0.2s var(--foot-ease);
}
.mcy-foot .mcy-foot__email:hover { color: var(--foot-ink); }
.mcy-foot .mcy-foot__addr { margin: 18px 0 0; font-size: 13px; line-height: 1.55; color: var(--foot-muted); }
.mcy-foot .mcy-foot__addr b { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: rgba(252, 251, 251, 0.78); }
.mcy-foot .mcy-foot__addr .mcy-ico { width: 13px; height: 13px; color: var(--primary-color); }

/* ---------- Alt bar ---------- */
.mcy-foot .mcy-foot__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: rgba(252, 251, 251, 0.42);
}
.mcy-foot .mcy-foot__legal { display: flex; flex-wrap: wrap; gap: 18px; }
.mcy-foot .mcy-foot__legal a { color: rgba(252, 251, 251, 0.42); text-decoration: none; transition: color 0.2s var(--foot-ease); }
.mcy-foot .mcy-foot__legal a:hover { color: var(--foot-ink); }

/* ---------- Reveal (footer.js) ---------- */
.mcy-foot .mcy-foot__body[data-reveal] > * { opacity: 0; transform: translateY(22px); }

/* ============================ Responsive ============================ */
@media (max-width: 900px) {
  .mcy-foot .mcy-foot__cta { grid-template-columns: 1fr; gap: 28px; }
  .mcy-foot .mcy-foot__grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .mcy-foot .mcy-foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .mcy-foot .mcy-foot__grid { grid-template-columns: 1fr; }
  .mcy-foot .mcy-foot__cta { flex-direction: column; align-items: flex-start; }
  .mcy-foot .mcy-foot__actions { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .mcy-foot .mcy-foot__bg { transition: none; }
  .mcy-foot .mcy-foot__body[data-reveal] > * { opacity: 1; transform: none; }
}
