.site-footer {
  position: relative;
}

.site-footer::before {
  content: url("../images/icons/3d-tree.svg");
  position: absolute;
  top: 100px;
  right: 100px;
  width: min(520px, 40vw);
  height: auto;
  display: block;
  z-index: 22;
}

/* CTA / Üst bölüm */
.site-footer__cta {
  padding: 90px 0;
  background: var(--color-gray-light);
}

.site-footer__cta-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.image-side {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.image-side img {
  width: min(520px, 40vw);
  height: auto;
  display: block;
}

.title-side {
  padding-left: 100px;
  max-width: 970px;
  flex: 1;
  position: relative;
  z-index: 33;
}
.title-side .site-footer_title {
  font-size: 48px;
  font-weight: 300;
  color: var(--color-purple);
  position: relative;
}
.title-side .site-footer_title::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150px;
  width: 130px;
  height: 130px;
  background-image: url("../images/icons/3d-phone.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  z-index: 1;
}

.title-side strong {
  font-weight: 900;
  font-size: 96px;
  color: var(--color-purple);
  text-wrap: nowrap;
}

/* Footer CTA Form (Hero form stilinin aynısı, renk: purple) */
.site-footer_newsletter {
  margin-top: 40px;
}

.site-footer_newsletter .footer__form {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 520px;
}

.site-footer_newsletter .footer__input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-size: 16px;
  font-weight: 400;
  color: var(--color-gray-dark);
  background: #fff;
  padding: 21px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.site-footer_newsletter .footer__input::placeholder {
  color: rgba(169, 126, 173, 0.55); /* color-purple */
  opacity: 1;
}

.site-footer_newsletter .footer__input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(169, 126, 173, 0.18);
}

.site-footer_newsletter .footer__button {
  flex-shrink: 0;
  background: var(--color-purple);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 18px 40px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-footer_newsletter .footer__button:hover {
  background: #94679a;
}

/* Menü / Alt bölüm */
.site-footer__menus {
  background: var(--color-green);
  color: #fff;
  padding: 60px 0;
}

.site-footer__menu-grid {
  display: grid;
  grid-template-columns: 2.1fr 1.2fr 1fr 1.1fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 40px;
  padding: 0;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
}

/* Mobilde collapsible yapı */
@media (max-width: 1023px) {
  .site-footer__col .site-footer__group {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    /* Fallback için max-height (eski tarayıcılar) */
    max-height: 0;
    -webkit-transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1),
      max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
      margin-bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -moz-transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
      margin-bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -ms-transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
      margin-bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -o-transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
      margin-bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1),
      max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
      margin-bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0;
    opacity: 0;
    will-change: grid-template-rows, max-height, margin-bottom, opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  .site-footer__col .site-footer__group > * {
    min-height: 0;
    overflow: hidden;
  }

  .site-footer__col.is-open .site-footer__group {
    grid-template-rows: 1fr;
    max-height: 2000px;
    opacity: 1;
  }

  .site-footer__col:not(.is-open) .site-footer__group {
    grid-template-rows: 0fr;
    max-height: 0;
    margin-bottom: 0;
    opacity: 0;
  }
}

