/* ==========================================================================
   Alt bilgi — referans ölçüsü (1440px'te ölçüldü)

   Siyah zemin, 1312px'lik tek sütun. Bloklar arası ritim 64px, ayırıcılar
   1px #808080. Başlıklar 16/24 · 600 · 0.48px büyük harf; bütün metin ve
   bağlantılar 14/22 · 0.14px. Ortada marka kilidi, altında ince kural,
   sonra bülten + yardım, dört bağlantı sütunu, sosyal şerit ve yasal satır.
   ========================================================================== */
.site-footer {
  background: var(--c-black);
  color: var(--c-white);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 4rem;                       /* 64px — blok ritmi */
  padding-block: 2rem 3rem;        /* 32px üst · 48px alt */
}

/* Kurallar bloklar arası boşluğu iki yana bölmesin diye kendileri de
   ızgaranın bir üyesidir; ekstra kenar boşluğu almazlar. */
.footer__rule {
  height: 1px;
  border: 0;
  background: rgba(255, 255, 255, 0.5);   /* siyah üzerinde #808080 */
}

/* --------------------------------------------------------------------------
   Marka kilidi — ortada
   -------------------------------------------------------------------------- */
.footer__brand { text-align: center; }

.footer__logo {
  display: inline-block;
}

/* Animasyonlu kilit (partials/brand-lockup.php) burada dikey dizilir:
   üstte arma, altında yazı — eski durağan logonun ölçüleriyle. Yalnızca
   açık ton çizilir; yıldızlar da açık armanın grisine yatışır. */
.footer__logo .brand__lockup {
  --brand-star-rest: #A8A8A8;
  flex-direction: column;
  height: auto;
  gap: 0.25rem;
}

.footer__logo .brand__mark { height: 40px; }
.footer__logo .brand__word { height: 24px; }
.footer__logo .brand__img--light { opacity: 1; }

/* Animasyon alt bilgi görünüre girene kadar bekler; ekrana gelince
   header'daki gibi baştan oynar (reveal.js .is-revealed ekler). */
.js .footer__logo[data-reveal]:not(.is-revealed) :is(
  .brand__mark picture, .brand__star, .brand__star-shape,
  .brand__star-ring, .brand__star-glow, .brand__word
) {
  animation-play-state: paused;
}

/* --------------------------------------------------------------------------
   Ortak tipografi — sütun başlıkları ve bağlantılar
   -------------------------------------------------------------------------- */
.footer__heading {
  font-family: var(--font-sans);
  font-size: var(--fs-base);       /* 16px */
  font-weight: var(--fw-semibold); /* 600 */
  line-height: var(--lh-base);     /* 24px */
  letter-spacing: 0.03em;          /* 0.48px */
  text-transform: uppercase;
  color: var(--c-white);
}

.footer__links,
.footer__help {
  margin-top: 0.75rem;             /* başlıktan 12px sonra */
  display: flex;
  flex-direction: column;
  gap: 0.75rem;                    /* 22 + 12 = 34px adım */
  font-size: var(--fs-sm);
  line-height: var(--lh-sm);
  letter-spacing: var(--ls-normal);
  color: rgba(255, 255, 255, 0.86);
}

.footer__links a,
.footer__help a {
  color: inherit;
  transition: color var(--dur-fast) var(--ease-out);
}

.footer__links a:hover,
.footer__help a:hover { color: var(--c-gold-light); }

/* --------------------------------------------------------------------------
   Bülten + yardım — iki sütun, referansta 130px aralıklı
   -------------------------------------------------------------------------- */
.footer__top {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .footer__top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(3rem, 9vw, 8.125rem);   /* 130px */
  }
}

.footer__lede {
  margin-top: 1.5rem;              /* 24px */
  max-width: 46ch;
  font-size: var(--fs-sm);
  line-height: var(--lh-sm);
  letter-spacing: var(--ls-normal);
  color: var(--c-white);
}

.footer__newsletter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;                   /* 10px */
  margin-top: 1.5rem;
}

.footer__input {
  flex: 1 1 16rem;
  min-width: 0;
  height: 3rem;                    /* 48px */
  padding: 0.75rem 1rem;           /* 12 · 16 */
  border: 1px solid #8B8A93;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--c-white);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
}

.footer__input::placeholder { color: rgba(255, 255, 255, 0.72); }

.footer__input:focus-visible {
  outline: 2px solid var(--c-white);
  outline-offset: 2px;
  border-color: var(--c-white);
}

.footer__consent {
  margin-top: 1rem;
  max-width: 52ch;
  font-size: var(--fs-3xs);
  line-height: var(--lh-3xs);
  letter-spacing: var(--ls-normal);
  color: rgba(255, 255, 255, 0.6);
}

.footer__consent a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__consent a:hover { color: var(--c-white); }

/* --------------------------------------------------------------------------
   Dört bağlantı sütunu
   -------------------------------------------------------------------------- */
.footer__cols {
  display: grid;
  gap: 2.5rem 3.75rem;             /* 60px sütun aralığı */
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 900px) {
  .footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.footer__address {
  font-style: normal;
  gap: 0.75rem;
}

.footer__address p { margin: 0; }

/* --------------------------------------------------------------------------
   Sosyal şerit
   -------------------------------------------------------------------------- */
.footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer__social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.5rem;                     /* 24px ikon + 40px aralık = 64px adım */
}

.footer__social a {
  display: inline-grid;
  place-items: center;
  color: var(--c-white);
  transition: color var(--dur-fast) var(--ease-out);
}

.footer__social a:hover { color: var(--c-gold-light); }

.footer__social .icon { width: 1.5rem; height: 1.5rem; }

/* --------------------------------------------------------------------------
   Yasal satır — ortalanmış
   -------------------------------------------------------------------------- */
.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.footer__copy {
  font-size: var(--fs-sm);
  line-height: var(--lh-sm);
  letter-spacing: var(--ls-normal);
  color: rgba(255, 255, 255, 0.8);
}

/* --------------------------------------------------------------------------
   Başa dön
   -------------------------------------------------------------------------- */
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  line-height: var(--lh-sm);
  letter-spacing: var(--ls-btn);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  transition: color var(--dur-fast) var(--ease-out);
}

.back-to-top:hover { color: var(--c-white); }

.back-to-top .icon {
  width: 1rem;
  height: 1rem;
  transition: transform var(--dur-base) var(--ease-out);
}

.back-to-top:hover .icon { transform: translateY(-4px); }

/* --- Dar ekran ----------------------------------------------------------- */
@media (max-width: 719px) {
  .footer__inner { gap: 2.5rem; }
  .footer__social { gap: 1.5rem; }
}
