/**
 * PUBLIC FOOTER STYLES
 * 
 * Shared footer styles for all public pages.
 * Extracted from onboarding.css to be used independently by layouts.public
 * 
 * @file public/css/public-footer.css
 * @version 1.0.0
 */

/* Container class for compatibility (Bootstrap-like) */
.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Bootstrap utility classes for footer compatibility */
.d-flex {
  display: flex !important;
}

.flex-wrap {
  flex-wrap: wrap !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.justify-content-center {
  justify-content: center !important;
}

.align-items-start {
  align-items: flex-start !important;
}

.text-center {
  text-align: center !important;
}

.text-md-start {
  text-align: left !important;
}

@media (min-width: 768px) {
  .text-md-start {
    text-align: left !important;
  }
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.col-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding-right: 15px;
  padding-left: 15px;
}

@media (min-width: 768px) {
  .col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
  
  .mb-md-0 {
    margin-bottom: 0 !important;
  }
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

.pt-3 {
  padding-top: 1rem !important;
}

.pb-2 {
  padding-bottom: 0.5rem !important;
}

/* Override Bootstrap utilities for footer bottom */
.onboard-footer-bottom.pt-3 {
  padding-top: 2rem !important;
}

.onboard-footer-bottom.pb-2 {
  padding-bottom: calc(1.5rem + 10px) !important;
}

.fw-bold {
  font-weight: 700 !important;
}

.text-white {
  color: #fff !important;
}

.text-white-50 {
  color: rgba(255, 255, 255, 0.5) !important;
}

.text-secondary {
  color: #6c757d !important;
}

.text-decoration-none {
  text-decoration: none !important;
}

.small {
  font-size: 0.875rem;
}

.me-3 {
  margin-right: 1rem !important;
}

/* Public Footer Main Container */
.onboard-footer-main {
  background: #232323;
  color: #fff;
  margin-top: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  border-top: 1px solid #222;
}

/* Footer Top Section */
.onboard-footer-top {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: flex-start !important;
  padding-top: 3.5rem !important;
  padding-bottom: 3.5rem !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  gap: 2rem !important;
}

/* Override container padding for footer */
.onboard-footer-main .container {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

/* Footer Brand Section (Cat + Slogan) */
.onboard-footer-brand {
  min-width: 180px;
  max-width: 220px;
  flex: 0 0 220px;
  padding-left: 0;
  padding-right: 0;
  margin-right: 6rem !important;
}

.onboard-footer-cat {
  width: 130px;
  height: auto;
  margin-bottom: 0.5rem;
}

.onboard-footer-slogan {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
  margin-top: 0.75rem;
}

.onboard-footer-slogan .text-primary {
  color: #01aade !important;
}

/* Footer Column (for Get Started, Company, Support) */
.onboard-footer-column {
  flex: 0 0 auto;
  margin-right: 6rem !important;
}

.onboard-footer-column:last-child {
  margin-right: 0 !important;
}

/* Footer Links Section */
.onboard-footer-links {
  flex: 1 1 0%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.onboard-footer-heading {
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.98);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.onboard-footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.onboard-footer-list li {
  margin-bottom: 0.65rem;
}

/* Add visual weight to rightmost column */
.onboard-footer-links > div:last-child {
  padding-right: 0.5rem;
}

.onboard-footer-list li:last-child {
  margin-bottom: 0;
}

.onboard-footer-list a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.95rem;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.onboard-footer-list a:hover,
.onboard-footer-link:hover {
  color: #01aade;
  text-decoration: none;
  transform: translateX(3px);
}

/* Footer Bottom Section */
.onboard-footer-bottom {
  background: #232323;
  padding-top: 1rem;
  padding-bottom: calc(1.5rem + 10px);
  position: relative;
  margin-top: 0.25rem;
}

/* Override Bootstrap utility classes - MUST override pt-3 and pb-2 */
.onboard-footer-bottom.pt-3 {
  padding-top: 2rem !important;
}

.onboard-footer-bottom.pb-2 {
  padding-bottom: calc(1.5rem + 10px) !important;
}

/* Force override Bootstrap's pt-3 and pb-2 */
footer .onboard-footer-bottom.pt-3 {
  padding-top: 2rem !important;
}

footer .onboard-footer-bottom.pb-2 {
  padding-bottom: calc(1.5rem + 10px) !important;
}

/* Trust Badges & Payments Row */
.onboard-footer-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
  padding: 0.75rem 0;
}

.onboard-footer-payments {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.onboard-footer-payments-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.onboard-footer-pay {
  height: 22px;
  width: auto;
  vertical-align: middle;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 2px 5px;
}

.onboard-footer-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.onboard-footer-badge i {
  font-size: 1.2rem;
}

.onboard-footer-badge i.bi-shield-fill-check {
  color: #10B981;
}

.onboard-footer-badge i.bi-patch-check-fill {
  color: #01aade;
}

.onboard-footer-badge i.bi-heart-fill {
  color: #EF4444;
}

.onboard-footer-badge-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.onboard-footer-badge-subtitle {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.2;
}

/* Sustainability message removed - cleaner footer */

.onboard-footer-link {
  color: #fff;
  text-decoration: none;
  margin: 0 0.2rem;
  transition: color 0.15s;
}

.onboard-footer-link:hover {
  color: #01aade;
  text-decoration: none;
}

/* Bottom Row - Copyright & Legal */
.onboard-footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.onboard-footer-copyright {
  color: rgba(255, 255, 255, 0.7);
}

.onboard-footer-legal {
  color: rgba(255, 255, 255, 0.7);
}

.onboard-footer-legal a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.onboard-footer-legal a:hover {
  color: #01aade;
  text-decoration: none;
}

.onboard-footer-separator {
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0.5rem;
}

/* Footer Top Button (Back to Top) */
.onboard-footer-topbtn {
  position: absolute;
  right: 1.5rem;
  bottom: 1.1rem;
  background: #181818;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  font-size: 1.3rem;
  transition: background 0.15s, color 0.15s;
  z-index: 10;
}

.onboard-footer-topbtn:hover {
  background: #01aade;
  color: #fff;
}

/* Responsive Styles */
@media (max-width: 900px) {
  .onboard-footer-links {
    gap: 1.2rem;
  }
}

@media (max-width: 768px) {
  .onboard-footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .onboard-footer-brand {
    margin-bottom: 1.5rem;
  }

  .onboard-footer-links {
    flex-direction: column;
    gap: 1.5rem;
  }

  .onboard-footer-heading {
    margin-bottom: 0.5rem;
  }

  .onboard-footer-topbtn {
    right: 1rem;
    bottom: 1rem;
  }
}

