/* Site alt bilgisi: yuvarlatılmış açık kart; çağrı alanı, iletişim, bağlantılar, alt satır */
.site-footer {
  --sf-bg: #eef0f3;
  --sf-text: #1e293b;
  --sf-muted: #64748b;
  --sf-line: #94a3b8;
  --sf-accent: var(--primary-color, #2563eb);
  --sf-field-bg: transparent;
  padding: 0 0 12px;
  margin-top: 48px;
}

[data-theme="dark"] .site-footer {
  --sf-bg: #1e293b;
  --sf-text: #f1f5f9;
  --sf-muted: #94a3b8;
  --sf-line: #475569;
}

.site-footer-card {
  background: var(--sf-bg);
  color: var(--sf-text);
  border-radius: 48px;
  padding: 72px clamp(24px, 5vw, 104px) 32px;
}

/* Çağrı alanı */
.site-footer-cta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px 48px;
  flex-wrap: wrap;
}

.site-footer-cta-text {
  flex: 1 1 420px;
  min-width: 0;
}

.site-footer-cta-text h2 {
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--sf-text);
}

.site-footer-cta-text p {
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  color: var(--sf-muted);
  margin: 0;
}

.site-footer-form {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 1 560px;
  flex-wrap: wrap;
}

.site-footer-form input {
  flex: 1 1 240px;
  min-width: 0;
  height: 56px;
  padding: 0 24px;
  border: 1px solid var(--sf-text);
  border-radius: 999px;
  background: var(--sf-field-bg);
  color: var(--sf-text);
  font-size: 1rem;
}

.site-footer-form input::placeholder {
  color: var(--sf-muted);
}

.site-footer-form input:focus {
  outline: 2px solid var(--sf-accent);
  outline-offset: 2px;
}

.site-footer-form button {
  height: 56px;
  padding: 0 32px;
  border: 0;
  border-radius: 999px;
  background: var(--sf-accent);
  color: #fff;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.site-footer-form button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.site-footer-divider {
  border: 0;
  border-top: 1px solid var(--sf-line);
  opacity: 1;
  margin: 56px 0 48px;
}

/* İletişim bilgileri */
.site-footer-info {
  display: flex;
  align-items: flex-start;
  gap: 32px 56px;
  flex-wrap: wrap;
}

.site-footer-info-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.site-footer-info-address {
  flex: 1 1 80px;
  max-width: 420px;
}

.site-footer-label {
  color: var(--sf-muted);
  font-size: 1rem;
}

.site-footer-info-item a,
.site-footer-info-item > span:not(.site-footer-label) {
  color: var(--sf-text);
  text-decoration: none;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.site-footer-info-item a:hover {
  color: var(--sf-accent);
}

.site-footer-social {
  display: flex;
  gap: 16px;
  margin-inline-start: auto;
}

.site-footer-social a {
  width: 68px;
  height: 68px;
  border: 1px solid var(--sf-accent);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sf-text);
  font-size: 1.6rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-footer-social a:hover {
  background: var(--sf-accent);
  color: #fff;
}

/* Site içi bağlantılar */
.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--sf-line);
  font-size: 0.95rem;
}

.site-footer-links a {
  color: var(--sf-muted);
  text-decoration: none;
}

.site-footer-links a:hover {
  color: var(--sf-accent);
}

/* Alt satır */
.site-footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin-top: 56px;
}

.site-footer-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--sf-muted);
  font-size: 1rem;
}

.site-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 0.9rem;
}

.site-footer-legal a {
  color: var(--sf-muted);
  text-decoration: none;
}

.site-footer-legal a:hover {
  color: var(--sf-accent);
}

.site-footer-logo img {
  height: 50px;
  width: auto;
  display: block;
}

[data-theme="dark"] .site-footer-logo img {
  filter: brightness(0) invert(1);
}

.site-footer-langs {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

.site-footer-langs a {
  color: var(--sf-accent);
  opacity: 0.75;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-footer-langs a:hover,
.site-footer-langs a.active {
  opacity: 1;
  font-weight: 700;
}

/* Geliştirici logosu (Kozlow Studio): sağa yaslı */
.site-footer-credit {
  display: flex;
  justify-content: end;
  align-items: center;
  margin-top: 24px;
}

.site-footer-studio {
  display: inline-flex;
  line-height: 0;
}

.site-footer-studio img {
  height: 50px;
  width: auto;
  transition: opacity 0.2s ease;
}

[data-theme="dark"] .site-footer-studio img {
  filter: none;
  opacity: 0.75;
}

.site-footer-studio:hover img,
.site-footer-studio:focus-visible img {
  opacity: 1;
}

/* Tablet ve telefon */
@media (max-width: 991.98px) {
  .site-footer-card {
    border-radius: 32px;
    padding: 48px 28px 28px;
  }

  .site-footer-form {
    flex: 1 1 100%;
  }

  .site-footer-divider {
    margin: 40px 0 32px;
  }

  .site-footer-social {
    margin-inline-start: 0;
    width: 100%;
  }

  .site-footer-social a {
    width: 56px;
    height: 56px;
    font-size: 1.3rem;
  }

  .site-footer-bottom {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    margin-top: 40px;
  }

  .site-footer-copy {
    align-items: center;
  }

  .site-footer-legal {
    justify-content: center;
  }

  .site-footer-langs {
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .site-footer-card {
    border-radius: 24px;
    padding: 36px 20px 24px;
  }

  .site-footer-info {
    flex-direction: column;
    gap: 24px;
  }

  .site-footer-info-address {
    max-width: none;
  }

  .site-footer-form button {
    width: 100%;
    justify-content: center;
  }
}

/* Tablet ve telefonda alt satır ortalandığı için logo da ortada */
@media (max-width: 991.98px) {
  .site-footer-credit {
    justify-content: center;
  }
}
