/* =================================================
   FOOTER STYLING
   ================================================= */

/* Footer container - horizontal layout */
.footer {
  background-color: black;
  color: white;
  padding: 40px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

/* Footer logo sizing */
.footer-logo img {
  max-height: 150px;
  width: auto;
}

/* Center section of footer - flex layout with spacing between each element */
.footer-center {
  display: flex;
  align-items: center;
  gap: 60px;
}

/* Container for social media icons */
.social-icons {
  display: flex;
  gap: 20px;
  align-items: center;
}

/* Individual social icon styling - interactive cursor */
.social-icons i {
  font-size: 2.2rem;
  color: #FFD700;
  cursor: pointer;
  transition: transform 0.2s ease;
}

/* When hovered, icon becomes larger */
.social-icons i:hover {
  transform: scale(1.2);
}

/* Container for footer navigation links */
.footer-links {
  display: flex;
  gap: 60px;
}

.footer-column {
  color: #FFD700;
}

/* Individual footer link styling */
.footer-column a {
  display: block;
  color: #FFD700;
  text-decoration: none;
  font-size: 0.95rem;
  margin-bottom: 6px;
}
/* Underline links when hovered */
.footer-column a:hover {
  text-decoration: underline;
}

/* Scroll-to-top button styling: circular gold button with arrow icon */
.scroll-top {
  width: 80px;
  height: 80px;
  border: 2px solid #FFD700;
  border-radius: 50%;
  background: transparent;
  color: #FFD700 !important;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}

/* Change background and scale up the button when hovered */
.scroll-top:hover {
  background-color: #FFD700;
  color: black !important;
  transform: scale(1.1);
}

/* =================================================
   MOBILE LAYOUT (max-width: 767px)
   ================================================= */

@media (max-width: 767px) {
  /* Footer container switches to grid layout on mobile */
  .footer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;   /* Three equal columns */
    grid-template-rows: auto auto;         /* Two rows */
    grid-template-areas:
      "logo    social    top"              /* First row: logo, social icons, scroll top */
      "links   links     links";           /* Second row: the two link sections*/
    gap: 20px;
    padding: 20px;
  }

  .footer-left {
    grid-area: logo;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Smaller logo size on mobile */
  .footer-logo img {
    max-height: 80px;
    width: auto;
  }

  .footer-center {
    display: contents; 
  }

  .footer-center .social-icons {
    grid-area: social;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* Slightly larger social icon size on mobile */
  .footer-center .social-icons i {
    font-size: 2.6rem;
  }

  .footer-right {
    grid-area: top;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .scroll-top {
    width: 65px;
    height: 65px;
    font-size: 1.6rem;
  }

  /* Footer links in row */
  .footer-links {
    grid-area: links;
    display: flex;
    justify-content: center;
    gap: 20px;
  }

  .footer-column {
    text-align: center;
    padding: 0 10px;
    min-width: 120px;
  }
}
