/* ===== FOOTER BASE ===== */
.site-footer {
  position: relative;
  background-color: #0e75c2;
  color: #FF5722;
  padding: 1.5rem 1.5rem 2rem;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right center;
  overflow: hidden;

  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Overlay for contrast */
.footer-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 143, 59, 0.18), transparent 55%),
              linear-gradient(to bottom, rgba(0, 0, 0, 0.9), #000000);
  pointer-events: none;
  z-index: 0;
}

.site-footer.in-view {
  opacity: 1;
  transform: translateY(0);
}

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
}

/* GRID LAYOUT */
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.4fr);
  gap: 2.2rem;
  margin-bottom: 2rem;
}

.footer-col {
  font-size: 0.9rem;
}

/* LOGO + ABOUT */
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
  text-decoration: none;
}

.footer-logo {
  width: 84px;
  height: auto;
}

.footer-about-text {
  color: #f7e1cf;
  text-align: justify;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* SOCIAL */
.footer-social-block {
  margin-top: 0.4rem;
}

.footer-social-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #0e75c2;
  margin-bottom: 0.4rem;
}

.footer-social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.social-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 143, 59, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ff8f3b;
  text-decoration: none;
  font-size: 0.9rem;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease,
    box-shadow 0.18s ease;
}

.social-icon:hover {
  transform: translateY(-2px);
  background: #0e75c2;
  color: #ffffff;
  box-shadow: 0 0 18px rgba(255, 143, 59, 0.7);
}

/* COLUMN HEADINGS */
.footer-heading {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #ffb078;
  margin-bottom: 0.8rem;
}

/* QUICK LINKS */
.footer-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-link-list li + li {
  margin-top: 0.2rem;
}

.footer-link-list a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: #f7e1cf;
  font-size: 0.88rem;
  padding: 0.1rem 0;
  transition: color 0.18s ease, transform 0.18s ease;
}

.footer-link-list a::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  width: 8px;
  height: 2px;
  background: #ff8f3b;
  transform: translateY(-50%) scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.footer-link-list a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-link-list a:hover::before {
  transform: translateY(-50%) scaleX(1);
}

/* NEWS BLOCK */
.footer-news-item + .footer-news-item {
  margin-top: 0.7rem;
}

.footer-news-link {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
  align-items: center;
  transition: transform 0.18s ease;
}

.footer-news-image {
  width: 80px;
  height: 60px;
  border-radius: 0.5rem;
  overflow: hidden;
}

.footer-news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 0.25s ease;
}

.footer-news-text {
  font-size: 0.8rem;
}

.footer-news-tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #ffb078;
  margin-bottom: 0.15rem;
}

.footer-news-title {
  font-size: 0.86rem;
  line-height: 1.4;
  color: #fbe9db;
}

.footer-news-link:hover {
  transform: translateY(-3px);
}

.footer-news-link:hover .footer-news-image img {
  transform: scale(1.08);
}

/* CONTACTS */
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-list li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}

.contact-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 143, 59, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ff8f3b;
  font-size: 0.9rem;
}

.footer-contact-list strong {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ffb078;
}

.footer-contact-list p {
  font-size: 0.86rem;
  margin: 0.1rem 0 0;
  color: #f7e1cf;
}

/* BOTTOM STRIP */
.footer-bottom {
  width: 100%;
  grid-column: 1 / -1;
  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 1.2rem 1rem 0;
  margin-top: 0.8rem;

  color: #ffb078;
  font-size: 0.9rem;

  border-top: 1px solid rgba(255, 255, 255, 0.15);
  gap: 0.35rem;
}

.footer-credits {
  margin: 0;
}

.footer-author {
  color: #ff8f3b;
  font-weight: 700;
}

.footer-phone {
  color: #ffb078;
  text-decoration: none;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.footer-phone:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 143, 59, 0.8);
}

/* BACK TO TOP BUTTON */
.footer-backtotop {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;

  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  outline: none;
  cursor: pointer;

  background: #ff8f3b;
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: opacity 0.25s ease, transform 0.25s ease,
              background 0.25s ease, color 0.25s ease;

  opacity: 0;
  pointer-events: none;
  z-index: 20;
}

.footer-backtotop.visible {
  opacity: 1;
  pointer-events: auto;
}

.footer-backtotop:hover {
  transform: translateY(-4px);
  background: #ffffff;
  color: #ff8f3b;
}



/* RESPONSIVE */
@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    row-gap: 2rem;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding: 2.5rem 1.2rem 1.5rem;
    background-position: center bottom;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-bottom {
    align-items: center;
    text-align: center;
  }
}
