/* Roubinaa Footer Styles */
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css");

/* Base Footer Styles */
.roubinaa-footer {
  background-color: #e8e0d0;
  color: #5a5a5a;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  padding: 0;
  position: relative;
  width: 100%;
  margin-top: 10rem; /* This ensures footer sticks to bottom */
}

.roubinaa-footer::before {
  content: "";
  position: relative;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
  background-color: #e8e0d0;
  clip-path: polygon(0 100%, 100% 100%, 50% 0);
}

.footer-container {
  max-width: 1200px;
  padding: 2rem 1rem 1rem;
  margin-top: 0; /* Remove the large top margin */
}

/* Main Footer Section */
.footer-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Logo Section */
.footer-logo {
  flex: 1;
  min-width: 200px;
  max-width: 250px;
}

.footer-logo img {
  max-width: 120px;
  height: auto;
  margin-bottom: 0.75rem;
}

.footer-logo p {
  font-size: 0.9rem;
  color: #777;
}

/* Contact Section */
.footer-contact {
  flex: 1;
  min-width: 200px;
}

.footer-contact h3,
.footer-social h3 {
  color: #d32f2f; /* Red accent color from the Roubinaa site */
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
  position: relative;
}

.footer-contact h3::after,
.footer-social h3::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: #d32f2f;
}

.footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact ul li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-contact ul li i {
  color: #d32f2f;
  width: 20px;
  text-align: center;
}

.footer-contact ul li a {
  color: #5a5a5a;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.footer-contact ul li a:hover {
  color: #d32f2f;
}

/* Social Media Section */
.footer-social {
  flex: 1;
  min-width: 200px;
}

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  color: #5a5a5a;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.social-links a:hover {
  background-color: #d32f2f;
  color: white;
  transform: translateY(-3px);
}

/* Footer Bottom Section */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.copyright p {
  font-size: 0.85rem;
  color: #777;
  margin: 0;
}

.language-selector {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.language-option {
  font-size: 0.85rem;
  color: #777;
  text-decoration: none;
  transition: color 0.3s ease;
}

.language-option:hover,
.language-option.active {
  color: #d32f2f;
}

/* Responsive Styles */
@media (max-width: 640px) {
  .roubinaa-footer {
    margin-top: 160rem;
  }
  .footer-container {
    padding: 1.5rem 1rem 1rem;
  }

  .footer-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-logo,
  .footer-contact,
  .footer-social {
    max-width: 100%;
    width: 100%;
  }

  .footer-logo {
    order: 1;
  }

  .footer-contact {
    order: 2;
  }

  .footer-social {
    order: 3;
  }

  .footer-contact h3::after,
  .footer-social h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-contact ul li {
    justify-content: center;
    font-size: 0.9rem;
  }

  .social-links {
    justify-content: center;
    gap: 1.5rem;
  }

  .social-links a {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .copyright p {
    font-size: 0.8rem;
  }
}
