/* ========================================
   BE ORGANIC - FOOTER CSS (FUNKČNÍ VERZE)
   Ikony jsou pod certifikátem ve 5. sloupci.
   ======================================== */

.bo-footer-wrap {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px 40px;
  box-sizing: border-box;
}

.bo-footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.bo-footer-h4 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #2d5016;
}

.bo-footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bo-footer-list li {
  margin: 0;
  padding: 0;
}

.bo-footer-list a {
  color: #4a4a4a;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.6;
  transition: color 0.2s ease;
}

.bo-footer-list a:hover {
  color: #67a532;
  text-decoration: underline;
}

/* 5. sloupec: certifikát + ikony pod ním */
.bo-footer-col-legal {
  align-items: flex-start;
}

.bo-cert-badge {
  display: block;
  width: 100%;
  max-width: 180px;
  height: auto;
  margin: 18px 0 10px;
}

.bo-footer-social-under-cert {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: center;
  justify-items: center;
  column-gap: 10px;
  row-gap: 0;
  width: 100%;
  max-width: 190px;
  flex-wrap: nowrap;
}

.bo-footer-social-under-cert .bo-social-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 56px !important;
  height: 56px !important;
  min-width: 0;
  min-height: 0;
  clear: none !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  transition: transform 0.25s ease;
}

.bo-footer-social-under-cert .bo-social-link:hover {
  transform: translateY(-3px) scale(1.08);
}

.bo-footer-social-under-cert .bo-social-link img {
  display: block;
  width: 56px !important;
  height: 56px !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain;
}

.bo-footer-bottom {
  border-top: 1px solid #e0e0e0;
  background-color: #f5f5f5;
  text-align: center;
  margin-top: 40px;
  padding: 24px 20px;
}

.bo-footer-bottom p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

