
/* ========================================
   BUDERO.MD FOOTER
======================================== */

.site-footer {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 280px;
  padding: 38px 5%;
  background: #3159e8;
  color: #fff;
  font-size: var(--type-text);
  overflow: hidden;
  isolation: isolate;
}

/* ========================================
   SOL ALAN
======================================== */

.footer-left {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
  padding-right: 55px;
}

.footer-project {
  position: relative;
  z-index: 2;
  width: 210px;
}

.footer-brand {
  display: block;
  width: 100%;
  margin-left: -25px;
}

.footer-brand svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* Sosyal medya */

.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  transform: translateY(-10px);
  font-size: 13px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  color: #fff;
  transition: opacity .18s ease;
}

.footer-social a:hover {
  opacity: .7;
}

.footer-social svg {
  display: block;
  width: 22px;
  height: 22px;
}

/* Partnerlik */

.footer-partner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  font-size: 13px;
}

.footer-partner img {
  display: block;
  width: 135px;
  height: auto;
  object-fit: contain;
}

/* Adres */

.footer-address {
  margin-top: 24px;
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
}

/* ========================================
   ORTA DAİRE VE ÜST SAP
======================================== */

.site-footer::after {
  content: "";
  position: absolute;
  top: -80;
  left: 62.5%;
  width: 11px;
  height: calc(50% + 28px);
  background: #f3f3f1;
  transform: translateX(-50%);
  z-index: 2;
}

.footer-divider {
  position: absolute;
  top: 50%;
  left: 62.5%;
  width: 104px;
  height: 104px;
  background: #f3f3f1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

/* ========================================
   SAĞ ALAN
======================================== */

.footer-right {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  min-width: 0;
  padding-left: 55px;
  text-align: right;
}

/* Hızlı bağlantılar */

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.footer-links a,
.footer-legal-links a {
  transition: opacity .18s ease;
}

.footer-links a:hover,
.footer-legal-links a:hover {
  opacity: .7;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Yasal bağlantılar */

.footer-legal-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  margin-top: 24px;
}

/* Telif */

.footer-copyright {
  display: block;
  margin-top: 24px;
  font-size: 13px;
  white-space: nowrap;
}

/* Erişilebilirlik */

.site-footer a:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 4px;
}

/* ========================================
   TABLET
======================================== */

@media (max-width: 800px) {

  .site-footer {
    padding: 32px 4%;
    min-height: 300px;
  }

  .footer-left {
    padding-right: 35px;
  }

  .footer-right {
    padding-left: 35px;
  }

  .footer-project {
    width: 160px;
  }

  .footer-partner img {
    width: 105px;
  }

  .footer-divider {
    width: 76px;
    height: 76px;
  }

  .site-footer::after {
    height: calc(50% - 38px);
  }

  .footer-copyright {
    white-space: normal;
  }
}

/* ========================================
   MOBİL
======================================== */

@media (max-width: 620px) {

  .site-footer {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 36px 7%;
  }

  .footer-left {
    padding-right: 0;
    gap: 24px;
  }

  .footer-right {
    align-items: flex-start;
    padding-left: 0;
    text-align: left;
    gap: 26px;
  }

  .footer-divider,
  .site-footer::after {
    display: none;
  }

  .footer-links,
  .footer-legal-links {
    align-items: flex-start;
  }

  .footer-partner {
    margin-top: 0;
  }

  .footer-address {
    margin-top: 0;
  }

  .footer-legal-links,
  .footer-copyright {
    margin-top: 0;
  }
}
