/**
 * BS Marjinal — site footer (tüm sayfalar)
 */

.site-footer {
  position: relative;
  z-index: 3;
  isolation: isolate;
  background-color: #020617;
  color: #e5e7eb;
  filter: drop-shadow(0 -2px 1px rgba(15, 23, 42, 0.6))
    drop-shadow(0 -4px 3px rgba(15, 23, 42, 0.3));
}

.footer-slant-outer {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(-1 * var(--hero-slant-outer-h) + 1px);
  z-index: 1;
  height: calc(var(--hero-footer-slant-height) + var(--slant-shadow-room));
  padding-top: var(--slant-shadow-room);
  box-sizing: border-box;
  overflow: hidden;
  pointer-events: none;
}

.footer-slant-shape {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--hero-footer-slant-height);
  background: #020617;
  clip-path: polygon(50% 0%, 50% 0%, 101% 100%, -1% 100%);
  box-shadow: none;
}

.footer-main {
  position: relative;
  z-index: 2;
  padding: 3rem 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: 1rem 1.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.footer-top-left {
  justify-self: start;
  text-align: left;
  max-width: 28rem;
}

.footer-brand {
  justify-self: center;
  text-align: center;
  margin-top: -1.35rem;
}

.footer-top-right {
  justify-self: end;
  align-self: start;
}

.footer-logo {
  max-height: 100px;
  width: auto;
  max-width: min(280px, 55vw);
  display: block;
  margin-top: calc(-1 * var(--hero-footer-slant-height));
}

.footer-nav-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 1.5rem 2.5rem;
}

.footer-nav-group {
  flex: 1 1 auto;
  min-width: min(148px, 46vw);
}

.footer-text {
  font-size: 0.86rem;
  color: #cbd5f5;
}

.footer-text a {
  color: #e5e7eb;
  text-decoration: none;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 400;
  margin-bottom: 0.6rem;
  color: #f9fafb;
}

.footer-list li {
  font-size: 0.84rem;
  color: #cbd5f5;
  margin-bottom: 0.2rem;
}

.footer-link {
  color: #cbd5f5;
  text-decoration: none;
}

.footer-link:hover {
  color: #ffffff;
}

.footer-social {
  font-size: 0.86rem;
}

.footer-nav-line {
  font-size: 0.84rem;
  color: #cbd5f5;
}

.footer-nav-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 400;
  margin-bottom: 0.6rem;
  color: #f9fafb;
}

.footer-nav-label {
  display: block;
  font-size: 0.84rem;
  color: #e2e8f0;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.footer-sublist {
  margin: 0 0 0.45rem 0.65rem;
  padding: 0;
  border-left: 1px solid rgba(148, 163, 184, 0.35);
  padding-left: 0.65rem;
}

.footer-sublist li {
  font-size: 0.8rem;
  color: #cbd5f5;
  margin-bottom: 0.15rem;
}

.footer-bottom {
  position: relative;
  z-index: 2;
  border-top: none;
  padding: 0.9rem 0;
  font-size: 0.8rem;
  color: #9ca3af;
  text-align: center;
}

.footer-copy {
  color: #9ca3af;
}

/* Tablet: üst blok dikey, nav 2 sütun — dar sütunlar ve dağınık wrap olmasın */
@media (max-width: 991.98px) and (min-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1.35rem;
  }

  .footer-top-left {
    justify-self: center;
    order: 2;
    max-width: 36rem;
  }

  .footer-brand {
    order: 1;
    margin-top: 0;
  }

  .footer-top-right {
    justify-self: center;
    order: 3;
  }

  .footer-logo {
    margin-top: 0;
  }

  .footer-nav-flex {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem 2rem;
    width: 100%;
    max-width: 44rem;
    margin-left: auto;
    margin-right: auto;
    align-items: start;
  }

  .footer-nav-group {
    flex: unset;
    min-width: 0;
    width: auto;
    text-align: left;
  }

  .footer-nav-title,
  .footer-list {
    text-align: left;
  }
}

@media (max-width: 767.98px) {
  .footer-top {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1.25rem;
  }

  .footer-top-left {
    justify-self: center;
    text-align: center;
    max-width: 100%;
    order: 2;
  }

  .footer-brand {
    order: 1;
    margin-top: 0;
  }

  .footer-top-right {
    justify-self: center;
    order: 3;
  }

  .footer-logo {
    max-height: 88px;
  }

  .footer-nav-flex {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
    max-width: min(26rem, 100%);
    margin-left: auto;
    margin-right: auto;
    align-items: start;
    justify-items: stretch;
  }

  .footer-nav-group {
    flex: unset;
    min-width: 0;
    width: 100%;
    text-align: left;
  }

  .footer-nav-title {
    text-align: left;
  }

  .footer-list {
    text-align: left;
  }

  .footer-nav-label {
    margin-top: 0.35rem;
  }

  .footer-sublist {
    margin-left: 0;
    margin-top: 0.2rem;
    padding-left: 0.75rem;
    border-left-width: 2px;
  }
}
