/* =====================================================================
   FOOTER (footer.php) - DHI Excellence
   .ft-cta    : üst bant; solda görsel, sağda mavi > lacivert degrade
                (üst başlık, başlık, açıklama, çerçeveli + yeşil buton,
                telefon satırı, dönen halka süsü)
   .ft-main   : lacivert ana alan; logo + kısa metin + sosyal medya |
                Footer 1-4. Bölüm menüleri | iletişim
   .ft-bottom : copyright | Footer 5. Bölüm (yasal linkler) | ajans | yukarı çık
   Sınıflar "ft-" önekli: responsive.css'teki eski "footer .footer-*"
   kuralları etkilemesin. Renkler: header.css :root --dhi-*
   ===================================================================== */

.site-footer {
  position: relative;
  color: rgba(255, 255, 255, 0.72);
}

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

.site-footer a:focus-visible,
.site-footer button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.site-footer .ft-container {
  width: 92%;
  max-width: 1400px;
  margin: 0 auto;
}

/* =====================================================================
   1) ÜST BANT
   ===================================================================== */

.site-footer .ft-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: clamp(380px, 30vw, 520px);
  background: var(--dhi-navy-deep);
}

.site-footer .ft-cta.no-media {
  grid-template-columns: minmax(0, 1fr);
}

.site-footer .ft-cta-media {
  position: relative;
  overflow: hidden;
}

.site-footer .ft-cta-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--anim-ease, ease);
}

.site-footer .ft-cta:hover .ft-cta-media img {
  transform: scale(1.04);
}

/* görselin sağ kenarı maviye yumuşak geçsin */
.site-footer .ft-cta-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(34, 101, 255, 0) 70%, rgba(34, 101, 255, 0.35) 100%);
  pointer-events: none;
}

.site-footer .ft-cta-body {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(48px, 5vw, 90px) clamp(28px, 5vw, 96px);
  background:
    radial-gradient(520px 320px at 0% 0%, rgba(111, 149, 255, 0.45), transparent 70%),
    linear-gradient(120deg, var(--dhi-blue) 0%, #1d4fd6 45%, var(--dhi-blue-deep) 80%, var(--dhi-navy) 100%);
  color: #fff;
}

/* nokta deseni */
.site-footer .ft-cta-body::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 70%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 70%);
  pointer-events: none;
}

/* dönen kesikli halka */
.site-footer .ft-cta-ring {
  position: absolute;
  top: 50%;
  right: clamp(-220px, -10vw, -120px);
  width: clamp(320px, 30vw, 520px);
  aspect-ratio: 1;
  margin-top: calc(clamp(320px, 30vw, 520px) / -2);
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  animation: ft-ring-spin 50s linear infinite;
  pointer-events: none;
}

.site-footer .ft-cta-ring::before {
  content: "";
  position: absolute;
  top: 14.6%;
  left: 14.6%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dhi-green);
  box-shadow: 0 0 16px var(--dhi-green);
}

.site-footer .ft-cta-ring::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

@keyframes ft-ring-spin {
  to { transform: rotate(360deg); }
}

.site-footer .ft-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.site-footer .ft-cta-subtitle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 clamp(14px, 1.2vw, 22px);
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(14px, 0.95vw, 17px);
  font-weight: 500;
  line-height: 1.3;
}

.site-footer .ft-cta-subtitle::before {
  content: "";
  flex: 0 0 32px;
  height: 2px;
  border-radius: 2px;
  background: var(--dhi-green);
}

.site-footer .ft-cta-title {
  margin: 0;
  color: #fff;
  font-family: var(--custom-first-font);
  font-size: clamp(28px, 2.5vw, 46px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.site-footer .ft-cta-title em {
  font-style: normal;
  color: #b9f0d6;
}

.site-footer .ft-cta-desc {
  margin: clamp(12px, 1vw, 18px) 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(15px, 0.95vw, 17px);
  line-height: 1.6;
}

.site-footer .ft-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(26px, 2.4vw, 40px);
}

.site-footer .ft-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 10px 0 28px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.site-footer .ft-cta-btn svg {
  width: 36px;
  height: 36px;
  padding: 9px;
  border-radius: 50%;
  background: #fff;
  color: var(--dhi-blue);
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.site-footer .ft-cta-btn:hover {
  background: #fff;
  color: var(--dhi-blue);
  transform: translateY(-2px);
}

.site-footer .ft-cta-btn:hover svg {
  background: var(--dhi-blue);
  color: #fff;
  transform: translateX(3px);
}

.site-footer .ft-cta-btn--green {
  padding: 0 26px 0 14px;
  border-color: var(--dhi-green);
  background: var(--dhi-green);
  box-shadow: 0 12px 28px rgba(87, 194, 149, 0.35);
}

.site-footer .ft-cta-btn--green svg {
  width: 30px;
  height: 30px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.site-footer .ft-cta-btn--green:hover {
  border-color: var(--dhi-green-dark);
  background: var(--dhi-green-dark);
  color: #fff;
}

.site-footer .ft-cta-btn--green:hover svg {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: none;
}

.site-footer .ft-cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(22px, 2vw, 30px);
  color: #fff;
}

.site-footer .ft-cta-phone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.site-footer .ft-cta-phone-icon svg {
  width: 20px;
  height: 20px;
}

.site-footer .ft-cta-phone-body {
  display: flex;
  flex-direction: column;
}

.site-footer .ft-cta-phone-body span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  line-height: 1.3;
}

.site-footer .ft-cta-phone-body strong {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.site-footer .ft-cta-phone:hover .ft-cta-phone-icon {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

/* =====================================================================
   2) ANA ALAN
   ===================================================================== */

.site-footer .ft-main {
  position: relative;
  overflow: hidden;
  padding: clamp(60px, 5.6vw, 100px) 0 clamp(46px, 4vw, 70px);
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(34, 101, 255, 0.2), transparent 65%),
    radial-gradient(600px 380px at 0% 100%, rgba(87, 194, 149, 0.08), transparent 65%),
    var(--dhi-navy-deep);
}

.site-footer .ft-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1.6px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 80% 20%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 80% 20%, #000 20%, transparent 75%);
  pointer-events: none;
}

.site-footer .ft-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(32px, 3.4vw, 60px);
}