.site-footer__heading {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.site-footer__heading a,
.site-footer__heading span {
  font-size: 20px;
  font-weight: bold;
  color: #ffffff;
  display: inline-block;
  flex: 1;
}

.site-footer__heading a:hover {
  opacity: 0.8;
}

.site-footer__dropdown-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -moz-transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -ms-transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -o-transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.site-footer__dropdown-icon {
  width: 24px;
  height: 24px;
  display: block;
  -webkit-transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -moz-transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -ms-transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -o-transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(0) invert(1); /* Beyaz yap */
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.site-footer__col.is-open .site-footer__dropdown-icon {
  -webkit-transform: rotate(180deg) translateZ(0);
  -moz-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  -o-transform: rotate(180deg);
  transform: rotate(180deg) translateZ(0);
}

/* Desktop'ta dropdown toggle'ı gizle */
@media (min-width: 1024px) {
  .site-footer__dropdown-toggle {
    display: none;
  }
}

.site-footer__heading--mt {
  margin-top: 28px;
}

.site-footer__subheading a {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
  color: #ffffff;
  display: inline-block;
}

.site-footer__group {
  margin-bottom: 20px;
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  margin-bottom: 20px;
}

.site-footer__list--spaced {
  gap: 8px;
}

.site-footer__link {
  color: #ffffff;
  font-size: 16px;
  line-height: 1.45;
  text-decoration: none;
  font-weight: 300;
  --webkit-transition: all 0.2s ease;
  -moz-transition: all 0.2s ease;
  -ms-transition: all 0.2s ease;
  -o-transition: all 0.2s ease;
  transition: all 0.2s ease;
  display: inline-block;
}

.site-footer__link:hover {
  text-decoration: underline !important;
}

.site-footer__link strong {
  font-weight: 600;
  color: #ffffff;
}

.site-footer__text {
  color: #ffffff;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 300;
}

.site-footer__contact {
  margin-top: 8px;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.site-footer__copyright {
  font-size: 20px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

.site-footer__social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer__social a {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
}

.site-footer__social img {
  width: 48px;
  height: 48px;
  display: block;
}

/* Responsive */
@media (max-width: 1023px) {
  .site-footer {
    margin-top: 0;
  }

  .site-footer::before {
    display: none;
  }

  .site-footer__cta {
    padding: 40px 0;
  }

  .site-footer__cta-row {
    flex-direction: column;
    gap: 30px;
  }

  .title-side {
    padding-left: 0;
    max-width: 100%;
  }

  .title-side .site-footer_title {
    font-size: 16px;
    padding-left: 80px;
  }

  .title-side .site-footer_title::before {
    width: 60px;
    height: 60px;
    left: 0;
  }

  .title-side strong {
    font-size: 32px;
    text-wrap: wrap;
    display: block;
    margin-top: 16px;
  }

  .site-footer_newsletter {
    margin-top: 24px;
  }

  .site-footer_newsletter .footer__form {
    max-width: 100%;
    gap: 12px;
  }

  .site-footer_newsletter .footer__input {
    width: 100%;
    padding: 16px 20px;
    font-size: 14px;
  }

  .site-footer_newsletter .footer__button {
    padding: 16px 20px;
    font-size: 14px;
  }

  .site-footer__menus {
    padding: 40px 0;
    padding-bottom: 60px;
  }

  .site-footer__menu-grid {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 20px;
  }

  .site-footer__col:last-child {
    border-bottom: none;
  }

  .site-footer__heading {
    margin-bottom: 0;
    padding: 8px 0;
  }

  .site-footer__heading a,
  .site-footer__heading span {
    font-size: 18px;
    flex: 1;
  }

  .site-footer__dropdown-toggle {
    margin-left: auto;
  }

  .site-footer__group {
    margin-top: 16px;
  }

  .site-footer__subheading {
    margin-top: 16px;
  }

  .site-footer__subheading a {
    font-size: 15px;
  }

  .site-footer__list {
    margin-bottom: 12px;
  }

  .site-footer__link,
  .site-footer__text {
    font-size: 14px;
  }

  .site-footer__bottom {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  .site-footer__copyright {
    font-size: 14px;
    order: 2;
  }
  .site-footer__social a {
    width: 32px;
    height: 32px;
  }
  .site-footer__social img {
    width: 32px;
    height: 32px;
  }

  .site-footer__social {
    order: 1;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .title-side .site-footer_title {
    font-size: 32px;
  }

  .title-side strong {
    font-size: 48px;
    margin-left: 80px;
  }
}

@media (min-width: 1024px) {
  .site-footer__col .site-footer__group {
    display: block !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

@media (max-width: 767px) {
  .title-side strong {
    font-size: 24px;
    margin-left: 80px;
  }
}
