/* ============================================
   RESPONSIVE FOOTER - Mobile First
   ============================================ */

/* Remove white space below footer - Critical fixes */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

/* ============================================
   FOOTER CONTAINER
   ============================================ */
.cif-footer,
.wrapper[role="contentinfo"],
#wrapper-footer-full {
  flex-shrink: 0;
  margin: 0 !important;
  padding: 0 !important;
  background-color: #203266 !important;
  color: #ffffff;
  width: 100%;
}

/* Inner footer content padding */
.cif-footer > .container,
#wrapper-footer-full > .container {
  padding-top: 2.5rem;
  padding-bottom: 0;
  padding-left: 4rem;
  padding-right: 4rem;
}

/* Footer base styles */
.cif-footer {
  background-color: #1f2937 !important;
  color: #ffffff;
}

.cif-footer a {
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.cif-footer a:hover {
  opacity: 0.9;
}

/* Remove any white backgrounds from footer blocks */
.cif-footer .block,
.cif-footer [class*="block-"],
.cif-footer .footer-block-item,
.cif-footer .region-footer {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

/* Hide block titles */
.cif-footer h2.visually-hidden,
.cif-footer h2.sr-only,
.cif-footer .block__title {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border-width: 0 !important;
}

/* ============================================
   MAIN FOOTER GRID
   ============================================ */
.footer-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

/* ============================================
   LOGO & SOCIAL SECTION
   ============================================ */
.footer-logo-section {
  text-align: center;
}

.footer-logo-img {
  width: 50%;
  max-width: 200px;
  height: auto;
  margin: 0 auto 1.5rem auto;
  display: block;
}

.social_media {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none !important;
  color: #ffffff;
}

.social-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  transform: scale(1.1);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   DISCLAIMER SECTION
   ============================================ */
.footer-disclaimer-section {
  text-align: center;
}

.disclaimer-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
}

.disclaimer-text {
  font-size: 0.75rem;
  line-height: 1.6;
  margin-bottom: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.disclaimer-text:last-child {
  margin-bottom: 0;
}

/* ============================================
   FOOTER DIVIDER
   ============================================ */
.footer-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 2rem 0;
}

/* ============================================
   BOTTOM FOOTER GRID
   ============================================ */
.footer-bottom-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding-bottom: 2rem;
}

/* Mobile Divider (only visible on mobile) */
.footer-mobile-divider {
  display: block;
}

.footer-mobile-divider .footer-divider {
  margin: 0;
}

/* ============================================
   FOOTER NAVIGATION
   ============================================ */
.footer_menu {
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-nav-link {
  font-size: 0.875rem;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 0.25rem 0;
}

.footer-nav-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ============================================
   COPYRIGHT
   ============================================ */
.site_info {
  text-align: center;
}

.copyright-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* ============================================
   TABLET RESPONSIVE (768px - 1023px)
   ============================================ */
@media (min-width: 768px) {
  /* Main grid - 2 columns on tablet */
  .footer-main-grid {
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
  }
  
  /* Logo section - left aligned on tablet */
  .footer-logo-section {
    text-align: left;
  }
  
  .footer-logo-img {
    margin: 0 0 1.5rem 0;
  }
  
  .social_media {
    justify-content: flex-start;
  }
  
  /* Disclaimer - left aligned on tablet */
  .footer-disclaimer-section {
    text-align: left;
  }
  
  /* Bottom grid - 2 columns on tablet */
  .footer-bottom-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
  }
  
  /* Hide mobile divider on tablet+ */
  .footer-mobile-divider {
    display: none;
  }
  
  /* Footer nav - horizontal on tablet */
  .footer_menu {
    text-align: left;
  }
  
  .footer-nav {
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  
  /* Copyright - right aligned on tablet */
  .site_info {
    text-align: right;
  }
}

/* ============================================
   DESKTOP RESPONSIVE (1024px+)
   ============================================ */
@media (min-width: 1024px) {
  .cif-footer > .container,
  #wrapper-footer-full > .container {
    padding-top: 3rem;
  }
  
  .footer-main-grid {
    gap: 4rem;
  }
  
  .social-link {
    width: 40px;
    height: 40px;
  }
  
  .disclaimer-title {
    font-size: 1.125rem;
  }
  
  .footer-nav {
    gap: 2rem;
  }
}

/* ============================================
   LARGE DESKTOP (1280px+)
   ============================================ */
@media (min-width: 1280px) {
  .footer-logo-img {
    max-width: 240px;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Focus states */
.social-link:focus-visible,
.footer-nav-link:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .social-link,
  .footer-nav-link {
    border-width: 3px;
  }
  
  .footer-divider {
    border-top-width: 2px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .social-link,
  .footer-nav-link {
    transition: none;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .cif-footer {
    background: white !important;
    color: black !important;
  }
  
  .cif-footer a {
    color: black !important;
  }
  
  .social_media {
    display: none !important;
  }
  
  .footer-divider {
    border-top-color: black;
  }
}

/* ============================================
   ENSURE NO BOTTOM SPACING
   ============================================ */
.cif-footer > *:last-child,
.cif-footer .container > *:last-child,
#wrapper-footer-full > *:last-child,
#footer-full-content > *:last-child {
  margin-bottom: 0 !important;
}

.footer-bottom-grid {
  padding-bottom: 2rem !important;
}

/* Ensure no page background shows through */
body {
  background-color: #ffffff;
}

.cif-footer {
  position: relative;
  z-index: 1;
}