/* marka sütunu */
.site-footer .ft-logo {
  display: inline-block;
  color: #fff;
  font-family: var(--custom-first-font);
  font-size: 24px;
  font-weight: 600;
}

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

.site-footer .ft-about {
  max-width: 340px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.7;
}

.site-footer .ft-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.site-footer .ft-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.site-footer .ft-socials svg {
  width: 19px;
  height: 19px;
}

.site-footer .ft-socials a:hover {
  border-color: var(--dhi-blue);
  background: var(--dhi-blue);
  color: #fff;
  transform: translateY(-3px);
}

/* sütun başlıkları */
.site-footer .ft-heading {
  position: relative;
  margin: 6px 0 22px;
  padding-bottom: 14px;
  color: #fff;
  font-family: var(--custom-first-font);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.site-footer .ft-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--dhi-blue), var(--dhi-green));
}

/* menüler */
.site-footer .ft-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer .ft-menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.66);
  font-size: 15px;
  line-height: 1.4;
  transition: color 0.3s ease, transform 0.3s ease;
}

/* hover'da soldan kayan ok çizgisi */
.site-footer .ft-menu a::before {
  content: "";
  width: 0;
  height: 2px;
  margin-right: 0;
  border-radius: 2px;
  background: var(--dhi-green);
  transition: width 0.3s ease, margin-right 0.3s ease;
}

.site-footer .ft-menu a:hover,
.site-footer .ft-menu .current-menu-item > a {
  color: #fff;
}

.site-footer .ft-menu a:hover::before,
.site-footer .ft-menu .current-menu-item > a::before {
  width: 12px;
  margin-right: 8px;
}

/* iletişim */
.site-footer .ft-contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer .ft-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.55;
}

.site-footer .ft-contact-icon {
  display: inline-flex;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-top: -6px;
  border-radius: 12px;
  background: rgba(111, 149, 255, 0.14);
  color: var(--dhi-blue-soft);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.site-footer .ft-contact-icon svg {
  width: 18px;
  height: 18px;
}

.site-footer a.ft-contact-item:hover {
  color: #fff;
}

.site-footer a.ft-contact-item:hover .ft-contact-icon {
  background: var(--dhi-blue);
  color: #fff;
}

/* =====================================================================
   3) ALT BAR
   ===================================================================== */

.site-footer .ft-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0b1222;
}

.site-footer .ft-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 30px;
  padding: 20px 0;
}

.site-footer .ft-copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  line-height: 1.5;
}

.site-footer .ft-copyright p {
  margin: 0;
}

.site-footer .ft-copyright a:hover {
  color: #fff;
}

.site-footer .ft-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
}

.site-footer .ft-legal-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer .ft-legal-menu a,
.site-footer .ft-legal-link {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  line-height: 1.4;
}

.site-footer .ft-legal-menu a:hover,
.site-footer .ft-legal-link:hover {
  color: #fff;
}

.site-footer .ft-bottom-end {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-footer .ft-agency {
  display: inline-flex;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

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

.site-footer .ft-agency img {
  display: block;
  width: auto;
  height: 22px;
}

.site-footer .ft-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.site-footer .ft-top svg {
  width: 18px;
  height: 18px;
}

.site-footer .ft-top:hover {
  border-color: var(--dhi-blue);
  background: var(--dhi-blue);
  transform: translateY(-3px);
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */

@media (max-width: 1199px) {
  .site-footer .ft-container {
    width: 94%;
  }

  .site-footer .ft-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer .ft-col--brand {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-footer .ft-about,
  .site-footer .ft-socials {
    margin: 0;
  }
}

@media (max-width: 991px) {
  .site-footer .ft-cta {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer .ft-cta-media {
    aspect-ratio: 16 / 8;
  }

  .site-footer .ft-cta-media::after {
    background: linear-gradient(180deg, rgba(34, 101, 255, 0) 60%, rgba(34, 101, 255, 0.4) 100%);
  }

  .site-footer .ft-container {
    width: calc(100% - 40px);
  }

  .site-footer .ft-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer .ft-col--brand {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 575px) {
  .site-footer .ft-cta-media {
    aspect-ratio: 16 / 10;
  }

  .site-footer .ft-cta-body {
    padding: 44px 20px 48px;
  }

  .site-footer .ft-cta-btn {
    justify-content: space-between;
    width: 100%;
  }

  .site-footer .ft-cta-btn--green {
    justify-content: center;
  }

  .site-footer .ft-container {
    width: calc(100% - 32px);
  }

  .site-footer .ft-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .site-footer .ft-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 0 90px; /* mobil alt butonlar / WhatsApp widget'ı üstüne binmesin */
  }

  .site-footer .ft-bottom-end {
    justify-content: space-between;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer .ft-cta-ring {
    animation: none;
  }
}
