/* Import Font Awesome for social icons */
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css");

:root {
  --footer-bg: #082243;
  --footer-text-light: #aab7c4;
  --footer-text-white: #ffffff;
  --footer-heading-color: #ffffff;
  --footer-link-hover: #ffffff;
  --footer-divider: rgba(255, 255, 255, 0.08);
  --newsletter-button-bg: #2f6cc8;
  --newsletter-button-hover-bg: #2558a8;
  --newsletter-input-border: #3a5e8f;
  --newsletter-input-focus-border: #5d9eff;
  --scroll-to-top-bg: #ffffff;
  --scroll-to-top-arrow: #333333;
}

/* site-footer starting from here */
.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text-light);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  position: relative;
}
/* site-footer finished here */

.footer-container {
  width: 100%;
  margin: 0 auto;
  padding: clamp(20px, 3.2vw, 30px) clamp(14px, 2.2vw, 20px) 0;
}

/* footer-top starting from here */
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: clamp(18px, 3.8vw, 40px);
  padding-bottom: clamp(20px, 3.8vw, 40px);
  margin-left: clamp(0px, 7vw, 150px);
  margin-right: clamp(0px, 7vw, 150px);
}

/* footer-top finished here */

.footer-brand {
  flex: 1 1 250px;
  min-width: 250px;
}

.footer-logo img {
  width: clamp(120px, 30vw, 200px);
  margin-bottom: clamp(6px, 1.8vw, 10px);
}

.footer-brand p {
  color: var(--footer-text-white);
  font-weight: 500;
  margin-bottom: clamp(8px, 2vw, 15px);
  font-size: clamp(0.82rem, 1.9vw, 1rem);
}

.social-icons {
  display: flex;
  gap: clamp(7px, 1.8vw, 12px);
  flex-wrap: wrap;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(28px, 8vw, 40px);
  height: clamp(28px, 8vw, 40px);
  border-radius: 50%;
  color: white;
  font-size: clamp(0.85rem, 3.8vw, 1.25rem);
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.social-icon:hover,
.social-icon:focus {
  transform: translateY(-2px);
}

.social-icon.facebook {
  background-color: #3b5998;
}
.social-icon.instagram {
  background-color: #e4405f;
}
.social-icon.youtube {
  background-color: #ff0000;
}
.social-icon.pinterest {
  background-color: #bd081c;
}
.social-icon.whatsapp {
  background-color: #25d366;
}
.social-icon.tiktok {
  background-color: #000000;
}

.footer-links-container {
  display: flex;
  flex: 3 1 200px;
  flex-wrap: wrap;
}

.footer-column {
  flex: 1 1 120px;
  min-width: 120px;
}

.footer-column h3 {
  color: var(--footer-heading-color);
  font-size: clamp(0.8rem, 2vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: clamp(10px, 2.6vw, 20px);
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 0;
}

.footer-column a {
  color: var(--footer-text-light);
  text-decoration: none;
  font-size: clamp(0.72rem, 1.8vw, 0.875rem);
  font-weight: 300;
  line-height: 1.8;
  transition: color 0.2s ease;
  position: relative;
}

.footer-column a:hover,
.footer-column a:focus {
  color: var(--footer-link-hover);
  outline: none;
}

.footer-divider {
  border: 0;
  border-top: 1px solid var(--footer-divider);
  margin: 0;
}

/* newsletter-section starting from here */
.newsletter-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 3vw, 30px);
  margin: clamp(12px, 2.4vw, 20px) clamp(0px, 7vw, 150px);
}

.newsletter-content {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.4vw, 20px);
}

.newsletter-icon {
  width: clamp(34px, 9vw, 50px);
  height: clamp(34px, 9vw, 50px);
  background-color: #34a853;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.newsletter-icon i {
  color: white;
  font-size: clamp(1rem, 4vw, 1.5rem);
}

.newsletter-text h3 {
  color: var(--footer-text-white);
  font-size: clamp(1rem, 4vw, 1.5rem);
  font-weight: 700;
  margin: 0 0 5px;
}

.newsletter-text p {
  margin: 0;
  font-size: clamp(0.78rem, 2.3vw, 0.94rem);
}

.newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.newsletter-form .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.newsletter-form input[type="text"],
.newsletter-form input[type="email"] {
  background-color: transparent;
  border: 1px solid var(--newsletter-input-border);
  border-radius: 8px;
  color: var(--footer-text-white);
  height: clamp(38px, 7vw, 48px);
  padding: 0 clamp(10px, 2.4vw, 18px);
  font-size: clamp(0.8rem, 2.6vw, 1rem);
  width: clamp(130px, 24vw, 200px);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.newsletter-form input::placeholder {
  color: var(--footer-text-light);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--newsletter-input-focus-border);
  box-shadow: 0 0 0 3px rgba(93, 158, 255, 0.3);
}

.newsletter-form button {
  background-color: var(--newsletter-button-bg);
  color: var(--footer-text-white);
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: clamp(0.78rem, 2.5vw, 1rem);
  height: clamp(38px, 7vw, 48px);
  padding: 0 clamp(12px, 2.8vw, 25px);
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.newsletter-form button:hover,
.newsletter-form button:focus {
  background-color: var(--newsletter-button-hover-bg);
  transform: translateY(-1px);
  outline: none;
}

/* newsletter-section finished here */
/* footer-bottom starting from here */
.footer-bottom {
  padding: 15px 20px;
  text-align: center;
  border-top: 1px solid var(--footer-divider);
}

.footer-bottom p {
  margin: 0;
  font-size: clamp(0.72rem, 1.8vw, 0.875rem);
}

.footer-bottom strong {
  font-weight: 600;
  color: var(--footer-text-white);
}

/* footer-bottom finished here */
/* scroll-to-top starting from here */
.scroll-to-top {
  position: absolute;
  bottom: 100px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgb(20, 20, 20);
  border: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 0px 0px 4px rgba(180, 160, 255, 0.253);
  cursor: pointer;
  transition-duration: 0.3s;
  overflow: hidden;
  position: absolute;
}
.scroll-to-top .svgIcon {
  width: 12px;
  transition-duration: 0.3s;
}
.scroll-to-top .svgIcon path {
  fill: #ffffff;
}
.scroll-to-top:hover {
  width: 140px;
  border-radius: 50px;
  transition-duration: 0.3s;
  background-color: rgb(181, 160, 255);
  align-items: center;
}
.scroll-to-top:hover .svgIcon {
  transition-duration: 0.3s;
  transform: translateY(-200%);
}
.scroll-to-top::before {
  position: absolute;
  bottom: -20px;
  content: "Back to Top";
  color: #ffffff;
  font-size: 0px;
}
.scroll-to-top:hover::before {
  font-size: 13px;
  opacity: 1;
  bottom: unset;
  transition-duration: 0.3s;
}

/* scroll-to-top finished here */
/* Responsive Rules */
@media (max-width: 1023px) {
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
    display: flex;
    flex-direction: column;
  }

  .footer-links-container {
    justify-content: center;
    text-align: left;
    width: 100%;
  }

  .footer-column {
    flex-basis: 200px;
    text-align: center;
  }

  .newsletter-section {
    flex-direction: column;
    text-align: center;
  }

  .newsletter-content {
    flex-direction: column;
  }

  .newsletter-form {
    justify-content: center;
  }
}

@media (max-width: 950px) {
  .footer-container {
    padding: clamp(20px, 6vw, 32px) 12px 0;
  }

  .footer-top {
    margin-left: 0;
    margin-right: 0;
    gap: 8px;
  }

  .footer-brand {
    flex: 0 0 auto;
    min-width: 0;
  }

  .footer-links-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .footer-column {
    flex: 0 0 auto;
    flex-basis: auto;
    min-width: 0;
    width: 100%;
    text-align: center;
    border-top: 1px solid var(--footer-divider);
    padding: 8px 0;
  }

  .footer-column h3 {
    margin: 0;
    padding: 10px 0;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .footer-column ul {
    display: none;
    padding-bottom: 8px;
  }

  .footer-column h3::after {
    content: "▼";
    font-size: 12px;
    display: inline-block;
    margin-left: 2px;
    transition: transform 0.2s ease;
  }

  .footer-column.is-open h3::after {
    transform: rotate(180deg);
  }

  .footer-column.is-open ul {
    display: block;
  }

  .newsletter-form {
    flex-direction: column;
    width: 100%;
    max-width: min(92vw, 350px);
    margin: 0 auto;
  }

  .newsletter-section {
    margin: 12px 0;
    gap: 12px;
  }

  .newsletter-form input[type="text"],
  .newsletter-form input[type="email"] {
    width: 100%;
  }

  .scroll-to-top {
    width: clamp(38px, 11vw, 50px);
    height: clamp(38px, 11vw, 50px);
    bottom: 20px;
    right: 12px;
  }
}
