/* ================= FOOTER ================= */
.main-footer {
  position: relative;
  background: #fff;
  padding: 70px 0 10px; /* increase top padding */
  font-family: "Inter", sans-serif;
}

.main-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 18px;
  background: #b3926f;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}
/* Container positioning */
.container {
  position: relative;
  z-index: 2;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

.footer-top {
  padding-bottom: 30px;
  border-bottom: 1.9px solid #e7e7e7;
}

.footer-col h5 {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 18px;
  color: #000;
}

.footer-logo {
  height: 60px;
  margin-bottom: 15px;
  max-width: 100%;
  object-fit: contain;
}

.footer-desc {
  font-size: 17px !important;
  color: #000;
  line-height: 1.6;
  margin-bottom: 18px;
  max-width: 90% !important;
}

/* Social Icons */
.footer-social a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  margin-right: 8px;
  font-size: 18px;
  color: #000;
  transition: 0.3s ease;
  border: #e5e5e5 1px solid;
  text-decoration: none;
}

.footer-social a:hover {
  background: #b3926f;
  color: #fff;
}

/* Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  text-decoration: none;
  font-size: 16px;
  color: #000;
  transition: 0.3s ease;
}

.footer-links a:hover {
  color: #b3926f;
}

/* Contact */
.footer-col p {
  font-size: 16px;
  color: #000;
  margin-bottom: 8px;
  word-break: break-word;
}

/* Newsletter */
.newsletter-box {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

.newsletter-box input {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  border-radius: 20px;
  border: 1px solid #000;
  font-size: 14px;
  outline: none;
  width: 100%;
}

input::placeholder {
  color: #000;
}

.newsletter-box button {
  padding: 7px 18px;
  border-radius: 20px;
  border: none;
  background: #b3926f;
  color: #fff;
  font-size: 13px;
  transition: 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
}

.newsletter-box button:hover {
  background: #000;
}

/* Bottom */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-bottom p {
  font-size: 16px;
  color: #000;
  margin: 0;
}

.back-top {
  font-size: 16px;
  text-decoration: none;
  color: #000;
  transition: 0.3s ease;
  white-space: nowrap;
}

.back-top:hover {
  color: #b3926f;
}

/* ========== RESPONSIVE FIXES ========== */

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Medium Desktop / Tablet Landscape (992px - 1199px) */
@media (max-width: 1199px) {
  .footer-desc {
    max-width: 100% !important;
    font-size: 16px !important;
  }

  .footer-col h5 {
    font-size: 20px;
  }
}

/* Critical fix for 1024px and similar ranges */
@media (min-width: 992px) and (max-width: 1199px) {
  .footer-col {
    padding: 0 12px;
  }

  .footer-desc {
    font-size: 15px !important;
    line-height: 1.5;
  }

  .footer-links a,
  .footer-col p {
    font-size: 15px;
  }

  .newsletter-box {
    flex-wrap: wrap;
  }

  .newsletter-box input {
    width: 100%;
    flex: 0 0 100%;
  }

  .newsletter-box button {
    width: 100%;
    padding: 8px 18px;
  }

  .footer-social a {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
  .main-footer::before {
    height: 15px;
    top: -15px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
  }

  .footer-top {
    row-gap: 30px;
  }

  .footer-col {
    margin-bottom: 20px;
  }

  .footer-col h5 {
    margin-bottom: 15px;
    font-size: 20px;
  }

  .footer-desc {
    max-width: 100% !important;
  }

  .newsletter-box {
    max-width: 100%;
  }
}

/* Mobile Landscape (576px - 767px) */
@media (max-width: 767px) {
  .main-footer {
    padding: 35px 0 10px;
  }

  .main-footer::before {
    height: 12px;
    top: -12px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .footer-bottom p {
    font-size: 15px;
  }

  .back-top {
    font-size: 15px;
  }

  .footer-col h5 {
    font-size: 19px;
    margin-bottom: 12px;
  }

  .footer-links a,
  .footer-col p {
    font-size: 15px;
  }
}

/* Mobile Portrait (575px and below) */
@media (max-width: 575px) {
  .main-footer::before {
    height: 10px;
    top: -10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
  }

  .footer-logo {
    height: 45px;
  }

  .footer-desc {
    font-size: 14px !important;
  }

  .footer-social a {
    width: 36px;
    height: 36px;
    font-size: 15px;
    margin-right: 5px;
  }

  .newsletter-box {
    flex-direction: column;
    gap: 10px;
  }

  .newsletter-box input,
  .newsletter-box button {
    width: 100%;
  }

  .newsletter-box button {
    white-space: normal;
  }

  .footer-bottom p {
    font-size: 13px;
  }

  .back-top {
    font-size: 14px;
  }
}

/* Extra small devices */
@media (max-width: 375px) {
  .footer-social a {
    width: 32px;
    height: 32px;
    font-size: 14px;
    margin-right: 4px;
  }

  .footer-col h5 {
    font-size: 17px;
  }

  .footer-links a,
  .footer-col p {
    font-size: 13px;
  }
}
