/* ==== COMPRESSED FOOTER - MOBILE & DESKTOP ==== */
.footer-v2 {
  background: linear-gradient(135deg, #8a929c 0%, #042d4d 100%);
  color: #ffffff;
  padding: 32px 20px 24px;
  line-height: 1.3;
  font-size: 15px;
  text-align: center;
  word-break: normal;
  overflow-wrap: break-word;
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, #8a929c 0%, #042d4d 50%, #8a929c 100%) 1;
}

.footer-v2 .footer-rows {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Brand section - perfectly centered */
.footer-v2 .brand {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
}

.footer-v2 .brand a {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  margin: 0 auto !important;
  padding: 0 !important;
  line-height: 0;
  width: auto;
}

.footer-v2 .logo {
  width: 110px;
  height: auto;
  display: block;
  margin: 0 auto 12px auto !important;
  padding: 0 !important;
}

.footer-v2 .brand-name {
  margin: 0 auto 8px auto !important;
  padding: 0 !important;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  color: #ffffff;
  width: 100%;
  text-align: center;
}

.footer-v2 .tagline {
  margin: 0 auto 20px auto !important;
  padding: 0 !important;
  color: #e0e4e8;
  font-size: 1rem;
  width: 100%;
  text-align: center;
}

/* Links - horizontal, centered */
.footer-v2 .links ul {
  margin: 0 auto 20px auto !important;
  padding: 0 !important;
  list-style: none;
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.footer-v2 .links li {
  margin: 0 !important;
  padding: 0 !important;
}

.footer-v2 .links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  transition: all 0.2s ease;
  margin: 0 !important;
  padding: 0 !important;
}

.footer-v2 .links a:hover {
  color: #e0e4e8;
  transform: translateY(-1px);
}

/* Contact - perfectly centered */
.footer-v2 .contact {
  font-style: normal;
  line-height: 1.5;
  margin: 0 auto 16px auto !important;
  padding: 0 !important;
  width: 100%;
}

.footer-v2 .contact p {
  margin: 0 auto !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.footer-v2 .contact .no-break:first-child {
  font-size: 1.65rem;
  font-weight: 700;
  color: #ffffff;
  display: block;
  margin: 0 auto !important;
  padding: 0 !important;
  letter-spacing: -0.5px;
  text-align: center;
}

.footer-v2 .contact a.no-break {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  margin: 0 auto !important;
  padding: 0 !important;
  transition: all 0.2s ease;
  text-align: center;
}

.footer-v2 .contact a.no-break:hover {
  color: #e0e4e8;
  transform: translateY(-1px);
}

/* Social icons - perfectly centered */
.footer-v2 .social {
  display: inline-flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  margin: 18px auto !important;
  padding: 0 !important;
}

.footer-v2 .social img {
  width: 36px;
  height: 36px;
  display: block;
  transition: all 0.2s ease;
  filter: brightness(1);
  margin: 0 !important;
  padding: 0 !important;
}

.footer-v2 .social a:hover img {
  filter: brightness(0.8);
  transform: translateY(-2px);
}

/* Copyright - perfectly centered */
.footer-v2 .legal {
  margin: 16px auto 0 auto !important;
  padding: 0 !important;
  color: #e0e4e8;
  font-size: 0.9rem;
  opacity: 0.9;
  text-align: center;
  width: 100%;
}

/* Info section wrapper - mobile stacked by default */
.footer-v2 .info {
  margin: 0;
  padding: 0;
  width: 100%;
}

/* TABLET - stacked but more spacious */
@media (min-width: 600px) and (max-width: 991px) {
  .footer-v2 {
    padding: 36px 24px 28px;
  }
  
  .footer-v2 .logo {
    width: 120px;
  }
  
  .footer-v2 .brand-name {
    font-size: 1.65rem;
  }
  
  .footer-v2 .tagline {
    font-size: 1.1rem;
  }
  
  .footer-v2 .links ul {
    gap: 28px;
  }
  
  .footer-v2 .links a {
    font-size: 1.1rem;
  }
  
  .footer-v2 .contact .no-break:first-child {
    font-size: 1.85rem;
  }
  
  .footer-v2 .contact a.no-break {
    font-size: 1.2rem;
  }
  
  .footer-v2 .social {
    gap: 24px;
  }
  
  .footer-v2 .social img {
    width: 40px;
    height: 40px;
  }
}

/* DESKTOP - side by side, perfectly centered */
@media (min-width: 992px) {
  .footer-v2 {
    padding: 32px 20px;
  }
  
  .footer-v2 .brand {
    margin-bottom: 20px;
  }
  
  .footer-v2 .tagline {
    margin-bottom: 20px;
  }
  
  .footer-v2 .info {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
    align-items: center;
    justify-items: center;
    gap: 60px;
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin: 20px 0;
  }
  
  .footer-v2 .links {
    justify-self: end;
    padding-right: 20px;
  }
  
  .footer-v2 .links ul {
    margin: 0;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 24px;
  }
  
  .footer-v2 .contact {
    margin-bottom: 0;
    justify-self: center;
  }
  
  .footer-v2 .social {
    margin: 0;
    justify-self: start;
    padding-left: 20px;
    gap: 20px;
  }
  
  .footer-v2 .legal {
    margin-top: 16px;
  }
}

/* Remove oversized spacing before footer */
main > section:last-of-type,
.page-content > section:last-of-type { 
  margin-bottom: 0 !important;
}

.results, .results-section { 
  margin-bottom: 1.25rem;
}

/* Legacy cleanup */
.footer, .site-footer, .captioncraft-footer { 
  word-break: normal; 
}

.footer .col, .site-footer .col, .captioncraft-footer .col,
.footer .contact, .site-footer .contact, .captioncraft-footer .contact { 
  min-width: 0; 
}
