/* Footer Styles - Enhanced Responsive Design */
:root {
  --dark-rgb: 33, 37, 41; /* Bootstrap dark theme colors */
  --primary-color: #0d6efd; /* Bootstrap primary blue color */
  --bg-opacity: 0.92; /* Dark overlay opacity */
  --footer-text-color: #fff;
  --footer-link-hover: #0dcaf0; /* Light blue for hover states */
}

/* Main footer container */
.footer {
  position: relative;
  padding: 4rem 0 2rem;
  color: var(--footer-text-color);
  overflow: hidden;
  /* margin-top: 3rem; */
}

/* Background image styling */
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../img/footer2.0.png") center center/cover no-repeat;
  
}

/* Dark overlay for better text readability */
.footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(var(--dark-rgb), var(--bg-opacity));
  z-index: -1;
}

/* Content positioning above background */
.footer > * {
  position: relative;
  z-index: 1;
}

/* Section headings */
.footer h4 {
  position: relative;
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

/* Footer contact information styling */
.footer p {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  line-height: 1.6;
}

/* Icon styling in contact info */
.footer .fa,
.footer .fab,
.footer .fas {
  margin-right: 0.75rem;
  color: var(--primary-color);
  width: 18px;
  text-align: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Links styling */
.footer a {
  color: var(--footer-text-color);
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer a:hover {
  color: var(--footer-link-hover);
  text-decoration: none;
  transform: translateX(3px);
}

/* Social media buttons */
.btn-square {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50% !important;
  transition: all 0.3s ease;
  margin: 0.25rem;
}

.btn-square:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* Social icon styles */
.btn-square .fab {
  margin: 0;
  font-size: 1.1rem;
}

/* Location links styling */
.btn-link {
  display: block;
  padding: 0.5rem 0;
  text-align: left;
  margin-bottom: 0.25rem;
  position: relative;
  border: none;
  background: none;
  transition: all 0.3s ease;
}

.btn-link::before {
  content: "•";
  position: absolute;
  left: -20px;
  color: var(--primary-color);
  opacity: 0;
  transition: all 0.3s ease;
  font-weight: bold;
}

.btn-link:hover::before {
  opacity: 1;
  left: -15px;
}

/* Copyright section */
.footer .container .row .text-center {
  padding: 2rem 0 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  font-size: 0.9rem;
}

/* Animation for wow effect */
@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(30px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

.wow.fadeIn {
  animation: fadeIn 1s ease-out forwards;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Extra Large devices (large desktops, 1200px and up) */

@media (min-width: 1200px) {
  .footer {
    padding: 3rem 0 0.5rem;
  }
  
  .footer .container {
    max-width: 1140px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .footer {
    padding: 4rem 0 2rem;
  }
  
  .footer .col-lg-3 {
    padding: 0 1rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .footer {
    padding: 3.5rem 0 2rem;
    text-align: center;
  }
  
  .footer .col-md-6 {
    margin-bottom: 2.5rem;
    text-align: center;
  }
  
  .footer h4 {
    text-align: center;
    margin-bottom: 1.25rem;
  }
  
  .footer p {
    justify-content: center;
    text-align: center;
  }
  
  .footer .d-flex {
    justify-content: center;
  }
  
  /* Satellite locations for tablets */
  .footer .col-lg-3:last-child .btn-link {
    display: inline-block;
    text-align: center;
    margin: 0.25rem 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
  }
  
  .footer .col-lg-3:last-child .btn-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
  }
  
  .btn-link::before {
    display: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .footer {
    padding: 3rem 0 1.5rem;
    text-align: center;
  }
  
  .footer .col-md-6 {
    margin-bottom: 2rem;
    text-align: center;
  }
  
  .footer h4 {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  
  .footer p {
    justify-content: center;
    text-align: center;
    font-size: 0.9rem;
  }
  
  .footer .d-flex {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .btn-square {
    width: 36px;
    height: 36px;
    margin: 0.15rem;
  }
  
  /* Satellite locations for small tablets */
  .footer .col-lg-3:last-child .btn-link {
    display: inline-block;
    text-align: center;
    margin: 0.2rem 0.3rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
  }
  
  .footer .col-lg-3:last-child .btn-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
  }
  
  .btn-link::before {
    display: none;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .footer {
    padding: 2.5rem 0 1.5rem;
    text-align: center;
  }
  
  .footer .container {
    padding: 0 1rem;
  }
  
  .footer .row {
    margin: 0;
  }
  
  .footer .col-md-6 {
    margin-bottom: 2rem;
    text-align: center;
    padding: 0 0.5rem;
  }
  
  .footer h4 {
    text-align: center;
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
  }
  
  .footer p {
    justify-content: center;
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.5;
  }
  
  .footer .fa,
  .footer .fab,
  .footer .fas {
    margin-right: 0.2rem;
    width: 16px;
    font-size: 0.9rem;
  }
  
  .footer .d-flex {
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
  }
  
  .btn-square {
    width: 35px;
    height: 35px;
    margin: 0.1rem;
  }
  
  .btn-square .fab {
    font-size: 1rem;
  }
  
  /* Mobile satellite locations */
  .footer .col-lg-3:last-child {
    text-align: center;
  }
  
  .footer .col-lg-3:last-child .btn-link {
    display: inline-block;
    text-align: center;
    margin: 0.15rem 0.2rem;
    padding: 0.35rem 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .footer .col-lg-3:last-child .btn-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }
  
  .btn-link::before {
    display: none;
  }
  
  /* Copyright section for mobile */
  .footer .container .row .text-center {
    padding: 1.5rem 0 1rem;
    margin-top: 1.5rem;
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }
}

/* Ultra small devices (very small phones, less than 360px) */
@media (max-width: 359.98px) {
  .footer {
    padding: 2rem 0 1rem;
  }
  
  .footer .container {
    padding: 0 0.75rem;
  }
  
  .footer h4 {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
  }
  
  .footer p {
    font-size: 0.8rem;
  }
  
  .footer .col-lg-3:last-child .btn-link {
    margin: 0.1rem 0.15rem;
    padding: 0.3rem 0.5rem;
    font-size: 0.75rem;
  }
  
  .btn-square {
    width: 32px;
    height: 32px;
  }
  
  .btn-square .fab {
    font-size: 0.9rem;
  }
}

/* ============================================
   UTILITY CLASSES FOR BETTER MOBILE EXPERIENCE
   ============================================ */

/* Ensure text doesn't break awkwardly on mobile */
@media (max-width: 767.98px) {
  .footer .text-white {
    word-wrap: break-word;
    hyphens: auto;
  }
  
  /* Better spacing for contact info on mobile */
  .footer p.mb-2 {
    margin-bottom: 1rem !important;
  }
  
  /* Improve readability of addresses on mobile */
  .footer p i.fa-map-marker-alt + span,
  .footer p i.fa-map-marker-alt {
    line-height: 1.4;
  }
}

/* Print styles */
@media print {
  .footer {
    background: #333 !important;
    color: #fff !important;
    padding: 2rem 0;
  }
  
  .footer::before,
  .footer::after {
    display: none;
  }
  
  .btn-square {
    display: none;
  }
}