/* ── FOOTER ── */

footer {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.footer-spacer {
  height: 68px;
  width: 100%;
}

.footer-main {
  position: relative;
  width: 100%;
  background: var(--color-bg);
  box-shadow: 0px -4px 60px rgba(240, 112, 37, 0.2);
}

.footer-deco {
  position: absolute;
  bottom: -65px;
  left: -10px;
  width: clamp(100px, 12vw, 240px);
  height: auto;
  pointer-events: none;
}

.footer-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: var(--section-gap) clamp(20px, 11.46vw, 220px) clamp(60px, 8vw, 120px);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-col-logo {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 415px;
}

.footer-col-logo img {
  width: clamp(160px, 15.7vw, 302px);
  height: auto;
}

.footer-address {
  font-weight: 400;
  font-size: clamp(14px, 1.04vw, 20px);
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-top: 12px;
}

.footer-address a {
  transition: color 0.3s ease;
}

.footer-address a:hover {
  color: ghostwhite !important;
}

.footer-col-nav {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-top: 4px;
}

.footer-col-nav a {
  font-weight: 400;
  font-size: clamp(16px, 1.25vw, 24px);
  color: var(--color-text);
  transition: color 0.2s;
}

.footer-col-nav a:hover {
  color: var(--color-brand);
}

.footer-contact-group {
  display: flex;
  flex-direction: column;
  gap: 0;
  cursor: pointer;
  position: relative;
}

.footer-contact-group:hover a,
.footer-contact-group:hover .footer-email-copy {
  color: var(--color-text);
}

.footer-contact-group.copied a {
  color: var(--color-text);
}

.footer-contact-group.copied .footer-email-copy {
  color: var(--color-brand);
}

.footer-contact-group::after {
  content: "✓ Copied!";
  position: absolute;
  left: 100%;
  bottom: 0;
  transform: translate(12px, 0);
  background: var(--color-brand);
  color: var(--color-text);
  font-size: clamp(11px, 0.85vw, 17px);
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 5px 14px;
  border-radius: 20px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.3s ease;
}

.footer-contact-group.copied::after {
  opacity: 1;
  transform: translate(12px, 0);
}

.footer-email-copy {
  cursor: pointer;
  color: var(--color-text-muted);
  font-size: clamp(15px, 1.1vw, 22px);
  display: inline-block;
  position: relative;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

.footer-email-copy:hover {
  color: var(--color-text);
}

.footer-col-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 48px;
}

@media (max-width: 900px) {
  .footer-col-right {
    align-items: flex-start;
  }
}

.back-to-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--color-text);
}

.back-to-top span {
  font-family: var(--font-main);
  font-weight: 400;
  font-size: clamp(16px, 1.25vw, 24px);
  color: var(--color-text);
  transition: color 0.2s;
}

.back-to-top-circle {
  width: 44px;
  height: 44px;
  border-radius: 50px;
  border: 2px solid var(--color-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.back-to-top-circle i {
  font-size: 32px;
  color: var(--color-brand);
  font-weight: 700;
  position: absolute;
  top: 48%;
  left: 48%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0;
  vertical-align: 0 !important;
  line-height: 0 !important;
}

.back-to-top-circle i::before {
  vertical-align: 0 !important;
}

.back-to-top:hover .back-to-top-circle {
  background-color: var(--color-brand);
  border-color: var(--color-brand);
}

.back-to-top:hover .back-to-top-circle i {
  color: var(--color-text);
}

.social-icons {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}

.social-icons a img {
  height: clamp(24px, 2.34vw, 44px);
  width: auto;
  object-fit: contain;
  transition: opacity 0.2s;
}

.social-icons a:hover img {
  opacity: 0.75;
}

.copyright {
  font-weight: 400;
  font-size: clamp(14px, 1.04vw, 20px);
  color: var(--color-text);
}

@media (max-width: 2560px) {
  .footer-deco {
    left: -20px !important;
    right: auto !important;
    top: auto !important;
    bottom: -70px !important;
  }
}

@media (max-width: 1440px) {
  .footer-deco {
    left: -15px !important;
    bottom: -55px !important;
  }
}

@media (max-width: 1024px) {
  .footer-deco {
    left: -10px !important;
    bottom: -40px !important;
  }
}

@media (max-width: 820px) {
  .footer-deco {
    bottom: -35px !important;
  }
}

@media (max-width: 400px) {
  .footer-deco {
    width: 75px !important;
    left: -5px !important;
    bottom: -25px !important;
  }
}
