/* Footer Styles - Shared across all web apps (static site + React) */
/* Single source: .footer-design used by website and portal */
/* --zivo-logo-height: same as header (Header.css) for consistent menu bar + footer logo size */
:root {
  --zivo-logo-height: 56px;
  --footer-horizontal-padding: 2rem;
}

/* Full footer design (three columns + bottom bar) - common component */
/* Horizontal padding only on footer so content and separator share same left/right edge */
.footer-design {
  background: #F8F9FA;
  color: #2C3E50;
  padding: 2rem var(--footer-horizontal-padding) 1.25rem;
  margin: 0;
  margin-top: auto;
  width: 100%;
  box-sizing: border-box;
}

/* Single inner wrapper so logo/tagline/social and copyright share the same left edge */
.footer-design .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* No extra padding: content and bottom bar align with each other */
.footer-design .footer-content {
  padding: 0;
  margin: 0 0 1.5rem 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2.5rem 3.5rem;
  justify-content: space-between;
}

.footer-design .footer-section {
  min-width: 180px;
  flex: 0 1 auto;
  margin: 0;
  padding: 0;
}

/* First column: no left offset so logo/tagline/social align with copyright below */
.footer-design .footer-content > .footer-section:first-child,
.footer-design .footer-company {
  margin-left: 0;
  padding-left: 0;
  max-width: 320px;
  text-align: left;
  align-self: flex-start;
}

.footer-design .footer-logo-link {
  display: block;
  margin-bottom: 0.75rem;
  text-decoration: none;
  text-align: left;
  width: fit-content;
}

.footer-design .footer-logo-img {
  display: block;
  height: var(--zivo-logo-height);
  min-height: var(--zivo-logo-height);
  width: auto;
  object-fit: contain;
  margin: 0;
}

.footer-design .footer-tagline {
  color: #6C757D;
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0 0 1rem;
  text-align: left;
  max-width: 100%;
}

.footer-design .footer-social {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-start;
}

.footer-design .footer-social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2C3E50;
  border: none;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, opacity 0.2s;
}

.footer-design .footer-social-icon:hover {
  background: #1a252f;
  opacity: 0.95;
}

.footer-design .footer-social-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

.footer-design .footer-registered-company {
  color: #6C757D;
  font-size: 0.85rem;
  line-height: 1.45;
  margin: 1rem 0 0;
  text-align: left;
}

.footer-design .footer-heading {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #2C3E50;
  margin: 0 0 1rem;
}

.footer-design .footer-platform ul,
.footer-design .footer-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-design .footer-platform li,
.footer-design .footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-design .footer-platform a,
.footer-design .footer-section a {
  color: #2C3E50;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-design .footer-platform a:hover,
.footer-design .footer-section a:hover {
  color: #1a252f;
}

.footer-design .footer-newsletter-desc {
  color: #6C757D;
  font-size: 0.95rem;
  margin: 0 0 1rem;
  max-width: 260px;
}

.footer-design .footer-newsletter-form {
  display: flex;
  gap: 0;
  max-width: 320px;
}

.footer-design .footer-newsletter-input {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-family: inherit;
  border: 1px solid #dee2e6;
  border-right: none;
  border-radius: 4px 0 0 4px;
  background: #fff;
  color: #2C3E50;
  outline: none;
}

.footer-design .footer-newsletter-input::placeholder {
  color: #6C757D;
}

.footer-design .footer-newsletter-btn {
  width: 48px;
  padding: 0;
  background: #212529;
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.footer-design .footer-newsletter-btn:hover {
  background: #111;
}

.footer-design .footer-bottom {
  width: 100%;
  padding: 1.25rem 0 0;
  margin: 0;
  border-top: 1px solid #dee2e6;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  box-sizing: border-box;
}

.footer-design .footer-bottom p {
  color: #6C757D;
  font-size: 0.9rem;
  margin: 0;
  padding: 0;
}

.footer-design .footer-bottom ul {
  list-style: none;
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0 1rem;
  justify-content: flex-end;
  align-items: center;
}

.footer-design .footer-bottom ul li {
  display: inline-block;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-design .footer-bottom ul li::before {
  content: none;
}

.footer-design .footer-bottom ul li + li::before {
  content: " · ";
  margin-right: 0.25rem;
  color: #6C757D;
  font-weight: normal;
}

.footer-design .footer-bottom a {
  color: #6C757D;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-design .footer-bottom a:hover {
  color: #2C3E50;
}

@media (max-width: 768px) {
  .footer-design .footer-content {
    flex-direction: column;
    gap: 2.5rem;
  }

  .footer-design .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-design .footer-bottom ul {
    justify-content: center;
  }
}

/* Note: Uses standard 'footer' class to match website styles */
footer {
  background: #111;
  color: white;
  padding: 3rem 2rem 2rem;
  margin: 0;
  margin-top: auto;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  left: 0;
  right: 0;
}

footer .footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  justify-content: space-between;
  margin-bottom: 2rem;
}

footer .footer-section {
  min-width: 200px;
  margin-left: auto;
  text-align: right;
}

footer .footer-section h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #fff;
}

footer .footer-section ul {
  list-style: none;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
  text-align: right;
}

footer .footer-section ul li {
  margin-bottom: 0.5rem;
}

footer .footer-section a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

footer .footer-section a:hover {
  color: #fff;
}

footer .footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid #333;
  display: flex;
  justify-content: center;
  align-items: center;
}

footer .footer-bottom p {
  color: #aaa;
  font-size: 0.9rem;
  text-align: center;
}

/* Lucid variant: single bar, light grey, copyright left / links right */
footer.footer-lucid {
  background: #F8F9FA;
  color: #2C3E50;
  padding: 2rem;
  border-top: 1px solid #e9ecef;
}

footer.footer-lucid .footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 0;
  border-top: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

footer.footer-lucid .footer-bottom p {
  color: #6C757D;
  font-size: 0.875rem;
  text-align: left;
  margin: 0;
}

footer.footer-lucid .footer-bottom ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-end;
}

footer.footer-lucid .footer-bottom a {
  color: #6C757D;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

footer.footer-lucid .footer-bottom a:hover {
  color: #2C3E50;
}

@media (max-width: 768px) {
  footer.footer-lucid .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  footer.footer-lucid .footer-bottom ul {
    justify-content: center;
  }
}

/* Full footer: same as website design – three columns + bottom bar */
footer.footer-full {
  background: #F8F9FA;
  color: #2C3E50;
  padding: 3rem 2rem 2rem;
  margin: 0;
  margin-top: auto;
  width: 100%;
  box-sizing: border-box;
  border-top: 1px solid #e9ecef;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Responsive (default footer) */
@media (max-width: 768px) {
  footer .footer-content {
    flex-direction: column;
    gap: 2rem;
  }

  footer .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
