/* =====================================================================
   FOOTER (footer.php)
   Beyaz zemin.
   Üst satır : logo | kısa dikey çizgi + metin | sağda buton + sosyal ikonlar
   Alt satır : Hizmetlerimiz (Footer 1. Bölüm menüsü, 2 sütun) | İletişim
   En alt    : ince çizgi üstünde copyright + ajans logosu
   Sınıflar "ft-" önekli: responsive.css'teki eski "footer .footer-*" kuralları etkilemesin.
   ===================================================================== */

.site-footer {
  --ft-ink: var(--bl-plum-deep);
  --ft-text: var(--bl-text);
  --ft-line: rgba(39, 57, 84, 0.12);
  position: relative;
  padding-top: 64px;
  border-top: 1px solid var(--ft-line);
  background: #fff;
  color: var(--ft-text);
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

.site-footer a:focus-visible {
  outline: 2px solid var(--ft-ink);
  outline-offset: 3px;
}

/* ---- Üst satır ---- */

.ft-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 40px;
}

.ft-logo {
  display: block;
  color: var(--ft-ink);
  font-size: 24px;
  font-weight: 600;
}

.ft-logo img {
  display: block;
  width: auto;
  max-width: 220px;
  max-height: 120px;
}

.ft-text {
  position: relative;
  max-width: 680px;
  padding-left: 40px;
  color: var(--ft-text);
  font-size: 15px;
  line-height: 1.55;
}

/* logo ile metin arasındaki kısa dikey çizgi */
.ft-text::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 2px;
  height: 64px;
  max-height: 100%;
  background: var(--ft-ink);
  transform: translateY(-50%);
}

.ft-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.ft-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 280px;
  height: 44px;
  padding: 0 24px;
  border-radius: 7px;
  background: var(--ft-ink);
  color: #fff !important;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.ft-btn:hover {
  background: var(--bl-plum);
  transform: translateY(-2px);
}

.ft-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 !important;
  padding: 0;
  list-style: none;
}

.ft-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--ft-ink);
  color: #fff !important;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.ft-socials a:hover {
  background: var(--bl-plum);
  transform: translateY(-2px);
}

.ft-socials svg {
  width: 18px;
  height: 18px;
}

/* ---- Alt satır ---- */

.ft-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  margin-top: 64px;
  padding-bottom: 56px;
}

.ft-heading {
  margin: 0 0 16px;
  color: var(--ft-ink);
  font-family: var(--custom-first-font);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}

/* Hizmetlerimiz: menü iki sütun */
.ft-menu {
  max-width: 540px;
  margin: 0 !important;
  padding: 0;
  column-count: 2;
  column-gap: 40px;
  list-style: none;
}

.ft-menu li {
  break-inside: avoid;
}

.ft-menu a {
  display: inline-block;
  padding: 2px 0;
  color: var(--ft-text);
  font-size: 15px;
  line-height: 1.35;
}

.ft-menu a:hover,
.ft-menu .current-menu-item > a {
  color: var(--bl-plum);
}

/* İletişim */
.ft-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 !important;
  padding: 0;
  list-style: none;
}

.ft-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--ft-text);
  font-size: 15px;
  line-height: 1.45;
}

.ft-contact-item svg {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 0;
  color: var(--ft-ink);
}

.ft-contact-item span {
  min-width: 0;
  overflow-wrap: anywhere;
}

a.ft-contact-item:hover {
  color: var(--bl-plum);
}

/* ---- Copyright ---- */

.ft-copyright {
  padding: 18px 0;
  border-top: 1px solid var(--ft-line);
}

.ft-copyright-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ft-copyright .copyright {
  color: rgba(38, 48, 63, 0.75);
  font-family: var(--custom-first-font);
  font-size: 16px;
  line-height: 1.5;
}

.ft-copyright .copyright:empty {
  display: none;
}

.ft-agency {
  margin-left: auto;
  opacity: 0.55;
  transition: opacity 0.25s ease;
}

.ft-agency:hover {
  opacity: 1;
}

/* ajans logosu beyaz: açık zeminde koyu görünsün */
.ft-agency img {
  display: block;
  width: auto;
  height: auto;
  filter: brightness(0) saturate(100%);
}

/* ---- Responsive ---- */

@media (max-width: 1199px) {
  .ft-top {
    column-gap: 28px;
  }

  .ft-text {
    padding-left: 28px;
    font-size: 14px;
  }

  .ft-btn {
    min-width: 230px;
  }
}

@media (max-width: 991px) {
  .site-footer {
    padding-top: 50px;
  }

  /* üst satır ortalanır, çizgi yatay ayraca döner */
  .ft-top {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    row-gap: 24px;
    text-align: center;
  }

  .ft-text {
    max-width: 620px;
    padding: 24px 0 0;
  }

  .ft-text::before {
    top: 0;
    left: 50%;
    width: 48px;
    height: 2px;
    transform: translateX(-50%);
  }

  .ft-actions {
    align-items: center;
  }

  .ft-bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    margin-top: 44px;
    padding-bottom: 44px;
  }
}

@media (max-width: 767px) {
  .ft-bottom {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .ft-btn {
    min-width: 0;
    width: 100%;
    max-width: 320px;
  }

  .ft-actions {
    width: 100%;
  }

  .ft-copyright-inner {
    flex-direction: column;
    text-align: center;
  }

  .ft-agency {
    margin-left: 0;
  }
}

@media (max-width: 400px) {
  .ft-menu {
    column-gap: 20px;
  }

  .ft-menu a,
  .ft-contact-item {
    font-size: 14px;
  }
}