/* Tablet */
@media (max-width: 1024px) {
  .bo-footer-wrap {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
  }

  .bo-footer-col:nth-child(4),
  .bo-footer-col:nth-child(5) {
    grid-column: span 3;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .bo-footer-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
    padding: 40px 16px 32px;
  }

  .bo-footer-col:nth-child(4),
  .bo-footer-col:nth-child(5) {
    grid-column: span 2;
  }

  .bo-footer-h4 {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .bo-footer-list a {
    font-size: 13px;
  }

  .bo-cert-badge {
    max-width: 160px;
    margin-top: 16px;
  }

  .bo-footer-social-under-cert .bo-social-link,
  .bo-footer-social-under-cert .bo-social-link img {
    width: 50px !important;
    height: 50px !important;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .bo-footer-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 12px 24px;
  }

  .bo-footer-col:nth-child(4),
  .bo-footer-col:nth-child(5) {
    grid-column: span 1;
  }

  .bo-cert-badge {
    max-width: 150px;
  }

  .bo-footer-social-under-cert .bo-social-link,
  .bo-footer-social-under-cert .bo-social-link img {
    width: 44px !important;
    height: 44px !important;
  }
}

/* ========================================
   FINAL FIX: ikony opravdu v 1 řadě
   ======================================== */
.bo-footer-social-under-cert {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  white-space: nowrap !important;
}

.bo-footer-social-under-cert > a,
.bo-footer-social-under-cert > .bo-social-link,
.bo-footer-social-under-cert a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  max-width: 38px !important;
  max-height: 38px !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.bo-footer-social-under-cert > a img,
.bo-footer-social-under-cert > .bo-social-link img,
.bo-footer-social-under-cert a img,
.bo-footer-social-under-cert > a svg,
.bo-footer-social-under-cert > .bo-social-link svg,
.bo-footer-social-under-cert a svg,
.bo-footer-social-under-cert > a i,
.bo-footer-social-under-cert > .bo-social-link i,
.bo-footer-social-under-cert a i {
  display: block !important;
  width: 38px !important;
  height: 38px !important;
  max-width: 38px !important;
  max-height: 38px !important;
  font-size: 38px !important;
  line-height: 1 !important;
}

.bo-footer-social-under-cert br {
  display: none !important;
}

/* ========================================
   HARD FIX: Vždy 3 ikony vedle sebe pod certifikátem
   (přepíše konfliktní styly šablony)
   ======================================== */
.bo-footer-col.bo-footer-col-legal .bo-footer-social-under-cert,
.bo-footer-social-under-cert {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: auto !important;
  max-width: none !important;
  white-space: nowrap !important;
}

.bo-footer-col.bo-footer-col-legal .bo-footer-social-under-cert > .bo-social-link,
.bo-footer-social-under-cert > .bo-social-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 40px !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.bo-footer-col.bo-footer-col-legal .bo-footer-social-under-cert > .bo-social-link img,
.bo-footer-col.bo-footer-col-legal .bo-footer-social-under-cert > .bo-social-link svg,
.bo-footer-col.bo-footer-col-legal .bo-footer-social-under-cert > .bo-social-link i,
.bo-footer-social-under-cert > .bo-social-link img,
.bo-footer-social-under-cert > .bo-social-link svg,
.bo-footer-social-under-cert > .bo-social-link i {
  width: 40px !important;
  height: 40px !important;
  font-size: 40px !important;
  max-width: none !important;
  max-height: none !important;
  display: block !important;
}

@media (max-width: 768px) {
  .bo-footer-col.bo-footer-col-legal .bo-footer-social-under-cert > .bo-social-link,
  .bo-footer-social-under-cert > .bo-social-link {
    flex-basis: 36px !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
  }

  .bo-footer-col.bo-footer-col-legal .bo-footer-social-under-cert > .bo-social-link img,
  .bo-footer-col.bo-footer-col-legal .bo-footer-social-under-cert > .bo-social-link svg,
  .bo-footer-col.bo-footer-col-legal .bo-footer-social-under-cert > .bo-social-link i,
  .bo-footer-social-under-cert > .bo-social-link img,
  .bo-footer-social-under-cert > .bo-social-link svg,
  .bo-footer-social-under-cert > .bo-social-link i {
    width: 36px !important;
    height: 36px !important;
    font-size: 36px !important;
  }
}

@media (max-width: 480px) {
  .bo-footer-col.bo-footer-col-legal .bo-footer-social-under-cert,
  .bo-footer-social-under-cert {
    gap: 6px !important;
  }

  .bo-footer-col.bo-footer-col-legal .bo-footer-social-under-cert > .bo-social-link,
  .bo-footer-social-under-cert > .bo-social-link {
    flex-basis: 32px !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
  }

  .bo-footer-col.bo-footer-col-legal .bo-footer-social-under-cert > .bo-social-link img,
  .bo-footer-col.bo-footer-col-legal .bo-footer-social-under-cert > .bo-social-link svg,
  .bo-footer-col.bo-footer-col-legal .bo-footer-social-under-cert > .bo-social-link i,
  .bo-footer-social-under-cert > .bo-social-link img,
  .bo-footer-social-under-cert > .bo-social-link svg,
  .bo-footer-social-under-cert > .bo-social-link i {
    width: 32px !important;
    height: 32px !important;
    font-size: 32px !important;
  }
}

/* ========================================
   ABSOLUTE OVERRIDE: 3 ikony v jedné řadě
   ======================================== */
.bo-footer-social-under-cert {
  display: inline-grid !important;
  grid-auto-flow: column !important;
  grid-auto-columns: 38px !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  column-gap: 8px !important;
  row-gap: 0 !important;
  align-items: center !important;
  justify-items: center !important;
  width: auto !important;
  max-width: none !important;
  white-space: nowrap !important;
}

.bo-footer-social-under-cert > a,
.bo-footer-social-under-cert > .bo-social-link {
  display: inline-flex !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  max-width: 38px !important;
  max-height: 38px !important;
  align-items: center !important;
  justify-content: center !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.bo-footer-social-under-cert > a img,
.bo-footer-social-under-cert > .bo-social-link img,
.bo-footer-social-under-cert > a svg,
.bo-footer-social-under-cert > .bo-social-link svg,
.bo-footer-social-under-cert > a i,
.bo-footer-social-under-cert > .bo-social-link i {
  display: block !important;
  width: 38px !important;
  height: 38px !important;
  max-width: 38px !important;
  max-height: 38px !important;
  font-size: 38px !important;
  line-height: 1 !important;
}

.bo-footer-social-under-cert br {
  display: none !important;
}

@media (max-width: 768px) {
  .bo-footer-social-under-cert {
    grid-auto-columns: 34px !important;
    column-gap: 7px !important;
  }

  .bo-footer-social-under-cert > a,
  .bo-footer-social-under-cert > .bo-social-link,
  .bo-footer-social-under-cert > a img,
  .bo-footer-social-under-cert > .bo-social-link img,
  .bo-footer-social-under-cert > a svg,
  .bo-footer-social-under-cert > .bo-social-link svg,
  .bo-footer-social-under-cert > a i,
  .bo-footer-social-under-cert > .bo-social-link i {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
    font-size: 34px !important;
  }
}

@media (max-width: 480px) {
  .bo-footer-social-under-cert {
    grid-auto-columns: 30px !important;
    column-gap: 6px !important;
  }

  .bo-footer-social-under-cert > a,
  .bo-footer-social-under-cert > .bo-social-link,
  .bo-footer-social-under-cert > a img,
  .bo-footer-social-under-cert > .bo-social-link img,
  .bo-footer-social-under-cert > a svg,
  .bo-footer-social-under-cert > .bo-social-link svg,
  .bo-footer-social-under-cert > a i,
  .bo-footer-social-under-cert > .bo-social-link i {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
    font-size: 30px !important;
  }
}
