/* 
   Unified Footer Styling
   This single file handles all footer styling consistently across the site
*/

/* Red separator bar above footer */
.footer-separator {
  background-color: #ba2929;
  height: 40px;
  width: 100%;
}

/* Main footer background color - light gray */
footer#footer,
#footer,
#footer.dark,
#footer .container,
#footer .footer-widgets-wrap,
#footer .copyrights,
#footer .copyrights .container {
  background-color: rgb(203, 206, 196) !important;
  color: #333333 !important;
}

/* Top section */
.footer-topline-content,
#footer .footer-topline-content,
footer#footer .container.footer-topline-content,
#footer .container.footer-topline-content {
  background-color: rgb(203, 206, 196) !important;
  color: #333333 !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 1140px !important;
  max-width: 100% !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

/* Footer-specific widgets and elements */
#footer .ft-widgets,
#footer .ft-widget,
#footer .ft-widget-company,
#footer .ft-widget-portfolio,
#footer .ft-widget-institucional,
#footer .widget.clearfix,
#footer .mapouter,
#footer .gmap_canvas {
  background-color: rgb(203, 206, 196) !important;
}

/* Ensure no gradients or color transitions in footer only */
#footer .footer-widgets-wrap,
#footer .ft-widgets {
  background-color: rgb(203, 206, 196) !important;
  background-image: none !important;
  border-top: none !important;
}

/* Container styling specific to footer */
#footer .container,
footer#footer .container,
#footer > .container,
footer#footer > .container {
  width: 1140px;
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 15px;
  padding-left: 15px;
  background-color: rgb(203, 206, 196) !important;
}

/* FAQ button styling */
.ft-faq-btn {
  display: inline-block;
  background-color: #ba2929;
  color: #fff !important;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-family: 'Libre Baskerville', serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  margin-right: 1.5rem;
  transition: background-color 0.3s;
  cursor: pointer !important;
  pointer-events: auto !important;
  z-index: 999 !important;
  position: relative !important;
}

.ft-faq-btn:hover {
  background-color: #991f1f !important;
  color: #fff !important;
  text-decoration: none !important;
}

/* Ensure FAQ button is always red with white text */
a.ft-faq-btn,
#footer a.ft-faq-btn,
a.ft-faq-btn:link,
a.ft-faq-btn:visited,
#footer a.ft-faq-btn:link,
#footer a.ft-faq-btn:visited {
  background-color: #ba2929 !important;
  color: #fff !important;
}

/* Social icons spacing */
.ft-actions,
#footer .ft-actions,
footer#footer .ft-actions {
  display: flex;
  align-items: center;
  background-color: rgb(203, 206, 196) !important;
}

.ft-actions .ft-social,
#footer .ft-actions .ft-social {
  margin-left: 1rem;
  background-color: rgb(203, 206, 196) !important;
}

.ft-actions .ft-social img,
#footer .ft-actions .ft-social img {
  display: block;
  width: 32px;
  height: auto;
  background-color: transparent !important;
}

/* Divider line */
.ft-divider {
  border: none;
  height: 1px;
  background-color: rgba(137, 139, 132, 0.3) !important;
  margin: 0;
}

/* Footer widgets section with 3 columns */
#footer .ft-widgets {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem 0;
  background-color: rgb(203, 206, 196) !important;
  margin: 0 auto !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
  max-width: 1140px !important;
}

/* Column styling */
#footer .ft-widget {
  flex: 1 1 200px;
  min-width: 180px;
  background-color: rgb(203, 206, 196) !important;
}

/* Column headers */
#footer .ft-widget h4 {
  font-family: 'Libre Baskerville', serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #ba2929 !important;
  margin-bottom: 1rem;
  background-color: rgb(203, 206, 196) !important;
}

/* List styling */
#footer .ft-widget .ft-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background-color: rgb(203, 206, 196) !important;
}

/* List items */
#footer .ft-widget .ft-list li {
  margin-bottom: 0.75rem;
  font-family: 'PT Serif', serif;
  font-size: 1rem;
  line-height: 1.4;
  color: #333333 !important;
  background-color: rgb(203, 206, 196) !important;
}

/* Links in footer */
#footer .ft-list a,
#footer .ft-widget a {
  color: #ba2929 !important;
  text-decoration: none;
  transition: color .2s;
  background-color: rgb(203, 206, 196) !important;
}

/* Hover effect for links */
#footer .ft-list a:hover,
#footer .ft-widget a:hover {
  color: #991f1f !important;
  text-decoration: underline !important;
  background-color: rgb(203, 206, 196) !important;
}

/* Map container */
#footer .mapouter {
  position: relative;
  text-align: right;
  height: 270px;
  width: 100%;
  max-width: 350px;
  margin-top: 1rem;
  margin-bottom: 30px;
  background-color: rgb(203, 206, 196) !important;
  overflow: hidden;
  display: block;
  box-sizing: border-box;
}

#footer .gmap_canvas {
  overflow: hidden;
  background: none !important;
  height: 270px;
  width: 100%;
  max-width: 350px;
  background-color: rgb(203, 206, 196) !important;
  display: block;
  box-sizing: border-box;
}

#footer .gmap_canvas iframe {
  width: 100%;
  height: 270px;
  background-color: transparent !important;
  display: block;
  border: 0;
}

/* Fix for iframe and images */
#footer iframe,
#footer img {
  background-color: transparent !important;
}

/* Browser fixes removed as they were causing issues */

/* Specific styling for container with columns */
#footer .ft-widgets.container,
#footer .ft-container {
  padding: 0 15px;
  margin-right: auto;
  margin-left: auto;
  background-color: rgb(203, 206, 196) !important;
  width: 1140px !important;
  max-width: 100% !important;
}

/* Copyright section */
#footer .copyrights,
#footer .copyrights .container,
#footer .copyrights-content,
#footer #copyrights,
footer#footer #copyrights,
#footer .copyright-links {
  background-color: rgb(203, 206, 196) !important;
  color: #333333 !important;
}

#footer .copyrights {
  padding: 15px 0;
  text-align: center;
}

#footer .copyrights .container {
  max-width: 1140px;
  margin: 0 auto;
}

/* Responsive layout for mobile */
@media (max-width: 768px) {
  #footer .ft-widgets {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  #footer .footer-topline-content {
    flex-direction: column;
    text-align: center;
  }
  
  #footer .ft-actions {
    margin-top: 1rem;
    justify-content: center;
  }
  
  #footer .ft-logo img {
    margin-bottom: 1rem;
  }
  
  #footer .mapouter, 
  #footer .gmap_canvas {
    width: 100%;
    max-width: 100%;
  }
}

/* Logo styling */
#footer .ft-logo,
footer#footer .ft-logo,
.ft-logo {
  background-color: rgb(203, 206, 196) !important;
}

#footer .ft-logo img,
footer#footer .ft-logo img,
.ft-logo img {
  height: 109px;
  width: auto;
  background-color: transparent !important;
}
